mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 21:19:37 +08:00
1
This commit is contained in:
parent
c0aca237b7
commit
f185882195
@ -270,6 +270,7 @@ Page({
|
|||||||
// 取消订单
|
// 取消订单
|
||||||
cancelOrder(e) {
|
cancelOrder(e) {
|
||||||
console.log('cancelOrder', e);
|
console.log('cancelOrder', e);
|
||||||
|
let _this = this;
|
||||||
let id = e.currentTarget.dataset.id
|
let id = e.currentTarget.dataset.id
|
||||||
const beforeClose = (action) => {
|
const beforeClose = (action) => {
|
||||||
console.log('action', action);
|
console.log('action', action);
|
||||||
@ -281,9 +282,19 @@ Page({
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log('cancelOrderRq', res);
|
console.log('cancelOrderRq', res);
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
// 清空预约数据
|
||||||
|
_this.setData({
|
||||||
|
reservationPageNum: 1,
|
||||||
|
reservationDataList: [],
|
||||||
|
reservationIsDataAll: false,
|
||||||
|
})
|
||||||
|
_this.getDataList()
|
||||||
} else {
|
} else {
|
||||||
|
// 危险通知
|
||||||
|
Notify({
|
||||||
|
type: 'danger',
|
||||||
|
message: res.msg
|
||||||
|
});
|
||||||
}
|
}
|
||||||
resolve(true);
|
resolve(true);
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user