更新
This commit is contained in:
@@ -324,33 +324,26 @@
|
||||
uni.requestPayment({
|
||||
provider: 'wxpay',
|
||||
...res.data.baseWxOrderVo,
|
||||
success: (res1) => {
|
||||
console.log(res)
|
||||
if (res.code == 20000) {
|
||||
success: (_res) => {
|
||||
uni.showToast({
|
||||
title: res.msg
|
||||
})
|
||||
|
||||
oilPayApi.wxPayIntegral({
|
||||
appId: 'wx2f203fde39b883bc',
|
||||
orderId: this.order.orderSerialNumber
|
||||
})
|
||||
uni.redirectTo({
|
||||
url: '/BagStation/pages/makeOrder/payResult?status=success&&payMethod=' +
|
||||
this.payMethod,
|
||||
fail: (err) => {
|
||||
// console.log(err)
|
||||
}
|
||||
this.payMethod
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
fail: function(err) {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
@@ -10,4 +10,12 @@ export default {
|
||||
data: data
|
||||
})
|
||||
},
|
||||
// 积分处理
|
||||
wxPayIntegral(data) {
|
||||
return request({
|
||||
url: '/oil-pay/yiBaoPay/wxPayIntegral',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user