Browse Source

[支付][修改]:[支付按钮状态的修改]

tags/河北版C.8.1.01
meo 5 years ago
parent
commit
e898260e68
5 changed files with 20 additions and 9 deletions
  1. +2
    -4
      pages/coupon/detail/index.js
  2. +1
    -1
      pages/coupon/detail/index.wxml
  3. +1
    -0
      pages/coupon/detail/index.wxss
  4. +15
    -3
      pages/spellGroup/paySpellGroup/index.js
  5. +1
    -1
      pages/spellGroup/paySpellGroup/index.wxml

+ 2
- 4
pages/coupon/detail/index.js View File

@@ -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");
},
/**
* 支付订单更新


+ 1
- 1
pages/coupon/detail/index.wxml View File

@@ -152,7 +152,7 @@
</button>
</form>
<form bindsubmit="inviteFriend" report-submit='true' class="fr">
<button form-type="submit" style='background:transparent;color:#fff;font-size:32rpx;line-height:91rpx;' disabled='{{showbutton1}}' bindtap='showshare1'>
<button form-type="submit" style='background:{{!showbutton1?"transparent":"#ccc"}};color:#fff;font-size:32rpx;line-height:94rpx;border-radius:60rpx;' disabled='{{showbutton1}}'>
发起砍价
</button>
</form>


+ 1
- 0
pages/coupon/detail/index.wxss View File

@@ -177,6 +177,7 @@ button::after {
.salePriceStr .rmb{
color: #FD782D;
font-size: 24rpx;
line-height: 40rpx;
float: left;
}
.salePriceStr .pri01 {


+ 15
- 3
pages/spellGroup/paySpellGroup/index.js View File

@@ -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,


+ 1
- 1
pages/spellGroup/paySpellGroup/index.wxml View File

@@ -27,7 +27,7 @@
</view>
</view>
<view class='edit'>
<button class='user-motto' bindtap='gotoPay'>去支付</button>
<button class='user-motto' bindtap='gotoPay' disabled="{{disabled}}">去支付</button>
</view>
<view class='al-bg' wx:if='{{showErr}}'></view>
<view class='al-content' wx:if='{{showErr}}'>


Loading…
Cancel
Save