Commit b938b434 authored by 肖健's avatar 肖健

删除console

parent 1594045f
...@@ -370,10 +370,6 @@ ...@@ -370,10 +370,6 @@
}, },
}); });
}, },
async getElInfo() {
let rectInfo = await this.$u.getRect('.personal');
console.log('rectInfo', rectInfo);
}
}, },
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {
...@@ -400,14 +396,10 @@ ...@@ -400,14 +396,10 @@
let personalHeight = data.height let personalHeight = data.height
uni.createSelectorQuery().in(that.$parent.$refs.myTab).select(".weui-tabbar").boundingClientRect(function(data) { //data - 各种参数 uni.createSelectorQuery().in(that.$parent.$refs.myTab).select(".weui-tabbar").boundingClientRect(function(data) { //data - 各种参数
console.log('weui-tabbar', data)
// 获取元素高度 // 获取元素高度
let tabbarHeight = data.height let tabbarHeight = data.height
let remainder = windowHeight - personalHeight - tabbarHeight let remainder = windowHeight - personalHeight - tabbarHeight
console.log('remainder', remainder);
if(remainder > 130) { if(remainder > 130) {
//可使用窗口高度,将px转换rpx //可使用窗口高度,将px转换rpx
that.carouselHeight = (remainder * (750/ windowWidth)) that.carouselHeight = (remainder * (750/ windowWidth))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment