diff --git a/src/bundle/order/after-sales/after-sales.vue b/src/bundle/order/after-sales/after-sales.vue deleted file mode 100644 index f93408b..0000000 --- a/src/bundle/order/after-sales/after-sales.vue +++ /dev/null @@ -1,457 +0,0 @@ - -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/bundle/order/douyin/douyin-order-detail.vue b/src/bundle/order/douyin/douyin-order-detail.vue deleted file mode 100644 index 620c38f..0000000 --- a/src/bundle/order/douyin/douyin-order-detail.vue +++ /dev/null @@ -1,152 +0,0 @@ - -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/bundle/order/douyin/excharge.vue b/src/bundle/order/douyin/excharge.vue deleted file mode 100644 index 2f4f01e..0000000 --- a/src/bundle/order/douyin/excharge.vue +++ /dev/null @@ -1,130 +0,0 @@ - -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/bundle/order/douyin/order-list.vue b/src/bundle/order/douyin/order-list.vue deleted file mode 100644 index 0d6cfb0..0000000 --- a/src/bundle/order/douyin/order-list.vue +++ /dev/null @@ -1,176 +0,0 @@ -{ - "needLogin": true, - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - diff --git a/src/bundle/order/platform/direct-order-detail.vue b/src/bundle/order/platform/direct-order-detail.vue deleted file mode 100644 index 0aa481c..0000000 --- a/src/bundle/order/platform/direct-order-detail.vue +++ /dev/null @@ -1,234 +0,0 @@ - -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/bundle/order/platform/franchise-order-detail.vue b/src/bundle/order/platform/franchise-order-detail.vue deleted file mode 100644 index 672cf2a..0000000 --- a/src/bundle/order/platform/franchise-order-detail.vue +++ /dev/null @@ -1,235 +0,0 @@ - -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/bundle/order/platform/order-detail.vue b/src/bundle/order/platform/order-detail.vue deleted file mode 100644 index 84bdba6..0000000 --- a/src/bundle/order/platform/order-detail.vue +++ /dev/null @@ -1,320 +0,0 @@ - -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/bundle/order/platform/order-list.vue b/src/bundle/order/platform/order-list.vue deleted file mode 100644 index 20f2f98..0000000 --- a/src/bundle/order/platform/order-list.vue +++ /dev/null @@ -1,174 +0,0 @@ -{ - "needLogin": true, - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - diff --git a/src/bundle/order/tea-room/order-detail.vue b/src/bundle/order/tea-room/order-detail.vue deleted file mode 100644 index 98aa002..0000000 --- a/src/bundle/order/tea-room/order-detail.vue +++ /dev/null @@ -1,699 +0,0 @@ - -{ - "needLogin": true, - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/bundle/order/tea-specialist/order-detail.vue b/src/bundle/order/tea-specialist/order-detail.vue index f36f316..c9ca8c4 100644 --- a/src/bundle/order/tea-specialist/order-detail.vue +++ b/src/bundle/order/tea-specialist/order-detail.vue @@ -375,7 +375,6 @@ import { getTeaSpecialistOrderDetails } from '@/api/teaSpecialist-order' import { toast } from '@/utils/toast' import { useMessage } from 'wot-design-uni' - import { handleCancelOrderHooks, handleToPayHooks, handleDeleteOrderHooks, handleConfirmOrderHooks, handleRefundOrderHooks } from '@/hooks/useTeaSpecialistOrder' const OSS = inject('OSS') diff --git a/src/bundle/tea-room/choose-room-reserve.vue b/src/bundle/tea-room/choose-room-reserve.vue deleted file mode 100644 index ae97908..0000000 --- a/src/bundle/tea-room/choose-room-reserve.vue +++ /dev/null @@ -1,414 +0,0 @@ - -{ - "layout": "tabbar", - "style": { - "navigationStyle": "custom" - } -} - - - - - diff --git a/src/bundle/tea-room/choose-room.vue b/src/bundle/tea-room/choose-room.vue deleted file mode 100644 index aa72b0d..0000000 --- a/src/bundle/tea-room/choose-room.vue +++ /dev/null @@ -1,270 +0,0 @@ - -{ - "layout": "tabbar", - "style": { - "navigationStyle": "custom" - } -} - - - - - diff --git a/src/components/TeaSpecialistLevel.vue b/src/components/TeaSpecialistLevel.vue deleted file mode 100644 index 9c2d2a6..0000000 --- a/src/components/TeaSpecialistLevel.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/UseStore.vue b/src/components/UseStore.vue deleted file mode 100644 index 01c92f7..0000000 --- a/src/components/UseStore.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/notice/Pay.vue b/src/components/notice/Pay.vue deleted file mode 100644 index e9e9dff..0000000 --- a/src/components/notice/Pay.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - diff --git a/src/hooks/useTeaSpecialistOrder.ts b/src/hooks/useTeaSpecialistOrder.ts deleted file mode 100644 index e913d71..0000000 --- a/src/hooks/useTeaSpecialistOrder.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { router } from '@/utils/tools' -import { toast } from '@/utils/toast' -import { cancelTeaSpecialistOrder, deleteTeaSpecialistOrder, confirmTeaSpecialistOrder, refundTeaSpecialistOrder } from '@/api/teaSpecialist-order' - -/** - * 取消订单 - * @param orderId 订单ID - */ -export async function handleCancelOrderHooks(orderId: number) { - try { - const response = await cancelTeaSpecialistOrder({ id: orderId }) - uni.$emit('refreshOrderList') - uni.$emit('refreshOrderDetail') - } catch (error) { - router.navigateBack() - throw error - } -} - -/** - * 重新支付 - * @param orderId 订单ID - * @param teaSpecialistId 茶艺师ID - * @returns - */ -export function handleToPayHooks(orderId: number, teaSpecialistId: number) { - try { - uni.$on('payment', params => { - console.log("🚀 ~ params:", params) - setTimeout(() => { - uni.$off("payment") - uni.$emit('refreshOrderList') - uni.$emit('refreshOrderDetail') - if (params.result) { - uni.redirectTo({ - url: `/pages/notice/reserve?type=teaSpecialist&orderId=${params.orderId}` - }) - } else { - uni.redirectTo({ - url: '/bundle/order/tea-specialist/order-list' - }) - } - }, 1000) - }) - - setTimeout(() => { - router.navigateTo(`/pages/cashier/cashier?from=order&orderId=${orderId}&teaSpecialistId=${teaSpecialistId}`) - }, 800) - } catch (error) { - toast.info('订单提交失败,请稍后重试') - return - } -} - -/** - * 删除订单 - */ -export async function handleDeleteOrderHooks(orderId: number) { - try { - const response = await deleteTeaSpecialistOrder({ id: orderId }) - uni.$emit('refreshOrderList') - uni.$emit('refreshOrderDetail') - } catch (error) { - router.navigateBack() - throw error - } -} - -/** - * 确认(完成)订单 - */ -export async function handleConfirmOrderHooks(orderId: number) { - try { - const response = await confirmTeaSpecialistOrder({ id: orderId }) - uni.$emit('refreshOrderList') - uni.$emit('refreshOrderDetail') - } catch (error) { - router.navigateBack() - throw error - } -} - -/** - * 订单退款 - * @param orderId 订单ID - * @param orderType 订单类型 - */ -export async function handleRefundOrderHooks(orderId: number, orderType: string) { - try { - const response = await refundTeaSpecialistOrder({ id: orderId, order_type: orderType }) - uni.$emit('refreshOrderList') - uni.$emit('refreshOrderDetail') - } catch (error) { - router.navigateBack() - throw error - } -} \ No newline at end of file diff --git a/src/pages/notice/pay.vue b/src/pages/notice/pay.vue deleted file mode 100644 index 1f727aa..0000000 --- a/src/pages/notice/pay.vue +++ /dev/null @@ -1,87 +0,0 @@ -{ - "layout": "default", - "style": { - "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#fff" - } -} - - - - - - - diff --git a/src/pages/notice/reserve.vue b/src/pages/notice/reserve.vue deleted file mode 100644 index b5b4d05..0000000 --- a/src/pages/notice/reserve.vue +++ /dev/null @@ -1,62 +0,0 @@ -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - -