Commit 338e31ad authored by youjie's avatar youjie

订单支付

parent ed36f8b5
...@@ -155,9 +155,12 @@ ...@@ -155,9 +155,12 @@
}) })
}, },
goBack() { goBack() {
uni.navigateBack({ uni.navigateTo({
delta: -1 url: `/pages/user-center/userVip-center`
}) })
// uni.navigateBack({
// delta: -1
// })
} }
} }
} }
......
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
<u-modal :border-radius="16" <u-modal :border-radius="16"
@confirm="nativageToOrderHandle" @confirm="nativageToOrderHandle"
title="订单提醒" title="订单提醒"
content="订单创建成功,请您在5分钟内完成付款,否则将会被取消." content="订单创建成功,请您在订单列表查询支付."
@cancel="navigatorToHomeHandle" @cancel="navigatorToHomeHandle"
v-model="successVisible" confirm-text='查看订单' cancel-text='返回首页' v-model="successVisible" confirm-text='查看订单' cancel-text='返回首页'
confirm-color='#DEBF7B' cancel-color='#080A09' :show-cancel-button="true"></u-modal> confirm-color='#DEBF7B' cancel-color='#080A09' :show-cancel-button="true"></u-modal>
...@@ -612,24 +612,25 @@ ...@@ -612,24 +612,25 @@
}, },
fail: function(err) { fail: function(err) {
that.submit = true; that.submit = true;
uni.showToast({ that.successVisible = true
title: "支付失败", // uni.showToast({
icon: "none", // title: "支付失败",
}); // icon: "none",
// });
setTimeout(() => { setTimeout(() => {
// uni.redirectTo({ // uni.redirectTo({
// url: "/pages/bus/orderdetails?orderId=" + that.ErpOrderId, // url: "/pages/bus/orderdetails?orderId=" + that.ErpOrderId,
// }); // });
let OrderTypeStr = '' // let OrderTypeStr = ''
// #ifdef MP-DI // // #ifdef MP-DI
OrderTypeStr = '12,13,14' // OrderTypeStr = '12,13,14'
// #endif // // #endif
// #ifdef MP-AG // // #ifdef MP-AG
OrderTypeStr = '5' // OrderTypeStr = '5'
// #endif // // #endif
uni.redirectTo({ // uni.redirectTo({
url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${OrderTypeStr}`, // url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${OrderTypeStr}`,
}); // });
}, 100); }, 100);
}, },
}); });
...@@ -992,9 +993,10 @@ ...@@ -992,9 +993,10 @@
title: '订单创建成功.', title: '订单创建成功.',
icon: 'none' icon: 'none'
}) })
uni.redirectTo({ this.successVisible = true
url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=5`, // uni.redirectTo({
}); // url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=5`,
// });
// #endif // #endif
} else { } else {
uni.showToast({ uni.showToast({
......
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