1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| <template>
| <result
| :isSuccess="true"
| :content="false"
| :title="email">
|
| <template slot="action">
| <a-button size="large" style="margin-left: 8px" @click="goHomeHandle">返回首页</a-button>
| </template>
|
| </result>
| </template>
|
| <script>
| import Result from '@/views/result/Result'
|
| export default {
| name: "RegisterResult",
| components: {
| Result
| },
| data () {
| return {
| model: {},
| }
| },
| computed: {
| email () {
| let v = this.model ? this.model.username || this.model.mobile : ' XXX '
| let title = `你的账户:${v} 注册成功`
| this.username = v;
| return title
| }
| },
| created () {
| this.model = this.$route.params
| },
| methods: {
| goHomeHandle () {
| let params={};
| params.username=this.model.username;
| params.password=this.model.password;
| console.log(params);
| this.$router.push({name:'login',params})
| },
| }
| }
| </script>
|
| <style scoped>
|
| </style>
|
|