mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 12:16:44 +08:00
chongxinzhifu
This commit is contained in:
@@ -79,11 +79,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Cell, CellGroup, RadioGroup, Radio } from 'vant'
|
import { Cell, CellGroup, RadioGroup, Radio } from 'vant'
|
||||||
import { acceptInsurance } from '@/api/ebiz/sale/sale'
|
import { acceptInsurance } from '@/api/ebiz/sale/sale'
|
||||||
import { underWrite } from '@/api/ebiz/sale/sale'
|
import { underWrite,getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -135,7 +134,25 @@ export default {
|
|||||||
tradeState: '' // 状态
|
tradeState: '' // 状态
|
||||||
},
|
},
|
||||||
gotPayParam: false, // 是否已正确获取支付参数,
|
gotPayParam: false, // 是否已正确获取支付参数,
|
||||||
payStatus: '' // 接口返回的支付状态
|
payStatus: '', // 接口返回的支付状态
|
||||||
|
typebank:{
|
||||||
|
'ICBC':'102',
|
||||||
|
'ABC':'103',
|
||||||
|
'BOC':'104',
|
||||||
|
'CCB':'105',
|
||||||
|
'BOCOM':'301',
|
||||||
|
'CEB':'303',
|
||||||
|
'CMBC':'305',
|
||||||
|
'CGB':'306',
|
||||||
|
'PAB':'783',
|
||||||
|
'CMB':'308',
|
||||||
|
'CIB':'309',
|
||||||
|
'SDPB':'310',
|
||||||
|
'SHB':'7006',
|
||||||
|
'CITIC':'302',
|
||||||
|
'CIB':'309'
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -225,23 +242,39 @@ export default {
|
|||||||
},
|
},
|
||||||
// 再次支付
|
// 再次支付
|
||||||
twounderWrite() {
|
twounderWrite() {
|
||||||
|
let _this = this
|
||||||
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
|
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
|
||||||
if (res.code == '0') {
|
console.log(res)
|
||||||
|
if (res.result == '0') {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
|
console.log(res.orderDTO.orderAccountDTO.bankCode)
|
||||||
let underWriteData = {
|
let underWriteData = {
|
||||||
accountName: res.content.orderDTO.orderAccountDTO.accountName,
|
accountName: res.orderDTO.orderAccountDTO.accountName,
|
||||||
appntName: res.content.orderDTO.appntDTO.name,
|
appntName: res.orderDTO.appntDTO.name,
|
||||||
bankCode: res.content.orderDTO.orderAccountDTO.bankCode,
|
bankCode: _this.typebank[res.orderDTO.orderAccountDTO.bankCode],
|
||||||
bankName: res.content.orderDTO.orderAccountDTO.bankName,
|
bankName: res.orderDTO.orderAccountDTO.bankName,
|
||||||
cardBookCode: res.content.orderDTO.orderAccountDTO.cardBookCode,
|
cardBookCode: res.orderDTO.orderAccountDTO.cardBookCode,
|
||||||
orderAmount: res.content.orderDTO.orderInfoDTO.orderAmount,
|
orderAmount: res.orderDTO.orderInfoDTO.orderAmount,
|
||||||
orderNo: res.content.orderDTO.orderAccountDTO.orderNo,
|
orderNo: res.orderDTO.orderAccountDTO.orderNo,
|
||||||
result: '',
|
result: '',
|
||||||
resultMessage: '交易处理成功',
|
resultMessage: '交易处理成功',
|
||||||
uwResult: '02'
|
uwResult: '02'
|
||||||
}
|
}
|
||||||
window.localStorage.setItem('underWriteData', JSON.stringify(underWriteData))
|
window.localStorage.setItem('underWriteData', JSON.stringify(underWriteData))
|
||||||
} else {
|
} else {
|
||||||
|
let underWriteData = {
|
||||||
|
accountName:'',
|
||||||
|
appntName:'',
|
||||||
|
bankCode:'',
|
||||||
|
bankName: '',
|
||||||
|
cardBookCode:'',
|
||||||
|
orderAmount: '',
|
||||||
|
orderNo: '',
|
||||||
|
result: '',
|
||||||
|
resultMessage: '交易处理失败',
|
||||||
|
uwResult: '00'
|
||||||
|
}
|
||||||
|
window.localStorage.setItem('underWriteData', JSON.stringify(underWriteData))
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user