jhzh
2024-09-23 e678ec74066a2c5b5b3b404d3344bffbd3cf59bd
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<template>
    <div class="mt-20">
        <div class="nav mb-40">
            <div v-for="(item, index) in navList" :key="index" class="list" @click="goPath(item.path, item.name)">
                <div class="imgBox"><img :src="item.icon" alt=""></div>
                <div class="mt-15 text-center font-20 textColor3">{{ item.name }}</div>
            </div>
        </div>
        <div class="nav mb-44">
            <div v-for="(item, index) in navList1" :key="index" class="list" @click="goPath(item.path, item.name)">
                <div class="imgBox"><img :src="item.icon" alt=""></div>
                <div class="mt-15 text-center font-20 textColor3 h-64">{{ item.name }}</div>
            </div>
        </div>
    </div>
</template>
 
<script>
import { mapGetters } from 'vuex';
export default {
    props: {
 
    },
    computed: {
        ...mapGetters({
            theme: 'home/theme'
        }),
    },
    data() {
        return {
            navList: [
                          ],
            navList1: [
 
            ]
        }
    },
    methods: {
        goPath(path, name) {
            if (path == '/more') {
                this.$toast(this.$t("敬请期待"))
 
            } else {
                this.$router.push(path)
            }
        }
    },
    mounted() {
                this.navList = [
            {
                name: this.$t('闪兑'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/exchange.png`),
                path: '/exchange/exchangePage'
            },
            {
                name: this.$t('理财'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/finance.png`),
                path: '/fm-home'
            },
            {
                name: this.$t('合约交易'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/trading.png`),
                path: '/trendDetails/btc'
            },
            {
                name: this.$t('分享'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/share.png`),
                path: '/promote'
            },
        ]
        this.navList1 = [
            {
                name: this.$t('在线客服'),
 
                icon: require(`../../assets/theme/${this.theme}/image/nav/account.png`),
                path: '/customerService'
            },
            {
                name: this.$t('质押借币'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/pledge.png`),
                path: '/pledgeLoan'
            },
            {
                name: this.$t('账变记录'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/record.png`),
                path: '/accountChange'
            },
            {
                name: this.$t('现货账户'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/pool.png`),
                path: '/funds'
            },
        ]
    },
    activated() {
        this.navList = [
            {
                name: this.$t('闪兑'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/exchange.png`),
                path: '/exchange/exchangePage'
            },
            {
                name: this.$t('理财'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/finance.png`),
                path: '/fm-home'
            },
            {
                name: this.$t('合约交易'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/trading.png`),
                path: '/trendDetails/btc'
            },
            {
                name: this.$t('分享'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/share.png`),
                path: '/promote'
            },
        ]
        this.navList1 = [
            {
              name: this.$t('在线客服'),
              icon: require(`../../assets/theme/${this.theme}/image/nav/account.png`),
              path: '/customerService'
            },
            {
                name: this.$t('质押借币'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/pledge.png`),
                path: '/pledgeLoan'
            },
            {
                name: this.$t('账变记录'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/record.png`),
                path: '/accountChange'
            },
            {
                name: this.$t('现货账户'),
                icon: require(`../../assets/theme/${this.theme}/image/nav/pool.png`),
                path: '/funds'
            },
        ]
    },
}
</script>
 
<style lang="scss" scoped>
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #21262F;
}
 
.list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 50px;
    flex: 1;
    
    @include themify() {
        color: themed("text_color");
    }
 
    &:last-child {
        margin-right: 0px;
    }
}
 
.imgBox {
    width: 72px;
    height: 72px;
 
    img {
        width: 100%;
        height: 100%;
    }
}
</style>