fix page router
This commit is contained in:
parent
e2fe4bb053
commit
6fd43d29db
@ -10,7 +10,7 @@ const goBack = () => {
|
||||
const route = useRoute();
|
||||
watch(route, () => {
|
||||
|
||||
if (route.path.includes('title-forward/upload-id-card')) {
|
||||
if (route.path.includes('page-forward/upload-id-card')) {
|
||||
switch (route.params.active) {
|
||||
case '0':
|
||||
route.meta.title = '上传身份证照片'
|
||||
|
@ -12,8 +12,8 @@ const routes = [
|
||||
component: () => import('@/views/logon/index.vue')
|
||||
},
|
||||
{
|
||||
path: '/title-forward',
|
||||
name: 'title-forward',
|
||||
path: '/page-forward',
|
||||
name: 'page-forward',
|
||||
component: () => import('@/views/title-forward/index.vue'),
|
||||
children: [
|
||||
{
|
||||
|
@ -66,9 +66,9 @@ const isSignUp = async () => {
|
||||
if (res.status === 0) {
|
||||
if (res.data.isExist) {
|
||||
submitReturnData.value = res.data.data
|
||||
router.push(`/title-forward/reg-details`)
|
||||
router.push(`/page-forward/reg-details`)
|
||||
} else {
|
||||
router.push(`/title-forward/upload-id-card/${0}`)
|
||||
router.push(`/page-forward/upload-id-card/${0}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ const saveInfo = async () => {
|
||||
});
|
||||
btnStatus.value = 0
|
||||
if (submitReturnData.value.phoneNum !== temSubmitReturnData.value.phoneNum) {
|
||||
router.replace('/title-forward/logon')
|
||||
router.replace('/page-forward/logon')
|
||||
}
|
||||
temSubmitReturnData.value = submitReturnData.value
|
||||
}
|
||||
@ -163,7 +163,7 @@ const goRouter = () => {
|
||||
idCardInfo.value.expirationDate = submitReturnData.value.idCardEndDate
|
||||
iDCardImage.value.front = submitReturnData.value.idCardPhoto
|
||||
iDCardImage.value.back = submitReturnData.value.idCardBackPhoto
|
||||
router.push(`/title-forward/replace-id-card`)
|
||||
router.push(`/page-forward/replace-id-card`)
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
|
@ -4,7 +4,7 @@ import storage from '@/utils/storage.js';
|
||||
import { ref, onBeforeMount } from "vue";
|
||||
onBeforeMount(() => {
|
||||
storage.setItem('top-title', '登录')
|
||||
router.push('/title-forward/logon')
|
||||
router.push('/page-forward/logon')
|
||||
})
|
||||
const router = useRouter();
|
||||
const goRouter = () => {
|
||||
|
@ -90,7 +90,7 @@ const stepsClick = async (item) => {
|
||||
return
|
||||
}
|
||||
active.value = 1
|
||||
router.replace(`/title-forward/upload-id-card/${1}`)
|
||||
router.replace(`/page-forward/upload-id-card/${1}`)
|
||||
break
|
||||
case 1:
|
||||
if (item.type === 'next') {
|
||||
@ -116,10 +116,10 @@ const stepsClick = async (item) => {
|
||||
return
|
||||
}
|
||||
active.value = 2
|
||||
router.replace(`/title-forward/upload-id-card/${2}`)
|
||||
router.replace(`/page-forward/upload-id-card/${2}`)
|
||||
} else if (item.type === 'back') {
|
||||
active.value = 0
|
||||
router.replace(`/title-forward/upload-id-card/${0}`)
|
||||
router.replace(`/page-forward/upload-id-card/${0}`)
|
||||
}
|
||||
break
|
||||
case 2:
|
||||
@ -134,15 +134,15 @@ const stepsClick = async (item) => {
|
||||
}
|
||||
submitClick()
|
||||
active.value = 3
|
||||
router.replace(`/title-forward/upload-id-card/${3}`)
|
||||
router.replace(`/page-forward/upload-id-card/${3}`)
|
||||
} else if (item.type === 'back') {
|
||||
active.value = 1
|
||||
router.replace(`/title-forward/upload-id-card/${1}`)
|
||||
router.replace(`/page-forward/upload-id-card/${1}`)
|
||||
}
|
||||
break
|
||||
case 3:
|
||||
if (item.type === 'finish') {
|
||||
router.push('/title-forward/reg-details')
|
||||
router.push('/page-forward/reg-details')
|
||||
}
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user