Compare commits

...

44 Commits

Author SHA1 Message Date
zhang.lei3
5babd3d029 feature/【20250429】富贵相伴养老年金保险&&富锦养老年金保险加被保人30天年龄校验 2025-04-29 15:57:04 +08:00
zhang.lei3
c2014d9e4b feature/FCRS-918国富人寿富贵相伴养老年金保险-个险渠道 2025-04-17 15:32:21 +08:00
zhang.lei3
a0a9b5637e feature/FCRS-918国富人寿富贵相伴养老年金保险-个险渠道 2025-04-17 15:19:01 +08:00
zhang.lei3
dd11f4b4e0 feature/FCRS-918国富人寿富贵相伴养老年金保险-个险渠道 2025-04-17 14:33:49 +08:00
zhang.weiwei
f1f8c3ddae fix-出单详情按月份查询最后一天调整为31号 2025-04-02 10:43:35 +08:00
zhang.weiwei
71d2d67a2c fix-修复附加险试算问题 2025-03-19 19:06:56 +08:00
zhang.weiwei
0ca75379b1 Merge branch 'feature/【20250301】附加险D款' 2025-03-18 15:53:13 +08:00
zhang.weiwei
83e8130c54 Merge branch 'FCRS-901【前端】国富人寿附加豁免保险费重大疾病保险(D款)-个险渠道' 2025-03-18 15:53:06 +08:00
zhang.lei3
d9dec5980e Merge branch 'FCRS-901【前端】国富人寿附加豁免保险费重大疾病保险(D款)-个险渠道' into feature/【20250301】附加险D款 2025-03-13 16:07:31 +08:00
zhang.weiwei
5a42f90f94 feat-调整A0016附加险的试算规则 2025-03-13 11:36:47 +08:00
zhang.weiwei
8d3f3042a2 feat-调整附加豁免险保险期间和保证责任 2025-03-12 23:33:02 +08:00
zhang.weiwei
7cf378d0a2 feat-豁免险交费期间为主险的交费期间 -1 2025-03-11 22:26:15 +08:00
zhang.weiwei
ae870b8139 Merge branch 'feature/【20250224】密码输入框禁止录屏' 2025-02-28 17:05:49 +08:00
zhang.weiwei
549823d928 Merge branch 'feature/FCRS-844金掌桂投保人脸识别存档需求'
# Conflicts:
#	src/views/ebiz/proposal/ProposalInfo.vue
2025-02-28 17:05:39 +08:00
zhang.lei3
18926ff55e FCRS-901【前端】国富人寿附加豁免保险费重大疾病保险(D款)-个险渠道 2025-02-26 16:14:23 +08:00
zhang.lei3
b8d4083dec FCRS-896关于金掌桂配置两款银保产品的请示-银保节节高E&祥利C---祥利C处理 2025-02-26 13:57:06 +08:00
zhang.weiwei
5d0e78fcde feat-密码输入框新增防截屏处理 2025-02-24 11:34:49 +08:00
zhang.weiwei
c363e600be fix-修复拨打电话未调用原生插件的问题 2025-02-21 12:23:48 +08:00
zhang.weiwei
f67cf5bf19 fix-修复拨打电话未调用原生插件的问题 2025-02-19 23:20:18 +08:00
zhang.weiwei
228e992b99 fix-解决合并冲突问题 2025-02-06 12:17:50 +08:00
zhang.weiwei
6218c413c7 Merge branch 'feature/FCRS-844金掌桂投保人脸识别存档需求__' into feature/FCRS-844金掌桂投保人脸识别存档需求
# Conflicts:
#	src/views/ebiz/claims/SignatureConfirmation.vue
#	src/views/ebiz/insureAgain/SignatureConfirmation.vue
#	src/views/ebiz/sale/SignatureConfirmation.vue
2025-02-06 12:13:17 +08:00
zhang.weiwei
7054c35de0 feat-调用人脸识别插件新增 orderNo 入参 2025-02-06 11:54:29 +08:00
zhang.lei3
45d2a919b7 feature/【20250124】GBC渠道首页弹窗加滚动条 2025-01-24 14:22:56 +08:00
zhang.lei3
c7d5d1b7f5 face_auth给原生传orderNo 2025-01-15 10:23:30 +08:00
xuxingjun
e9ade69acd 入参赋值 2025-01-06 16:03:20 +08:00
xuxingjun
5b7ef08984 入参提示 2025-01-06 14:46:29 +08:00
xuxingjun
a06c9fb575 还原 2025-01-06 14:15:58 +08:00
xuxingjun
11fe456dfd 优化getRecognitionResult接口传参4 2025-01-02 17:48:41 +08:00
xuxingjun
ee0f68a183 优化getRecognitionResult接口传参3 2025-01-02 17:09:48 +08:00
xuxingjun
7089e16029 优化getRecognitionResult接口传参2 2025-01-02 16:11:57 +08:00
xuxingjun
b34f9b08ea 优化getRecognitionResult接口传参 2025-01-02 15:53:57 +08:00
xuxingjun
4fca606f94 去除微信环境判断2 2025-01-02 15:45:46 +08:00
xuxingjun
07f280fc3c 去除微信环境判断 2025-01-02 15:03:33 +08:00
zhang.lei3
16a1ed80ad Merge branch 'feature/FCRS-875国富人寿鑫管家C款终身寿险(万能型)' into origin/release/【20241230】鑫管家C 2024-12-30 09:59:49 +08:00
xuxingjun
2bd46c8c82 getRecognitionResult 接口加个保单号入参 2024-12-24 14:24:55 +08:00
zhang.lei3
67f13e6d79 鑫管家c产品建议书预览不显示保额 2024-12-24 09:48:02 +08:00
zhang.lei3
d8953582e1 Merge remote-tracking branch 'origin/master_20241218' 2024-12-23 17:45:01 +08:00
zhang.lei3
f26ebe6ded Merge remote-tracking branch 'origin/master_new' 2024-12-23 17:44:38 +08:00
xuxingjun
a6685c2360 优化建议书的保费计算 2024-12-19 13:43:21 +08:00
xuxingjun
93d5b9a05f 优化贺报页面时间的展示 2024-12-18 17:25:24 +08:00
xuxingjun
8ed05e2e1a 优化产品关联保单与保费的录入 2024-12-13 15:54:03 +08:00
xuxingjun
1a61367991 优化 国富人寿鑫管家C款终身寿险(万能型)产品配置 2024-12-13 14:30:38 +08:00
xuxingjun
f2e3566893 更换首页产品中心图片(分红型) 2024-12-02 09:48:36 +08:00
xuxingjun
2842c846d0 更换首页产品中心图片(分红型) 2024-12-02 09:36:53 +08:00
29 changed files with 1084 additions and 782 deletions

3
.gitignore vendored
View File

@@ -3,4 +3,5 @@ dist
.eslintrc.js
.prettierrc
.idea
.idea
.history

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@@ -3947,6 +3947,35 @@ export default {
{
code: "GFRS_M0094__cashValue",
label: "元"
},
{
//养老年金开始领取年龄
code: 'pensionAge',
label: '岁'
},
{
code: 'AppntCriticalDiseaseExemptionPremiumD',
label: '元'
},
{
code: 'AppntModerateOrMinorDiseaseExemptionPremiumD',
label: '元'
},
{
code: 'AppntDeathOrTotalDiseaseExemptionPremiumD',
label: '元'
},
{
code: 'InsuredCriticalDiseaseExemptionPremiumD',
label: '元'
},
{
code: 'InsuredModerateOrMinorDiseaseExemptionPremiumD',
label: '元'
},
{
code: 'InsuredDeathOrTotalDiseaseExemptionPremiumD',
label: '元'
}
],
// 卡单与短期险重新投保选择职业类别时,两个模块职业类型数据的排序不同,创建这个数据字典,用于在选择职业类别时,作为一个参数传入组件,

View File

@@ -16,7 +16,7 @@
<van-field
minlength="6"
class="pt5 mt10"
style="border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea"
style="border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea"
v-model="checkModel.pwd"
clearable
type="password"
@@ -207,7 +207,7 @@ export default {
operateCodeType: '0'
}
//获取验证码
getAuthCode(data).then(res => {
getAuthCode(data).then((res) => {
if (res.result == 0) {
this.checkModel.smsId = res.sessionId
this.checkModel.smsCode = null
@@ -225,6 +225,18 @@ export default {
}
})
}
},
watch: {
/**
* 监听弹窗显示隐藏
*/
'checkModel.show'(val) {
console.log('checkModel.show', val)
// 显示时禁止截屏,不显示时恢复截屏
EWebBridge.webCallAppInJs('enable_screen_capture', {
enable: !val
})
}
}
}
</script>

View File

