|
|
@@ -128,10 +128,10 @@ export default {
|
|
|
checkOrder(){
|
|
|
let that = this
|
|
|
uni.showLoading({mask:true})
|
|
|
- getDetail({id:this.orderId}).then(res=>{
|
|
|
+ codePayVerify({id:this.orderId}).then(res=>{
|
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
- if(res.data.payStatus == 1){
|
|
|
+ if(res.data && res.data.returnStatus == 'SUCCESS'){
|
|
|
// 手动查询付款成功,清除复查轮询并回调
|
|
|
that.clearPolling()
|
|
|
that.isPaymentProcessing = false
|
|
|
@@ -140,9 +140,14 @@ export default {
|
|
|
that.payFinish()
|
|
|
},900)
|
|
|
}else{
|
|
|
- this.$msg('还没有付款成功')
|
|
|
+ this.$msg(res.msg || '还没有付款成功')
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.$msg(res.msg || '查询失败')
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ uni.hideLoading()
|
|
|
+ this.$msg('网络异常')
|
|
|
})
|
|
|
},
|
|
|
requestCodePay(authCode){
|