From 1c95252fd7823529cfb1a2ef4fd508b1f8e5145f Mon Sep 17 00:00:00 2001 From: itgaojian163 Date: Fri, 18 Apr 2025 16:58:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ad-popup/ad-popup.js | 4 ---- pages/index/index.js | 2 -- utils/util.js | 1 - 3 files changed, 7 deletions(-) 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);