inleft
2022-08-02 70097d968795fcc872095c42f7b7bba618baaaf9
commit | author | age
9bcb19 1 <template>
I 2   <result
3     :isSuccess="true"
4     :content="false"
5     :title="email"
6     :description="description">
7
8     <template slot="action">
9       <a-button size="large" type="primary">查看邮箱</a-button>
10       <a-button size="large" style="margin-left: 8px" @click="goHomeHandle">返回首页</a-button>
11     </template>
12
13   </result>
14 </template>
15
16 <script>
17 import { Result } from '@/components'
18
19 export default {
20   name: 'RegisterResult',
21   components: {
22     Result
23   },
24   data () {
25     return {
26       description: '激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。',
27       form: {}
28     }
29   },
30   computed: {
31     email () {
32       const v = this.form && this.form.email || 'xxx'
33       const title = `你的账户:${v} 注册成功`
34       return title
35     }
36   },
37   created () {
38     this.form = this.$route.params
39   },
40   methods: {
41     goHomeHandle () {
42       this.$router.push({ name: 'login' })
43     }
44   }
45 }
46 </script>
47
48 <style scoped>
49
50 </style>