预约记录修改
This commit is contained in:
parent
302abc9a29
commit
01ca2c7e01
@ -101,7 +101,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
get,
|
get,
|
||||||
post
|
post,
|
||||||
|
del
|
||||||
} from '@/utils/request';
|
} from '@/utils/request';
|
||||||
import {
|
import {
|
||||||
IMAGE_BASE_URL,
|
IMAGE_BASE_URL,
|
||||||
@ -236,16 +237,14 @@
|
|||||||
title: '处理中...',
|
title: '处理中...',
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
const res = await post('/api/v1/app_auth/metting-room/order/cancel', {
|
const res = await del(`/api/v1/app_auth/metting-room/order/${orderId}`);
|
||||||
id: orderId
|
|
||||||
});
|
|
||||||
|
|
||||||
if (res?.success) {
|
if (res?.success) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '取消成功',
|
title: '取消成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
this.getOrderList(); // 刷新列表
|
this.getOrderList();
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res?.message || '取消失败',
|
title: res?.message || '取消失败',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user