Task:指引功能/状态接口对接
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<FunctionGuide :maxStep="1" :guideData="functionGuideData" ref="FunctionGuide"></FunctionGuide>
|
||||
<FunctionGuide :maxStep="1" @hide="setGuide('wellnessFoodIndex')" :guideData="functionGuideData" ref="FunctionGuide"></FunctionGuide>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -198,6 +198,7 @@ export default {
|
||||
},
|
||||
onLoad() {
|
||||
this.init()
|
||||
this.queryGuide('wellnessFoodIndex')
|
||||
},
|
||||
methods: {
|
||||
showFunctionGuide() {
|
||||
@@ -248,17 +249,13 @@ export default {
|
||||
},
|
||||
]
|
||||
this.getElementData('#news-wrap', res=>{
|
||||
|
||||
this.setFunctionGuideData({
|
||||
imgs: imgs,
|
||||
tipsPosition: '420rpx',
|
||||
btnGroupPosition: '',
|
||||
position: {
|
||||
top: res.top*2 - 10 + 'rpx',
|
||||
left: res.left*2 - 20 + 'rpx',
|
||||
width: `${res.width*2}rpx`,
|
||||
height: `${res.height*2}rpx`,
|
||||
padding: '10rpx 20rpx'
|
||||
top: res.top + 'px',
|
||||
left: res.left + 'rpx',
|
||||
width: `${res.width}px`,
|
||||
height: `${res.height}px`,
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user