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
+3
View File
@@ -11,6 +11,8 @@ export default {
},
screenWidth: 0,
scrollLeft: 0,
totalWidth: 0,
scrollViewWidth: 0,
}
},
onLoad() {
@@ -27,6 +29,7 @@ export default {
getElementData(el, cb) {
const query = uni.createSelectorQuery().in(this)
query.select(el).boundingClientRect().exec((res)=> {
console.log(res, 'getElementData');
if(res[0]) {
cb(res[0])
}