|
|
@@ -447,7 +447,7 @@ const loadOrderDetail = async (id) => {
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.error('加载订单详情失败:', error)
|
|
|
- uni.showToast({ title: '加载失败', icon: 'none' })
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '请求失败', icon: 'none' })
|
|
|
} finally {
|
|
|
loading.value = false
|
|
|
}
|
|
|
@@ -471,6 +471,7 @@ const loadPetInfo = async (petId) => {
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.error('加载宠物信息失败:', error)
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '加载宠物信息失败', icon: 'none' })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -487,6 +488,7 @@ const loadCustomerInfo = async (customerId) => {
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.error('加载客户信息失败:', error)
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '加载客户信息失败', icon: 'none' })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -503,6 +505,7 @@ const loadFulfillerInfo = async (fulfillerId) => {
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.error('加载履约者信息失败:', error)
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '加载履约者信息失败', icon: 'none' })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -514,6 +517,7 @@ const loadOrderLogs = async (id) => {
|
|
|
fulfillerLogsData.value = list.filter(i => Number(i?.logType) === 1)
|
|
|
} catch (error) {
|
|
|
console.error('加载订单日志失败:', error)
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '加载订单日志失败', icon: 'none' })
|
|
|
orderLogsData.value = []
|
|
|
fulfillerLogsData.value = []
|
|
|
}
|
|
|
@@ -525,6 +529,7 @@ const loadComplaints = async (id) => {
|
|
|
complaintList.value = res || []
|
|
|
} catch (error) {
|
|
|
console.error('加载投诉记录失败:', error)
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '加载投诉记录失败', icon: 'none' })
|
|
|
complaintList.value = []
|
|
|
}
|
|
|
}
|
|
|
@@ -535,6 +540,7 @@ const loadServiceChanges = async (id) => {
|
|
|
serviceChangeList.value = res || []
|
|
|
} catch (error) {
|
|
|
console.error('加载服务变更记录失败:', error)
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '加载服务变更记录失败', icon: 'none' })
|
|
|
serviceChangeList.value = []
|
|
|
}
|
|
|
}
|
|
|
@@ -778,7 +784,7 @@ const confirmCancelOrder = async () => {
|
|
|
} catch (error) {
|
|
|
uni.hideLoading()
|
|
|
console.error('取消订单失败:', error)
|
|
|
- uni.showToast({ title: '取消失败', icon: 'none' })
|
|
|
+ uni.showToast({ title: typeof error === 'string' ? error : '取消失败', icon: 'none' })
|
|
|
}
|
|
|
}
|
|
|
|