diff --git a/pages-biz/unpaid/unpaid.vue b/pages-biz/unpaid/unpaid.vue index f85bc18..8b39d4c 100644 --- a/pages-biz/unpaid/unpaid.vue +++ b/pages-biz/unpaid/unpaid.vue @@ -241,7 +241,7 @@ }, { WT: token }); if (res.code !== 200) { - uni.showToast({ title: res.msg, icon: 'none' }); + uni.showToast({ title: res.message, icon: 'none' }); this.isPaying = false; return; } @@ -269,7 +269,7 @@ } catch (error) { console.error('支付请求异常', error); - uni.showToast({ title: '支付请求失败', icon: 'none' }); + uni.showToast({ title: '支付请求失败: ' + error, icon: 'none' }); this.isPaying = false; } }, diff --git a/pages-biz/unpaid/unpaidMargin.vue b/pages-biz/unpaid/unpaidMargin.vue index 96d082c..86a76f3 100644 --- a/pages-biz/unpaid/unpaidMargin.vue +++ b/pages-biz/unpaid/unpaidMargin.vue @@ -243,7 +243,7 @@ }, { WT: token }); if (res.code !== 200) { - uni.showToast({ title: res.msg, icon: 'none' }); + uni.showToast({ title: res.message, icon: 'none' }); this.isPaying = false; return; } @@ -271,7 +271,7 @@ } catch (error) { console.error('支付请求异常', error); - uni.showToast({ title: '支付请求失败', icon: 'none' }); + uni.showToast({ title: '支付请求失败: ' + error, icon: 'none' }); this.isPaying = false; } }, diff --git a/pages-biz/wae/wae.vue b/pages-biz/wae/wae.vue index 4c965cb..a6ac799 100644 --- a/pages-biz/wae/wae.vue +++ b/pages-biz/wae/wae.vue @@ -219,7 +219,7 @@ const res = await this.$u.post(url, params, { WT: token }); if (res.code !== 200) { - uni.showToast({ title: res.msg, icon: 'none' }); + uni.showToast({ title: res.message, icon: 'none' }); this.isPaying = false; return; } @@ -247,7 +247,7 @@ } catch (error) { console.error('支付请求异常', error); - uni.showToast({ title: '支付请求失败', icon: 'none' }); + uni.showToast({ title: '支付请求失败: ' + error, icon: 'none' }); this.isPaying = false; } },