Browse Source

拼团失败修改

tags/富茂链客4.1.0
刘晖 6 years ago
parent
commit
6ea6ba6b58
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      pages/joinFrDpell/index.js

+ 9
- 9
pages/joinFrDpell/index.js View File

@@ -206,15 +206,9 @@ Page({
}
})
.then(res => {
if(res.code=200){
wx.reLaunch({
url: `/pages/spellDetail/index?orderId=${orderId}&couponId=${_this.data.data.couponId}&orderGroupId=${res.data.orderGroupId}`
});
} else if (res.code == 28001){
_this.setData({
showErr:true
})
}
wx.reLaunch({
url: `/pages/spellDetail/index?orderId=${orderId}&couponId=${_this.data.data.couponId}&orderGroupId=${res.data.orderGroupId}`
});
})
.catch(err => {
console.log(err);
@@ -238,6 +232,12 @@ Page({
})
.then(res => {
wx.hideLoading()
if (res.data.orderStatus==14){
_this.setData({
showErr:true
})
return;
}
if (orderGroupId==undefined) {
wx.navigateTo({
url: '/pages/order/detail/index?orderId=' + res.data.id,


Loading…
Cancel
Save