Task:指引页
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user