1
李凌
2025-09-19 e1e51991ad91c14fa00c5cf46f95e514f676ac4d
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
<template>
    <div>
        <div class="steps">
            <div class="step" :class="step == 1 || step == 2 || step == 3 || step == 4 ?'green':'' ">1</div>
            <div class="line" :class="step == 1 || step == 2 || step == 3 || step == 4 ?'green':''"></div>
            <div class="step" :class="step == 2 || step == 3 || step == 4 ?'green':''">2</div>
            <div class="line" :class="step == 3 || step == 4 ?'green':''"></div>
            <div class="step" :class="step == 3 || step == 4 ?'green':''">3</div>
            <div class="line" :class="step == 4 ?'green':''"></div>
            <div class="step" :class="step == 4 ?'green':''">4</div>
        </div>
        <div class="stepsText textColor">
            <div>{{ $t('accountRegister') }}</div>
            <div>{{ $t('realNameVertify') }}</div>
            <div>{{ $t('safeBind') }}</div>
            <div>{{ $t('toExchange') }}</div>
        </div>
    </div>
</template>
 
<script setup>
const props = defineProps({
    step: {
        type: Number ,
        default: 1
    }
})
</script>
 
<style lang="scss" scoped>
.steps {
    display: flex;
    align-items: center;
    margin-top: 35px;
    padding-left: 10px;
 
    .step {
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-size: 20px;
        color: $text_color;
        background:  $dark-grey;
        border-radius: 50%;
    }
 
    .line {
        width: 64px;
        height: 5px;
        background: $light-grey;
    }
 
    .green {
        background: $green;
    }
}
 
.stepsText {
    display: flex;
    padding-left: 10px;
    margin-top: 10px;
 
    div {
        text-align: center;
        width: 104px;
 
        &:nth-child(1) {
            width: 72px;
            text-align: left;
        }
        &:nth-child(4){
            width: 72px;
            text-align: right;
        }
    }
}
</style>