优化支付失败提示
This commit is contained in:
@@ -241,7 +241,7 @@
|
|||||||
}, { WT: token });
|
}, { WT: token });
|
||||||
|
|
||||||
if (res.code !== 200) {
|
if (res.code !== 200) {
|
||||||
uni.showToast({ title: res.msg, icon: 'none' });
|
uni.showToast({ title: res.message, icon: 'none' });
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -269,7 +269,7 @@
|
|||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('支付请求异常', error);
|
console.error('支付请求异常', error);
|
||||||
uni.showToast({ title: '支付请求失败', icon: 'none' });
|
uni.showToast({ title: '支付请求失败: ' + error, icon: 'none' });
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -243,7 +243,7 @@
|
|||||||
}, { WT: token });
|
}, { WT: token });
|
||||||
|
|
||||||
if (res.code !== 200) {
|
if (res.code !== 200) {
|
||||||
uni.showToast({ title: res.msg, icon: 'none' });
|
uni.showToast({ title: res.message, icon: 'none' });
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('支付请求异常', error);
|
console.error('支付请求异常', error);
|
||||||
uni.showToast({ title: '支付请求失败', icon: 'none' });
|
uni.showToast({ title: '支付请求失败: ' + error, icon: 'none' });
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -219,7 +219,7 @@
|
|||||||
const res = await this.$u.post(url, params, { WT: token });
|
const res = await this.$u.post(url, params, { WT: token });
|
||||||
|
|
||||||
if (res.code !== 200) {
|
if (res.code !== 200) {
|
||||||
uni.showToast({ title: res.msg, icon: 'none' });
|
uni.showToast({ title: res.message, icon: 'none' });
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -247,7 +247,7 @@
|
|||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('支付请求异常', error);
|
console.error('支付请求异常', error);
|
||||||
uni.showToast({ title: '支付请求失败', icon: 'none' });
|
uni.showToast({ title: '支付请求失败: ' + error, icon: 'none' });
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user