Commit 62aa0fd9 authored by IvyXia123's avatar IvyXia123

支付情况5

parent fbb38c51
...@@ -433,11 +433,11 @@ export default { ...@@ -433,11 +433,11 @@ export default {
// console.log(res) // console.log(res)
if(res.out_trade_no && !res.appId){ if(res.out_trade_no && !res.appId){
if(this.groupDetail.goods_type === 2 && !this.type){ if(this.groupDetail.goods_type === 2 && !this.type){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}}); this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code, shopId: this.shopId}});
}else if(this.groupDetail.goods_type === 4){ }else if(this.groupDetail.goods_type === 4){
this.$router.push({name:'saleSuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}}); this.$router.push({name:'saleSuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code, shopId: this.shopId}});
}else{ }else{
this.$router.push({name:'buySuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}}); this.$router.push({name:'buySuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code, shopId: this.shopId}});
} }
}else{ }else{
let that = this; let that = this;
...@@ -477,15 +477,15 @@ export default { ...@@ -477,15 +477,15 @@ export default {
Toast('支付成功'); Toast('支付成功');
if(that.groupDetail.goods_type === 2 && !that.type){ if(that.groupDetail.goods_type === 2 && !that.type){
setTimeout(function () { setTimeout(function () {
that.$router.push({name:'success',query:{out_trade_no:that.orderNo,invite_code:that.invite_code}}); that.$router.push({name:'success',query:{out_trade_no:that.orderNo,invite_code:that.invite_code, shopId: this.shopId}});
},1000) },1000)
}else if(that.groupDetail.goods_type === 4){ }else if(that.groupDetail.goods_type === 4){
setTimeout(function () { setTimeout(function () {
that.$router.push({name:'saleSuccess',query:{out_trade_no:that.orderNo,invite_code:that.invite_code}}); that.$router.push({name:'saleSuccess',query:{out_trade_no:that.orderNo,invite_code:that.invite_code, shopId: this.shopId}});
},1000) },1000)
}else{ }else{
setTimeout(function () { setTimeout(function () {
that.$router.push({name:'buySuccess',query:{out_trade_no:that.orderNo,invite_code:that.invite_code}}); that.$router.push({name:'buySuccess',query:{out_trade_no:that.orderNo,invite_code:that.invite_code, shopId: this.shopId}});
},1000) },1000)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment