mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 20:16:44 +08:00
微信支付页面无法打开,如果是微信直接调支付
This commit is contained in:
@@ -197,10 +197,23 @@ export default {
|
|||||||
let orderNo = this.$route.query.orderNo
|
let orderNo = this.$route.query.orderNo
|
||||||
localStorage.token = token
|
localStorage.token = token
|
||||||
localStorage.orderNo = orderNo
|
localStorage.orderNo = orderNo
|
||||||
this.payMent()
|
// this.twounderWrite().then
|
||||||
|
this.payMentWx(orderNo) //直接调支付
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
getAcceptInsurance() {
|
||||||
let that = this
|
let that = this
|
||||||
let data = {
|
let data = {
|
||||||
@@ -326,6 +339,7 @@ export default {
|
|||||||
}
|
}
|
||||||
let mobile = res.orderDTO.appntDTO.mobile
|
let mobile = res.orderDTO.appntDTO.mobile
|
||||||
this.encyCustomerMobile = mobile.slice(0, 3) + '****' + mobile.slice(-4)
|
this.encyCustomerMobile = mobile.slice(0, 3) + '****' + mobile.slice(-4)
|
||||||
|
console.log(this.encyCustomerMobil,'手机号')
|
||||||
} else {
|
} else {
|
||||||
let underWriteData = {
|
let underWriteData = {
|
||||||
accountName: '',
|
accountName: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user