mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-06-14 01:42:27 +08:00
优化支付失败提示
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user