mirror of
https://github.com/codewendao/PayPro.git
synced 2026-09-03 06:13:46 +08:00
支付页面支付宝页面无法匹配金额时展示异常降级处理
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/.idea
|
||||
/target
|
||||
@@ -2,6 +2,8 @@ server:
|
||||
port: 8889
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
active: local
|
||||
mail:
|
||||
host: smtp.163.com #邮箱服务器
|
||||
password: xxxx #邮箱密码
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user