1
PC-20250623MANY\Administrator
2025-08-18 00a9199abd43a052f26c2a7e8cb7e9c2fce71dc7
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<template>
  <div class="account">
    <assets-head :title="$t('账户中心')" />
    <div class="list-item">
      <div class="item" @click="go_certificationCenter">
        <div class="left">{{ $t("实名认证") }}</div>
        <div class="right">
          <span>{{
            status == 0
              ? $t("未认证")
              : status == 1
              ? $t("审核中")
              : status == 2
              ? $t("已认证")
              : status == 3
              ? $t("审核未通过")
              : ""
          }}</span>
          <van-icon name="arrow" color="rgb(204, 204, 204)" />
        </div>
      </div>
    </div>
    <div class="list-item">
      <div class="item">
        <div class="left">
          <div style="margin-right: 16px">
            <van-icon size="4rem" name="calendar-o" />
          </div>
          <!-- /advancedCtf -->
          <div>{{ $t("高级认证") }}</div>
        </div>
        <div class="right">
          <span class="">{{ userInfo.status }}</span>
        </div>
      </div>
      <div class="item">
        <div class="left">
          <div>{{ $t("个人头像") }}</div>
        </div>
        <div class="right">
          <div class="avatar">
            <img src="../../assets/avatar.png" alt="" />
          </div>
        </div>
      </div>
      <div class="item">
        <div class="left">
          <div>{{ $t("账户") }}</div>
        </div>
        <div class="right">
          <span class="">{{ userInfo.username }}</span>
        </div>
      </div>
      <div class="item">
        <div class="left">
          <div>{{ $t("UID") }}</div>
        </div>
        <div class="right">
          <span class="">{{ userInfo.usercode }}</span>
        </div>
      </div>
      <div class="item">
        <div class="left flex-col" style="align-items: flex-start">
          <div>{{ $t("邮箱") }}</div>
          <div class="email">{{ userInfo.email }}</div>
        </div>
        <div class="right" v-if="userInfo.email">
          <span class="">{{ $t("已绑定") }}</span>
        </div>
      </div>
    </div>
 
    <div class="list-item">
      <div class="item">
        <div class="left">{{ $t("提币地址管理") }}</div>
        <div class="right">
          <span>{{ $t("已认证") }}</span>
          <van-icon name="arrow" color="rgb(204, 204, 204)" />
        </div>
      </div>
      <div class="item" @click="$router.push('/changePassword')">
        <div class="left">{{ $t("登录密码") }}</div>
        <div class="right">
          <span>{{ $t("修改") }}</span>
          <van-icon name="arrow" color="rgb(204, 204, 204)" />
        </div>
      </div>
      <div class="item" @click="$router.push('/changeFundsPassword')">
        <div class="left">{{ $t("资金密码") }}</div>
        <div class="right">
          <span>{{ $t("修改") }}</span>
          <van-icon name="arrow" color="rgb(204, 204, 204)" />
        </div>
      </div>
    </div>
 
    <div class="logOut" @click="loginOut">
      {{ $t("退出") }}
    </div>
  </div>
</template>
 
<script>
import assetsHead from "@/components/assets-head";
import { mapGetters } from "vuex";
import { _getIdentify } from "@/API/fund.api";
import { setStorage } from "@/utils/utis";
 
export default {
  components: {
    assetsHead,
  },
  data: () => ({
    status: -1,
    // ("0已申请未审核=未绑定 ,1审核中 ,2 审核通过,3审核未通过")
    statusMap: ["未绑定", "审核中", "审核通过", "审核未通过"],
  }),
  computed: {
    ...mapGetters({
      userInfo: "user/userInfo",
    }),
  },
  created() {
    this.getIdentify();
  },
  methods: {
    getIdentify() {
      _getIdentify().then((data) => {
        this.status = data.status;
        // this.name = data.name;
      });
    },
    go_certificationCenter() {
      if (this.status != 2) {
        this.$router.push({
          path: "/certificationCenter",
        });
      }
    },
    loginOut() {
      this.$store.commit("user/SET_OUT");
      this.$router.push("/home");
      setStorage("popNotice", false);
    },
  },
};
</script>
 
<style scoped lang="scss">
.account {
  padding: 0 2rem;
  color: #fff;
}
.list-item {
  width: 100%;
  background: #212121;
  border-radius: 1rem;
  padding: 1rem 2rem;
  box-sizing: border-box;
  font-weight: 500;
  margin: 2rem 0;
  .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
 
    .left {
      display: flex;
      align-items: center;
      font-size: 2rem;
 
      .email {
        font-size: 1.6rem;
        color: hsla(0, 0%, 100%, 0.7);
      }
    }
    .right {
      min-width: 6rem;
      color: #f7b328;
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
      .avatar {
        width: 7rem;
        height: 7rem;
        border-radius: 6rem;
        margin-right: 1.2rem;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}
 
.logOut {
  width: 43.8rem;
  height: 6.4rem;
  line-height: 6.4rem;
  text-align: center;
  background: #ef4444;
  border-radius: 3.6rem;
  margin: 0 auto 5.3rem;
}
</style>