<view class="cu-item"></view>
mounted () {
let _that = this
_that.$nextTick(() => {
uni.getSystemInfo({
success: function (res) { // res - 各种参数
let obj = uni.createSelectorQuery().select('.cu-item')
obj.boundingClientRect(function (data) { // data - 各种参数
console.log(data)
}).exec()
}
})
})
},