From d180485d7c933fc8e9ef35045ca4916340cc25d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=81=A5?= Date: Tue, 31 Aug 2021 10:15:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=90=8E=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/auth/auth.js | 26 +++---------------- .../calculation-detail/calculation-detail.js | 10 +------ 2 files changed, 4 insertions(+), 32 deletions(-) diff --git a/pages/auth/auth.js b/pages/auth/auth.js index b6a80cc..c4582df 100644 --- a/pages/auth/auth.js +++ b/pages/auth/auth.js @@ -78,7 +78,7 @@ Page({ ) setTimeout(() => { wx.switchTab({ - url: '/pages/index/index' + url: '/pages/look/look' }) }, 1500) } @@ -141,7 +141,7 @@ Page({ console.log(res); setTimeout(() => { wx.switchTab({ - url: '/pages/index/index' + url: '/pages/look/look' }) }, 1500) }) @@ -150,26 +150,6 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { - // var that = this; - // // 查看是否授权 - // wx.getSetting({ - // success: function (res) { - // console.log(res) - // if (res.authSetting['scope.userInfo']) { - // wx.getUserInfo({ - // success: function (res) { - // console.log(res) - // //从数据库获取用户信息 - // that.queryUsreInfo(); - // //用户已经授权过 - // // wx.switchTab({ - // // url: '/pages/index/index' - // // }) - // } - // }); - // } - // } - // }) }, /** * 生命周期函数--监听页面初次渲染完成 @@ -186,7 +166,7 @@ Page({ console.log(token) if (token && token != '') { wx.switchTab({ - url: "/pages/index/index", + url: "/pages/look/look", }) } ; diff --git a/pages/calculation-detail/calculation-detail.js b/pages/calculation-detail/calculation-detail.js index 4741650..1fa3dd6 100644 --- a/pages/calculation-detail/calculation-detail.js +++ b/pages/calculation-detail/calculation-detail.js @@ -81,15 +81,7 @@ function initChart(canvas, width, height, dpr) { } Page({ - onShareAppMessage: function (res) { - return { - title: 'ECharts 可以在微信小程序中使用啦!', - path: '/pages/index/index', - success: function () { - }, - fail: function () { - } - } + onShareAppMessage: function () { }, data: { ec: {