Ver código fonte

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

tags/河北版C.8.1.01
meo 5 anos atrás
pai
commit
e898260e68
5 arquivos alterados com 20 adições e 9 exclusões
  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 Ver arquivo

@@ -585,12 +585,10 @@ Page({
let that = this; let that = this;
let formId = e.detail.formId; let formId = e.detail.formId;
that.setData({ that.setData({
formId: formId
})
that.orderFunc("discount");
that.setData({
formId: formId,
showbutton1: true showbutton1: true
}) })
that.orderFunc("discount");
}, },
/** /**
* 支付订单更新 * 支付订单更新


+ 1
- 1
pages/coupon/detail/index.wxml Ver arquivo

@@ -152,7 +152,7 @@
</button> </button>
</form> </form>
<form bindsubmit="inviteFriend" report-submit='true' class="fr"> <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> </button>
</form> </form>


+ 1
- 0
pages/coupon/detail/index.wxss Ver arquivo

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


+ 15
- 3
pages/spellGroup/paySpellGroup/index.js Ver arquivo

@@ -28,7 +28,8 @@ Page({
spellStatusList: spellStatus, spellStatusList: spellStatus,
isMyself: false, isMyself: false,
showErr: false, showErr: false,
showAlert: false
showAlert: false,
disabled:false
}, },
gotoAgain() { gotoAgain() {
let data = this.data.data; let data = this.data.data;
@@ -121,6 +122,9 @@ Page({
}) })
.then(res => { .then(res => {
wx.hideLoading() wx.hideLoading()
that.setData({
disabled: false
})
if (res.data.orderStatus == 14) { if (res.data.orderStatus == 14) {
_this.setData({ _this.setData({
showErr: true showErr: true
@@ -137,6 +141,9 @@ Page({
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
that.setData({
disabled: false
})
if (err.code!=12002){ if (err.code!=12002){
setTimeout(function () { setTimeout(function () {
_this.payOrderUpdate(orderId, payOrderId, status, reason, _this, orderGroupId); _this.payOrderUpdate(orderId, payOrderId, status, reason, _this, orderGroupId);
@@ -149,6 +156,9 @@ Page({
wx.showLoading({ wx.showLoading({
title: '支付创建中...', title: '支付创建中...',
}) })
that.setData({
disabled:true
})
Http.post({ Http.post({
url: config.api.payOrderCreate, url: config.api.payOrderCreate,
data: { data: {
@@ -186,7 +196,8 @@ Page({
that.setData({ that.setData({
showbutton: false, showbutton: false,
canSpell: true, canSpell: true,
canBuyIf: true
canBuyIf: true,
disabled: false
}) })
return; return;
}, },
@@ -197,7 +208,8 @@ Page({
.catch(err => { .catch(err => {
that.setData({ that.setData({
canSpell: true, canSpell: true,
canBuyIf: true
canBuyIf: true,
disabled: false
}) })
wx.showToast({ wx.showToast({
title: err.message, title: err.message,


+ 1
- 1
pages/spellGroup/paySpellGroup/index.wxml Ver arquivo

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


Carregando…
Cancelar
Salvar