diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index fb99185..97294ff 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -146,12 +146,12 @@ Page({ */ onLoad: function (options) { let that = this; - this.setData({ + that.setData({ orderId: options.orderId }); wx.hideShareMenu() if(options.cardIf){ - this.setData({ + that.setData({ cardIf:true }) } @@ -319,7 +319,7 @@ Page({ }) .then(res => { wx.hideLoading(); - this.setData({ + _this.setData({ showButton: false }) if (!type&&type!='free') {