禁止右滑和加dialog

This commit is contained in:
nimengmeng_1990
2019-12-09 16:14:29 +08:00
parent 7b4dabe7b2
commit c815398216
8 changed files with 36 additions and 22 deletions

View File

@@ -26,7 +26,7 @@ export default [
name: 'entryProcess',
component: entryProcess,
meta: {
title: '入司流程总览',
title: '查看流程',
index: 1
}
},
@@ -143,7 +143,7 @@ export default [
name: 'agentEenterBasicInfor',
component: agentEenterBasicInfor,
meta: {
title: '基本信息/推荐人信息',
title: '入司基本信息',
index: 1
}
},
@@ -152,7 +152,7 @@ export default [
name: 'AgentEnterGuarantor',
component: agentEnterGuarantor,
meta: {
title: '入司基本信息担保人',
title: '入司基本信息',
index: 1
}
},
@@ -161,7 +161,7 @@ export default [
name: 'agentEenterBasicFamily',
component: agentEenterBasicFamily,
meta: {
title: '家庭信息',
title: '入司基本信息',
index: 1
}
},
@@ -170,7 +170,7 @@ export default [
name: 'agentEenterBasicImage',
component: agentEenterBasicImage,
meta: {
title: '影像资料',
title: '入司影像信息',
index: 1
}
},
@@ -179,7 +179,7 @@ export default [
name: 'agentEenterBasicHealth',
component: agentEenterBasicHealth,
meta: {
title: '健康告知',
title: '入司健康告知',
index: 1
}
},
@@ -188,7 +188,7 @@ export default [
name: 'agentEenterBasicSuccess',
component: agentEenterBasicSuccess,
meta: {
title: '入司信息填写成功',
title: '提交成功',
index: 1
}
},
@@ -206,7 +206,7 @@ export default [
name: 'ShareInfoSuccess',
component: ShareInfoSuccess,
meta: {
title: '入司申请填写成功',
title: '增员申请',
index: 1
}
}

View File

@@ -58,7 +58,7 @@
</div>
</template>
<script>
import { Field, CellGroup, Button, col, popup, picker } from 'vant'
import { Field, CellGroup, Button, col, popup, picker, Dialog } from 'vant'
import SelectRadio from '@/components/ebiz/SelectRadio'
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
import DataDictionary from '@/assets/js/utils/data-dictionary'
@@ -116,8 +116,12 @@ export default {
}
},
mounted() {
document.body.style.backgroundColor = '#fff'
Dialog.alert({
message: '请如实填写下列各项内容,直系亲属为本人父母、子女或配偶,其余亲属不属于直系亲属。如有不实,后果自负。'
}).then(() => {
this.agentAll()
})
document.body.style.backgroundColor = '#fff'
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''

View File

@@ -89,7 +89,7 @@
@delete="deleteImg"
:before-delete="beforeDelete"
class="mt10 ml20"
:max-count="1"
:max-count="2"
/>
</div>
<!-- end -->
@@ -185,7 +185,7 @@ export default {
this.fileListBank04 = [{ url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${item.rgssUrl}` }]
break
case '3': // 银行卡
this.fileListBank05 = [{ url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${item.rgssUrl}` }]
this.fileListBank05.push({ url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${item.rgssUrl}` })
break
}
if(item.imageInfoType == '1' && item.subBusinessType == '3'){

View File

@@ -613,7 +613,7 @@ export default {
this.$jump({
flag: 'navigation',
extra: {
title: '账户信息',
title: '入司基本信息',
hiddenRight: '1'
}
})

View File

@@ -1,5 +1,5 @@
<template>
<div class="insured-info-container pb50">
<div class="guarant-info-container pb50">
<!-- 基本信息 -->
<van-cell-group>
<RsTop :active="['1', '2']"></RsTop>
@@ -29,14 +29,14 @@
/>
<van-field label="姓名" type="text" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable v-model="userInfo.name" required />
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" required :value.sync="userInfo.sex"></select-radio>
<van-field label="身份证号码" type="text" name="身份证号码" placeholder="请输入" clearable v-model="userInfo.idNo" v-validate="'required'" required maxlength="18" />
<van-field label="身份证号码" type="text" name="身份证号码" placeholder="请输入" clearable v-model="userInfo.idNo" v-validate="'required|idNo'" required maxlength="18" />
<van-field label="单位" type="text" name="单位" placeholder="请输入" v-validate="'required'" clearable v-model="userInfo.company" required/>
<van-field label="家庭地址" type="text" name="家庭地址" placeholder="请输入" v-validate="'required'" clearable v-model="userInfo.homeAdress" required />
<van-field v-model="userInfo.mobile" label="手机号码" name="手机号码" placeholder="请输入" v-validate="'required|mobile'" maxlength="11" clearable required />
<!-- end -->
<div class="flex justify-content-s bottom-btn bg-white">
<van-button class=" bottom0 left0" square plain type="danger" @click="goBack" size="large">上一步</van-button>
<van-button class=" bottom0 left0" square type="danger" size="large" @click="nextStep" v-no-more-click="1000">下一步</van-button>
<van-button class=" bottom0 left0" square type="danger" size="large" @click.native="nextStep" v-no-more-click="1000">下一步</van-button>
</div>
</van-cell-group>
<!-- 字段选择 -->
@@ -46,7 +46,7 @@
</div>
</template>
<script>
import { Field, CellGroup, Button, col, popup, picker } from 'vant'
import { Field, CellGroup, Button, col, popup, picker, Dialog } from 'vant'
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
import SelectRadio from '@/components/ebiz/SelectRadio'
import DataDictionary from '@/assets/js/utils/data-dictionary'
@@ -95,8 +95,12 @@ export default {
}
},
mounted() {
document.body.style.backgroundColor = '#fff'
Dialog.alert({
message: '请如实填写下列各项内容担保人为年满18岁的中国公民。如有不实后果自负。'
}).then(() => {
this.agentAll()
})
document.body.style.backgroundColor = '#fff'
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
@@ -163,6 +167,8 @@ export default {
this.$validator.validate().then(valid => {
if (true === valid) {
this.save()
}else {
this.$toast(this.$validator.errors.all()[0])
}
})
},
@@ -201,7 +207,7 @@ export default {
}
</script>
<style lang="scss" scoped>
.insured-info-container {
.guarant-info-container {
.referrerW {
/deep/.van-cell__title {
width: 110px;

View File

@@ -190,7 +190,8 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/agentEenter/signContract`
url: location.origin + `/#/agentEenter/signContract`,
forbidSwipeBack: '1'
},
routerInfo: {
path: `/agentEenter/signContract`

View File

@@ -192,7 +192,9 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/agentEenter/agentEenterResult`
url: location.origin + `/#/agentEenter/agentEenterResult`,
forbidSwipeBack: '1',
backToFirst: '1'
},
routerInfo: {
path: `/agentEenter/agentEenterResult`

View File

@@ -313,7 +313,8 @@ export default {
flag: 'h5',
extra: {
url: location.origin + `/#/agentEenter/ShareInfoSuccess`,
forbidSwipeBack: '1'
forbidSwipeBack: '1',
backToFirst: '1'
},
routerInfo: {
path: `/agentEenter/ShareInfoSuccess`