Commit 1a074805 by 胡悦

提交路由

1 parent d77f801c
...@@ -37,6 +37,15 @@ const staticRoutes = Object.freeze([ ...@@ -37,6 +37,15 @@ const staticRoutes = Object.freeze([
} }
}, },
{ {
name: 'RegisterSuccess',
path: '/registerSuccess',
component: () => import('views/login/registerSuccess.vue'),
meta: {
title: '注册成功',
backgroundColor: '#fff'
}
},
{
name: 'Project', name: 'Project',
path: '/project', path: '/project',
component: () => import('views/project/index.vue') component: () => import('views/project/index.vue')
......
...@@ -22,9 +22,12 @@ orm<template> ...@@ -22,9 +22,12 @@ orm<template>
:rules="[{ required: true, message: '请输入持卡人姓名' }]" /> :rules="[{ required: true, message: '请输入持卡人姓名' }]" />
<div class="form-explain">持卡人姓名与姓名必须一致</div> <div class="form-explain">持卡人姓名与姓名必须一致</div>
<div class="form-submit"> <div class="form-submit">
<van-button round block color="#FB7034" native-type="submit"> <van-button round block color="#FB7034" native-type="onRegister">
提交注册 提交注册
</van-button> </van-button>
<van-button round block color="#FB7034" @click="onRegister">
注册成功
</van-button>
</div> </div>
</van-form> </van-form>
</template> </template>
...@@ -44,7 +47,7 @@ const getCode = () => { ...@@ -44,7 +47,7 @@ const getCode = () => {
} }
const onRegister = () => { const onRegister = () => {
router.go(-2) router.push('/registerSuccess')
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!