[FIX]【自助入司优化】页面跳转调试

This commit is contained in:
yuweiqi
2020-06-19 19:06:39 +08:00
parent fb1e1f8328
commit a6fb96e125
3 changed files with 44 additions and 36 deletions

View File

@@ -43,7 +43,7 @@ export default [
component: signContract, component: signContract,
meta: { meta: {
title: '入司签署信息', title: '入司签署信息',
index: 10 index: 1
} }
}, },
{ {
@@ -52,7 +52,7 @@ export default [
component: healthNotice, component: healthNotice,
meta: { meta: {
title: '保险代理申请人健康声明', title: '保险代理申请人健康声明',
index: 11 index: 1
} }
}, },
{ {
@@ -61,7 +61,7 @@ export default [
component: letterOfCommitment, component: letterOfCommitment,
meta: { meta: {
title: '承诺书', title: '承诺书',
index: 11 index: 1
} }
}, },
{ {
@@ -70,7 +70,7 @@ export default [
component: messageLetterOfCommitment, component: messageLetterOfCommitment,
meta: { meta: {
title: '广西保险销售从业人员信息公开承诺书', title: '广西保险销售从业人员信息公开承诺书',
index: 11 index: 1
} }
}, },
{ {
@@ -79,7 +79,7 @@ export default [
component: illegalLetterOfCommitment, component: illegalLetterOfCommitment,
meta: { meta: {
title: '销售从业人员拒绝非法集资、非法放贷、金融诈骗承诺书', title: '销售从业人员拒绝非法集资、非法放贷、金融诈骗承诺书',
index: 11 index: 1
} }
}, },
{ {
@@ -88,7 +88,7 @@ export default [
component: guarantee, component: guarantee,
meta: { meta: {
title: '担保书', title: '担保书',
index: 11 index: 1
} }
}, },
{ {
@@ -97,7 +97,7 @@ export default [
component: letterOfKnow, component: letterOfKnow,
meta: { meta: {
title: '代理人基本福利保障知晓函', title: '代理人基本福利保障知晓函',
index: 11 index: 1
} }
}, },
// { // {
@@ -115,7 +115,7 @@ export default [
component: paction, component: paction,
meta: { meta: {
title: '个险销售人员代理合同', title: '个险销售人员代理合同',
index: 11 index: 1
} }
}, },
{ {

View File

@@ -169,20 +169,9 @@ export default {
}) })
}, },
goNext() { goNext() {
if (this.appntSign.signState == '1' && !this.base64) { if (this.$route.query.isChange && !this.base64) {
console.log(1111111) //TEST console.log(1111111) //TEST
this.$jump({ this.goBack()
flag: 'goback',
extra: {
refresh: '1',
index: '-1'
},
routerInfo: {
type: '2',
index: -1,
path: `/agentEenter/signContract`
}
})
} else { } else {
console.log(222222222) //TEST console.log(222222222) //TEST
let data = { let data = {
@@ -203,6 +192,9 @@ export default {
console.log(res) console.log(res)
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
if (this.$route.query.isChange) {
this.goBack()
} else {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
@@ -215,11 +207,27 @@ export default {
path: `/agentEenter/${this.nextPagePath}?code=${this.code}` path: `/agentEenter/${this.nextPagePath}?code=${this.code}`
} }
}) })
}
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
} }
}) })
} }
},
goBack() {
this.$jump({
flag: 'goBack',
extra: {
refresh: '1',
index: '-1',
forbidSwipeBack: '1'
},
routerInfo: {
type: 2,
index: -1,
path: `/agentEenter/signContract`
}
})
} }
}, },
computed: { computed: {

View File

@@ -40,7 +40,7 @@
<li class="flex" v-for="(sign, index) in guaranteeSignList" :key="index"> <li class="flex" v-for="(sign, index) in guaranteeSignList" :key="index">
<div class="w240 blue">{{ sign.name }}</div> <div class="w240 blue">{{ sign.name }}</div>
<van-icon v-if="sign.signState === '1'" color="green" name="checked" /> <van-icon v-if="sign.signState === '1'" color="green" name="checked" />
<van-button v-if="sign.signState === '1'" @click="changeSign(sign, '0')" v-no-more-click="1000" plain type="danger" round size="small" class="ml5" <van-button v-if="sign.signState === '1'" @click="changeSign(sign, '1')" v-no-more-click="1000" plain type="danger" round size="small" class="ml5"
>重新签名</van-button >重新签名</van-button
> >
</li> </li>
@@ -215,10 +215,10 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: `${location.origin}/#/agentEenter/${v.path}?code=${code}` url: `${location.origin}/#/agentEenter/${v.path}?code=${code}&isChange=0`
}, },
routerInfo: { routerInfo: {
path: `/agentEenter/${v.path}?code=${code}` path: `/agentEenter/${v.path}?code=${code}&isChange=0`
} }
}) })
}, },