Commit d895f8cb authored by 华国豪's avatar 华国豪 🙄
parents 56758cd1 378854af
......@@ -310,9 +310,23 @@ export default {
if(this.isActivityType!=0){
this.Error('该商品为活动商品,不能兑换');
}else{
this.$router.push({name: 'confirOrder', query: { id: this.id, num: this.numbers}})
let msg = {
goodsId:this.detail.id,
goodsQuota:this.detail.quota,
buyNum:this.numbers
}
this.apiJavaPost("/api/orderForm/gitQuotaNum",msg,res => {
if (res.data.resultCode === 1) {
this.$router.push({name: 'confirOrder', query: { id: this.id, num: this.numbers}})
} else {
this.Error(res.data.message);
}
},
null
);
}
},
getChildInfo(val){
this.id = val;
this.getDetail();
......
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