step3.vue
1.73 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
<template>
<el-card style="min-height: 50vh">
<div class="text-center">
<img class="mauto" src="@/assets/dance/ok.png"/>
<h3 class="text-primary">{{ language == 0 ? '注册成功' : 'Stered Successfully !' }}</h3>
</div>
<div class="flexCenter">
<div class="border-info text-center inline">
<label>{{ language == 0 ? '登录账号' : 'Account' }}:</label> {{accont}}
</div>
</div>
<div class="text-center mt30 mb20">
<el-button class="primary-kx w200px" round @click="goHome">{{ language == 0 ? '返回首页' : 'Return to Homepage' }}</el-button>
<el-button type="primary" class="btn-lineG w200px" round @click="goSign">{{ language == 0 ? '去报名' : 'Sign Up' }}</el-button>
</div>
</el-card>
</template>
<script setup>
import {reactive,toRefs} from "@vue/runtime-core";
const router = useRouter()
import {ElMessage} from 'element-plus'
import {useRouter} from "vue-router";
import {useStorage} from "@vueuse/core/index";
const language= useStorage('language',0)
const props = defineProps({
accont:{
type:String,
required:true
}
})
const data = reactive({
isShow: false,
isCodeTrue: false,
counting: false,
form: {},
activeStep: 0
})
const {isShow, isCodeTrue, counting, form, activeStep} = toRefs(data)
const emit = defineEmits(['submit', 'userName'])
const goHome = () => {
router.push({
name: `home`
})
}
const goSign = () => {
router.push({
name: `matchDetail`,
params:{id:0}
})
}
</script>
<style scoped lang="scss">
.el-input-group__append button.el-button, .el-input-group__append button.el-button:hover {
color: var(--el-color-primary);
background: #efefff;
border: var(--el-color-primary) solid 1px;
border-radius: 0;
}
</style>