From f8d8c29dc3745e28a643bbb1d97c13f0347852a3 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 26 Dec 2025 14:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pay.ts | 2 +- src/api/tea-room.ts | 1 + src/api/types/tea.ts | 5 ++++- src/bundle/order/douyin/excharge.vue | 8 ++++---- src/bundle/order/platform/order-list.vue | 12 +++++++++++- src/bundle/order/tea-room/order-list.vue | 11 ++++++++++- src/bundle/tea-room/choose-room-reserve.vue | 1 + src/bundle/tea-room/choose-room.vue | 1 + src/bundle/tea-room/detail.vue | 4 ++-- src/bundle/vip/benefits.vue | 8 ++++---- src/bundle/vip/buy.vue | 2 +- src/components/navbar.vue | 9 +++++++-- src/components/order/ComboCard.vue | 5 ++++- src/pages/city/city.vue | 9 +++++---- src/pages/index/index.vue | 15 ++++++++------- src/pages/login/login.vue | 5 ++--- src/pages/my/my.vue | 6 +++--- src/pages/notice/reserve.vue | 9 ++++++++- 18 files changed, 77 insertions(+), 36 deletions(-) diff --git a/src/api/pay.ts b/src/api/pay.ts index ced767b..0a6ca97 100644 --- a/src/api/pay.ts +++ b/src/api/pay.ts @@ -9,7 +9,7 @@ export interface IPrePayParams { pay_way: number order_source: number order_type: number - store_id: number + store_id?: number } export function prePay(data: IPrePayParams) { diff --git a/src/api/tea-room.ts b/src/api/tea-room.ts index 50f5fb1..ba86742 100644 --- a/src/api/tea-room.ts +++ b/src/api/tea-room.ts @@ -50,6 +50,7 @@ export interface IHomeTeaStoreListParams { search: string latitude: number longitude: number + city_area_id: number } export function getHomeTeaStoreList(data: IHomeTeaStoreListParams) { diff --git a/src/api/types/tea.ts b/src/api/types/tea.ts index 1364f4c..62b3b56 100644 --- a/src/api/types/tea.ts +++ b/src/api/types/tea.ts @@ -133,7 +133,10 @@ export interface ITeaSpecialistOrderDetailsResult { start_time: string end_time: string renew_price: number - } + }, + is_lockpwd?: number, + gate_key?: string, + room_key?: string } /** diff --git a/src/bundle/order/douyin/excharge.vue b/src/bundle/order/douyin/excharge.vue index 0584420..72b62b0 100644 --- a/src/bundle/order/douyin/excharge.vue +++ b/src/bundle/order/douyin/excharge.vue @@ -91,14 +91,14 @@ uni.scanCode({ success: async (res) => { console.log("🚀 ~ res:", res) - if(res.rawData) { - code.value = res.rawData + if(res.result) { + code.value = res.result uni.showLoading({ title: '兑换中...' }) try { const params = { store_id: storeId.value, - code: res.rawData.replace(/\s+/g, ''), - type: 1 + code: res.result.trim(), + type: 2 } await checkDouyinCoupon(params) diff --git a/src/bundle/order/platform/order-list.vue b/src/bundle/order/platform/order-list.vue index ad18933..8acad20 100644 --- a/src/bundle/order/platform/order-list.vue +++ b/src/bundle/order/platform/order-list.vue @@ -34,7 +34,7 @@ - + @@ -79,6 +79,16 @@ // tab const tab = ref('all') + const canReset = ref(false) // 避免onShow重复加载 + + onShow(() => { + if (canReset.value) { + list.value = [] + getMescroll().resetUpScroll(); + } + canReset.value = true + }) + onLoad(() => { uni.$on('refreshComboOrderList', () => { list.value = [] diff --git a/src/bundle/order/tea-room/order-list.vue b/src/bundle/order/tea-room/order-list.vue index b99323d..3f4b968 100644 --- a/src/bundle/order/tea-room/order-list.vue +++ b/src/bundle/order/tea-room/order-list.vue @@ -12,7 +12,7 @@ - + @@ -181,7 +181,7 @@ - + diff --git a/src/bundle/vip/benefits.vue b/src/bundle/vip/benefits.vue index 99ce14e..3d17b17 100644 --- a/src/bundle/vip/benefits.vue +++ b/src/bundle/vip/benefits.vue @@ -59,11 +59,11 @@ 茶室预定 - 预定茶室享受八折优惠 + 预定茶室享受九折优惠 - + - 立即成为会员 ¥499/年 + 立即成为会员 ¥9.9/年 diff --git a/src/bundle/vip/buy.vue b/src/bundle/vip/buy.vue index b699e16..bef4336 100644 --- a/src/bundle/vip/buy.vue +++ b/src/bundle/vip/buy.vue @@ -16,7 +16,7 @@ - ¥499.00 + 9.9 开通会员,解锁更多精彩内容! diff --git a/src/components/navbar.vue b/src/components/navbar.vue index 0862191..5d7fc5c 100644 --- a/src/components/navbar.vue +++ b/src/components/navbar.vue @@ -2,8 +2,8 @@