|
|
@@ -572,8 +572,12 @@ Page({ |
|
|
|
/** |
|
|
|
* 邀请好友继续砍价 |
|
|
|
*/ |
|
|
|
inviteFriend: function() { |
|
|
|
inviteFriend: function(e) { |
|
|
|
let that = this; |
|
|
|
let formId = e.detail.formId; |
|
|
|
that.setData({ |
|
|
|
formId: formId |
|
|
|
}) |
|
|
|
that.orderFunc("discount"); |
|
|
|
that.setData({ |
|
|
|
showbutton1: true |
|
|
@@ -762,16 +766,17 @@ Page({ |
|
|
|
}); |
|
|
|
} else if (err.code == 3012) { |
|
|
|
if(that.data.data.type == 8){ |
|
|
|
wx.showModal({ |
|
|
|
title: '提示', |
|
|
|
content: "您有未支付订单,请到'我的-我的砍价'进行支付", |
|
|
|
showCancel:false, |
|
|
|
success: function (res) { |
|
|
|
console.log(res.confirm) |
|
|
|
if (res.confirm) { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
that.getUnPaidOrder(that.data.couponId); |
|
|
|
// wx.showModal({ |
|
|
|
// title: '提示', |
|
|
|
// content: "您有未支付订单,请到'我的-我的砍价'进行支付", |
|
|
|
// showCancel:false, |
|
|
|
// success: function (res) { |
|
|
|
// console.log(res.confirm) |
|
|
|
// if (res.confirm) { |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}else{ |
|
|
|
wx.showModal({ |
|
|
|
title: '提示', |
|
|
@@ -914,7 +919,20 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 获得未支付的订单 |
|
|
|
getUnPaidOrder(couponId){ |
|
|
|
let that = this; |
|
|
|
Http.get({ |
|
|
|
url: config.api.getUnPaidOrder, |
|
|
|
data: { |
|
|
|
couponId: couponId |
|
|
|
} |
|
|
|
}).then(res=>{ |
|
|
|
console.log(res); |
|
|
|
}).catch(error=>{ |
|
|
|
console.log(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.setData({ |
|
|
|
showbutton: false, |
|
|
|