bug修复
This commit is contained in:
parent
95f880a251
commit
211b33f63f
|
|
@ -240,7 +240,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.identity) {
|
if (options.identity) {
|
||||||
this.identity = options.identity;
|
this.identity = parseInt(options.identity);
|
||||||
}
|
}
|
||||||
if (options.order_id) {
|
if (options.order_id) {
|
||||||
// 请求订单详情
|
// 请求订单详情
|
||||||
|
|
@ -547,6 +547,7 @@
|
||||||
server_code: code,
|
server_code: code,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
console.log('API Response:', res);
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|
@ -559,10 +560,19 @@
|
||||||
prevPage.$vm.getOrderNumber();
|
prevPage.$vm.getOrderNumber();
|
||||||
prevPage.$vm.getOrderList();
|
prevPage.$vm.getOrderList();
|
||||||
}
|
}
|
||||||
|
} else if (res.state == 1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
|
this.getOrderDetail();
|
||||||
|
const pages = getCurrentPages();
|
||||||
|
const prevPage = pages[pages.length - 2];
|
||||||
|
if (prevPage) {
|
||||||
|
prevPage.$vm.getOrderNumber();
|
||||||
|
prevPage.$vm.getOrderList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// else if (res.state == 2) {
|
|
||||||
// uni.showToast({ title: res.msg, icon: "none" });
|
|
||||||
// }
|
|
||||||
this.handelOrder = {};
|
this.handelOrder = {};
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.clickType = false
|
this.clickType = false
|
||||||
|
|
|
||||||
|
|
@ -1066,7 +1066,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-border {
|
.btn-border {
|
||||||
border: 1rpx solid #E8101E;
|
border: 2rpx solid #E8101E;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-left: 60rpx;
|
margin-left: 60rpx;
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,18 @@
|
||||||
server_code: code,
|
server_code: code,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
console.log('API Response:', res);
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
|
this.getServicesList();
|
||||||
|
} else if (res.state == 1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
this.getServicesList();
|
this.getServicesList();
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue