diff --git a/components/ad-popup/ad-popup.js b/components/ad-popup/ad-popup.js index 337d1f1..fcae4a7 100644 --- a/components/ad-popup/ad-popup.js +++ b/components/ad-popup/ad-popup.js @@ -47,8 +47,6 @@ Component({ 'content.top': _self.data.top * phoneHeight, 'content.left': _self.data.left * phoneHeight }) - console.log('手机px', phoneHeight) - console.log('边距:', _self.data.content) } }, methods: { @@ -82,8 +80,6 @@ Component({ }); const targetLeft = this.data.screenWidth - 170; const targetTop = this.data.screenHeight - 170; - console.log(this.data.screenHeight) - console.log(this.data.screenWidth) animation .translate(targetLeft - this.data.initPosition.left, targetTop - this.data.initPosition.top) .scale(0.03) diff --git a/pages/index/index.js b/pages/index/index.js index 6ccc015..a8254ee 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -140,10 +140,8 @@ Page({ const height = res[0].height; //屏幕高度-内容高度-tabbar高度 const contentHeight = _self.data.screenHeight - height - 50 - console.log('tabbarHeight:', _self.data.tabBarHeight) const h = Utils.pxToRpx(contentHeight, _self.data.screenWidth) const tempH = h - 130 - console.log('转后', h, '内容高度:', tempH) _self.setData({ contentHeight: tempH }) diff --git a/utils/util.js b/utils/util.js index 4bb7933..20788ad 100644 --- a/utils/util.js +++ b/utils/util.js @@ -63,7 +63,6 @@ const dateTimePicker = (startYear, endYear) => { } const pxToRpx = (pxValue, screenWidth) => { - console.log('转换Px', pxValue, '屏幕宽度', screenWidth) // return pxValue * (750 / screenWidth); const rpx = (750 / screenWidth) * Number(pxValue) return Math.floor(rpx);