From ce0ab24c576b4d21781d5f86ae37abd669ec9d9c Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Thu, 20 Mar 2025 10:58:18 +0800 Subject: [PATCH] 250320 --- .env.development | 4 +- .env.production | 2 +- src/api/think/thinkOrder/index.ts | 10 + src/api/think/thinkUsersVip/index.ts | 10 + src/package/booking/checkout.vue | 90 +++++- src/package/booking/confirm.vue | 7 +- src/package/booking/index.vue | 10 +- src/package/card/checkout.vue | 11 +- src/package/goods/checkout.vue | 61 +++- .../goods/{index.vue => index-hide.vue} | 0 src/package/order/check.vue | 10 +- src/package/order/detail.vue | 22 +- src/package/user/address.vue | 32 -- src/package/user/card-detail.vue | 52 +++- src/package/user/card.vue | 4 +- src/package/user/personal.vue | 10 +- src/pages.json | 14 +- src/pages/order.vue | 45 +-- src/pages/user.vue | 93 ++++-- src/uni_modules/uv-action-sheet/changelog.md | 7 + .../components/uv-action-sheet/props.js | 50 ++++ .../uv-action-sheet/uv-action-sheet.vue | 280 ++++++++++++++++++ src/uni_modules/uv-action-sheet/package.json | 92 ++++++ src/uni_modules/uv-action-sheet/readme.md | 13 + 24 files changed, 791 insertions(+), 138 deletions(-) rename src/package/goods/{index.vue => index-hide.vue} (100%) create mode 100644 src/uni_modules/uv-action-sheet/changelog.md create mode 100644 src/uni_modules/uv-action-sheet/components/uv-action-sheet/props.js create mode 100644 src/uni_modules/uv-action-sheet/components/uv-action-sheet/uv-action-sheet.vue create mode 100644 src/uni_modules/uv-action-sheet/package.json create mode 100644 src/uni_modules/uv-action-sheet/readme.md diff --git a/.env.development b/.env.development index aca3657..962b3b9 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ VITE_APP_NAME=后台管理系统 VITE_SOCKET_URL=wss://server.gxwebsoft.com VITE_SERVER_URL=https://gxtyzx-server.websoft.top/api VITE_API_URL=https://gxtyzx-modules.websoft.top/api -VITE_THINK_URL=https://gxtyzx-api.websoft.top/api +#VITE_THINK_URL=https://gxtyzx-api2.websoft.top/api -#VITE_THINK_URL=http://127.0.0.1:9099/api +VITE_THINK_URL=http://127.0.0.1:9099/api diff --git a/.env.production b/.env.production index 134dda6..f89b06b 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,4 @@ VITE_APP_NAME=后台管理系统 VITE_SOCKET_URL=wss://server.gxwebsoft.com VITE_SERVER_URL=https://gxtyzx-server.websoft.top/api VITE_API_URL=https://gxtyzx-modules.websoft.top/api -VITE_THINK_URL=https://gxtyzx-api.websoft.top/api +VITE_THINK_URL=https://gxtyzx-api2.websoft.top/api diff --git a/src/api/think/thinkOrder/index.ts b/src/api/think/thinkOrder/index.ts index d87bcca..f881b63 100644 --- a/src/api/think/thinkOrder/index.ts +++ b/src/api/think/thinkOrder/index.ts @@ -124,3 +124,13 @@ export async function thinkOrderRepay(data: ThinkOrder) { } return Promise.reject(new Error(res.data.message)); } + +export async function thinkOrderCheckCode(data: ThinkOrder) { + const res = await request.post>( + THINK_API_URL + '/think/think-order/check-code', data + ); + if (res.data.code === 0) { + return res.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/think/thinkUsersVip/index.ts b/src/api/think/thinkUsersVip/index.ts index 4448525..3a09e39 100644 --- a/src/api/think/thinkUsersVip/index.ts +++ b/src/api/think/thinkUsersVip/index.ts @@ -124,3 +124,13 @@ export async function thinkUsersVipLog(id: number) { } return Promise.reject(new Error(res.data.message)); } + +export async function thinkUsersVipCode(id: number) { + const res = await request.get>( + THINK_API_URL + `/think/think-users-vip/code/${id}` + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/package/booking/checkout.vue b/src/package/booking/checkout.vue index a3a0edc..3122afb 100644 --- a/src/package/booking/checkout.vue +++ b/src/package/booking/checkout.vue @@ -2,7 +2,8 @@ {{ merchant.name }} -