[FIX]【微信人脸识别】回滚代码

This commit is contained in:
yuweiqi
2020-06-16 10:19:55 +08:00
parent a54ed09b25
commit 4d44c93d09

View File

@@ -140,7 +140,7 @@
</div> </div>
</div> </div>
<p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p> <p class="start" v-if="airSign != '1'">点击开始分享进行相关操作</p>
<div v-if="!isInvalid && weixinFace" class="flex justify-content-a mt20"> <div v-if="!isInvalid" class="flex justify-content-a mt20">
<van-button <van-button
type="danger" type="danger"
size="normal" size="normal"
@@ -273,7 +273,6 @@ export default {
insured: 0, insured: 0,
weixin: 0 weixin: 0
}, },
weixinFace: false, //微信端人脸识别按钮是否可用
customerMobile: '', customerMobile: '',
//保险产品名称 //保险产品名称
riskName: '', riskName: '',
@@ -373,12 +372,12 @@ export default {
if (this.$route.query.airSign) { if (this.$route.query.airSign) {
sessionStorage.setItem('airSign', this.$route.query.airSign) sessionStorage.setItem('airSign', this.$route.query.airSign)
} }
if (this.$route.query.faceAuthCountWeixin == undefined) { // window.localStorage.setItem('saleInsuredInfo', this.$route.query.saleInsuredInfo)
localStorage['faceAuthWeXin-requestId'] = '' // window.localStorage.setItem('saleInsuredPersonInfo', this.$route.query.saleInsuredPersonInfo)
localStorage['faceAuthWeXin-bizToken'] = ''
}
window.localStorage.setItem('token', this.$route.query.token) window.localStorage.setItem('token', this.$route.query.token)
window.localStorage.setItem('orderNo', this.$route.query.orderNo) window.localStorage.setItem('orderNo', this.$route.query.orderNo)
// window.localStorage.setItem('relationToAppnt', this.$route.query.relationToAppnt)
// window.localStorage.setItem('productCode', this.$route.query.productCode)
if (this.$route.query.changeCard == '0') { if (this.$route.query.changeCard == '0') {
localStorage.setItem('changeCard', true) localStorage.setItem('changeCard', true)
} else { } else {
@@ -405,6 +404,7 @@ export default {
this.relationToAppnt = this.$route.query.relationToAppnt this.relationToAppnt = this.$route.query.relationToAppnt
this.isShow = false this.isShow = false
await this.getOrderDetail() await this.getOrderDetail()
console.log('初始化this.appntSign ==', this.appntSign) console.log('初始化this.appntSign ==', this.appntSign)
if ( if (
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') || (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
@@ -419,7 +419,7 @@ export default {
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' }) Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
} }
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得认证相关参数 // localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得认证相关参数
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && !this.$route.query.faceAuthCountWeixin) { if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken'])) this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
} }
@@ -429,12 +429,18 @@ export default {
} else { } else {
console.log('进来投保人') console.log('进来投保人')
this.tipsName = JSON.parse(localStorage.saleInsuredInfo).name this.tipsName = JSON.parse(localStorage.saleInsuredInfo).name
// console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo)
// console.log('localStorage.saleInsuredInfo.name', localStorage.saleInsuredInfo.name)
// console.log('this.tipName', this.tipsName)
} }
weixinShare({ weixinShare({
title: '国富人寿计划书', title: '国富人寿计划书',
imgUrl: 'http://47.96.143.111:8000/app/images/logo.png', imgUrl: 'http://47.96.143.111:8000/app/images/logo.png',
desc: '国富为您量身定制的保险产品,请查收' desc: '国富为您量身定制的保险产品,请查收'
}) })
// let params = {
// orderNo: ''
// }
this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt) this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured) this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured)
this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin) this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin)
@@ -448,6 +454,7 @@ export default {
}, },
// 获取消息和阅读状态 // 获取消息和阅读状态
realPeopelCheck() { realPeopelCheck() {
let that = this
this.$toast.loading({ this.$toast.loading({
// 持续展示 toast // 持续展示 toast
duration: 0, duration: 0,
@@ -1084,7 +1091,6 @@ export default {
} }
}) })
} }
that.weixinFace = true
resolve('success') resolve('success')
} }
}) })
@@ -1287,8 +1293,8 @@ export default {
// UploadImageFile: UploadImageFile, // UploadImageFile: UploadImageFile,
[CollapseItem.name]: CollapseItem, [CollapseItem.name]: CollapseItem,
[Dialog.name]: Dialog, [Dialog.name]: Dialog,
[IndexBar.name]: IndexBar, [Field.name]: Field,
[Field.name]: Field [IndexBar.name]: IndexBar
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = '' document.body.style.backgroundColor = ''