lxf
2025-07-11 2a95677853ec636b4c568d0045a8bb1d4ef13097
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<template>
    <div class="changeVerify">
        <fx-header>
            <template #title>
                {{ title }}
            </template>
        </fx-header>
        <div class="content">
            <div class="imgBox">
                <img v-if="currentType == 2" src="@/assets/image/userCenter/emailVerity.png" alt="" />
                <img v-if="currentType == 1" src="@/assets/image/userCenter/phoneVerity.png" alt="" />
                <img v-if="currentType == 3" src="@/assets/image/userCenter/googleVerity.png" alt="" />
            </div>
            <p>{{ currentType == 1 ? $t('phoneVerify') : currentType == 2 ? $t('emailVerify') :
                    $t('googleAuthApp')
            }}{{ $t('protectAccount') }}</p>
            <van-button class="w-full" style="margin-top:10px;" type="primary" @click="goChange">
                {{ currentType == 1 ? $t('changePhoneVertify') : currentType == 2 ? $t('changeEmailVertify')
        : $t('changeGoogleVertify')
                }}
            </van-button>
        </div>
    </div>
</template>
 
<script setup>
import { ref, onMounted } from "vue";
import { useRouter, useRoute } from "vue-router";
import { useI18n } from "vue-i18n";
const router = useRouter()
const route = useRoute()
const { t } = useI18n()
 
const title = ref('')
const currentType = ref('')
 
onMounted(() => {
    init()
})
 
const init = () => {
    let type = route.query.type;
    currentType.value = type;
    if (type == 1) {
        title.value = t("phoneVerify");
    } else if (type == 2) {
        title.value = t("emailVerify");
    } else if (type == 3) {
        title.value = t("googleVertifyBind");
    }
}
const goChange = () => {
    router.push({ name: 'resetVerify', query: { type: currentType.value } })
}
 
</script>
 
<style lang="scss" scoped>
.changeVerify {
    width: 100%;
    box-sizing: border-box;
}
 
 
.content {
    font-size: 13px;
    padding: 0 16px;
    margin-top: 30px;
    text-align: center;
}
 
.imgBox {
    width: 88px;
    height: 88px;
    margin: auto;
 
    img {
        width: 100%;
        height: 100%;
    }
}
 
p {
    color: $dark-grey;
    font-size: 14px;
    margin-top: 22px;
}
</style>