优化支付失败提示

This commit is contained in:
2026-06-12 16:12:44 +08:00
parent 4f6426dc02
commit ba0585c8aa
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
}
},

View File

@@ -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;
}
},