This commit is contained in:
nimengmeng_1990
2019-12-05 18:24:14 +08:00
parent 42b3734c78
commit 088a8bef74
15 changed files with 213 additions and 266 deletions

View File

@@ -19,8 +19,8 @@
</ul>
点击开始按钮进行相关操作
</div>
<div class="text-center mt20"><van-button @click="faceAuth" :disabled="isSubmit" type="danger" style="width:40%">开始</van-button></div>
<van-button v-if="isSubmit" class="fixed bottom0" type="danger" @click="clickSubmit" size="large">提交</van-button>
<div class="text-center mt20"><van-button @click="faceAuth" v-no-more-click="1000" :disabled="isSubmit" type="danger" style="width:40%">开始</van-button></div>
<van-button v-if="isSubmit" class="fixed bottom0" type="danger" v-no-more-click="1000" @click="clickSubmit" size="large">提交</van-button>
</div>
</template>
@@ -44,12 +44,11 @@ export default {
// { name: '《个险销售人员代理合同》', signState: '1' }
],
isSubmit: false,
ebizGuarantor:{}
ebizGuarantor: {}
}
},
created() {
this.agreementQuery()
},
mounted() {
//查看是否全部签署完成
@@ -59,6 +58,11 @@ export default {
return item.signState == '1'
})
}
document.body.style.backgroundColor = '#fff'
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()
},
methods: {
//获取签署协议人信息
@@ -66,9 +70,16 @@ export default {
let data = {
// userModel: { mobile: 13000000000 }, //线上去掉
}
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
agreementQuery(data).then(res => {
console.log(res)
if (res.result == '0') {
this.$toast.clear()
this.agentInfo = res.content.ebizEnterCustomerDto
this.referrerInfo = res.content.ebizReferrerDto
this.signList = res.content.ebizAgreementDtoList
@@ -95,11 +106,18 @@ export default {
localStorage.idNo = this.agentInfo.idNo
localStorage.idName = this.agentInfo.name
if (that.agentInfo.idType == '1') {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
EWebBridge.webCallAppInJs('face_auth', {
number: that.agentInfo.idNo, //身份证号码
name: that.agentInfo.name //姓名
}).then(data => {
console.log(data)
this.$toast.clear()
if (JSON.parse(data).state == '1') {
that.goUrl()
}
@@ -110,7 +128,7 @@ export default {
},
//自定义key值排序用
addKey(item) {
//13保险代理申请人健康声明 10承诺书 16广西保险销售从业人员信息公开承诺书
//13保险代理申请人健康声明 10承诺书 16广西保险销售从业人员信息公开承诺书
//15销售从业人员拒绝非法集资、非法放贷、金融诈骗承诺书 12担保书 11代理人基本福利保障知晓函 14个险销售人员代理合同
if (item.type == '13') {
item.key = 1
@@ -161,9 +179,16 @@ export default {
// userModel: { mobile: 13000000000 }, //线上去掉
submitFlag: '1'
}
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
signAgreement(data).then(res => {
console.log(res)
if (res.result == '0') {
this.$toast.clear()
this.$jump({
flag: 'h5',
extra: {