mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 00:12:53 +08:00
【fix】 修改核保接口的调用位置
This commit is contained in:
@@ -502,35 +502,35 @@ export default {
|
||||
})
|
||||
},
|
||||
// 获取支付信息
|
||||
async underWrite() {
|
||||
let data = {
|
||||
platform: 'app',
|
||||
type: '1',
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: window.localStorage.getItem('orderNo')
|
||||
}
|
||||
}
|
||||
}
|
||||
return underWrite(data)
|
||||
// .then(res => {
|
||||
// console.log(res);
|
||||
// if (res.result == '0') {
|
||||
// this.$toast.clear()
|
||||
// if (res.uwResult == '33') {
|
||||
// window.localStorage.setItem('uwResult', res.uwResult)
|
||||
// window.localStorage.setItem('resultMessage', res.message)
|
||||
// } else {
|
||||
// window.localStorage.setItem('uwResult', res.uwResult)
|
||||
// }
|
||||
// this.underWriteData = res
|
||||
// return true
|
||||
// } else {
|
||||
// return false
|
||||
// this.$toast(res.resultMessage)
|
||||
// }
|
||||
// })
|
||||
},
|
||||
// async underWrite() {
|
||||
// let data = {
|
||||
// platform: 'app',
|
||||
// type: '1',
|
||||
// orderDTO: {
|
||||
// orderInfoDTO: {
|
||||
// orderNo: window.localStorage.getItem('orderNo')
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return underWrite(data)
|
||||
// // .then(res => {
|
||||
// // console.log(res);
|
||||
// // if (res.result == '0') {
|
||||
// // this.$toast.clear()
|
||||
// // if (res.uwResult == '33') {
|
||||
// // window.localStorage.setItem('uwResult', res.uwResult)
|
||||
// // window.localStorage.setItem('resultMessage', res.message)
|
||||
// // } else {
|
||||
// // window.localStorage.setItem('uwResult', res.uwResult)
|
||||
// // }
|
||||
// // this.underWriteData = res
|
||||
// // return true
|
||||
// // } else {
|
||||
// // return false
|
||||
// // this.$toast(res.resultMessage)
|
||||
// // }
|
||||
// // })
|
||||
// },
|
||||
async pay() {
|
||||
let valid = await this.$validator.validate()
|
||||
console.log(valid)
|
||||
@@ -655,18 +655,18 @@ export default {
|
||||
message: '加载中……'
|
||||
})
|
||||
|
||||
if (!flag) {
|
||||
let rs = await this.underWrite()
|
||||
// if (!flag) {
|
||||
// let rs = await this.underWrite()
|
||||
|
||||
if (rs.result != '0') {
|
||||
this.$toast.clear()
|
||||
return this.$toast(rs.resultMessage)
|
||||
}
|
||||
// if (rs.result != '0') {
|
||||
// this.$toast.clear()
|
||||
// return this.$toast(rs.resultMessage)
|
||||
// }
|
||||
|
||||
if (rs.uwResult != '02') {
|
||||
return this.$toast(rs.message)
|
||||
}
|
||||
}
|
||||
// if (rs.uwResult != '02') {
|
||||
// return this.$toast(rs.message)
|
||||
// }
|
||||
// }
|
||||
|
||||
this.acceptInsurance()
|
||||
} else {
|
||||
@@ -682,18 +682,18 @@ export default {
|
||||
message: '加载中……'
|
||||
})
|
||||
|
||||
if (!flag) {
|
||||
let rs = await this.underWrite()
|
||||
// if (!flag) {
|
||||
// let rs = await this.underWrite()
|
||||
|
||||
if (rs.result != '0') {
|
||||
this.$toast.clear()
|
||||
return this.$toast(rs.resultMessage)
|
||||
}
|
||||
// if (rs.result != '0') {
|
||||
// this.$toast.clear()
|
||||
// return this.$toast(rs.resultMessage)
|
||||
// }
|
||||
|
||||
if (rs.uwResult != '02') {
|
||||
return this.$toast(rs.message)
|
||||
}
|
||||
}
|
||||
// if (rs.uwResult != '02') {
|
||||
// return this.$toast(rs.message)
|
||||
// }
|
||||
// }
|
||||
|
||||
this.acceptInsurance()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user