微信支付页面无法打开,如果是微信直接调支付

This commit is contained in:
liyuetong
2021-11-05 15:05:55 +08:00
parent 95e8858db7
commit 4b2f61f126

View File

@@ -197,10 +197,23 @@ export default {
let orderNo = this.$route.query.orderNo
localStorage.token = token
localStorage.orderNo = orderNo
this.payMent()
// this.twounderWrite().then
this.payMentWx(orderNo) //直接调支付
}
},
methods: {
async payMentWx(orderNo){
const res = await payFlag({ orderNo: orderNo })
console.dir(res)
if (res.content.payFlag == 'Y') {
this.getAcceptInsurance()
} else {
this.$toast(res.resultMessage)
setTimeout(() => {
this.$router.push({ path: '/sale/payResultFail' })
}, 2000)
}
},
getAcceptInsurance() {
let that = this
let data = {
@@ -326,6 +339,7 @@ export default {
}
let mobile = res.orderDTO.appntDTO.mobile
this.encyCustomerMobile = mobile.slice(0, 3) + '****' + mobile.slice(-4)
console.log(this.encyCustomerMobil,'手机号')
} else {
let underWriteData = {
accountName: '',