diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index 5c81e94..d6a159a 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -585,12 +585,10 @@ Page({ let that = this; let formId = e.detail.formId; that.setData({ - formId: formId - }) - that.orderFunc("discount"); - that.setData({ + formId: formId, showbutton1: true }) + that.orderFunc("discount"); }, /** * 支付订单更新 diff --git a/pages/coupon/detail/index.wxml b/pages/coupon/detail/index.wxml index 4b37d47..863cfb3 100644 --- a/pages/coupon/detail/index.wxml +++ b/pages/coupon/detail/index.wxml @@ -152,7 +152,7 @@
-
diff --git a/pages/coupon/detail/index.wxss b/pages/coupon/detail/index.wxss index 659150b..58d160b 100644 --- a/pages/coupon/detail/index.wxss +++ b/pages/coupon/detail/index.wxss @@ -177,6 +177,7 @@ button::after { .salePriceStr .rmb{ color: #FD782D; font-size: 24rpx; + line-height: 40rpx; float: left; } .salePriceStr .pri01 { diff --git a/pages/spellGroup/paySpellGroup/index.js b/pages/spellGroup/paySpellGroup/index.js index 41a6c34..7957268 100644 --- a/pages/spellGroup/paySpellGroup/index.js +++ b/pages/spellGroup/paySpellGroup/index.js @@ -28,7 +28,8 @@ Page({ spellStatusList: spellStatus, isMyself: false, showErr: false, - showAlert: false + showAlert: false, + disabled:false }, gotoAgain() { let data = this.data.data; @@ -121,6 +122,9 @@ Page({ }) .then(res => { wx.hideLoading() + that.setData({ + disabled: false + }) if (res.data.orderStatus == 14) { _this.setData({ showErr: true @@ -137,6 +141,9 @@ Page({ }) .catch(err => { console.log(err); + that.setData({ + disabled: false + }) if (err.code!=12002){ setTimeout(function () { _this.payOrderUpdate(orderId, payOrderId, status, reason, _this, orderGroupId); @@ -149,6 +156,9 @@ Page({ wx.showLoading({ title: '支付创建中...', }) + that.setData({ + disabled:true + }) Http.post({ url: config.api.payOrderCreate, data: { @@ -186,7 +196,8 @@ Page({ that.setData({ showbutton: false, canSpell: true, - canBuyIf: true + canBuyIf: true, + disabled: false }) return; }, @@ -197,7 +208,8 @@ Page({ .catch(err => { that.setData({ canSpell: true, - canBuyIf: true + canBuyIf: true, + disabled: false }) wx.showToast({ title: err.message, diff --git a/pages/spellGroup/paySpellGroup/index.wxml b/pages/spellGroup/paySpellGroup/index.wxml index f55fdcc..b3bc54b 100644 --- a/pages/spellGroup/paySpellGroup/index.wxml +++ b/pages/spellGroup/paySpellGroup/index.wxml @@ -27,7 +27,7 @@ - +