10.10综合交易所原始源码_移动端
1
admin
2026-01-06 03043192ddf00f9a36b7454799a9152cd1b50a0b
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
<template>
  <div id="cryptos" class="mt-10">
    <div class="nav mb-5">
      <div v-for="(item, index) in navList" :key="index" class="list" @click="goPath(item.path, item.name)">
        <div class="imgBox"><img :src="handleImage(item.icon)" alt=""></div>
        <div class="mt-10 text-center title">{{ item.name }}</div>
      </div>
    </div>
  </div>
</template>
 
<script>
import { themeStore } from '@/store/theme';
const thStore = themeStore()
export default {
  props: {
    defaultEtfListData: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  components: {
 
  },
  watch: {
    defaultEtfListData(val) {
      this.navList = [
        {
          name: this.$t('ETFTrading'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon1-1.png`, import.meta.url),
          path: `/quotes/openTrade?tabActive=0&symbol=${val[0].symbol}&type=indices`
        },
        {
          name: this.$t('永续合约'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon2-2.png`, import.meta.url),
          path: `/cryptos/perpetualContract/${val[0].symbol}?type=indices&selectIndex=1`
        },
        {
          name: this.$t('期货交易'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon3-3.png`, import.meta.url),
          path: `/cryptos/perpetualContract/${val[0].symbol}?type=indices&selectIndex=2`
        },
        {
          name: this.$t('账变记录'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon4-4.png`, import.meta.url),
          path: '/cryptos/accountChange?type=indices'
        },
        {
          name: this.$t('大宗交易'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon3-3.png`, import.meta.url),
          path: '/cryptos/blockTradesEtf'
        },
        // {
        //   name: this.$t('暗池交易'),
        //   icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon3-3.png`, import.meta.url),
        //   path: '/cryptos/darkpoolTradingEtf'
        // },
      ]
    }
  },
  data() {
    return {
      navList: [
        {
          name: this.$t('ETFTrading'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon1-1.png`, import.meta.url),
          path: `/quotes/openTrade?tabActive=0&symbol=GlobalETF500&type=indices`
        },
        {
          name: this.$t('永续合约'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon2-2.png`, import.meta.url),
          path: `/cryptos/perpetualContract/GlobalETF500?type=indices&selectIndex=1`
        },
        {
          name: this.$t('期货交易'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon3-3.png`, import.meta.url),
          path: `/cryptos/perpetualContract/GlobalETF500?type=indices&selectIndex=2`
        },
        {
          name: this.$t('账变记录'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon4-4.png`, import.meta.url),
          path: '/cryptos/accountChange?type=indices'
        },
        {
          name: this.$t('大宗交易'),
          icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon3-3.png`, import.meta.url),
          path: '/cryptos/blockTradesEtf'
        },
        // {
        //   name: this.$t('暗池交易'),
        //   icon: new URL(`../../../assets/theme/${thStore.theme}/image/etfNav/icon3-3.png`, import.meta.url),
        //   path: '/cryptos/darkpoolTradingEtf'
        // },
      ],
    }
  },
  mounted() {
    console.log(this.navList[0].icon)
 
  },
  methods: {
    handleImage(url) {
      return new URL(url, import.meta.url).href
    },
    goPath(path, name) {
      if (!path) {
        return
      } else {
        this.$router.push(path)
      }
    }
  },
}
</script>
 
<style lang="scss" scoped>
.nav {
  display: flex;
  justify-content: start;
  // flex-wrap: wrap;
  align-items: center;
  font-size: 26px;
  color: #21262F;
}
 
.list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  // width: 25%;
  flex: 1;
  color: $text_color;
 
  &:last-child {
    margin-right: 0px;
  }
 
  .title {
    font-family: 'PingFang HK';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 17px;
    text-align: center;
    height: 30px;
  }
}
 
.imgBox {
  width: 48px;
  height: 48px;
 
  img {
    width: 100%;
    height: 100%;
  }
}
</style>