From 1c414036c75e614747da44bc5f9261d4783c82d5 Mon Sep 17 00:00:00 2001 From: Agent Date: Sun, 29 Mar 2026 07:24:46 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=88=86=E4=BA=ABAPI?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/order/detail.vue | 4 ++-- src/pages/share/order.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/order/detail.vue b/src/pages/order/detail.vue index 7d06d8e..a59790a 100644 --- a/src/pages/order/detail.vue +++ b/src/pages/order/detail.vue @@ -217,9 +217,9 @@ export default { }, shareOrder() { // 构建分享链接(包含订单号和客户ID) - const baseUrl = getApp().globalData.h5BaseUrl || 'https://你的域名' + const h5BaseUrl = 'https://sales.violin-work.online/h5' const customerId = this.order.customerId || '' - const shareUrl = `${baseUrl}/#/pages/share/order?orderNo=${this.order.orderNo}&customerId=${customerId}` + const shareUrl = `${h5BaseUrl}/#/pages/share/order?orderNo=${this.order.orderNo}&customerId=${customerId}` // 复制链接到剪贴板 uni.setClipboardData({ diff --git a/src/pages/share/order.vue b/src/pages/share/order.vue index cf54b30..d71cb3a 100644 --- a/src/pages/share/order.vue +++ b/src/pages/share/order.vue @@ -120,7 +120,7 @@ export default { async loadOrder() { try { const res = await uni.request({ - url: `${getApp().globalData.apiBaseUrl}/public/orders/${this.orderNo}?customerId=${this.customerId}`, + url: `https://sales.violin-work.online/api/v1/public/orders/${this.orderNo}?customerId=${this.customerId}`, method: 'GET' }) this.loading = false