From c656192050fb469c89d8128ec538a63e583010a9 Mon Sep 17 00:00:00 2001 From: xiaogang <825201136@qq.com> Date: Tue, 29 Oct 2024 10:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E5=82=A8=E5=A5=B6=E8=8C=B6=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E6=94=AF=E4=BB=98=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +- .env.production | 9 +- src/api/ycnc.js | 7 + src/pages/ycnc/components/brand.vue | 2 +- src/pages/ycnc/components/order-item.vue | 2 +- src/pages/ycnc/components/product-item.vue | 2 +- src/pages/ycnc/config.js | 2 +- src/pages/ycnc/detail.vue | 4 +- src/pages/ycnc/hooks/usePay.js | 21 +- src/pages/ycnc/index.vue | 8 +- src/pages/ycnc/order.vue | 4 +- src/pages/ycnc/orderDetail.vue | 331 +++++++++++++-------- vite.config.js | 2 +- 13 files changed, 241 insertions(+), 156 deletions(-) diff --git a/.env.development b/.env.development index 42e242b..4051359 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,5 @@ # 兴业优酷 # VITE_BASE_URL = 'http://192.168.110.50:8083' # 邮储奶茶活动 -VITE_BASE_URL = 'http://milk.api.test.86698.cn' +# VITE_BASE_URL = 'http://milk.api.test.86698.cn' +VITE_BASE_URL = 'http://milk.test.api.cdlsxd.cn' diff --git a/.env.production b/.env.production index 370a255..0f39b4e 100644 --- a/.env.production +++ b/.env.production @@ -2,8 +2,9 @@ # VITE_BASE_URL = 'http://192.168.110.50:8083' # 邮储奶茶活动(测试环境) -# VITE_BASE_URL = 'http://milk.api.test.86698.cn' -# VITE_YCNC_MERCH_CODE = '100610100019029' +VITE_BASE_URL = 'http://milk.test.api.cdlsxd.cn' +# VITE_YCNC_MERCH_CODE = '100310100018908' +VITE_YCNC_MERCH_CODE = '100610100019042' # 邮储奶茶活动(正式环境) -VITE_BASE_URL = 'https://milk.api.cdlsxd.cn' -VITE_YCNC_MERCH_CODE = '100510102294138' \ No newline at end of file +# VITE_BASE_URL = 'https://milk.api.cdlsxd.cn' +# VITE_YCNC_MERCH_CODE = '100510102303326' \ No newline at end of file diff --git a/src/api/ycnc.js b/src/api/ycnc.js index 1387c67..ee99bfc 100644 --- a/src/api/ycnc.js +++ b/src/api/ycnc.js @@ -51,3 +51,10 @@ export const refundOrder = (params) => http({ }) +//查询订单状态,主要针对短连接 +export const queryOrderState = (params) => http({ + url:'/api/v1/auth/order/state', + method:'POST', + ...params +}) + diff --git a/src/pages/ycnc/components/brand.vue b/src/pages/ycnc/components/brand.vue index 55b0b76..8650f3b 100644 --- a/src/pages/ycnc/components/brand.vue +++ b/src/pages/ycnc/components/brand.vue @@ -1,5 +1,5 @@