|
@@ -225,11 +225,13 @@ export default {
|
|
|
console.log(e)
|
|
console.log(e)
|
|
|
if(e.payResult){
|
|
if(e.payResult){
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
|
|
+ duration: 2000,
|
|
|
title: '支付成功!'
|
|
title: '支付成功!'
|
|
|
});
|
|
});
|
|
|
this.isActivityCheck = true
|
|
this.isActivityCheck = true
|
|
|
}else {
|
|
}else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
|
|
+ duration: 2000,
|
|
|
title: '支付失败!',
|
|
title: '支付失败!',
|
|
|
icon: 'error'
|
|
icon: 'error'
|
|
|
});
|
|
});
|
|
@@ -280,7 +282,15 @@ export default {
|
|
|
console.log('++++++++++++++++++订单提交+++++++++++', res)
|
|
console.log('++++++++++++++++++订单提交+++++++++++', res)
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
this.subOrderNo = res.data.data.orderNo
|
|
this.subOrderNo = res.data.data.orderNo
|
|
|
- this.$refs.myPay.openPopup()
|
|
|
|
|
|
|
+ if (this.activity.salePrice *1 > 0){
|
|
|
|
|
+ this.$refs.myPay.openPopup()
|
|
|
|
|
+ }else {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ duration: 2000,
|
|
|
|
|
+ title: '活动参与成功!'
|
|
|
|
|
+ });
|
|
|
|
|
+ this.isActivityCheck = true
|
|
|
|
|
+ }
|
|
|
this.requestStatus = false
|
|
this.requestStatus = false
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
this.requestStatus = false
|
|
this.requestStatus = false
|