Commit 185f68c2 authored by 肖健's avatar 肖健

支付失败调用取消订单接口修复

parent c531bcda
......@@ -194,7 +194,7 @@ export default {
url: '/app/mall/create/order',
method: 'post'
};
this.http.httpTokenRequest(opts, this.createOrder).then(res => {
that.http.httpTokenRequest(opts, this.createOrder).then(res => {
if (res.data.code == 200) {
let orderIds = res.data.data
if (orderIds && orderIds.length > 0) {
......@@ -207,7 +207,7 @@ export default {
url: '/app/pay/order/submit/more',
method: 'post'
}
this.http.httpTokenRequest(opts, that.orderSubmit).then(res => {
that.http.httpTokenRequest(opts, that.orderSubmit).then(res => {
if (res.data.code == 200) {
let paymentData = res.data.data.invokeResponse;
uni.requestPayment({
......@@ -226,7 +226,7 @@ export default {
//console.log('支付失败',err);
if(that.orderSubmit.ids !== undefined && that.orderSubmit.ids !== null && that.orderSubmit.ids.length > 0){
let opts = { url: '/app/mall/cancel/order', method: 'post' }
this.http.httpTokenRequest(opts, that.orderSubmit.ids).then(res => {
that.http.httpTokenRequest(opts, {"ids" : that.orderSubmit.ids}).then(res => {
if(res.data.code == 200){
}
......
......@@ -141,7 +141,7 @@ export default {
//console.log('支付失败',err);
if(that.orderSubmit.ids !== undefined && that.orderSubmit.ids !== null && that.orderSubmit.ids.length > 0){
let opts = { url: '/app/mall/cancel/order', method: 'post' }
this.http.httpTokenRequest(opts, that.orderSubmit.ids).then(res => {
that.http.httpTokenRequest(opts, {"ids" : that.orderSubmit.ids}).then(res => {
if(res.data.code == 200){
}
......@@ -153,6 +153,12 @@ export default {
}
})
} else {
uni.showToast({
title: res.data.msg,
icon: 'none',
duration: 2000,
});
}
})
......
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