zj
2024-06-03 96140d8eb2531144828dffe2ad8c19d0d9431009
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
89
90
91
92
93
94
95
96
97
98
99
100
<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('账号注册') }}</div>
            <div>{{ $t('实名认证') }}</div>
            <div>{{ $t('安全绑定') }}</div>
            <div>{{ $t('去交易') }}</div>
        </div>
    </div>
</template>
 
<script>
export default {
    props: {
        step: {
            type: Number | String,
            default: 1
        },
    },
    components: {
 
    },
    data() {
        return {
 
        }
    },
    methods: {
 
    }
}
</script>
 
<style lang="scss" scoped>
.steps {
    display: flex;
    align-items: center;
    margin-top: 70px;
    padding-left: 20px;
 
    .step {
        width: 80px;
        height: 80px;
        line-height: 80px;
        text-align: center;
        font-size: 40px;
        color: #fff;
 
        @include themify() {
            background: themed("bg_step");
        }
 
        border-radius: 50%;
    }
 
    .line {
        width: 128px;
        height: 9px;
 
        @include themify() {
            background: themed("tab_background");
        }
 
    }
 
    .green {
        background: #2EBD85;
    }
}
 
.stepsText {
    display: flex;
    padding-left: 20px;
    margin-top: 20px;
 
    div {
        text-align: center;
        width: 208px;
 
        &:nth-child(1) {
            width: 144px;
            text-align: left;
        }
 
        &:nth-child(4) {
            width: 144px;
            text-align: right;
        }
    }
}
</style>