Commit c3005c5f authored by 李俊赕's avatar 李俊赕

支付提示优化

parent da8b03bd
...@@ -153,7 +153,6 @@ ...@@ -153,7 +153,6 @@
// wx_lite // wx_lite
// appid:wxd1d6eede324b0465 // appid:wxd1d6eede324b0465
const code = await this.getCode() const code = await this.getCode()
console.log(code,'code')
const params = { const params = {
oid: this.settledInfo.record.id, oid: this.settledInfo.record.id,
type: 'wx_lite', type: 'wx_lite',
...@@ -163,9 +162,17 @@ ...@@ -163,9 +162,17 @@
} }
// const codeApiUrl = globalUrl.codeUrl.apiUrl; // const codeApiUrl = globalUrl.codeUrl.apiUrl;
const response = await this.$u.api.paySettleDeposit(params) const response = await this.$u.api.paySettleDeposit(params)
console.log(response,'response')
if (response.status !==200) {
uni.showToast({
title: response.message,
icon:'none'
})
return
}
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '支付成功', content: '支付结果',
confirmText:'成功', confirmText:'成功',
cancelText:'失败', cancelText:'失败',
success: function (res) { success: function (res) {
...@@ -177,13 +184,6 @@ ...@@ -177,13 +184,6 @@
} }
} }
}); });
if (!response.status) {
uni.showToast({
title: '支付调用失败,请稍后重试',
icon:'none'
})
return
}
const { const {
charge, charge,
oid oid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment