diff --git a/src/views/ebiz/sale/PayMent.vue b/src/views/ebiz/sale/PayMent.vue
index edd19efb4..2bef660ba 100644
--- a/src/views/ebiz/sale/PayMent.vue
+++ b/src/views/ebiz/sale/PayMent.vue
@@ -32,6 +32,43 @@
支付
+
@@ -47,7 +84,45 @@ export default {
src: this.$assetsUrl + 'images/cardImg.png',
// 核保数据
underWriteData: {},
- srcImg: ''
+ srcImg: '',
+ payParam: {
+ TransSource: '', // 对接系统
+ TransDate: '', // 请求日期
+ TransTime: '', // 请求时间
+ TransSeq: '', // 时间戳
+ Version: '', // 版本号
+ RdSeq: '', // 指令流水号
+ PaymentCode: '', // 业务唯一号
+ PayType: '', // 交易类型
+ SettleMode: '', // 支付方式
+ ApplyEntity: '', // 业务发生机构
+ Cur: '', // 币种
+ OurAmount: '', // 金额
+ FixUser: '', // 实名认证标识
+ Insurer: '', // 对接系统
+ CertType: '', // 证件类型
+ CertNum: '', // 证件号码
+ OppBank: '', // 交易方银行
+ OppAct: '', // 交易方账号
+ OppActName: '', // 交易方名称
+ CellPhone: '', // 手机号码
+ ExpireDate: '', // 订单失效时间
+ Purpose: '', // 用途
+ Memo: '', // 备注
+ Description: '', // 描述
+ SourceNotecode: '', // 外部系统业务单据号
+ ReturnURL: '', // 页面跳转同步通知地址
+ NotifyURL: '', // 后台通知地址
+ SaleChannel: '', // 销售渠道
+ ReqReserved1: '', // 备用字段1
+ ReqReserved2: '', // 备用字段2
+ ReqReserved3: '', // 备用字段3
+ ReqReserved4: '', // 备用字段4
+ ReqReserved5: '', // 备用字段5
+ S3Sign: '', // 验签信息
+ tradeState: '' // 状态
+ },
+ gotPayParam: false // 是否已正确获取支付参数
}
},
mounted() {
@@ -56,10 +131,37 @@ export default {
that.underWriteData = JSON.parse(window.localStorage.getItem('underWriteData'))
this.srcImg = this.$assetsUrl + `images/bank/bank_${JSON.parse(window.localStorage.getItem('underWriteData')).bankCode}.png`
console.log(this.srcImg)
+ // 取支付参数
+ // this.getPayParam()
},
methods: {
+ // 取支付参数
+ async getPayParam() {
+ let data = {
+ orderNo: window.localStorage.getItem('orderNo')
+ }
+ let result = await data // todo 接口
+ if (result.code == '0') {
+ let keyMap = {}
+ for (let key in this.payParam) {
+ keyMap[key.toLowerCase()] = key
+ }
+ let paramKey
+ for (let rKey in result) {
+ if (keyMap.hasOwnProperty(rKey.toLowerCase())) {
+ paramKey = keyMap[rKey.toLowerCase()]
+ this.payParam[paramKey] = result[rKey]
+ }
+ }
+ this.gotPayParam = true
+ this.$forceUpdate()
+ }
+ },
// 点击支付
payMent() {
+ // if (this.gotPayParam) {
+ // this.$refs.payForm.submit()
+ // }
let that = this
let data = {
orderNo: window.localStorage.getItem('orderNo')
diff --git a/src/views/ebiz/sale/PayResult.vue b/src/views/ebiz/sale/PayResult.vue
index 66e5bd751..5c9a21bad 100644
--- a/src/views/ebiz/sale/PayResult.vue
+++ b/src/views/ebiz/sale/PayResult.vue
@@ -92,6 +92,8 @@ export default {
}
// console.log(that.resultMessage)
+
+ // todo...
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''