From 50265336d8586b718c3c9b4f3cb199289b565a2b Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Sat, 23 Mar 2019 16:28:27 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A0=8D=E4=BB=B7][=E4=BF=AE=E6=94=B9]:[?= =?UTF-8?q?=E7=A0=8D=E4=BB=B7=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E7=A0=8D=E4=BB=B7=E4=B8=8B=E6=8B=89=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E7=9A=84bug]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/bargain/bargainDatail/bargainDatail.js | 21 ++++---------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/pages/bargain/bargainDatail/bargainDatail.js b/pages/bargain/bargainDatail/bargainDatail.js index 299869c..473d188 100644 --- a/pages/bargain/bargainDatail/bargainDatail.js +++ b/pages/bargain/bargainDatail/bargainDatail.js @@ -32,7 +32,6 @@ Page({ */ onLoad: function(options) { let that = this; - console.log(options) if (options.orderId || options.orderId && options.from == 'discount') { if (options.from) { that.setData({ @@ -44,6 +43,7 @@ Page({ orderId: options.orderId }) } + app.globalData.wmorder = options.orderId that.pressOrderDetail(options.orderId); } this.getUserInfo() @@ -228,10 +228,6 @@ Page({ }, 1000) }, - - - - // 时间格式化输出,如11:03 25:19 每1s都会调用一次 dateformat(micro_second) { // 总秒数 @@ -728,18 +724,9 @@ Page({ */ onPullDownRefresh: function(e) { let that = this; - if (that.data.orderId || that.data.orderId && that.data.from == 'discount') { - if (that.data.from) { - that.setData({ - orderId: that.data.orderId, - from: "discount" - }) - } else { - that.setData({ - orderId: that.data.orderId - }) - } - that.pressOrderDetail(that.data.orderId); + console.log(app.globalData.wmorder); + if (app.globalData.wmorder) { + that.pressOrderDetail(app.globalData.wmorder); } }, onShareAppMessage: function(options) {