Task:指引页

This commit is contained in:
linxi
2025-01-16 18:09:07 +08:00
parent c6ff84ca5d
commit 30c2d18412
4 changed files with 73 additions and 12 deletions
+12 -1
View File
@@ -5,7 +5,7 @@
}"
class="xdd-tabbar-wrap"
>
<view class="center-img" @click="switchTabFn('/pages/cloud/haveFun')">
<view class="center-img" id="quweiIcon" @click="switchTabFn('/pages/cloud/haveFun')">
<image
:src="webUrl + '/home/tabbar-center.png'"
class="img"
@@ -95,7 +95,18 @@ export default {
]]
}
},
mounted() {
this.getElementData('#quweiIcon')
},
methods: {
getElementData(el) {
const query = uni.createSelectorQuery().in(this)
query.select(el).boundingClientRect().exec((res)=> {
if(res[0]) {
this.$emit('getElementData', res[0])
}
})
},
/**
* 跳转至目标页面
* type: 1-tabbar页面,2-非tabbar页面