This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user