dcc
2024-06-13 3616db170333df7d668c97323344335b52c4153c
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
<template>
  <div class="page">
    <div class="headbg flex justify-between">
      <div>{{ t("message.user.qingxuanzetikuanfangshi") }}</div>
      <p class="fs-12 blue-color cursor-pointer" @click="gotoRecord">
        {{ t("message.user.tikuanjilu") }}
      </p>
    </div>
    <div class="xcenter">
      <div class="tipbg mt-12 mb-16">{{ t("message.user.tikuantishi") }}</div>
      <div class="mb-4">
        {{ t("message.user.qingxuanzetikuanfangshi") }}
      </div>
      <div class="flex">
        <div
          class="item"
          :class="activeType == 'bank' ? 'item-active' : ''"
          @click="handleBank"
        >
          <img
            src="@/assets/images/wallet/recharge/bank.png"
            width="24"
            height="24"
          />
          <div>{{ t("message.user.yinhangkatikuan") }}</div>
        </div>
        <div
          class="item"
          :class="activeType == 'usdt' ? 'item-active' : ''"
          @click="handleUsdt"
        >
          <img
            src="@/assets/images/wallet/recharge/usdt.png"
            width="24"
            height="24"
          />
          <div>{{ t("message.user.usdttikuan") }}</div>
        </div>
      </div>
      <div class="btn-wrapper">
        <el-button @click="goBack">{{ t("message.user.quxiao") }}</el-button>
        <el-button type="primary" @click="goPage">{{
          t("message.user.queren")
        }}</el-button>
      </div>
    </div>
  </div>
</template>
 
<script setup>
import { onMounted, ref } from "vue";
import { useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
 
const { t } = useI18n();
 
const router = useRouter();
const activeType = ref("bank");
 
const handleBank = () => {
  activeType.value = "bank";
};
const handleUsdt = () => {
  activeType.value = "usdt";
};
const goPage = () => {
  router.push(`/withdraw/${activeType.value}`);
};
 
const gotoRecord = () => {
  router.push(`/withdraw/record`);
};
 
const goBack = () => {
  router.push(`/wallet/walletOverview`);
};
 
</script>
<style lang="scss" scoped>
.page {
  width: 100vw;
  position: relative;
  .headbg {
    padding: 24px 360px;
    margin: 0 auto;
    background: #fafafb;
    font-weight: 600;
    font-size: 24px;
  }
}
 
.xcenter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  .tipbg {
    background: #eff7ff;
    border-radius: 5px;
    padding: 20px;
    min-width: 506px;
  }
  .item {
    border-radius: 8px;
    border: 1px solid #dfe1e2;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 62px;
    margin-right: 24px;
    color: #727a89;
    font-size: 14px;
    cursor: pointer;
    img {
      margin-right: 8px;
    }
  }
  .item:hover,
  .item-active {
    border: 1.6px solid #2465f1;
    color: #000;
  }
  .btn-wrapper {
    margin-top: 240px;
    .el-button {
      width: 186px;
      height: 48px;
    }
    .el-button:first-child {
    }
    .el-button:nth-child(2) {
      background: #2465f1;
    }
  }
}
</style>