Browse Source

拼团详情购买次数限制bug修改

tags/富茂链客4.1.0
刘晖 6 years ago
parent
commit
16cac98d24
2 changed files with 26 additions and 6 deletions
  1. +13
    -3
      pages/joinFrDpell/index.js
  2. +13
    -3
      pages/spellGroup/mySpellGroup/index.js

+ 13
- 3
pages/joinFrDpell/index.js View File

@@ -278,7 +278,9 @@ Page({
console.log(err); console.log(err);
that.setData({ that.setData({
showbutton: false, showbutton: false,
showbutton1: false
showbutton1: false,
canSpell: true,
canBuyIf: true
}) })
if (err.code == 2011) { if (err.code == 2011) {
wx.showToast({ wx.showToast({
@@ -365,7 +367,9 @@ Page({
if (typeof (res) != "undefined") { if (typeof (res) != "undefined") {
let orderId = "" + res.data.id; let orderId = "" + res.data.id;
that.setData({ that.setData({
orderId: orderId
orderId: orderId,
canSpell: true,
canBuyIf: true
}); });
// 支付金额不为0 // 支付金额不为0
/** /**
@@ -420,7 +424,9 @@ Page({
*/ */
that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', that, orderGroupId); that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', that, orderGroupId);
that.setData({ that.setData({
showbutton: false
showbutton: false,
canSpell: true,
canBuyIf: true
}) })
return; return;
}, },
@@ -429,6 +435,10 @@ Page({
/// End payment -------- /// End payment --------
}) })
.catch(err => { .catch(err => {
that.setData({
canSpell: true,
canBuyIf: true
})
wx.showToast({ wx.showToast({
title: err.message, title: err.message,
icon: 'none', icon: 'none',


+ 13
- 3
pages/spellGroup/mySpellGroup/index.js View File

@@ -269,7 +269,9 @@ Page({
console.log(err); console.log(err);
that.setData({ that.setData({
showbutton: false, showbutton: false,
showbutton1: false
showbutton1: false,
canSpell: true,
canBuyIf: true
}) })
if (err.code == 2011) { if (err.code == 2011) {
wx.showToast({ wx.showToast({
@@ -356,7 +358,9 @@ Page({
if (typeof (res) != "undefined") { if (typeof (res) != "undefined") {
let orderId = "" + res.data.id; let orderId = "" + res.data.id;
that.setData({ that.setData({
orderId: orderId
orderId: orderId,
canSpell: true,
canBuyIf: true
}); });
// 支付金额不为0 // 支付金额不为0
/** /**
@@ -411,7 +415,9 @@ Page({
*/ */
that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', that, orderGroupId); that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', that, orderGroupId);
that.setData({ that.setData({
showbutton: false
showbutton: false,
canSpell: true,
canBuyIf: true
}) })
return; return;
}, },
@@ -420,6 +426,10 @@ Page({
/// End payment -------- /// End payment --------
}) })
.catch(err => { .catch(err => {
that.setData({
canSpell: true,
canBuyIf: true
})
wx.showToast({ wx.showToast({
title: err.message, title: err.message,
icon: 'none', icon: 'none',


Loading…
Cancel
Save