mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 20:36:43 +08:00
Merge branch 'feature/GFRS-1036【待确定】微信支付-卡单微信支付' into dev
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
<!-- 银行卡支付结束 -->
|
||||
<van-cell-group>
|
||||
<van-cell-group v-if="radio != '3'">
|
||||
<van-field
|
||||
v-model="underWriteData.name"
|
||||
label="姓名"
|
||||
@@ -601,63 +601,87 @@ export default {
|
||||
},
|
||||
// 点击支付
|
||||
async payMent(flag) {
|
||||
let data = {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: window.localStorage.getItem('orderNo')
|
||||
},
|
||||
orderAccountDTO: {
|
||||
accountType: '0',
|
||||
accountName: this.underWriteData.name,
|
||||
bankName: this.bankListName,
|
||||
bankCode: this.underWriteData.bankName,
|
||||
cardBookType: '1',
|
||||
cardBookCode: this.underWriteData.bankCode,
|
||||
isAutoPay: '0',
|
||||
isAutoRenewal: '1'
|
||||
if(this.radio == ''){
|
||||
let data = {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: window.localStorage.getItem('orderNo')
|
||||
},
|
||||
orderAccountDTO: {
|
||||
accountType: '0',
|
||||
accountName: this.underWriteData.name,
|
||||
bankName: this.bankListName,
|
||||
bankCode: this.underWriteData.bankName,
|
||||
cardBookType: '1',
|
||||
cardBookCode: this.underWriteData.bankCode,
|
||||
isAutoPay: '0',
|
||||
isAutoRenewal: '1'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
/*
|
||||
支付之前要先保存银行账户信息
|
||||
*/
|
||||
let res = await saveOrUpdateAccount(data)
|
||||
// .then(res => {
|
||||
console.log('res', res)
|
||||
this.$toast.clear()
|
||||
if (res.result == '0') {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
|
||||
/*
|
||||
支付之前要先保存银行账户信息
|
||||
*/
|
||||
let res = await saveOrUpdateAccount(data)
|
||||
// .then(res => {
|
||||
console.log('res', res)
|
||||
this.$toast.clear()
|
||||
if (res.result == '0') {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
|
||||
if (!flag) {
|
||||
let rs = await this.underWrite()
|
||||
|
||||
if (rs.result != '0') {
|
||||
this.$toast.clear()
|
||||
return this.$toast(rs.resultMessage)
|
||||
}
|
||||
|
||||
if (rs.uwResult != '02') {
|
||||
return this.$toast(rs.message)
|
||||
}
|
||||
}
|
||||
|
||||
this.acceptInsurance()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
this.isLoading = false
|
||||
}
|
||||
// })
|
||||
}else{
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
|
||||
if (!flag) {
|
||||
let rs = await this.underWrite()
|
||||
|
||||
|
||||
if (rs.result != '0') {
|
||||
this.$toast.clear()
|
||||
return this.$toast(rs.resultMessage)
|
||||
}
|
||||
|
||||
|
||||
if (rs.uwResult != '02') {
|
||||
return this.$toast(rs.message)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.acceptInsurance()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
this.isLoading = false
|
||||
}
|
||||
// })
|
||||
},
|
||||
// 选择微信支付校验身份证类型
|
||||
vxVerify() {
|
||||
@@ -685,13 +709,7 @@ export default {
|
||||
localStorage.bankCode = this.underWriteData.bankCode
|
||||
localStorage.bankListName = this.bankListName
|
||||
console.log(this.underWriteData.bankName, this.underWriteData.bankCode, this.bankListName, this.underWriteData.name)
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: `国富人寿卡单投保(${shareName})付款`,
|
||||
content: '付款进行',
|
||||
url:
|
||||
location.origin +
|
||||
let url = location.origin +
|
||||
'/#/cardList/pay?orderNo=' +
|
||||
localStorage.orderNo +
|
||||
'&token=' +
|
||||
@@ -703,7 +721,14 @@ export default {
|
||||
'&bankCode=' +
|
||||
this.underWriteData.bankCode +
|
||||
'&bankListName=' +
|
||||
this.bankListName,
|
||||
this.bankListName
|
||||
console.log(url);
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: `国富人寿卡单投保(${shareName})付款`,
|
||||
content: '付款进行',
|
||||
url: url,
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user