@@ -127,7 +127,7 @@ export default {
num++
await this.getRecognitionUrl(val, num)
if (this.requestId && this.bizToken) {
await this.getRecognitionResult(this.requestId, this.bizToken)
await this.getRecognitionResult(this.requestId, this.bizToken, JSON.parse(localStorage['orderNo']))
} else {
return
}
@@ -155,9 +155,9 @@ export default {
)
})
},
getRecognitionResult(requestId, bizToken) {
getRecognitionResult(requestId, bizToken, orderNo) {
return new Promise((resolve, reject) => {
getRecognitionResult({ requestId, bizToken }).then(
getRecognitionResult({ requestId, bizToken, orderNo }).then(
res => {
console.log('getRecognitionResult', res)
if (res.result == '0') {

View File

@@ -43,7 +43,7 @@
<div slot="title">
<p style="color: #E9332E;">请选择项目</p>
</div>
<div class="chooseProjectDialog" style="padding: 20px 30px 30px;font-size: 14px;">
<div class="chooseProjectDialog" style="padding: 20px 30px 30px;font-size: 14px;height:425px;overflow-y:auto">
<van-radio-group v-model="chooseTeamCode">
<van-radio v-for="(item,index) in projectList" :key="index" :name="item.teamCode" style="margin: 10px;">
<span style="margin-left: 20px;">

View File

@@ -104,13 +104,16 @@ export default {
this.show = true // 显示确认对话框
},
contact() {
const a = document.createElement('a')
a.href = `tel:'${this.ybOrderDTOList.appntPhone}'`
a.click()
this.show = false
EWebBridge.webCallAppInJs('callSystem', {
system: 'tel',
number: this.ybOrderDTOList.appntPhone
})
},
callPhone(phoneNumber) {
window.location.href = 'tel://' + phoneNumber
EWebBridge.webCallAppInJs('callSystem', {
system: 'tel',
number: phoneNumber
})
},
getYBRenewalInfo() {
// let params = {

View File

@@ -2,17 +2,16 @@
<div class="login-container ph10">
<h3 class="text-center pv30">欢迎登录</h3>
<van-cell-group cl>
<van-field v-model="username" clearable label="用户名" placeholder="请输入用户名" left-icon="contact"/>
<van-field v-model="password" type="password" label="密码" placeholder="请输入密码" left-icon="bag-o"/>
<van-field v-model="username" clearable label="用户名" placeholder="请输入用户名" left-icon="contact" />
<van-field v-model="password" type="password" label="密码" placeholder="请输入密码" left-icon="bag-o" />
</van-cell-group>
<van-button type="info" size="large" class="mt30" @click="login" :loading="loading" loading-text="登录中...">登录
</van-button>
<van-button type="info" size="large" class="mt30" @click="login" :loading="loading" loading-text="登录中...">登录 </van-button>
</div>
</template>
<script>
import {CellGroup, Field} from 'vant'
import {loginTest} from '@/api/ebiz/my/my.js'
import { CellGroup, Field } from 'vant'
import { loginTest } from '@/api/ebiz/my/my.js'
export default {
name: 'login',
@@ -28,6 +27,14 @@ export default {
redirect: this.$route.query.redirect
}
},
mounted() {
setTimeout(() => {
EWebBridge.webCallAppInJs('enable_screen_capture', {
enable: false
})
}, 500)
},
methods: {
login() {
if (this.username == '' || this.password == '') {
@@ -35,30 +42,31 @@ export default {
return
}
this.loading = true
let that = this;
let that = this
let reqData = {
password: this.$MD5(that.password),
system: "agentApp",
graphCode: "",
graphId: "",
system: 'agentApp',
graphCode: '',
graphId: '',
name: this.username,
loginflag: "agentPassword",
loginflag: 'agentPassword'
}
loginTest(reqData).then(res => {
this.loading = false
if (res.result == 0) {
console.log(res)
this.$CacheUtils.setLocItem("token",res.token)
this.$router.push({ path: this.redirect || '/' })
}else {
this.$toast(res.resultMessage)
}
}) .catch(err => {
console.log(err)
this.loading = false
})
loginTest(reqData)
.then((res) => {
this.loading = false
if (res.result == 0) {
console.log(res)
this.$CacheUtils.setLocItem('token', res.token)
this.$router.push({ path: this.redirect || '/' })
} else {
this.$toast(res.resultMessage)
}
})
.catch((err) => {
console.log(err)
this.loading = false
})
}
}
}

View File

@@ -34,14 +34,12 @@
点击开始按钮进行相关操作<br /><span class="red">温馨提示请尽量使用正楷文字进行签名</span>
</div>
<div class="text-center mt20">
<van-button @click="faceAuth('0')" v-no-more-click="1000" :disabled="isAgentSubmit" type="danger" size="normal" style="width:30%">开始</van-button>
<van-button @click="faceAuth('0')" v-no-more-click="1000" :disabled="isAgentSubmit" type="danger" size="normal" style="width: 30%">开始</van-button>
</div>
</div>
<div class="ebizGuarantor">
<van-field readonly label-width="120px" label="担保人" v-model="ebizGuarantor.name"></van-field>
<p class="p15 line-height">
以下内容需要您按照顺序阅读并签字确认
</p>
<p class="p15 line-height">以下内容需要您按照顺序阅读并签字确认</p>
<div class="p15 line-height">
需签署
<ul>
@@ -63,9 +61,9 @@
</ul>
点击开始分享进行相关操作<br /><span class="red">温馨提示请尽量使用正楷文字进行签名</span>
</div>
<div v-if="!isInvalid" class="flex justify-content-a mb60 mt20">
<van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" type="danger" size="normal" style="width:30%">分享</van-button>
<van-button @click="faceAuth('1')" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width:30%">开始</van-button>
<div v-if="!isInvalid" class="flex justify-content-a mb60 mt20">
<van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" type="danger" size="normal" style="width: 30%">分享</van-button>
<van-button @click="faceAuth('1')" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width: 30%">开始</van-button>
</div>
<div v-else class="ml15">操作时间已失效请联系销售人员</div>
</div>
@@ -238,8 +236,8 @@ export default {
loadingType: 'spinner',
message: '加载中……'
})
return new Promise(resolve => {
agreementQuery(data).then(res => {
return new Promise((resolve) => {
agreementQuery(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.agentInfo = res.content.ebizEnterCustomerDto
@@ -251,10 +249,10 @@ export default {
this.agentInfo.createdDate = this.agentInfo.createdDate.substring(0, 10)
this.agentSignList = filtSignList(this, this.signList).agentSignList
this.guaranteeSignList = filtSignList(this, this.signList).guaranteeSignList
this.isAgentSubmit = this.agentSignList.every(item => {
this.isAgentSubmit = this.agentSignList.every((item) => {
return item.signState == '1'
})
this.isguranteeSubmit = this.guaranteeSignList.every(item => {
this.isguranteeSubmit = this.guaranteeSignList.every((item) => {
return item.signState == '1'
})
resolve()
@@ -285,7 +283,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -321,8 +319,8 @@ export default {
let data = {
sign: signInvalid
}
return new Promise(resolve => {
checkSignInvalid(data).then(res => {
return new Promise((resolve) => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status
@@ -338,7 +336,7 @@ export default {
if (code == '0') {
if (this.agentInfo.idType == '1') {
this.goUrl(code)
this.goUrl(code)
// 人脸识别次数小于3次
this.$toast.loading({
duration: 0, // 持续展示 toast
@@ -366,7 +364,8 @@ export default {
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '2', //业务来源:1-电投2-入司3-理赔4-保全
number: this.agentInfo.idNo, //身份证号码
name: this.agentInfo.name //姓名
name: this.agentInfo.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
// const authRes = await this.fakeFaceAuth(true)
console.log(authRes)
@@ -395,7 +394,7 @@ export default {
},
fakeFaceAuth(expect) {
console.log('模拟调用人脸识别')
return new Promise(function(resolve, reject) {
return new Promise(function (resolve, reject) {
setTimeout(() => {
console.log('模拟人脸识别完成')
if (expect) {
@@ -409,11 +408,11 @@ export default {
goUrl(code) {
let path = ''
if (code == '0') {
path = this.agentSignList.filter(v => {
path = this.agentSignList.filter((v) => {
return v.signState == '0'
})[0].path
} else if (code == '1') {
path = this.guaranteeSignList.filter(v => {
path = this.guaranteeSignList.filter((v) => {
return v.signState == '0'
})[0].path
}
@@ -437,7 +436,7 @@ export default {
loadingType: 'spinner',
message: '加载中……'
})
signAgreement(data).then(res => {
signAgreement(data).then((res) => {
console.log(res)
if (res.result == '0') {
this.$toast.clear()

View File

@@ -1,27 +1,24 @@
<template>
<div class='orderDetail-container'>
<index-bar :allowance-no='$route.query.allowanceNo' :reapply-no='$route.query.reapply' v-if='!isWeixin'></index-bar>
<div v-for='(item, index) in allowanceSignDTOLst' :key='index'>
<div class="orderDetail-container">
<index-bar :allowance-no="$route.query.allowanceNo" :reapply-no="$route.query.reapply" v-if="!isWeixin"></index-bar>
<div v-for="(item, index) in allowanceSignDTOLst" :key="index">
<!-- 申请人 -->
<div v-if='item.type == 1 && !isWeixin'>
<p class='fw600 border-gb'>
<span>申请人</span><span class='ml60'>{{ allowanceApplyDTO.name }}</span>
<div v-if="item.type == 1 && !isWeixin">
<p class="fw600 border-gb">
<span>申请人</span><span class="ml60">{{ allowanceApplyDTO.name }}</span>
</p>
<p>点击签名按钮进行申请人签名</p>
<p class='border-gb'>
<p class="border-gb">
<span>申请人</span>
<van-button type='danger' color='#2E4591' class='ml5' size='small' @click='signFunc(item.type, item.id)'
:disabled='isSure' v-no-more-click='1000'>{{
item.signStatus == '0' ? '签名' : '已签名'
}}
<van-button type="danger" color="#2E4591" class="ml5" size="small" @click="signFunc(item.type, item.id)" :disabled="isSure" v-no-more-click="1000"
>{{ item.signStatus == '0' ? '签名' : '已签名' }}
</van-button>
<img class='w60 h40 v-middle ml10' v-if='item.signPath' :src="imgUrl + item.signPath.replace(/\+/g, '%2B')"
alt='' /><br />
<img class="w60 h40 v-middle ml10" v-if="item.signPath" :src="imgUrl + item.signPath.replace(/\+/g, '%2B')" alt="" /><br />
</p>
</div>
<div v-if='item.type == 2'>
<div v-if='isWeixin' class='bg-white mt10 fs14 tips'>
<div v-if="item.type == 2">
<div v-if="isWeixin" class="bg-white mt10 fs14 tips">
<p>
尊敬的
<span>{{ allowanceEnjoyDTO.name }}</span
@@ -29,83 +26,54 @@
</p>
<p>恭喜您获得国富人寿桂冠专属父母赡养津贴需要您点击签字按钮进行签字申请</p>
</div>
<p v-if='!isWeixin' class='fw600 border-gb'>
<span>享受人</span><span class='ml60'>{{ allowanceEnjoyDTO.name }}</span>
<p v-if="!isWeixin" class="fw600 border-gb">
<span>享受人</span><span class="ml60">{{ allowanceEnjoyDTO.name }}</span>
</p>
<p v-if='!isWeixin'>点击签名按钮进行享受人签名</p>
<p class='border-gb'>
<p v-if="!isWeixin">点击签名按钮进行享受人签名</p>
<p class="border-gb">
<span>享受人</span>
<van-button type='danger' color='#2E4591' class='ml5' size='small' @click='signFunc(item.type, item.id)'
:disabled='isSure' v-no-more-click='1000'>{{
item.signStatus == '0' ? '签名' : '已签名'
}}
<van-button type="danger" color="#2E4591" class="ml5" size="small" @click="signFunc(item.type, item.id)" :disabled="isSure" v-no-more-click="1000"
>{{ item.signStatus == '0' ? '签名' : '已签名' }}
</van-button>
<img class='w60 h40 v-middle ml10' v-if='item.signPath' :src="imgUrl + item.signPath.replace(/\+/g, '%2B')"
alt='' /><br />
<img class="w60 h40 v-middle ml10" v-if="item.signPath" :src="imgUrl + item.signPath.replace(/\+/g, '%2B')" alt="" /><br />
<!-- 享受人有分享功能 -->
<van-button
type='danger'
color='#2E4591'
class='ml65 mt10'
v-if='!isWeixin'
size='small'
type="danger"
color="#2E4591"
class="ml65 mt10"
v-if="!isWeixin"
size="small"
@click="share('0')"
:disabled='isSure'
v-no-more-click='1000'
>分享
</van-button
>
:disabled="isSure"
v-no-more-click="1000"
>分享
</van-button>
</p>
</div>
</div>
<van-button v-if='!isWeixin' type='danger' color='#2E4591' class='bottom-btn ffcb6b' @click='nextStep'
v-no-more-click='1000'>提交审批
</van-button>
<SignTure :SignShow='SignShow' :signInfo='allowanceEnjoyDTO' @close='SignClose'
@SignSuccessful='SignSuccessful'></SignTure>
<van-button v-if="!isWeixin" type="danger" color="#2E4591" class="bottom-btn ffcb6b" @click="nextStep" v-no-more-click="1000">提交审批 </van-button>
<SignTure :SignShow="SignShow" :signInfo="allowanceEnjoyDTO" @close="SignClose" @SignSuccessful="SignSuccessful"></SignTure>
<!-- 短信验证 -->
<van-dialog v-model='show' title='提示' show-cancel-button @confirm='authConfirm(authCode)' @cancel='clearTimer'>
<p class='p10 fs14'>为确保是您本人操作短信验证码已发送至您手机号{{ encyCustomerMobile }}请您输入验证码以完成后续投保操作</p>
<van-cell-group class='flex align-items-c pr5 mb15'>
<van-field maxlength='6' placeholder='请输入短信验证码' v-model='authCode' clearable label-width='0' />
<van-button type='danger' color='#2E4591' plain size='small' class='w160 p0' @click='getAuthCode'
:disabled='codeDisabled' v-no-more-click='2000'>{{
codeDisabled ? `${countDown}s后重新获取` : '获取验证码'
}}
<van-dialog v-model="show" title="提示" show-cancel-button @confirm="authConfirm(authCode)" @cancel="clearTimer">
<p class="p10 fs14">为确保是您本人操作短信验证码已发送至您手机号{{ encyCustomerMobile }}请您输入验证码以完成后续投保操作</p>
<van-cell-group class="flex align-items-c pr5 mb15">
<van-field maxlength="6" placeholder="请输入短信验证码" v-model="authCode" clearable label-width="0" />
<van-button type="danger" color="#2E4591" plain size="small" class="w160 p0" @click="getAuthCode" :disabled="codeDisabled" v-no-more-click="2000"
>{{ codeDisabled ? `${countDown}s后重新获取` : '获取验证码' }}
</van-button>
</van-cell-group>
</van-dialog>
</div>
</template>
<script>
import {
Toast,
CellGroup,
Field,
Dialog,
Collapse,
CollapseItem,
Cell,
Popup,
Divider,
RadioGroup,
Radio,
Tag
} from 'vant'
import { Toast, CellGroup, Field, Dialog, Collapse, CollapseItem, Cell, Popup, Divider, RadioGroup, Radio, Tag } from 'vant'
import { getAllowanceDetail, saveOrUpdateAllowanceUrl, approveInit } from '@/api/ebiz/allowance/allowance'
import SignTure from './component/SignTure'
import config from '@/config'
import { getWhitelist } from '@/api/ebiz/whitelist'
import { weixinShare } from '@/assets/js/utils/wxShare.js'
import { checkPhone } from '@/api/ebiz/customer/customer'
import {
getSignInvalid,
checkSignInvalid,
getAuthCode,
autchCodeCheck,
getRecognitionUrl,
getRecognitionResult
} from '@/api/ebiz/sale/sale'
import { getSignInvalid, checkSignInvalid, getAuthCode, autchCodeCheck, getRecognitionUrl, getRecognitionResult } from '@/api/ebiz/sale/sale'
import { getShareParam } from '@/api/ebiz/cardList/cardList.js'
import IndexBar from '@/components/ebiz/allowance/application/IndexBar'
@@ -195,7 +163,7 @@ export default {
//获取腾讯人脸识别URL后重新跳回页面验证腾讯人脸识别结果成功的话调签字面板
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']), JSON.parse(localStorage['orderNo']))
}
this.faceAuthCount.enjoy = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin)
@@ -291,9 +259,9 @@ export default {
return str
},
//微信初始化--获取腾讯人脸识别结果接口
getRecognitionResult(requestId, bizToken) {
getRecognitionResult(requestId, bizToken, orderNo) {
return new Promise(() => {
getRecognitionResult({ requestId, bizToken }).then(
getRecognitionResult({ requestId, bizToken, orderNo }).then(
(res) => {
if (res.result == '0') {
this.recognizeResult = res.result
@@ -497,7 +465,8 @@ export default {
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '5', //业务来源:1-电投2-入司3-理赔4-保全 5津贴
number: that.allowanceEnjoyDTO.idNo, //身份证号码
name: that.allowanceEnjoyDTO.name //姓名
name: that.allowanceEnjoyDTO.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
console.log(JSON.parse(data), 'APP人脸识别结果')
if (JSON.parse(data).state == '1') {
@@ -669,7 +638,7 @@ export default {
extra: {
title: `国富人寿桂冠专属父母赡养津贴申请`,
content: '点击去签字',
shareScene:0,// 0只分享好友1 只分享朋友圈 不传默认所有
shareScene: 0, // 0只分享好友1 只分享朋友圈 不传默认所有
url: location.origin + '/#/allowance/application/signatureConfirmation?allowanceNo=' + this.allowanceNo + '&token=' + res.content,
// '&relationToAppnt=' +
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
@@ -728,7 +697,7 @@ export default {
}
}
</script>
<style lang='scss'>
<style lang="scss">
#app {
.van-dialog__confirm,
.van-dialog__confirm:active {
@@ -736,7 +705,7 @@ export default {
}
}
</style>
<style lang='scss' scoped>
<style lang="scss" scoped>
.orderDetail-container {
background-color: #fff;
min-height: 100vh;

View File

@@ -834,8 +834,8 @@ export default {
let m = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1
console.log(y, m)
this.monthValue = y + '-' + m
this.dialogForm.startDate = y + '-' + m + '-' + '01' // "2024-09-01",
this.dialogForm.endDate = y + '-' + m + '-' + '30'//"2024-09-30",
this.dialogForm.startDate = y + '-' + m + '-' + '01' // "2024-08-01",
this.dialogForm.endDate = y + '-' + m + '-' + '31'//"2024-08-31",
})
this.overlayShow = false
},

View File

@@ -23,7 +23,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
v-no-more-click="1000"
@click="share(3)"
@@ -34,7 +34,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
v-no-more-click="1000"
@click="start_ocr(3)"
@@ -132,7 +132,11 @@ export default {
}
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken']) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
this.getRecognitionResult(
JSON.parse(localStorage['faceAuthWeXin-requestId']),
JSON.parse(localStorage['faceAuthWeXin-bizToken']),
JSON.parse(localStorage['orderNo'])
)
}
},
methods: {
@@ -237,7 +241,7 @@ export default {
caseStatus: 'applying',
businessNo: localStorage.businessNo
}
progressDetail(data).then(res => {
progressDetail(data).then((res) => {
if (res.result == 0) {
console.log(res)
this.list = res.content
@@ -253,7 +257,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -273,7 +277,7 @@ export default {
sign: signInvalid
}
return new Promise((resolve, reject) => {
checkSignInvalid(data).then(res => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status
@@ -354,7 +358,8 @@ export default {
number: that.list.applyerCertiCode,
//姓名
name: that.list.applyerName,
businessSource: '3'
businessSource: '3',
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
// const authRes = await new Promise(resolve => {
// resolve(JSON.stringify({ state: '0' }))
@@ -380,7 +385,7 @@ export default {
let data = { realName: this.idcardData.idcardName, idno: this.idcardData.idcardNumber, redirectUrl: location.origin + '/#' + this.$route.fullPath }
console.log('获取URL请求参数', data)
getRecognitionUrl(data).then(
res => {
(res) => {
console.log('getRecognitionUrl', res)
if (res.result == '0') {
localStorage.setItem('faceAuthWeXin-requestId', JSON.stringify(res.content.requestId))
@@ -390,15 +395,15 @@ export default {
this.$toast(res.resultMessage)
}
},
error => {
(error) => {
console.log(error)
}
)
})
},
getRecognitionResult(requestId, bizToken) {
getRecognitionResult({ requestId, bizToken })
.then(res => {
getRecognitionResult(requestId, bizToken, orderNo) {
getRecognitionResult({ requestId, bizToken, orderNo })
.then((res) => {
console.log('getRecognitionResult', res)
if (res.result == '0') {
this.showRead()
@@ -406,7 +411,7 @@ export default {
this.$toast(res.resultMessage)
}
})
.catch(error => {
.catch((error) => {
console.log(error)
})
localStorage.setItem('faceAuthWeXin-requestId', '')
@@ -445,7 +450,7 @@ export default {
localStorage.setItem('successClaimNo', '')
let that = this
let data = { businessNo: localStorage.getItem('businessNo') }
submit(data).then(res => {
submit(data).then((res) => {
if (res.result == '0') {
localStorage.successClaimNo = res.content.claimNo
that.$jump({

View File

@@ -82,7 +82,8 @@ export default {
if (
currentMainRiskInfo.mainRiskPayEndYearFlag == 'Y' &&
currentMainRiskInfo.mainRiskPayEndYear == '1000' &&
(item.productCode == 'GFRS_A0007' || item.productCode == 'GFRS_A0009'|| item.productCode == 'GFRS_A0010'|| item.productCode == 'GFRS_A0013' || item.productCode == 'GFRS_A0014')
(item.productCode == 'GFRS_A0007' || item.productCode == 'GFRS_A0009'|| item.productCode == 'GFRS_A0010'|| item.productCode == 'GFRS_A0013' || item.productCode == 'GFRS_A0014'
|| item.productCode == 'GFRS_A0015' || item.productCode == 'GFRS_A0016')
) {
item.isHidden = 1
}

View File

@@ -37,7 +37,7 @@
:show-plus="false"
:show-minus="false"
class="ml30"
:disabled="item.productCode == 'GFRS_M0083' && isFrom != 'proposal'"
:disable-input="disabledShow"
@change="
stepperChange(
item.calFactorLst[riskFactorIndex].displayAmount,
@@ -180,7 +180,7 @@
</div>
<!-- 类型为5的字段单元格只展示文本 -->
<div class="border-bottom pv10" v-if="riskFactor.type == 5">
<van-field v-model="riskFactor.showContent" readonly :label="riskFactor.name" />
<van-field v-model="riskFactor.showContent" disabled readonly :label="riskFactor.name" />
</div>
</div>
</div>
@@ -348,7 +348,13 @@
</div>
<div
class="flex justify-content-s pv10 border-bottom prem"
v-if="item.productCode != 'GFRS_M0080' && item.productCode != 'GFRS_M0083' && item.productCode != 'GFRS_M0085'"
v-if="
item.productCode != 'GFRS_M0100' &&
item.productCode != 'GFRS_M0080' &&
item.productCode != 'GFRS_M0083' &&
item.productCode != 'GFRS_M0098' &&
item.productCode != 'GFRS_M0085'
"
>
<!-- trialType 0-保额算保费1-保费算保额 -->
<!-- isTrial是否需存在特殊配置(规则) 0-是 1-否-->
@@ -392,20 +398,22 @@
<img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/approved' + item.status + '.png')" alt="" />
</div>
</div>
<div class="flex justify-content-s align-items-c fs12" v-for='item in riskAmntList'>
<div class="flex justify-content-s align-items-c fs12" v-for="item in riskAmntList">
<div>
<img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/coin.png')" alt="" />
<span class="v-middle">{{ item.accuRiskDesc }}</span>
<span class="v-middle">{{ item.accuRiskDesc }}</span>
</div>
<div>
<span class="w20 h20 p10 v-middle">{{item.accuRiskAmnt}}</span>
<!-- <img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/approved' + item.status + '.png')" alt="" />-->
<span class="w20 h20 p10 v-middle">{{ item.accuRiskAmnt }}</span>
<!-- <img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/approved' + item.status + '.png')" alt="" />-->
</div>
</div>
<div style="padding: 25px 0px 10px 10px; font-size: 10px; color: #999">
<p style="line-height: 20px"><span style="width: 40px; display: inline-block">说明:</span><br/>
1.绿色✔表示 未触发规则、红色×表示 触发规则;<br/>
2.已累计本次投保的风险保额;<br/>3.展示的风险保额为常见风险类别。</p>
<p style="line-height: 20px">
<span style="width: 40px; display: inline-block">说明:</span><br />
1.绿色✔表示 未触发规则、红色×表示 触发规则;<br />
2.已累计本次投保的风险保额;<br />3.展示的风险保额为常见风险类别。
</p>
</div>
</div>
</van-dialog>
@@ -574,6 +582,7 @@ export default {
cvalidateFlag: false,
cvalidateStr: '', //活动生效日
chooseProducts: [],
disabledShow: false,
productIndex: '',
calFactorIndex: '',
premiumData: [], //试算
@@ -608,7 +617,7 @@ export default {
richChildrenFlag: false,
isCrossChannel: '0', //是否交叉渠道 1-是 0-否
trialResultsShow: false, //核保试算结果
riskAmntList:[],//累计寿险风险保额(元)、累计重大疾病风险保额(元)、累计意外伤害风险保额(元)、意外住院津贴日额(元)、一般住院津贴日额(元)、特定疾病住院津贴日额(元)
riskAmntList: [], //累计寿险风险保额(元)、累计重大疾病风险保额(元)、累计意外伤害风险保额(元)、意外住院津贴日额(元)、一般住院津贴日额(元)、特定疾病住院津贴日额(元)
verifyResultList: [] //核保试算返回数据结构
}
},
@@ -831,7 +840,14 @@ export default {
this.isEnterAddtionRiskListFunc()
}
}
if ((item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0085') && this.isFrom == 'proposal') {
if (item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0085') {
this.disabledShow = true
}
if (item.hasPredictTransferPrem == '1') {
this.disabledShow = false
}
if ((item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0085') && this.isFrom == 'proposal') {
item.calFactorLst.forEach((i) => {
if (i.code == 'inputPrem') {
i.minPrem = 0.01
@@ -1034,7 +1050,9 @@ export default {
this.chooseProducts[productIndex].productCode === 'GFRS_A0009' ||
this.chooseProducts[productIndex].productCode === 'GFRS_A0014' ||
this.chooseProducts[productIndex].productCode === 'GFRS_A0013' ||
this.chooseProducts[productIndex].productCode === 'GFRS_A0010'
this.chooseProducts[productIndex].productCode === 'GFRS_A0010' ||
this.chooseProducts[productIndex].productCode === 'GFRS_A0015' ||
this.chooseProducts[productIndex].productCode === 'GFRS_A0016'
) {
setTimeout(() => {
this.getTrial()
@@ -1106,7 +1124,6 @@ export default {
// let productCode = this.chooseProducts[this.productIndex].productCode
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
let currentEle = currentFactor[this.calFactorIndex]
console.log(currentEle.code)
if (currentEle.code == 'insuYear') {
if (value.value == '70') {
this.chooseProducts.forEach((item, index) => {
@@ -1238,7 +1255,9 @@ export default {
item01.productCode != 'GFRS_A0010' &&
item01.productCode != 'GFRS_A0012' &&
item01.productCode != 'GFRS_A0013' &&
item01.productCode != 'GFRS_A0014'
item01.productCode != 'GFRS_A0014' &&
item01.productCode != 'GFRS_A0015' &&
item01.productCode != 'GFRS_A0016'
) {
chooseProductsNew.push(item01)
}
@@ -1552,7 +1571,9 @@ export default {
item.productCode != 'GFRS_A0010' &&
item.productCode != 'GFRS_A0012' &&
item.productCode != 'GFRS_A0013' &&
item.productCode != 'GFRS_A0014'
item.productCode != 'GFRS_A0014' &&
item.productCode != 'GFRS_A0015' &&
item.productCode != 'GFRS_A0016'
) {
list.push(item)
}
@@ -1734,10 +1755,10 @@ export default {
}
})
this.chooseProducts.forEach((item, index) => {
if (item.productCode == 'GFRS_A0010' || item.productCode == 'GFRS_A0009' || item.productCode == 'GFRS_A0013' || item.productCode == 'GFRS_A0014') {
if (item.productCode == 'GFRS_A0010' || item.productCode == 'GFRS_A0009' || item.productCode == 'GFRS_A0013' || item.productCode == 'GFRS_A0014' || item.productCode == 'GFRS_A0015' || item.productCode == 'GFRS_A0016') {
//(投保人)国富人寿附加豁免保险费重大疾病保险(B款
// 投被不同人:投保人豁免险单独搭配主险时,投保人豁免险,豁免主险保费,当投保人豁免险加两全(有长险附加险时),豁免主险保费加两全保费
if (item.productCode == 'GFRS_A0009' || item.productCode == 'GFRS_A0013') {
if (item.productCode == 'GFRS_A0009' || item.productCode == 'GFRS_A0013' || item.productCode == 'GFRS_A0015' || item.productCode == 'GFRS_A0016') {
if (this.saleInsuredPersonInfo.relationToAppnt != 1) {
//不同人
if (showPrem001) {
@@ -1807,10 +1828,11 @@ export default {
}
}
//2、豁免险跟主险联动豁免险缴费期间和保险期间同主险的缴费期间
//2、豁免险跟主险联动豁免险缴费期间和保险期间同主险的缴费期间 -1 (附加险D款时提出的需求)
let remitIndex = this.getRemitIndex()
//if (!remitIndex) return
for (let itemRemitIndex of remitIndex) {
console.log('mainRiskInfo---->', mainRiskInfo)
this.chooseProducts[itemRemitIndex].calFactorLst.forEach((item) => {
if (item.code == 'payIntv') {
for (let key in mainRiskInfo.payIntv) {
@@ -1820,13 +1842,13 @@ export default {
if (item.code == 'payEndYear') {
item.hasFlag = '1'
item.payEndYearFlag = 'Y'
item.payEndYear = Number(mainRiskInfo.payEndYear.payEndYear)
item.payEndYear = Number(mainRiskInfo.payEndYear.payEndYear) - 1
item.showContent = item.payEndYear + '年交'
}
if (item.code == 'insuYear') {
item.hasFlag = '1'
item.insuYearFlag = 'Y'
item.insuYear = Number(mainRiskInfo.payEndYear.payEndYear)
item.insuYear = Number(mainRiskInfo.payEndYear.payEndYear) - 1
item.showContent = item.insuYear + '年'
}
if (item.code == 'amt') {
@@ -1841,7 +1863,9 @@ export default {
this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0009' ||
this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0010' ||
this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0013' ||
this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0014'
this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0014' ||
this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0015' ||
this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0016'
) {
//此附加险的缴费期间=主险缴费期间;保险期间=主险保险期间
if (item.code == 'insuYear') {
@@ -1868,7 +1892,7 @@ export default {
})
this.chooseProducts[0].productTrialYearDTOS.forEach((item, index) => {
//因交费方式为一次性交清时,不会有豁免险,所以这里不判断一次性交清的情况
if (payEndYearVal == item.yearWay + '年交') {
if (payEndYearVal == Number(item.yearWay) - 1 + '年交') {
v.amt = item.displayAmount * item.moneyUnit
}
})
@@ -2153,17 +2177,20 @@ export default {
async getTrial() {
let that = this
let productCode = ''
let hasPredictTransferPrem = ''
let thisproductInfo = JSON.parse(window.localStorage.getItem('chooseProducts'))
if (thisproductInfo && thisproductInfo.length != 0) {
thisproductInfo.forEach((item) => {
if (item.productCode == 'GFRS_M0083' || item.productCode == 'GFRS_M0085') {
if (item.productCode == 'GFRS_M0083' || item.productCode == 'GFRS_M0098' || item.productCode == 'GFRS_M0085') {
productCode = item.productCode
hasPredictTransferPrem = item.hasPredictTransferPrem
}
})
}
if (this.isFrom != 'proposal') {
if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0085') {
if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0085') {
if (!that.policyNo) {
this.disabledShow = true
that.chooseProducts.forEach((item) => {
item.calFactorLst.forEach((ii) => {
if (ii.type == 1) {
@@ -2173,6 +2200,7 @@ export default {
})
})
} else {
this.disabledShow = false
that.chooseProducts.forEach((item) => {
item.calFactorLst.forEach((ii) => {
if (ii.type == 1) {
@@ -2184,6 +2212,9 @@ export default {
}
}
}
if (hasPredictTransferPrem == '1') {
this.disabledShow = false
}
this.nextStepFlag = true
this.$toast.clear()
this.$toast.loading({
@@ -2440,7 +2471,6 @@ export default {
dutyCode: dutyItem.duty,
dutyName: dutyItem.dutyName
})
}
})
trialInfo.duty = result
@@ -2935,7 +2965,7 @@ export default {
}
}
}
} else if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0085') {
} else if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0085') {
if (this.isFrom != 'proposal') {
if (!this.policyNo && defalutValue < 5) {
this.$toast('单独投保保费为大于等于50000元')
@@ -3119,7 +3149,7 @@ export default {
this.trialList[index].productCode == 'GFRS_M0057' ||
this.trialList[index].productCode == 'GFRS_M0086' ||
this.trialList[index].productCode == 'GFRS_M0092' ||
this.trialList[index].productCode == 'GFRS_M0096'
this.trialList[index].productCode == 'GFRS_M0096'
) {
riskItem['dutyLst'] = this.trialInfos[index].duty
}
@@ -3160,7 +3190,9 @@ export default {
item.productCode == 'GFRS_A0010' ||
item.productCode == 'GFRS_A0013' ||
item.productCode == 'GFRS_A0014' ||
item.productCode == 'GFRS_M0077'
item.productCode == 'GFRS_M0077' ||
item.productCode == 'GFRS_A0015' ||
item.productCode == 'GFRS_A0016'
) {
this.trialInfos[index].amt = this.trialList[index].duty[0].amt
}

View File

@@ -197,7 +197,7 @@ export default {
// ------------------------专为惠企写死--end---------------//
//如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
if (this.list.length > 0) {
console.log(localStorage.productCodeChooseFromList)
// console.log(localStorage.productCodeChooseFromList)
this.result = this.list.find((v) => {
return v.riskProductCode == localStorage.productCodeChooseFromList
})
@@ -274,7 +274,7 @@ export default {
// ------------------------专为惠企写死--end---------------//
// 如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
if (this.list.length > 0) {
console.log(localStorage.productCodeChooseFromList)
// console.log(localStorage.productCodeChooseFromList)
this.result = this.list.find((v) => {
return v.riskProductCode == localStorage.productCodeChooseFromList
})
@@ -440,7 +440,6 @@ export default {
return this.$toast('该投保人工作单位不能投保该产品')
}
/********end 主险选择限制 end******/
//保存附加险
localStorage.addtionRiskLst = JSON.stringify(resultData.productTrialInfoDTO.addtionRiskLst)
localStorage.isAutoPay = resultData.isAutoPay
@@ -449,6 +448,8 @@ export default {
localStorage.isRelated = resultData.isRelated
let calFactorLst = this.getFactorList(resultData)
// return
let productTrialYearDTOS = resultData.productTrialInfoDTO.productTrialYearDTOS != null ? resultData.productTrialInfoDTO.productTrialYearDTOS : null
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst != null && resultData.productTrialInfoDTO.addtionRiskLst.length ? true : false
let currentProductInfo =
@@ -504,9 +505,9 @@ export default {
//构建险种因子列表
getFactorList(resultData) {
let productTrialInfoDTO = resultData.productTrialInfoDTO
console.log(productTrialInfoDTO, 'wode')
// console.log(productTrialInfoDTO, 'wode')
let calFactorLst = resultData.productTrialInfoDTO.calFactorLst
console.log('calFactorLst', calFactorLst)
// console.log('calFactorLst', calFactorLst)
calFactorLst.forEach((item) => {
item['isMainRisk'] = 0

View File

@@ -48,7 +48,7 @@ export default {
age = this.getSaleInsuredInfo().age
tips = '投保人年龄不适合此款险种,请选择其他险种!'
} else {
if(riskProductCode == 'GFRS_M0061'){
if(riskProductCode == 'GFRS_M0061' || riskProductCode == 'GFRS_M0102' || riskProductCode == 'GFRS_M0101'){
age = this.getSaleInsuredPersonInfo().birthday?utilsAge.getAge29(this.getSaleInsuredPersonInfo().birthday, new Date()):this.getSaleInsuredPersonInfo().insuredAge
}else{
age = this.getSaleInsuredPersonInfo().birthday?utilsAge.getAgeByValue(this.getSaleInsuredPersonInfo().birthday, new Date()):this.getSaleInsuredPersonInfo().insuredAge

View File

@@ -10,7 +10,10 @@
<div class="pName">{{ orderList.productNameFull }}</div>
<div class="type">{{ orderList.outOrderType == 'accept' ? '承保规保' : '预收规保' }}</div>
<div class="yuan">{{ orderList.prem }}<span style="color: #333333"></span></div>
<div class="time">{{ orderList.outOrderType == 'accept' ? '承保时间:' : '预收时间:' }}{{ orderList.appntDate }}</div>
<div class="time">{{ orderList.outOrderType == 'accept' ? '承保时间:' : '预收时间:' }}
<span v-if="orderList.outOrderType == 'accept'">{{ orderList.signDate }}</span>
<span v-if="orderList.outOrderType != 'accept'">{{ orderList.appntDate }}</span>
</div>
</div>
</div>
<div class="flex justify-content-s bottom-btn border-color">
@@ -53,6 +56,7 @@ export default {
methods: {
getList() {
this.orderList = JSON.parse(localStorage.getItem('orderList'))
console.log('页面数据',this.orderList);
},
// 将 Blob转base64
blobToBase64(blob) {

View File

@@ -1,6 +1,6 @@
<template>
<div class="insure-again">
<div class="signature-content pb40">
<div class="insure-again">
<div class="signature-content pb40">
<div v-if="!isWeixin">
<ProgressBar :active.sync="active" />
</div>
@@ -144,7 +144,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
:disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'"
v-no-more-click="1000"
@@ -178,7 +178,7 @@
type="danger"
size="normal"
plain
style="width: 157px;"
style="width: 157px"
:disabled="insuredSignStatus == '3'"
@click="start_ocr('1')"
v-no-more-click="1000"
@@ -342,12 +342,12 @@ export default {
[CollapseItem.name]: CollapseItem,
[Dialog.name]: Dialog,
[Field.name]: Field,
ProgressBar
ProgressBar
},
methods: {
fakeFaceAuth(expect) {
console.log('模拟调用人脸识别')
return new Promise(function(resolve, reject) {
return new Promise(function (resolve, reject) {
setTimeout(() => {
console.log('模拟人脸识别完成')
if (expect) {
@@ -442,7 +442,11 @@ export default {
}
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得认证相关参数
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']),
JSON.parse(localStorage['orderNo'])
)
}
if (sessionStorage.shareCode == '1') {
@@ -509,7 +513,7 @@ export default {
}
// eslint-disable-next-line no-unused-vars
return new Promise((resolve, reject) => {
checkPhone(data).then(res => {
checkPhone(data).then((res) => {
if (res.result == '0') {
console.log(res)
this.show = true
@@ -578,7 +582,7 @@ export default {
operateCode: this.customerMobile,
system: 'agentApp',
operateCodeType: '0'
}).then(res => {
}).then((res) => {
console.log(res)
if (res.result == 0) {
this.sid = res.sessionId
@@ -746,12 +750,13 @@ export default {
this.$toast(res.resultMessage)
}
if (this.faceAuthCount.appnt < this.smsAuthNum) {
// eslint-disable-next-line no-undef
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
// eslint-disable-next-line no-undef
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: that.saleInsuredInfo.idNo, //身份证号码
name: that.saleInsuredInfo.name //姓名
}).then(data => {
name: that.saleInsuredInfo.name, //姓名
orderNo: CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
if (JSON.parse(data).state == '1') {
// 保存rid 数据
that.saveCustomerRidInfo('appnt_rid', 'B')
@@ -766,8 +771,8 @@ export default {
})
// todo 测试去掉人脸识别 start=====================
// 保存rid 数据
// that.saveCustomerRidInfo('appnt_rid', 'B')
// that.goUrl()
// that.saveCustomerRidInfo('appnt_rid', 'B')
// that.goUrl()
// todo 测试去掉人脸识别 end=====================
// const authRes = await this.fakeFaceAuth(true)
@@ -824,8 +829,9 @@ export default {
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: that.saleInsuredPersonInfo.idNo, //身份证号码
name: that.saleInsuredPersonInfo.name //姓名
}).then(data => {
name: that.saleInsuredPersonInfo.name, //姓名
orderNo: CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
if (JSON.parse(data).state == '1') {
that.saveCustomerRidInfo('insured_rid', 'B')
that.insuredUrl()
@@ -981,19 +987,21 @@ export default {
}
})
} else {
console.log(location.origin +
'/#/insureAgain/signatureConfirmation?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&shareCode=' +
code +
'&signInvalid=' +
this.signInvalid +
'&productCode=' +
localStorage.productCode)
console.log(
location.origin +
'/#/insureAgain/signatureConfirmation?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&shareCode=' +
code +
'&signInvalid=' +
this.signInvalid +
'&productCode=' +
localStorage.productCode
)
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
@@ -1041,7 +1049,7 @@ export default {
}
}
// /insure/selfToHuman
underWrite(data).then(res => {
underWrite(data).then((res) => {
this.$toast.clear()
let that = this
if (res.result == '0') {
@@ -1144,12 +1152,12 @@ export default {
message: '加载中……'
})
let data = {
orderNo: CacheUtils.getLocItem('orderNo'),
orderNo: CacheUtils.getLocItem('orderNo'),
getOtherType: 'RID'
}
localStorage.setItem('riskName', '')
return new Promise(resolve => {
getOrderDetail(data).then(res => {
return new Promise((resolve) => {
getOrderDetail(data).then((res) => {
if (res.result == '0') {
if (res.orderDTO && res.orderDTO.prtType) {
localStorage.setItem('readingProtocolType', res.orderDTO.prtType)
@@ -1165,9 +1173,8 @@ export default {
!!res.orderDTO.productDTO.special.content &&
res.orderDTO.productDTO.special.content !== ''
) {
let content = res.orderDTO.productDTO.special.content
try {
const config = JSON.parse(content)
config.message = '&emsp;&emsp;' + config.message
@@ -1180,8 +1187,8 @@ export default {
confirmButtonText: '本人已阅读并同意上述特别约定内容',
messageAlign: 'left'
})
}
}
}
}
localStorage.setItem('lastOrderNo', data.orderNo)
localStorage.setItem('AppntidType', res.orderDTO.appntDTO.idType)
this.$toast.clear()
@@ -1219,7 +1226,7 @@ export default {
}
that.appnt = res.orderDTO.appntDTO
that.date = res.orderDTO.orderInfoDTO.appntDateLabel
res.orderDTO.ebizSignDTOS.map(item => {
res.orderDTO.ebizSignDTOS.map((item) => {
if (item.signType == '0' || item.signType == '2') {
if (!localStorage.changeCard) {
if (item.documentCode != '5') {
@@ -1238,11 +1245,11 @@ export default {
})
if (!that.changeCard) {
//将投保人数组排序
that.appntSign.sort(function(a, b) {
that.appntSign.sort(function (a, b) {
return a.key - b.key
})
//获取投保和被保险人电子投保单签字状态
that.appntSign.map(item => {
that.appntSign.map((item) => {
// 判断是否双录
if (item.documentCode == '6') {
localStorage.doubleRecordFlag = '1'
@@ -1251,7 +1258,7 @@ export default {
that.appntSignStatus = item.documentStatus
}
})
that.insuredSign.map(item => {
that.insuredSign.map((item) => {
if (item.documentCode == '2') {
that.insuredSignStatus = item.documentStatus
}
@@ -1299,7 +1306,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -1320,8 +1327,8 @@ export default {
let data = {
sign: signInvalid
}
return new Promise(resolve => {
checkSignInvalid(data).then(res => {
return new Promise((resolve) => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status
@@ -1385,7 +1392,7 @@ export default {
businessSource: this.idcardData.businessSource
}
getRecognitionUrl(data).then(
res => {
(res) => {
if (res.result == '0') {
localStorage.setItem('faceAuthWeXin-requestId', JSON.stringify(res.content.requestId))
localStorage.setItem('faceAuthWeXin-bizToken', JSON.stringify(res.content.bizToken))
@@ -1394,16 +1401,16 @@ export default {
this.$toast(res.resultMessage)
}
},
error => {
(error) => {
console.log(error)
}
)
})
},
getRecognitionResult(requestId, bizToken) {
getRecognitionResult(requestId, bizToken, orderNo) {
return new Promise(() => {
getRecognitionResult({ requestId, bizToken }).then(
res => {
getRecognitionResult({ requestId, bizToken, orderNo }).then(
(res) => {
if (res.result == '0') {
this.recognizeResult = res.result
} else {
@@ -1411,7 +1418,7 @@ export default {
}
this.sendimage(this.recognizeResult)
},
error => {
(error) => {
console.log(error)
}
)
@@ -1450,13 +1457,13 @@ export default {
}
}
// 保存rid 认证结果 不阻断流程
saveCustomerRid(param).then(res => {
saveCustomerRid(param).then((res) => {
console.log('saveCustomerRid', res)
})
}
},
created() {
setTimeout(() => {
setTimeout(() => {
EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
@@ -1469,11 +1476,11 @@ export default {
// localStorage.setItem('salePageFlag', this.salePageFlag)
if (!this.$route.query.salePageFlag) {
CacheUtils.setLocItem('active', this.active)
}
}
let that = this
document.title = this.changeCard ? '修改银行卡号确认' : '签名确认'
// 初始化
that.init()
that.init()
if (window.localStorage.getItem('jumpFromSign') != '1' && window.localStorage.getItem('attachmentShow') == '0') {
Dialog.confirm({
title: '提示',
@@ -1487,7 +1494,7 @@ export default {
// 获取投被保险人是否同一个人
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
}
},
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()

View File

@@ -30,7 +30,9 @@
<div v-if="active === 'uncommit'">
<van-button size="small" round type="danger" @click="uncommitInsureDetail(order)" plain>查看详情</van-button>
<van-button v-if="canRevoke[order.newOrderStatus]" class="ml10" size="small" round type="danger" @click="revokeOrder(order)">撤单</van-button>
<van-button class="ml10" size="small" round type="danger" @click="insureAgain(order)">{{ order.newOrderStatus == '02'?'待支付':'重新投保'}}</van-button>
<van-button class="ml10" size="small" round type="danger" @click="insureAgain(order)">{{
order.newOrderStatus == '02' ? '待支付' : '重新投保'
}}</van-button>
</div>
<div v-if="active === 'commit'">
<van-button v-if="canRevoke[order.newOrderStatus]" class="ml10" size="small" round type="danger" @click="revokeOrder(order)">撤单</van-button>
@@ -45,88 +47,92 @@
<div class="mt20" v-if="errMessage != ''">{{ errMessage }}</div>
</div>
</van-pull-refresh>
<van-dialog
class="dialog-delete"
@confirm="checkCaptchaCode"
@cancel="cancelCaptchaCode"
:before-close="beforeClose"
confirm-button-color="#fff"
v-model="revokePanelShow"
title="短信验证"
show-cancel-button
>
<p class="captchaReceiver">投保人手机号: {{ captchaReceiver | phoneNumFilter }}</p>
<van-field v-model="sms" center clearable placeholder="请输入短信验证码">
<template #button>
<van-button :disabled="sendTime !== 0" v-no-more-click="1000" @click="getCaptchaCode" size="small" type="danger">{{
sendTime ? `${sendTime}s后获取` : '获取验证码'
}}</van-button>
</template>
</van-field>
</van-dialog>
</div>
<van-popup v-model="isAgreementShow" position="right" :style="{ height: '100vh', width: '100vw' }">
<ReadingAgreement :needTime="false">
<h3 class="p10" style="text-align: center">重新投保声明提示</h3>
<p style="text-indent: 28px">尊敬的{{ orderInfo.appntName }}{{ orderInfo.sex == 0 ? '先生' : '女士' }}</p>
<div class="p10 mb90" v-if="orderInfo.riskCode !== 'GFRS_A0008'">
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本次重新投保流程您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
</div>
<div class="p10 mb90" v-else>
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本重新投保申请您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
<p style="text-indent: 28px">
6.国富人寿附加住院医疗保险已停售您可选择投保同类产品国富人寿附加住院医疗保险B款我们将按照国富人寿附加住院医疗保险B款费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
</div>
<template #action>
<van-radio-group class="m10" v-model="radio">
<van-radio :name="false">
<span style="font-size: 14px">本人已阅读知晓本投保声明内容同意重新投保</span>
</van-radio>
</van-radio-group>
<div class="btns">
<van-button type="danger" :disabled="radio" block @click="nextStep">下一步</van-button>
</div>
<van-dialog
class="dialog-delete"
@confirm="checkCaptchaCode"
@cancel="cancelCaptchaCode"
:before-close="beforeClose"
confirm-button-color="#fff"
v-model="revokePanelShow"
title="短信验证"
show-cancel-button
>
<p class="captchaReceiver">投保人手机号: {{ captchaReceiver | phoneNumFilter }}</p>
<van-field v-model="sms" center clearable placeholder="请输入短信验证码">
<template #button>
<van-button :disabled="sendTime !== 0" v-no-more-click="1000" @click="getCaptchaCode" size="small" type="danger">{{
sendTime ? `${sendTime}s后获取` : '获取验证码'
}}</van-button>
</template>
</ReadingAgreement>
</van-popup>
</van-field>
</van-dialog>
</div>
<van-popup v-model="isAgreementShow" position="right" :style="{ height: '100vh', width: '100vw' }">
<ReadingAgreement :needTime="false">
<h3 class="p10" style="text-align: center">重新投保声明提示</h3>
<p style="text-indent: 28px">尊敬的{{ orderInfo.appntName }}{{ orderInfo.sex == 0 ? '先生' : '女士' }}</p>
<div class="p10 mb90" v-if="orderInfo.riskCode !== 'GFRS_A0008'">
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{
orderInfo.riskName
}}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本次重新投保流程您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
</div>
<div class="p10 mb90" v-else>
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{
orderInfo.riskName
}}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本重新投保申请您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
<p style="text-indent: 28px">
6.国富人寿附加住院医疗保险已停售您可选择投保同类产品国富人寿附加住院医疗保险B款我们将按照国富人寿附加住院医疗保险B款费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
</div>
<template #action>
<van-radio-group class="m10" v-model="radio">
<van-radio :name="false">
<span style="font-size: 14px">本人已阅读知晓本投保声明内容同意重新投保</span>
</van-radio>
</van-radio-group>
<div class="btns">
<van-button type="danger" :disabled="radio" block @click="nextStep">下一步</van-button>
</div>
</template>
</ReadingAgreement>
</van-popup>
</div>
</template>
@@ -180,15 +186,15 @@ export default {
isShow: false,
orderInfo: {},
canRevoke: {
'19': true,
19: true,
'02': true,
'48': true,
'49': true,
'55': true,
'58': true,
'46': true,
'50': true,
'51': true
48: true,
49: true,
55: true,
58: true,
46: true,
50: true,
51: true
},
revokePanelShow: false,
sms: '',
@@ -206,7 +212,12 @@ export default {
NewItems() {
var NewItems = []
this.policyListDTOList.map((item) => {
if (item.riskName.search(this.searchName) != -1 || item.policyNo.search(this.searchName) != -1 || item.appntName.search(this.searchName) != -1 || item.insuredName.search(this.searchName) != -1) {
if (
item.riskName.search(this.searchName) != -1 ||
item.policyNo.search(this.searchName) != -1 ||
item.appntName.search(this.searchName) != -1 ||
item.insuredName.search(this.searchName) != -1
) {
if (item.reInsuranceState != null && item.reInsuranceState != '') {
if (this.active === 'uncommit') {
if (
@@ -297,7 +308,7 @@ export default {
if (order.newOrderStatus == '02') {
this.goUrl(res, order)
return
}else {
} else {
this.orderInfo.sex = res.orderDTO.appntDTO.sex
if (res.orderDTO.appntDTO.idType == '1') {
// 白名单校验
@@ -316,7 +327,8 @@ export default {
window.EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: res.orderDTO.appntDTO.idNo, //身份证号码
name: res.orderDTO.appntDTO.name //姓名
name: res.orderDTO.appntDTO.name, //姓名,
orderNo: CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
if (JSON.parse(data).state == '1') {
this.goUrl(res, order)
@@ -501,28 +513,28 @@ export default {
},
revokeOrder(order) {
this.$dialog
.confirm({
className: 'dialog-delete',
title: '提示',
message: '撤单后,数据将不可恢复,您确定要撤单吗?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
})
.then(() => {
this.revokePanelShow = true
this.captchaReceiver = order.appntMobile
this.revokeOrderNo = order.newOrderNo
})
.confirm({
className: 'dialog-delete',
title: '提示',
message: '撤单后,数据将不可恢复,您确定要撤单吗?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
})
.then(() => {
this.revokePanelShow = true
this.captchaReceiver = order.appntMobile
this.revokeOrderNo = order.newOrderNo
})
}
}
}
</script>
<style lang="scss" scoped>
.captchaReceiver {
margin-left: 1em;
padding-bottom: 1em;
border-bottom: 1px solid #eaeaea;
font-size: 14px;
}
.captchaReceiver {
margin-left: 1em;
padding-bottom: 1em;
border-bottom: 1px solid #eaeaea;
font-size: 14px;
}
</style>

View File

@@ -2,8 +2,8 @@
<div class="insured-info-container">
<van-field v-model="pwd" clearable required type="password" label="登陆密码" name="密码" placeholder="请输入登陆密码" />
<p style="color: #ff0000; font-size: 14px;" class="bg-white p10 pb0 mb0">温馨提示</p>
<p style="color: #ff0000; font-size: 14px;" class="bg-white pl10">停用账号将无法再次登陆使用请您谨慎操作</p>
<p style="color: #ff0000; font-size: 14px" class="bg-white p10 pb0 mb0">温馨提示</p>
<p style="color: #ff0000; font-size: 14px" class="bg-white pl10">停用账号将无法再次登陆使用请您谨慎操作</p>
<van-button type="danger" size="large" class="logout_button mt10" :disabled="!Boolean(pwd)" @click="logoutAgent">停用账户 </van-button>
@@ -41,6 +41,14 @@ export default {
}
},
mounted() {
setTimeout(() => {
EWebBridge.webCallAppInJs('enable_screen_capture', {
enable: false
})
}, 500)
},
methods: {
// 注销
logoutAgent() {
@@ -55,7 +63,7 @@ export default {
password: this.$MD5(this.pwd)
}
// 调用注销接口
logoutAgent(req).then(res => {
logoutAgent(req).then((res) => {
this.show = false
if (res.result == 0) {
this.$toast('用户注销成功')

View File

@@ -177,7 +177,8 @@ export default {
this.toFace({
number: this.customerInfo.idNo, //身份证号码
name: this.customerInfo.customerName, //姓名
businessSource: '4' //业务来源:1-电投2-入司3-理赔4-保全
businessSource: '4', //业务来源:1-电投2-入司3-理赔4-保全
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
}
} else if (this.entry == 'BC') {
@@ -193,7 +194,8 @@ export default {
this.toFace({
number: this.policy.insuredInfo.idNo, //身份证号码
name: this.policy.insuredInfo.insuredName, //姓名
businessSource: '4' //业务来源:1-电投2-入司3-理赔4-保全
businessSource: '4', //业务来源:1-电投2-入司3-理赔4-保全
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
}
} else {
@@ -204,7 +206,8 @@ export default {
this.toFace({
number: this.policy.appntInfo.idNo, //身份证号码
name: this.policy.appntInfo.appntName, //姓名
businessSource: '4' //业务来源:1-电投2-入司3-理赔4-保全
businessSource: '4', //业务来源:1-电投2-入司3-理赔4-保全
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
}
}
@@ -244,7 +247,7 @@ export default {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '0' }))
// })
.then(data => {
.then((data) => {
if (JSON.parse(data).state == '1') {
this.jumpNextPage(this.path)
} else {

View File

@@ -242,7 +242,7 @@
:value.sync="pageShowInfo.showInsuredDTO.tap"
></select-radio>
<div class="fs12 text-center pb15" style="color: #999999">拖动按钮查看不同年龄的保单利益</div>
<!-- 国富人寿富贵尊享终身寿险分红型添加利益演示提示 -->
<div v-if="mainRiskCodes.includes('GFRS_M0095')" class="fs13 div_11 text-left">
<b
@@ -547,7 +547,11 @@ export default {
/*end*/
callPhone() {
console.log('callPhone')
window.location.href = 'tel://' + this.agent.phoneNo
// window.location.href = 'tel://' + this.agent.phoneNo
EWebBridge.webCallAppInJs('callSystem', {
system: 'tel',
number: this.agent.phoneNo
})
},
checkInsure(insureId) {
let that = this
@@ -795,7 +799,13 @@ export default {
that.pageShowInfo.insuredDTOs.forEach((item) => {
item.riskDTOLst.forEach((item01) => {
if (item01.isMainRisk == '0') {
if (item01.mainRiskCode == 'GFRS_M0080' || item01.mainRiskCode == 'GFRS_M0083' || item01.mainRiskCode == 'GFRS_M0085') {
if (
item01.mainRiskCode == 'GFRS_M0080' ||
item01.mainRiskCode == 'GFRS_M0083' ||
item01.mainRiskCode == 'GFRS_M0085' ||
item01.mainRiskCode == 'GFRS_M0098' ||
item01.mainRiskCode == 'GFRS_M0100'
) {
that.ispremshow = false
}
mainRiskNameList.push(item01.riskName)

View File

@@ -180,7 +180,7 @@ export default {
operateCode: this.customerMobile,
system: 'agentApp',
operateCodeType: '0'
}).then(res => {
}).then((res) => {
console.log(res)
if (res.result == 0) {
this.sid = res.sessionId
@@ -238,7 +238,7 @@ export default {
this.authCode = null
// eslint-disable-next-line no-unused-vars
return new Promise((resolve, reject) => {
checkPhone(data).then(res => {
checkPhone(data).then((res) => {
if (res.result == '0') {
console.log(res)
this.show = true
@@ -260,7 +260,7 @@ export default {
// policyNo: '809920190000597308'
}
getPolicyDetail(data).then(res => {
getPolicyDetail(data).then((res) => {
if (res.result == '0') {
let appntDTO = res.content.appntDTO
let orderInfoDTO = res.content.orderInfoDTO
@@ -282,8 +282,8 @@ export default {
that.appntDTO = appntDTO
this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(appntDTO))
// 被保险人信息
res.content.insuredDTOs.map(insured => {
insured.riskDTOLst.map(risk => {
res.content.insuredDTOs.map((insured) => {
insured.riskDTOLst.map((risk) => {
Number(risk.payIntv)
switch (risk.payIntv) {
case -1:
@@ -320,7 +320,7 @@ export default {
this.filterData(dataDictionary.sex, 'sex', insured)
this.filterData(dataDictionary.idType, 'idType', insured)
this.filterData(dataDictionary.relationToAppnt, 'relation', insured)
insured.bnfDTOs.map(bnf => {
insured.bnfDTOs.map((bnf) => {
this.filterData(dataDictionary.bnfType, 'bnfType', bnf)
this.filterData(dataDictionary.sex, 'sex', bnf)
this.filterData(dataDictionary.idType, 'idType', bnf)
@@ -337,7 +337,7 @@ export default {
},
//根据数据字典 将后端返回的数据渲染到页面中
filterData(dictionary, key, pageData) {
dictionary.forEach(item => {
dictionary.forEach((item) => {
if (pageData[key] == item.id) {
pageData[key + 'Text'] = item.text //渲染页面使用的字段
}
@@ -351,8 +351,9 @@ export default {
//证件类型为身份证时,进行人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: this.appntDTO.idNo, //身份证号码
name: this.appntDTO.name //姓名
}).then(data => {
name: this.appntDTO.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
@@ -380,7 +381,7 @@ export default {
let params = {
contNo: window.localStorage.getItem('policyNo')
}
getReceiptSign(params).then(res => {
getReceiptSign(params).then((res) => {
if (res.result == '0') {
this.$toast.clear()
window.localStorage.setItem('insurance-policyUrl', res.signUrl)

View File

@@ -179,7 +179,7 @@ export default {
operateCode: this.customerMobile,
system: 'agentApp',
operateCodeType: '0'
}).then(res => {
}).then((res) => {
console.log(res)
if (res.result == 0) {
this.sid = res.sessionId
@@ -237,7 +237,7 @@ export default {
this.authCode = null
// eslint-disable-next-line no-unused-vars
return new Promise((resolve, reject) => {
checkPhone(data).then(res => {
checkPhone(data).then((res) => {
if (res.result == '0') {
console.log(res)
this.show = true
@@ -259,7 +259,7 @@ export default {
// policyNo: '809920190000597308'
}
getPolicyDetail(data).then(res => {
getPolicyDetail(data).then((res) => {
if (res.result == '0') {
let appntDTO = res.content.appntDTO
let orderInfoDTO = res.content.orderInfoDTO
@@ -281,8 +281,8 @@ export default {
that.appntDTO = appntDTO
this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(appntDTO))
// 被保险人信息
res.content.insuredDTOs.map(insured => {
insured.riskDTOLst.map(risk => {
res.content.insuredDTOs.map((insured) => {
insured.riskDTOLst.map((risk) => {
Number(risk.payIntv)
switch (risk.payIntv) {
case -1:
@@ -319,7 +319,7 @@ export default {
this.filterData(dataDictionary.sex, 'sex', insured)
this.filterData(dataDictionary.idType, 'idType', insured)
this.filterData(dataDictionary.relationToAppnt, 'relation', insured)
insured.bnfDTOs.map(bnf => {
insured.bnfDTOs.map((bnf) => {
this.filterData(dataDictionary.bnfType, 'bnfType', bnf)
this.filterData(dataDictionary.sex, 'sex', bnf)
this.filterData(dataDictionary.idType, 'idType', bnf)
@@ -336,7 +336,7 @@ export default {
},
//根据数据字典 将后端返回的数据渲染到页面中
filterData(dictionary, key, pageData) {
dictionary.forEach(item => {
dictionary.forEach((item) => {
if (pageData[key] == item.id) {
pageData[key + 'Text'] = item.text //渲染页面使用的字段
}
@@ -350,8 +350,9 @@ export default {
//证件类型为身份证时,进行人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: this.appntDTO.idNo, //身份证号码
name: this.appntDTO.name //姓名
}).then(data => {
name: this.appntDTO.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
@@ -379,7 +380,7 @@ export default {
let params = {
contNo: window.localStorage.getItem('policyNo')
}
getReceiptSign(params).then(res => {
getReceiptSign(params).then((res) => {
if (res.result == '0') {
this.$toast.clear()
window.localStorage.setItem('insurance-policyUrl', res.signUrl)

File diff suppressed because it is too large Load Diff

View File

@@ -47,16 +47,17 @@
v-if="isShow"
type="danger"
size="normal"
class="w150"
class="w150"
plain
v-no-more-click="1000"
:disabled="appntSign.signStatus == '1'"
@click="share(insured.length == '0' ? '2' : '0')"
>分享</van-button>
>分享</van-button
>
<van-button
type="danger"
size="normal"
class="w150"
class="w150"
plain
:disabled="appntSign.signStatus == '1'"
v-no-more-click="1000"
@@ -96,17 +97,18 @@
v-if="isShow"
type="danger"
size="normal"
class="w150"
class="w150"
:disabled="insuredSign.signStatus == '1'"
@click="share('1')"
plain
v-no-more-click="1000"
>分享</van-button>
>分享</van-button
>
<van-button
type="danger"
size="normal"
plain
class="w150"
class="w150"
:disabled="insuredSign.signStatus == '1'"
@click="start_ocr('1')"
v-no-more-click="1000"
@@ -119,7 +121,7 @@
</div>
</div>
<div v-else>
<!-- 在微信 -->
<!-- 在微信 -->
<div v-if="shareCode != '1'" class="mt10">
<van-collapse v-model="activeNames">
<van-collapse-item name="1">
@@ -158,7 +160,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
:disabled="appntSign.signStatus == '1'"
v-no-more-click="1000"
@@ -210,7 +212,7 @@
type="danger"
size="normal"
plain
style="width: 157px;"
style="width: 157px"
:disabled="insuredSign.signStatus == '1'"
@click="start_ocr('1')"
v-no-more-click="1000"
@@ -306,17 +308,15 @@ export default {
methods: {
// 初始化
async init() {
if (this.isWeixin) {
if (this.$route.query.airSign) {
sessionStorage.setItem('airSign', this.$route.query.airSign)
}
this.$CacheUtils.setLocItem('saleInsuredInfo', this.$route.query.saleInsuredInfo)
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', this.$route.query.saleInsuredPersonInfo)
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)
if (this.$route.query.signInvalid) {
sessionStorage.setItem('signInvalid', this.$route.query.signInvalid)
@@ -337,7 +337,7 @@ export default {
this.shareCode = sessionStorage.getItem('shareCode')
this.relationToAppnt = this.$route.query.relationToAppnt
this.isShow = false
await this.getOrderDetail()
await this.getOrderDetail()
if (this.shareCode == '1') {
this.tipsName = this.saleInsuredPersonInfo.name
} else {
@@ -475,13 +475,14 @@ export default {
// 原人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: that.saleInsuredInfo.idNo, //身份证号码
name: that.saleInsuredInfo.name //姓名
name: that.saleInsuredInfo.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
// })
// 跳过人脸识别
// new Promise(resolve => {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '1' }))
}).then(data => {
}).then((data) => {
if (JSON.parse(data).state == '1') {
if (that.appntSign.readStatus == '0') {
console.log('--跳过人脸识别--返回识别成功zzzzzzzzzz')
@@ -537,12 +538,13 @@ export default {
// 跳过人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: that.saleInsuredInfo.idNo, //身份证号码
name: that.saleInsuredInfo.name //姓名
name: that.saleInsuredInfo.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
// })
// new Promise(resolve => {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '1' }))
}).then(data => {
}).then((data) => {
if (JSON.parse(data).state == '1') {
if (that.insuredSign.readStatus == '0') {
this.$jump({
@@ -657,7 +659,7 @@ export default {
}
}
// /insure/selfToHuman
underWrite(data).then(res => {
underWrite(data).then((res) => {
this.$toast.clear()
let that = this
if (res.result == '0') {
@@ -747,7 +749,7 @@ export default {
let data = {
orderNo: window.localStorage.getItem('orderNo')
}
getOrderDetail(data).then(res => {
getOrderDetail(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.$utils.intLocalStorage(res)
@@ -767,7 +769,7 @@ export default {
that.appnt = res.orderDTO.appntDTO
that.date = res.orderDTO.orderInfoDTO.appntDateLabel
res.orderDTO.signDTOS.map(item => {
res.orderDTO.signDTOS.map((item) => {
if (item.signType == '0') {
that.appntSign = item
} else if (item.signType == '1') {
@@ -791,7 +793,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -813,7 +815,7 @@ export default {
sign: signInvalid
}
return new Promise((resolve, reject) => {
checkSignInvalid(data).then(res => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status

View File

@@ -1087,7 +1087,7 @@
that.signVal = window.localStorage.getItem('sign-val')
// 判断是不是万能险
let comment = window.localStorage.getItem('productCode')
if (comment == 'GFRS_M0003' || comment == 'GFRS_M0015' || comment == 'GFRS_M0017' || comment == 'GFRS_M0075' || comment == 'GFRS_M0080') {
if (comment == 'GFRS_M0003' || comment == 'GFRS_M0015' || comment == 'GFRS_M0017' || comment == 'GFRS_M0075' || comment == 'GFRS_M0080'|| comment == 'GFRS_M0100') {
this.isComment = true
}
// 获取投保人信息

View File

@@ -2,17 +2,17 @@
<div class="policy-list-container">
<!--封面-->
<div v-if="showType == 'Cover'" class="mr2 ml2 mb60">
<img style="width: 100%;" src="@/assets/images/gf_wjdc.png" />
<img style="width: 100%" src="@/assets/images/gf_wjdc.png" />
<div class="mt30 mr2 ml2">
<van-button type="danger" style="width: 100%;" @click="clickEnter" :disabled="enterFlag">立即参加</van-button>
<van-button type="danger" style="width: 100%" @click="clickEnter" :disabled="enterFlag">立即参加</van-button>
</div>
</div>
<!-- 数据提交页 -->
<div v-if="showType == 'Detail'" style="margin-top: 10px;" class="mb60">
<div v-if="showType == 'Detail'" style="margin-top: 10px" class="mb60">
<van-row v-for="(item, index) in questionList" :key="index">
<div v-if="item.options">
<van-col span="24" class="pb10 pt10 pl10 pr10 bg-white"> {{ item.orderCode }}.{{ item.title }} </van-col>
<van-col span="24" class="bg-white" style="margin-bottom: 10px;">
<van-col span="24" class="bg-white" style="margin-bottom: 10px">
<van-radio-group v-model="anwerJson[item.orderCode]" class="flex pb10 pt10 pl10 pr10 justify-content-fs">
<van-radio
icon-size="20px"
@@ -33,19 +33,19 @@
<van-field v-if="item.orderCode == '6'" :label="item.title" input-align="right" v-model="anwerJson[item.orderCode]" />
<van-field v-if="item.orderCode == '8'" :label="item.title" maxlength="3" input-align="right" v-model="anwerJson[item.orderCode]" />
</van-col>
<van-col span="24" class="pl10 pr10 bg-white" style="height:2px;"><div style="width: 100%;height: 100%;background-color: #f5f5f5;"></div></van-col>
<van-col span="24" class="pl10 pr10 bg-white" style="height: 2px"><div style="width: 100%; height: 100%; background-color: #f5f5f5"></div></van-col>
</div>
</van-row>
<div class="mt10 mr2 ml2">
<van-button type="danger" style="width: 100%;" @click="submitForm()">提交</van-button>
<van-button type="danger" style="width: 100%" @click="submitForm()">提交</van-button>
</div>
</div>
<!--提交结果页-->
<div v-if="showType == 'Result'" class="mr2 ml2">
<img v-show="resultImgUrl == 'PHYSICAL'" style="width: 100%;" src="@/assets/images/shareSurveyResult.png" />
<img v-show="resultImgUrl != 'PHYSICAL'" style="width: 100%;" src="@/assets/images/shareSurveyResult_1.png" />
<img v-show="resultImgUrl == 'PHYSICAL'" style="width: 100%" src="@/assets/images/shareSurveyResult.png" />
<img v-show="resultImgUrl != 'PHYSICAL'" style="width: 100%" src="@/assets/images/shareSurveyResult_1.png" />
<div class="mt30 mr2 ml2">
<van-button type="danger" style="width: 100%;" @click="closeWXWindow">返回</van-button>
<van-button type="danger" style="width: 100%" @click="closeWXWindow">返回</van-button>
</div>
</div>
<!-- 底部透明 -->
@@ -143,9 +143,9 @@ export default {
// detail 页面
getSurveyQuestionInfo() {
let that = this
getSurveyQuestion(that.surveyDetailReqDTO).then(res => {
getSurveyQuestion(that.surveyDetailReqDTO).then((res) => {
if (res.result == '0') {
that.questionList.map(item => {
that.questionList.map((item) => {
that.anwerJson[item.orderCode + ''] = ''
})
that.questionList = res.content.questionList
@@ -158,7 +158,7 @@ export default {
// 获取代理人信息
getSurveyAgentInfo() {
let that = this
getSurveyAgentInfo(that.surveyAgentInfoReqDTO).then(res => {
getSurveyAgentInfo(that.surveyAgentInfoReqDTO).then((res) => {
if (res.result == '0') {
that.agentInfo = res.content
that.enterFlag = false
@@ -171,7 +171,7 @@ export default {
// 校验是否选择
let that = this
let returnFlag = true
that.questionList.map(item => {
that.questionList.map((item) => {
if (!that.anwerJson[item.orderCode + '']) {
that.$toast('请认真填写问卷的全部内容!')
returnFlag = false
@@ -197,7 +197,7 @@ export default {
that.surveyAnswerReqDTO.agentCode = that.agentInfo.agentCode
that.surveyAnswerReqDTO.agentName = that.agentInfo.name
that.surveyAnswerReqDTO.tableId = that.tableId
saveSurveyAnswer(that.surveyAnswerReqDTO).then(res => {
saveSurveyAnswer(that.surveyAnswerReqDTO).then((res) => {
if (res.result == '0') {
//跳转结果页面
that.resultImgUrl = res.content
@@ -221,7 +221,11 @@ export default {
},
callPhone() {
console.log('callPhone')
window.location.href = 'tel://' + this.agentInfo.mobile
// window.location.href = 'tel://' + this.agentInfo.mobile
EWebBridge.webCallAppInJs('callSystem', {
system: 'tel',
number: this.agentInfo.mobile
})
},
closeWXWindow() {
closeWindow()

View File

@@ -26,7 +26,7 @@
import { Field, CellGroup, Popup, Picker, Checkbox, Area } from 'vant'
import { getAgentInfo } from '@/api/ebiz/my/my.js'
import { getAuthCode } from '@/api/ebiz/sale/sale'
import {AESEncrypt,AESDecrypt} from '@/assets/js/utils/cryptoJsUtil'
import { AESEncrypt, AESDecrypt } from '@/assets/js/utils/cryptoJsUtil'
export default {
name: 'logoutAgent',
components: {
@@ -53,19 +53,24 @@ export default {
}
},
async mounted() {
setTimeout(() => {
EWebBridge.webCallAppInJs('enable_screen_capture', {
enable: false
})
}, 500)
// 获取代理人信息
this.$CacheUtils.setLocItem('cacheTest', JSON.stringify(this.logoutDTO))
console.log(this.$CacheUtils.getLocItem('cacheTest'))
this.$CacheUtils.setSessionItem('cacheTest1', 'nsjdfi')
console.log(this.$CacheUtils.getSessionItem('cacheTest1'))
const res = await getAgentInfo({ '89': '890' })
const res = await getAgentInfo({ 89: '890' })
console.log(res)
if (res.result == 0) {
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
if (this.branchType == '0') {
this.logoutDTO.mobile = res.phoneNo
this.codeDisabled = false
} else {
}
} else {
return this.$toast(res.resultMessage)
@@ -96,7 +101,7 @@ export default {
operateCodeType: '0'
}
//获取验证码
getAuthCode(data).then(res => {
getAuthCode(data).then((res) => {
//倒计时
this.timeId = setInterval(() => {
this.countDown--