mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 06:26:44 +08:00
Merge branch 'hotfix/签名bug修改' into release/1012
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import request from '@/assets/js/utils/request'
|
import request from '@/assets/js/utils/request'
|
||||||
|
import request1 from '@/assets/js/utils/request1'
|
||||||
import getUrl from '@/assets/js/utils/get-url'
|
import getUrl from '@/assets/js/utils/get-url'
|
||||||
// 保费计算
|
// 保费计算
|
||||||
export function saveOrUpdateOrderInfo(data) {
|
export function saveOrUpdateOrderInfo(data) {
|
||||||
@@ -59,7 +60,13 @@ export function getOrderDetail(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getOrderDetail1(data) {
|
||||||
|
return request1({
|
||||||
|
url: getUrl('/sale/order/orderDetail', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
export function getAuthCode(data) {
|
export function getAuthCode(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ let productStore = [
|
|||||||
'/customer/shop/getShopList', //获取商城列表/详情
|
'/customer/shop/getShopList', //获取商城列表/详情
|
||||||
'/customer/shop/getShareList' //查询分享轨迹(转发记录)
|
'/customer/shop/getShareList' //查询分享轨迹(转发记录)
|
||||||
]
|
]
|
||||||
|
|
||||||
// 卡单
|
// 卡单
|
||||||
let cardList = []
|
let cardList = []
|
||||||
|
|
||||||
@@ -131,6 +132,7 @@ service.interceptors.request.use(
|
|||||||
service.interceptors.response.use(
|
service.interceptors.response.use(
|
||||||
response => {
|
response => {
|
||||||
const res = response.data
|
const res = response.data
|
||||||
|
console.log(res, 'res')
|
||||||
Toast.clear()
|
Toast.clear()
|
||||||
if (res.code != 0) {
|
if (res.code != 0) {
|
||||||
if (res.code == 10001 || res.code == 10002) {
|
if (res.code == 10001 || res.code == 10002) {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
||||||
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
|
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||||
|
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
// import axios from 'axios'
|
// import axios from 'axios'
|
||||||
export default {
|
export default {
|
||||||
@@ -210,7 +211,17 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击签名
|
// 点击签名
|
||||||
sign(val) {
|
sign(val) {
|
||||||
console.log('签名参数',this.saleInsuredInfo.idNo,this.saleInsuredInfo.name,this.saleInsuredInfo.idType,'keyword'+':'+ '签字日期','pageNo'+':'+ '1','index'+':'+ '1','offset'+':'+ '-150','pos'+':'+ '3')
|
console.log(
|
||||||
|
'签名参数',
|
||||||
|
this.saleInsuredInfo.idNo,
|
||||||
|
this.saleInsuredInfo.name,
|
||||||
|
this.saleInsuredInfo.idType,
|
||||||
|
'keyword' + ':' + '签字日期',
|
||||||
|
'pageNo' + ':' + '1',
|
||||||
|
'index' + ':' + '1',
|
||||||
|
'offset' + ':' + '-150',
|
||||||
|
'pos' + ':' + '3'
|
||||||
|
)
|
||||||
let that = this
|
let that = this
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ export default {
|
|||||||
isShow: true,
|
isShow: true,
|
||||||
// 调微信人脸的token
|
// 调微信人脸的token
|
||||||
tokenInweixin: '',
|
tokenInweixin: '',
|
||||||
// 投保人被保险人是否同一个人
|
// 投保人被保险人是否同一个人,1代表是同一个人
|
||||||
relationToAppnt: '',
|
relationToAppnt: '',
|
||||||
// 微信分享校验值
|
// 微信分享校验值
|
||||||
signInvalid: '',
|
signInvalid: '',
|
||||||
@@ -569,6 +569,8 @@ export default {
|
|||||||
start_ocr(val) {
|
start_ocr(val) {
|
||||||
// val 0投保人 1被保险人 2本人
|
// val 0投保人 1被保险人 2本人
|
||||||
/////
|
/////
|
||||||
|
console.log(this.isWeixin, 'this.isWeixin')
|
||||||
|
console.log(val, 'val')
|
||||||
let that = this
|
let that = this
|
||||||
if (this.isWeixin) {
|
if (this.isWeixin) {
|
||||||
window.localStorage.setItem('sign-val', val)
|
window.localStorage.setItem('sign-val', val)
|
||||||
@@ -621,6 +623,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
||||||
// 原人脸识别
|
// 原人脸识别
|
||||||
|
console.log(this.faceAuthCount, 'faceAuthCount')
|
||||||
|
console.log(this.smsAuthNum, 'smsAuthNum')
|
||||||
|
console.log('this.faceAuthCount.appnt < this.smsAuthNum', this.faceAuthCount.appnt < this.smsAuthNum)
|
||||||
EWebBridge.webCallAppInJs('face_auth', {
|
EWebBridge.webCallAppInJs('face_auth', {
|
||||||
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
||||||
number: that.saleInsuredInfo.idNo, //身份证号码
|
number: that.saleInsuredInfo.idNo, //身份证号码
|
||||||
@@ -729,6 +734,7 @@ export default {
|
|||||||
let that = this
|
let that = this
|
||||||
let path = ''
|
let path = ''
|
||||||
if (that.insuredSign[0].documentStatus == 0) {
|
if (that.insuredSign[0].documentStatus == 0) {
|
||||||
|
debugger
|
||||||
path = 'insuranceInformation'
|
path = 'insuranceInformation'
|
||||||
} else {
|
} else {
|
||||||
path = 'SignatureOfElectronic'
|
path = 'SignatureOfElectronic'
|
||||||
@@ -1043,13 +1049,26 @@ export default {
|
|||||||
// 获取投保人信息
|
// 获取投保人信息
|
||||||
this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
||||||
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保险人关系赋值给页面
|
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保险人关系赋值给页面
|
||||||
this.riskName = res.orderDTO.insuredDTOs[0].riskDTOLst[0].riskName
|
|
||||||
localStorage.riskName = this.riskName
|
|
||||||
that.recmd = res.orderDTO.recmdDTO
|
that.recmd = res.orderDTO.recmdDTO
|
||||||
that.orderInfo = res.orderDTO.orderInfoDTO
|
that.orderInfo = res.orderDTO.orderInfoDTO
|
||||||
that.insured = res.orderDTO.insuredDTOs
|
that.insured = res.orderDTO.insuredDTOs
|
||||||
//存code区分万能型产品
|
//存code区分万能型产品
|
||||||
localStorage.setItem('productCode', that.insured[0].riskDTOLst[0].mainRiskCode)
|
let productCode, riskName
|
||||||
|
console.log('isDoubleMailRisk', that.orderInfo.isDoubleMailRisk)
|
||||||
|
let isDoubleMailRisk = that.orderInfo.isDoubleMailRisk
|
||||||
|
if (isDoubleMailRisk == '1') {
|
||||||
|
productCode = 'GFRS_M0017'
|
||||||
|
riskName = res.orderDTO.insuredDTOs[0].riskDTOLst[1].riskName
|
||||||
|
} else {
|
||||||
|
productCode = that.insured[0].riskDTOLst[0].mainRiskCode
|
||||||
|
riskName = res.orderDTO.insuredDTOs[0].riskDTOLst[0].riskName
|
||||||
|
}
|
||||||
|
localStorage.setItem('productCode', productCode)
|
||||||
|
this.riskName = riskName
|
||||||
|
localStorage.setItem('riskName', riskName)
|
||||||
|
|
||||||
|
console.log('riskName', that.orderInfo.isDoubleMailRisk)
|
||||||
// nsuredDTOs[0].riskDTOLst
|
// nsuredDTOs[0].riskDTOLst
|
||||||
if (this.relationToAppnt != '1') {
|
if (this.relationToAppnt != '1') {
|
||||||
this.activeNames.push(res.orderDTO.insuredDTOs.length + 1)
|
this.activeNames.push(res.orderDTO.insuredDTOs.length + 1)
|
||||||
|
|||||||
@@ -23,7 +23,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
||||||
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
|
import { saveInformation, getOrderDetail1 } from '@/api/ebiz/sale/sale'
|
||||||
|
import { openLoading, closeLoading } from '@/assets/js/utils/toastLoading.js'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
// import axios from 'axios'
|
// import axios from 'axios'
|
||||||
export default {
|
export default {
|
||||||
@@ -73,8 +74,12 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this
|
let that = this
|
||||||
that.timeOut()
|
|
||||||
document.body.style.backgroundColor = '#fff'
|
document.body.style.backgroundColor = '#fff'
|
||||||
|
setTimeout(function() {
|
||||||
|
closeLoading()
|
||||||
|
that.timeOut()
|
||||||
|
}, 5000)
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
let that = this
|
let that = this
|
||||||
@@ -134,11 +139,18 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
console.log('````````````````````````')
|
console.log('````````````````````````')
|
||||||
console.log('第一次进入电子保单')
|
console.log('第一次进入电子保单')
|
||||||
this.timeOut()
|
setTimeout(function() {
|
||||||
|
closeLoading()
|
||||||
|
this.timeOut()
|
||||||
|
}, 5000)
|
||||||
|
|
||||||
this.getOrderDetail()
|
this.getOrderDetail()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.timeOut()
|
setTimeout(function() {
|
||||||
|
closeLoading()
|
||||||
|
this.timeOut()
|
||||||
|
}, 5000)
|
||||||
if (this.detailJump != '1') {
|
if (this.detailJump != '1') {
|
||||||
this.getOrderDetail()
|
this.getOrderDetail()
|
||||||
}
|
}
|
||||||
@@ -164,12 +176,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取签名状态
|
// 获取签名状态
|
||||||
getOrderDetail() {
|
getOrderDetail() {
|
||||||
|
openLoading()
|
||||||
let that = this
|
let that = this
|
||||||
let data = {
|
let data = {
|
||||||
orderNo: window.localStorage.getItem('orderNo')
|
orderNo: window.localStorage.getItem('orderNo')
|
||||||
}
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getOrderDetail(data).then(res => {
|
getOrderDetail1(data).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
res.orderDTO.ebizSignDTOS.map(item => {
|
res.orderDTO.ebizSignDTOS.map(item => {
|
||||||
if (item.signType == '0' || item.signType == '2') {
|
if (item.signType == '0' || item.signType == '2') {
|
||||||
@@ -538,5 +551,6 @@ img {
|
|||||||
.iframe {
|
.iframe {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 70vh;
|
height: 70vh;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user