From d642239f0a5a621a3dddc29ed3117e07c7076b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E6=B4=8B=E4=B9=8B=E5=A3=B0?= Date: Fri, 27 Sep 2019 17:47:38 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A7=AF=E5=88=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integralmall/payIntegcoupondetail/index.js | 18 ++++++++++++++---- .../payIntegcoupondetail/index.wxml | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/pages/integralmall/payIntegcoupondetail/index.js b/pages/integralmall/payIntegcoupondetail/index.js index 377da9b..6af8587 100644 --- a/pages/integralmall/payIntegcoupondetail/index.js +++ b/pages/integralmall/payIntegcoupondetail/index.js @@ -20,7 +20,8 @@ Page({ data: null, showErr: false, showAlert: false, - remainingPoints:0 + remainingPoints:0, + submitAble:true }, getUserInfo: function () { let that = this; @@ -55,6 +56,11 @@ Page({ url: `/pages/spellGroup/spellGroup`, }) }, + onShow:function(){ + this.setData({ + submitAble: true + }) + }, /** * 生命周期函数--监听页面加载 */ @@ -72,6 +78,9 @@ Page({ */ gotoPay() { var that = this; + that.setData({ + submitAble: false + }) Http.get({ url: config.api.checkPhoneStatus, data: {} @@ -92,8 +101,7 @@ Page({ .catch(err => { console.log(err); that.setData({ - showbutton: false, - showbutton1: false + submitAble: true }) if (err.code == 2011) { wx.showToast({ @@ -236,7 +244,6 @@ Page({ }) }) .catch(err => { - console.log(err); if (err.code != 12002) { setTimeout(function () { _this.payOrderUpdate(orderId, payOrderId, status, reason, _this); @@ -269,5 +276,8 @@ Page({ */ onPullDownRefresh: function () { this.getDetail(this.data.paramData.couponChannelId); + this.setData({ + submitAble: true + }) } }) \ No newline at end of file diff --git a/pages/integralmall/payIntegcoupondetail/index.wxml b/pages/integralmall/payIntegcoupondetail/index.wxml index b0dc613..3c49962 100644 --- a/pages/integralmall/payIntegcoupondetail/index.wxml +++ b/pages/integralmall/payIntegcoupondetail/index.wxml @@ -36,6 +36,6 @@ - +