Commit 23b8e891 authored by IvyXia123's avatar IvyXia123

支付接口调试

parent fb9f29a6
......@@ -380,11 +380,12 @@ export default {
let payTypeArr = ['WX', 'ALI', 'KFQ']
let data = { pay_type: payTypeArr[this.payIndex], return_url: window.location.href, goods_id: json.goods_id, buy_type: this.groupDetail.goods_type, group_order_id: json.group_order_id, order_coupon_id:json.order_coupon_id }
postPayBillApi(data).then(res => {
/*postPayBillApi(data).then(res => {
if(this.payIndex === 0) {
console.log(9999)
this.orderNo = res.out_trade_no;
if (res.out_trade_no && !res.appId) {
console.log(9999)
getCourseInfoApi().then(res => {
this.userCourse = res;
localStorage.setItem(
......@@ -428,9 +429,9 @@ export default {
}else if(this.payIndex === 2) {
this.payUrl = res.pay_url;
}
})
})*/
/*payApi(json).then(res => {
payApi(json).then(res => {
this.orderNo = res.out_trade_no;
console.log(res)
if (res.out_trade_no && !res.appId) {
......@@ -475,7 +476,7 @@ export default {
.catch(res => {
// alert(res)
this.orderFlag = true;
});*/
});
}
},
closeAdd(data) {
......
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