From d05eeebdb189e6299fcc5dd890a794bc75be44ef Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Mon, 1 Sep 2025 17:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B7=BB=E5=8A=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8F=8A=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 14 ++ .../group-buying/platform/order-detail.vue | 47 +++++ .../group-buying/platform/order-list.vue | 165 ++++++++++++++++++ src/bundle/reserve-room/room.vue | 6 +- src/components/PriceFormat.vue | 121 +++++++------ src/components/RechargeBtn.vue | 5 + src/components/coupon/GroupCoupon.vue | 5 + src/components/coupon/coupon.vue | 57 +++--- src/components/navbar.vue | 7 +- src/components/notice/Bill.vue | 7 +- src/components/notice/Pay.vue | 5 + src/components/notice/Reserve.vue | 5 + src/components/order/Combo.vue | 88 ++++++++++ src/components/order/ComboCard.vue | 87 +++++++++ src/components/reserve/RoomList.vue | 5 + src/pages.json | 16 ++ src/pages/my/my.vue | 129 +++++++++++++- src/utils/order.ts | 21 +++ 18 files changed, 695 insertions(+), 95 deletions(-) create mode 100644 src/bundle/group-buying/platform/order-detail.vue create mode 100644 src/bundle/group-buying/platform/order-list.vue create mode 100644 src/components/order/Combo.vue create mode 100644 src/components/order/ComboCard.vue create mode 100644 src/utils/order.ts diff --git a/src/App.vue b/src/App.vue index 7215a68..bef4050 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,4 +40,18 @@ .absolute-center {position: absolute !important;left: 50%;top: 50%;transform: translate(-50%, -50%);} .line-1 {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;} .line-2 {display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;} + + /* 自定义wot-ui的tab样式 */ + .tabs { + :deep() { + .wd-tabs__line { + bottom: 0 !important; + width: 60rpx !important; + height: 16rpx !important; + background-color: transparent !important; + background-image: url(#{$OSS}images/reserve_room/reserve_room_image1.png) !important; + background-size: cover !important; + } + } + } diff --git a/src/bundle/group-buying/platform/order-detail.vue b/src/bundle/group-buying/platform/order-detail.vue new file mode 100644 index 0000000..6b9ccaf --- /dev/null +++ b/src/bundle/group-buying/platform/order-detail.vue @@ -0,0 +1,47 @@ + +{ + "layout": "default", + "style": { + "navigationStyle": "custom" + } +} + + + + + + + + diff --git a/src/bundle/group-buying/platform/order-list.vue b/src/bundle/group-buying/platform/order-list.vue new file mode 100644 index 0000000..227002e --- /dev/null +++ b/src/bundle/group-buying/platform/order-list.vue @@ -0,0 +1,165 @@ +{ + "layout": "default", + "style": { + "navigationStyle": "custom" + } +} + + + + + + + diff --git a/src/bundle/reserve-room/room.vue b/src/bundle/reserve-room/room.vue index e8a07c8..558ec18 100644 --- a/src/bundle/reserve-room/room.vue +++ b/src/bundle/reserve-room/room.vue @@ -77,7 +77,7 @@ - + @@ -125,7 +125,9 @@ ]) const current = ref(0) const rate = ref(4) + // tab const tab = ref(0) + const goods = ref[]>([]) const showAction = ref(false) const sheetMenu = ref([]) @@ -258,7 +260,7 @@ }, // tab切换获取index - tabIndex: (item: { index: number }) => { + handleChangeTab: (item: { index: number }) => { // tabIndexs.value = item.index // scrollToLastY() }, diff --git a/src/components/PriceFormat.vue b/src/components/PriceFormat.vue index a08cdb3..05ee2dd 100644 --- a/src/components/PriceFormat.vue +++ b/src/components/PriceFormat.vue @@ -7,72 +7,77 @@ diff --git a/src/components/navbar.vue b/src/components/navbar.vue index b7361ff..ba9ed7f 100644 --- a/src/components/navbar.vue +++ b/src/components/navbar.vue @@ -22,6 +22,11 @@ + + \ No newline at end of file diff --git a/src/components/order/ComboCard.vue b/src/components/order/ComboCard.vue new file mode 100644 index 0000000..073389e --- /dev/null +++ b/src/components/order/ComboCard.vue @@ -0,0 +1,87 @@ + + + + + \ No newline at end of file diff --git a/src/components/reserve/RoomList.vue b/src/components/reserve/RoomList.vue index d843251..fba9ad1 100644 --- a/src/components/reserve/RoomList.vue +++ b/src/components/reserve/RoomList.vue @@ -66,6 +66,11 @@ diff --git a/src/utils/order.ts b/src/utils/order.ts new file mode 100644 index 0000000..2f3dc1d --- /dev/null +++ b/src/utils/order.ts @@ -0,0 +1,21 @@ +export enum OrderStatus { + All = 'all', // 全部订单 + Pending = 'pending', // 待付款 + Reserved = 'reserved', // 预约单 + Confirm = 'Reserved', // 待确认 + Finished = 'finished', // 已完结 + ToUse = 'toUse', // 待使用 + AfterSaleApply = 'afterSaleApply', // 申请售后 + AfterSaleFinished = 'afterSaleFinished' // 售后完成 +} + +export const OrderStatusText: Record = { + [OrderStatus.All]: '全部订单', + [OrderStatus.Pending]: '待付款', + [OrderStatus.Reserved]: '预约单', + [OrderStatus.Confirm]: '待确认', + [OrderStatus.Finished]: '已完结', + [OrderStatus.ToUse]: '待使用', + [OrderStatus.AfterSaleApply]: '申请售后', + [OrderStatus.AfterSaleFinished]: '售后完成' +} \ No newline at end of file