支付页面支付宝页面无法匹配金额时展示异常降级处理

This commit is contained in:
codewendao
2026-02-09 10:19:00 +08:00
parent e36d68ae17
commit 13fbce3d76
3 changed files with 12 additions and 12 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/.idea
/target

View File

@@ -2,6 +2,8 @@ server:
port: 8889
spring:
profiles:
active: local
mail:
host: smtp.163.com #邮箱服务器
password: xxxx #邮箱密码

View File

@@ -746,20 +746,16 @@
// 处理微信支付二维码图片加载错误
handleImageError(event) {
console.error('微信支付二维码图片加载失败:', this.qrImageUrl);
console.error('支付二维码图片加载失败:', this.qrImageUrl);
debugger
// 尝试备用路径
if (!event.target.dataset.retried) {
event.target.dataset.retried = 'true';
// 尝试使用custom.png作为备用
if (this.qrImageUrl !== 'assets/qr/wechat/custom.png') {
console.log('尝试使用备用图片: assets/qr/wechat/custom.png');
if(this.payType == 'Alipay'){
event.target.src = 'assets/qr/alipay/custom.png';
}else {
event.target.src = 'assets/qr/wechat/custom.png';
}
return;
if(this.orderInfo.payType == 'Alipay'){
event.target.src = 'assets/qr/alipay/custom.png';
return
}else {
event.target.src = 'assets/qr/wechat/custom.png';
return
}
}