Commit 0368e3dc authored by youjie's avatar youjie

包车订单

parent 90569659
......@@ -446,6 +446,7 @@
{name: '男',value: 1},
{name: '女',value: 2},
],
ErpOrderId: '',
}
},
onLoad(options) {
......@@ -541,7 +542,7 @@
icon: 'none',
title: '订单创建成功'
})
this.goPayHandler(res.data.OrderNo);
this.goPayHandler(res.data);
}
},err=>{
uni.showToast({
......@@ -570,7 +571,7 @@
setTimeout(() => {
//跳转到详情页面
uni.redirectTo({
url: "/pages/bus/orderdetails?orderId=" + res.ErpOrderId,
url: "/pages/bus/orderdetails?orderId=" + this.ErpOrderId,
});
}, 100);
},
......@@ -582,7 +583,7 @@
});
setTimeout(() => {
uni.redirectTo({
url: "/pages/bus/orderdetails?orderId=" + res.ErpOrderId,
url: "/pages/bus/orderdetails?orderId=" + this.ErpOrderId,
});
}, 100);
},
......@@ -933,6 +934,7 @@
(res) => {
if (res.resultCode == 1) {
const tempData = res.data
this.ErpOrderId = tempData.Id
if(tempData.CounponList && tempData.CounponList.length>0){
uni.setStorageSync('coupons',tempData.CounponList)
}
......
......@@ -647,6 +647,10 @@
this.apipost("GetDetailsByErpOrderId_post",parameter,res=>{
if(res.resultCode==1){
this.OrderNo = res.data.OrderNo
this.orderData = {
...this.orderData,
...res.data
}
this.formatStatus(
res.data.OrderStatus,
null,
......
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