10.10综合交易所原始源码_移动端
admin
2026-01-06 42faef34194c466f03e29d75a63ae502e4213044
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
<template>
  <div id="cryptos">
    <div class="recharge box-border">
      <assets-head :title="$t('充值通道')" v-if="!isForeign" :back-func="backFunc">
        <img src="../../../assets/image/assets-center/exchange.png" alt="exchange-img" class="w-11 h-9"
          @click="goRouter('/cryptos/assetsCenter/rechargeWithdrawRecord')" />
      </assets-head>
      <assets-head v-else :title="$t('充值通道')">
        <img src="../../../assets/image/assets-center/exchange.png" alt="exchange-img" class="w-11 h-9"
          @click="goRouter('/cryptos/assetsCenter/rechargeWithdrawRecord')" />
      </assets-head>
      <div class="pl-9 pr-9">
        <div class="recharge-title text-36 textColor">{{ $t('请选择充值币种') }}</div>
        <div class="recharge-list flex justify-between">
          <div class="item-view flex flex-col items-center justify-center text-center w-48 h-56 box-border"
            @click="selectSymbol('usdt')">
            <img src="../../../assets/image/symbol/usdt.png" class="w-24 h-92" />
            <div class="text-grey text-26 mt-8">{{ $t('USDT充值') }}</div>
          </div>
          <div class="item-view  flex flex-col items-center justify-center text-center w-48 h-56 box-border"
            @click="selectSymbol('btc')">
            <img src="../../../assets/image/symbol/btc.png" class="w-24 h-92" />
            <div class="text-grey text-26 mt-8">{{ $t('BTC充值') }}</div>
          </div>
          <div class="item-view flex flex-col items-center justify-center text-center w-48 h-56 box-border"
            @click="selectSymbol('eth')">
            <img src="../../../assets/image/symbol/eth.png" class="w-24 h-92" />
            <div class="text-grey text-26 mt-8">{{ $t('ETH充值') }}</div>
          </div>
        </div>
      </div>
      <div class="textColor mt-10">
        <div class="pl-9 pr-9 h-20 border-b-color flex justify-between text-28" v-for="(item, index) in list" :key="index"
          @click="toPath(item.url)">
          <div class="flex items-center">
            <img :src="handleImage(item.imgPath)" class="w-11 h-11 rounded-full mr-5" />
            <span class="textColor1">{{ item.name }} {{ $t('官方充值通道') }}</span>
          </div>
          <div>
            <van-icon class="textColor1" name="arrow" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
import assetsHead from "@/components/Transform/assets-head/index.vue";
import { Icon } from 'vant';
export default {
  name: 'rechageList',
  components: {
    assetsHead,
    [Icon.name]: Icon,
  },
  data() {
    return {
      list: [
        {
          name: 'Huobi',
          url: 'https://www.huobi.com/en-us/',
          imgPath: new URL('@/assets/image/huobi.png', import.meta.url),
        },
        {
          name: 'Binance',
          url: 'https://www.binance.com/en',
          imgPath: new URL('@/assets/image/bian.png', import.meta.url),
        },
        {
          name: 'Coinbase',
          url: 'https://www.coinbase.com/',
          imgPath: new URL('@/assets/image/coinbase.png', import.meta.url),
        },
        {
          name: 'Crypto',
          url: 'https://www.crypto.com/',
          imgPath: new URL('@/assets/image/crypto.png', import.meta.url),
        }
      ],
      isForeign: false
    }
  },
  created() {
    if (this.$route.query.isForeign) {
      this.isForeign = this.$route.query.isForeign
    }
  },
  methods: {
    handleImage(url) {
      return new URL(url, import.meta.url).href
    },
    toPath(url) {
      const a = document.createElement('a');
      a.href = url;
      a.target = "_bank";
      document.body.append(a);
      a.click();
      document.body.removeChild(a)
      // if (navigator.userAgent.search('Html5Plus') != -1) {
      //     plus.runtime.openURL(url)
      // } else {
      //     window.open(url)
      // }
    },
    backFunc() {
      this.$router.push('/quotes/index?tabActive=1')
    },
    selectSymbol(symbol) {
      this.$router.push({
        path: "/cryptos/recharge/rechargePage",
        query: {
          'symbol': symbol
        }
      });
    },
    goRouter(params) {
      this.$router.push({
        path: params,
        query: {
          back: "1"
        }
      });
    }
  }
}
</script>
<style lang="scss" scoped>
#cryptos {
  .recharge {
    width: 100%;
    box-sizing: border-box;
  }
 
  .recharge-title {
    margin: 86px 0 104px 0;
  }
 
  .recharge-list>div {
    border: 2px solid $border_color;
    border-radius: 15px;
    box-sizing: border-box;
  }
}
</style>