From 5f856a96c908172136f1e3135837c3433aa79111 Mon Sep 17 00:00:00 2001 From: not-like-juvenile <16056107+not-like-juvenile@user.noreply.gitee.com> Date: Fri, 30 Jan 2026 21:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=B9=B6=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ak/config.uts | 4 +- pages/mall/delivery/index.uvue | 22 +++--- pages/mall/delivery/order-detail.uvue | 99 ++++++++------------------- 3 files changed, 41 insertions(+), 84 deletions(-) diff --git a/ak/config.uts b/ak/config.uts index a24c488a..2b48e5da 100644 --- a/ak/config.uts +++ b/ak/config.uts @@ -2,11 +2,11 @@ // 内网环境 - 本地部署的 Supabase // IP: 192.168.1.62 // Kong HTTP Port: 8000 -export const SUPA_URL: string = 'http://192.168.1.62:8000' +export const SUPA_URL: string = 'http://192.168.1.62:13000' export const SUPA_KEY: string = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InN1cGFiYXNlIiwiaWF0IjoxNzY4ODMwNjI0LCJleHAiOjE5MjY1MTA2MjR9.mDVl-kIOdRK9v6VTxo0TDF8r7X7xk3PZXazaavHyVvg' // WebSocket 实时连接(内网使用 ws:// 而非 wss://) -export const WS_URL: string = 'ws://192.168.1.62:8000/realtime/v1/websocket' +export const WS_URL: string = 'ws://192.168.1.62:13000/realtime/v1/websocket' // 备用配置(已注释,如需切换可取消注释) // 开发环境 - 其他内网地址 diff --git a/pages/mall/delivery/index.uvue b/pages/mall/delivery/index.uvue index 7e785649..0b5f98fe 100644 --- a/pages/mall/delivery/index.uvue +++ b/pages/mall/delivery/index.uvue @@ -454,7 +454,7 @@ confirmPickup() { // TODO: 调用API确认取货 if (this.currentTask) { - this.currentTask.status = 4 // 更新状态为“已取货” + this.currentTask.status = 5 // 更新状态为“已取货” } uni.showToast({ title: '取货完成', @@ -462,16 +462,16 @@ }) }, - startDelivery() { - // TODO: 调用API开始配送 - if (this.currentTask) { - this.currentTask.status = 5 // 更新状态为“配送中” - } - uni.showToast({ - title: '开始配送', - icon: 'success' - }) - }, + // startDelivery() { + // // TODO: 调用API开始配送 + // if (this.currentTask) { + // this.currentTask.status = 5 // 更新状态为“配送中” + // } + // uni.showToast({ + // title: '开始配送', + // icon: 'success' + // }) + // }, // 显示确认送达弹框 showConfirmDeliveryDialog() { diff --git a/pages/mall/delivery/order-detail.uvue b/pages/mall/delivery/order-detail.uvue index 68bc94d4..68a50b34 100644 --- a/pages/mall/delivery/order-detail.uvue +++ b/pages/mall/delivery/order-detail.uvue @@ -1,4 +1,3 @@ -