From 72194db4794f74e357dd431f8e2352d62c3a698f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sat, 10 Jan 2026 00:31:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(order):=20=E6=9B=B4=E6=96=B0API=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改开发和生产环境配置文件中的API和WebSocket地址 - 添加updateOrderPay API方法用于更新订单支付信息 - 在订单信息组件中添加日期选择器用于修改开始和过期时间 - 实现订单过期天数计算逻辑的改进 - 添加数据保存成功提示消息 - 更新头像文件存储地址配置 --- .env.development | 5 +- .env.production | 7 +- src/api/order/index.ts | 8 + src/views/oa/task/components/task-info.vue | 4 +- src/views/user/task/components/task-info.vue | 4 +- .../yunxinwei/order/components/order-info.vue | 60 +- yarn.lock | 5816 +++++++++-------- 7 files changed, 2990 insertions(+), 2914 deletions(-) diff --git a/.env.development b/.env.development index 408d2d3..116d930 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,6 @@ VITE_APP_NAME=后台管理系统 #VITE_API_URL=http://localhost:9090/api -VITE_API_URL=http://yxw.wsdns.cn/api +VITE_API_URL=https://yxw-api.websoft.top/api #VITE_SOCKET_URL=ws://localhost:9190 #VITE_API_URL=http://127.0.0.1:9090/api -#VITE_API_URL=https://server.gxwebsoft.com/api -VITE_SOCKET_URL=wss://server.gxwebsoft.com +VITE_SOCKET_URL=wss://server.websoft.top diff --git a/.env.production b/.env.production index 14d05e2..b0e0570 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,3 @@ VITE_APP_NAME=后台管理系统 -#VITE_API_URL=https://server.jimeigroup.cn/api -#VITE_API_URL=https://server.gxwebsoft.com/api -VITE_API_URL=http://yxw.wsdns.cn/api -#VITE_API_URL=http://1.14.132.108:10032/api -VITE_SOCKET_URL=wss://server.gxwebsoft.com +VITE_API_URL=https://yxw-api.websoft.top/api +VITE_SOCKET_URL=wss://server.websoft.top diff --git a/src/api/order/index.ts b/src/api/order/index.ts index 1fb2706..977e351 100644 --- a/src/api/order/index.ts +++ b/src/api/order/index.ts @@ -67,6 +67,14 @@ export async function addOrderPay(data: OrderPay) { return Promise.reject(new Error(res.data.message)); } +export async function updateOrderPay(data: OrderPay) { + const res = await request.put>('/shop/order-pay', data); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + /** * 根据id查询订单 */ diff --git a/src/views/oa/task/components/task-info.vue b/src/views/oa/task/components/task-info.vue index 8787b38..2a24962 100644 --- a/src/views/oa/task/components/task-info.vue +++ b/src/views/oa/task/components/task-info.vue @@ -119,7 +119,7 @@