From f98b9ddf26da9407e5c6b2b6342ae0ef59678022 Mon Sep 17 00:00:00 2001 From: iamdarcy Date: Thu, 13 Apr 2023 06:48:49 +0800 Subject: [PATCH] =?UTF-8?q?D:=E5=88=A0=E9=99=A4=E8=B0=83=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E7=9A=84console.log=E3=80=82=20F:=E4=BF=AE=E5=A4=8D=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=A7=93=E5=90=8D=E5=92=8C=E6=89=8B=E6=9C=BA=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/app-auth/index.js | 4 ---- pages/index/index.js | 17 +++++++++-------- pages/payResult/payResult.js | 2 -- pages/ucenter/index/index.js | 3 --- pages/ucenter/settings/index.js | 3 --- pages/ucenter/settings/index.wxml | 6 +++--- 6 files changed, 12 insertions(+), 23 deletions(-) diff --git a/pages/app-auth/index.js b/pages/app-auth/index.js index bd9066b..6aaa038 100644 --- a/pages/app-auth/index.js +++ b/pages/app-auth/index.js @@ -42,7 +42,6 @@ Page({ let code = ''; wx.login({ success: (res) => { - console.log(res) code = res.code; }, }); @@ -59,7 +58,6 @@ Page({ rawData: res.rawData, signature: res.signature }; - console.log(loginParams); that.postLogin(loginParams); }, // 失败回调 @@ -73,14 +71,12 @@ Page({ util.request(api.AuthLoginByWeixin, { info: info }, 'POST').then(function (res) { - console.log(res); if (res.errno === 0) { wx.setStorageSync('userInfo', res.data.userInfo); wx.setStorageSync('token', res.data.token); app.globalData.userInfo = res.data.userInfo; app.globalData.token = res.data.token; let is_new = res.data.is_new; //服务器返回的数据; - console.log(is_new); if (is_new == 0) { util.showErrorToast('您已经是老用户啦!'); wx.navigateBack(); diff --git a/pages/index/index.js b/pages/index/index.js index ca2bea0..9448652 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -18,8 +18,11 @@ Page({ imgurl: '', sysHeight: 0, loading: 0, - autoplay:true, - showContact:1, + autoplay: true, + showContact: 1, + }, + onLoad: function (options) { + this.getChannelShowInfo(); }, onPageScroll: function (e) { let scrollTop = e.scrollTop; @@ -34,9 +37,9 @@ Page({ }) } }, - onHide:function(){ + onHide: function () { this.setData({ - autoplay:false + autoplay: false }) }, goSearch: function () { @@ -93,9 +96,7 @@ Page({ } }); }, - onLoad: function (options) { - this.getChannelShowInfo(); - }, + onShow: function () { this.getIndexData(); var that = this; @@ -109,7 +110,7 @@ Page({ let sysHeight = info.windowHeight - 100; this.setData({ sysHeight: sysHeight, - autoplay:true + autoplay: true }); wx.removeStorageSync('categoryId'); }, diff --git a/pages/payResult/payResult.js b/pages/payResult/payResult.js index c6a639b..304a622 100755 --- a/pages/payResult/payResult.js +++ b/pages/payResult/payResult.js @@ -27,13 +27,11 @@ Page({ wx.requestSubscribeMessage({ tmplIds: ['w6AMCJ0FI2LqjCjWPIrpnVWTsFgnlNlmCf9TTDmG6_U'], success(res) { - console.log(res); wx.switchTab({ url: '/pages/index/index' }); }, fail(err) { - console.log(err); wx.switchTab({ url: '/pages/index/index' }); diff --git a/pages/ucenter/index/index.js b/pages/ucenter/index/index.js index 3a448f4..c406fc1 100644 --- a/pages/ucenter/index/index.js +++ b/pages/ucenter/index/index.js @@ -98,11 +98,8 @@ Page({ getSettingsDetail() { let that = this; util.request(api.SettingsDetail).then(function (res) { - console.log(res) if (res.errno === 0) { let userInfo = res.data; - console.log('userInfo') - console.log(userInfo) // wx.setStorageSync('userInfo', userInfo); that.setData({ userInfo: userInfo, diff --git a/pages/ucenter/settings/index.js b/pages/ucenter/settings/index.js index 583e2c2..1ed61f4 100644 --- a/pages/ucenter/settings/index.js +++ b/pages/ucenter/settings/index.js @@ -29,10 +29,8 @@ Page({ if (res.statusCode == 200) { let re = res.data let echo = JSON.parse(re); - console.log(echo); let data = echo.data; let avatarUrl = data.fileUrl - console.log(avatarUrl) that.setData({ avatarUrl: avatarUrl, hasAvatar: 1 @@ -100,7 +98,6 @@ Page({ util.showErrorToast('请输入昵称'); return false; } - console.log(avatar) util.request(api.SaveSettings, { name: name, mobile: mobile, diff --git a/pages/ucenter/settings/index.wxml b/pages/ucenter/settings/index.wxml index 7ebf92e..8c35773 100644 --- a/pages/ucenter/settings/index.wxml +++ b/pages/ucenter/settings/index.wxml @@ -5,15 +5,15 @@ - + - + - +