From a2f1023de8b3d9b19d90e2bd39ff7705c323d810 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Sat, 20 Dec 2025 22:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env | 6 +- src/App.vue | 9 + src/api/pay.ts | 4 +- src/api/tea-room.ts | 15 +- src/api/types/user.ts | 1 + src/api/user.ts | 22 +- src/bundle/coupon/my-coupon.vue | 2 +- src/bundle/order/douyin/excharge.vue | 68 +++++- src/bundle/order/douyin/order-list.vue | 87 +++++-- src/bundle/order/platform/order-list.vue | 18 +- src/bundle/order/tea-room/order-detail.vue | 30 ++- src/bundle/profile/profile.vue | 2 +- src/bundle/store-recharge/store-recharge.vue | 31 ++- src/bundle/tea-room/choose-room-reserve.vue | 121 ++++++---- src/bundle/tea-room/detail.vue | 234 +++++++++++-------- src/bundle/tea-room/room.vue | 56 ++++- src/bundle/vip/buy.vue | 51 +++- src/bundle/wallet/wallet.vue | 122 +++++----- src/components/BookingTime.vue | 225 ++++++++++-------- src/components/Pay.vue | 12 +- src/components/order/ComboCard.vue | 4 +- src/components/reserve/RoomList.vue | 65 +++++- src/hooks/useLocation.ts | 138 ++++++++--- src/hooks/usePay.ts | 4 +- src/pages/cashier/cashier.vue | 15 +- src/pages/index/index.vue | 3 +- src/pages/login/login.vue | 33 ++- src/pages/my/my.vue | 48 ++-- src/pages/reserve/reserve.vue | 2 +- src/utils/order.ts | 18 +- src/utils/pay.ts | 6 + src/utils/tools.ts | 13 +- 32 files changed, 982 insertions(+), 483 deletions(-) diff --git a/env/.env b/env/.env index a63ca5a..b1f0ee4 100644 --- a/env/.env +++ b/env/.env @@ -19,4 +19,8 @@ VITE_APP_PROXY=false VITE_APP_PROXY_PREFIX = '/api' # 第二个请求地址 (目前alova中可以使用) -VITE_SERVER_BASEURL = 'https://cz.stnav.com' \ No newline at end of file +VITE_SERVER_BASEURL = 'https://cz.stnav.com' + +# 默认上海经纬度 +VITE_DEFAULT_LONGITUDE = 121.4737 +VITE_DEFAULT_LATITUDE = 31.2304 \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index ec2a9df..7910d8c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -58,4 +58,13 @@ } } } + + .booking-time { + :deep() { + .wd-tabs__line--inner, + .wd-tabs__line { + background-color: #4C9F44 !important; + } + } + } diff --git a/src/api/pay.ts b/src/api/pay.ts index 734f16f..a510a95 100644 --- a/src/api/pay.ts +++ b/src/api/pay.ts @@ -12,7 +12,7 @@ export interface IPrePayParams { } export function prePay(data: IPrePayParams) { - return http.Post<{ pay_id: number }>('/api/pay/prepay', data) + return http.Post('/api/pay/prepay', data) } /** @@ -23,5 +23,5 @@ export interface ITeaSpecialistPayParams { } export function balancePay(data: ITeaSpecialistPayParams) { - return http.Post('/api/pay/yuePay', data) + return http.Post('/api/pay/yuePay', data) } \ No newline at end of file diff --git a/src/api/tea-room.ts b/src/api/tea-room.ts index 9869b28..a0d2264 100644 --- a/src/api/tea-room.ts +++ b/src/api/tea-room.ts @@ -94,6 +94,7 @@ export interface IRoomDetailParams { latitude: number longitude: number user_id: number + room_id?: number } export function getTeaRoomDetail(data: IRoomDetailParams) { @@ -151,8 +152,8 @@ export function getStoreTeaRoomList(data: IStoreTeaRoomListParams) { /** * 获取未来7天时间 */ -export function getNext7Days() { - return http.Post('/api/Common/get7Time') +export function getNext7Days(room_id: number, date: string) { + return http.Post('/api/Common/get7Time', {room_id, date}) } /** @@ -172,12 +173,14 @@ export function getTeaRoomBalance(data: ITeaRoomBalanceParams) { export interface ICreateTeaRoomOrderParams { store_id: number room_id: number + day_title: string day_time: string start_time: string end_time: string hours: number user_coupon_id: number group_coupon_id: number + timeslot: string[] } export function createTeaRoomOrder(data: ICreateTeaRoomOrderParams) { @@ -287,6 +290,7 @@ export function getTeaRoomPackageDetail(data: ITeaRoomPackageDetailParams) { */ export interface ICreateTeaRoomPackageOrderParams { group_id: number + room_id: number } export function createTeaRoomPackageOrder(data: ICreateTeaRoomPackageOrderParams) { @@ -352,4 +356,11 @@ export interface ITeaRoomGroupCouponListParams { export function getTeaRoomGroupCouponList(data: ITeaRoomGroupCouponListParams) { return http.Post<{list: {}}>('/api/order/teaStoreGroupUseLists', data) +} + +/** + * 充值接口 + */ +export function teaRoomRecharge(money: number) { + return http.Post<{id: number}>('/api/recharge/recharge', {money}) } \ No newline at end of file diff --git a/src/api/types/user.ts b/src/api/types/user.ts index b26124c..8797905 100644 --- a/src/api/types/user.ts +++ b/src/api/types/user.ts @@ -69,4 +69,5 @@ export interface IUserResult { mobile: string user_money: string version: string + last_month?: number } \ No newline at end of file diff --git a/src/api/user.ts b/src/api/user.ts index 1f27774..203d57f 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -130,7 +130,7 @@ export interface IGetUserMoneyLogParams { } export function getUserMoneyLog(data: IGetUserMoneyLogParams) { - return http.Post('/api/user/moneyLogList', data) + return http.Post('/api/user/moneyLogList', data) } /** @@ -144,3 +144,23 @@ export interface IUpdateUserInfoParams { export function updateUserInfo(data: IUpdateUserInfoParams) { return http.Post('/api/user/setInfo', data) } + +/** + * 抖音验券 + */ +export interface ICheckDouyinCouponParams { + store_id: number, + code: string, + type: number // 1是手动输入 2是扫码 +} + +export function checkDouyinCoupon(data: ICheckDouyinCouponParams) { + return http.Post('/api/DouyinAfterVerifi/setDouy', data) +} + +/** + * 会员记录 + */ +export function getUserMember() { + return http.Post('/api/user/UserMember') +} \ No newline at end of file diff --git a/src/bundle/coupon/my-coupon.vue b/src/bundle/coupon/my-coupon.vue index 280db20..06b2749 100644 --- a/src/bundle/coupon/my-coupon.vue +++ b/src/bundle/coupon/my-coupon.vue @@ -171,7 +171,7 @@ .wd-tabs, .wd-tabs__nav, .wd-tabs__line { - background-color: transparent; + background-color: transparent !important; } .wd-tabs__nav-item.is-active { diff --git a/src/bundle/order/douyin/excharge.vue b/src/bundle/order/douyin/excharge.vue index 2f4f01e..9a3a0ed 100644 --- a/src/bundle/order/douyin/excharge.vue +++ b/src/bundle/order/douyin/excharge.vue @@ -31,7 +31,7 @@ custom-class="!bg-[#F6F7F8] !rounded-16rpx" custom-input-class="!h-104rpx"> - 确定 + 确定 @@ -69,18 +69,47 @@ diff --git a/src/bundle/order/platform/order-list.vue b/src/bundle/order/platform/order-list.vue index 20f2f98..bc342ac 100644 --- a/src/bundle/order/platform/order-list.vue +++ b/src/bundle/order/platform/order-list.vue @@ -8,7 +8,7 @@