chongxinzhifu

This commit is contained in:
xiaokun
2019-10-20 15:37:51 +08:00
parent 17e414546b
commit 24b7453c62
2 changed files with 44 additions and 11 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@@ -79,11 +79,10 @@
</div>
</div>
</template>
<script>
import { Cell, CellGroup, RadioGroup, Radio } from 'vant'
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'
export default {
data() {
@@ -135,7 +134,25 @@ export default {
tradeState: '' // 状态
},
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() {
@@ -225,23 +242,39 @@ export default {
},
// 再次支付
twounderWrite() {
let _this = this
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
if (res.code == '0') {
console.log(res)
if (res.result == '0') {
this.$toast.clear()
console.log(res.orderDTO.orderAccountDTO.bankCode)
let underWriteData = {
accountName: res.content.orderDTO.orderAccountDTO.accountName,
appntName: res.content.orderDTO.appntDTO.name,
bankCode: res.content.orderDTO.orderAccountDTO.bankCode,
bankName: res.content.orderDTO.orderAccountDTO.bankName,
cardBookCode: res.content.orderDTO.orderAccountDTO.cardBookCode,
orderAmount: res.content.orderDTO.orderInfoDTO.orderAmount,
orderNo: res.content.orderDTO.orderAccountDTO.orderNo,
accountName: res.orderDTO.orderAccountDTO.accountName,
appntName: res.orderDTO.appntDTO.name,
bankCode: _this.typebank[res.orderDTO.orderAccountDTO.bankCode],
bankName: res.orderDTO.orderAccountDTO.bankName,
cardBookCode: res.orderDTO.orderAccountDTO.cardBookCode,
orderAmount: res.orderDTO.orderInfoDTO.orderAmount,
orderNo: res.orderDTO.orderAccountDTO.orderNo,
result: '',
resultMessage: '交易处理成功',
uwResult: '02'
}
window.localStorage.setItem('underWriteData', JSON.stringify(underWriteData))
} 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)
}
})