fix: 修正分享API地址
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-29 07:24:46 +00:00
parent f0daec8c06
commit 1c414036c7
2 changed files with 3 additions and 3 deletions

View File

@@ -217,9 +217,9 @@ export default {
}, },
shareOrder() { shareOrder() {
// 构建分享链接包含订单号和客户ID // 构建分享链接包含订单号和客户ID
const baseUrl = getApp().globalData.h5BaseUrl || 'https://你的域名' const h5BaseUrl = 'https://sales.violin-work.online/h5'
const customerId = this.order.customerId || '' 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({ uni.setClipboardData({

View File

@@ -120,7 +120,7 @@ export default {
async loadOrder() { async loadOrder() {
try { try {
const res = await uni.request({ 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' method: 'GET'
}) })
this.loading = false this.loading = false