zzzz
2024-04-30 2d824e3fd91927fd02ef0d8b4a7dae35c69fc52e
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
<template>
  <div class="certificationCenter">
    <assets-head :title="$t('认证中心')"></assets-head>
    <div class="top px-32 pt-26 pb-42">
      <div class="font-52 textColor flex justify-between">
        <div>{{ $t("个人中心") }}</div>
        <!-- <div v-if="nationality"  class="w-60 h-60 rounded-full icon iti-flag" :class="nationality" style="transform: scale(2.1)"></div> -->
      </div>
      <div class="flex">
        <div class="flex items-center mt-32 px-28 py-8 bgDark rounded-full">
          <img
            src="../../assets/image/certificationCenter/cftIcon.png"
            alt=""
            class="w-64 h-64"
          />
          <span class="ml-10 font-32 textColor3" @click="show = true">{{
            $t("查看当前功能")
          }}</span>
        </div>
      </div>
    </div>
    <div class="contentBox pt-46 tabBackground pb-64">
      <div class="btnBox px-32 flex">
        <div
          class="textColor3 px-44 h-100 rounded-full bgDark flex items-center"
          :class="{ activeStyle: active == 0 }"
          @click="changeTab(0)"
        >
          <img
            v-if="identityverif"
            src="../../assets/image/certificationCenter/finishIcon.png"
            alt=""
            class="w-48 h-48 mr-14"
          />
          <span>{{ $t("进阶认证") }}</span>
        </div>
        <div
          class="textColor3 px-44 h-100 rounded-full bgDark ml-28 flex items-center"
          :class="{ activeStyle: active == 1 }"
          @click="changeTab(1)"
        >
          <img
            v-if="advancedverif"
            src="../../assets/image/certificationCenter/finishIcon.png"
            alt=""
            class="w-48 h-48 mr-14"
          />
          <span>{{ $t("公证认证") }}</span>
        </div>
      </div>
      <div v-show="active == 0">
        <div class="flex pl-32 justify-between mt-54">
          <div class="textColor font-36">{{ $t("要求") }}</div>
          <div
            class="font-28 flex items-center py-12 px-14 border-radius-left"
            :class="{
              status0: kyc_status == 0 || kyc_status == 3,
              status1: kyc_status == 1,
              status2: kyc_status == 2,
            }"
          >
            <img
              :src="
                require(`../../assets/image/certificationCenter/status${kyc_status}.png`)
              "
              class="w-32 h-32"
              alt=""
            />
            <span class="font-28 ml-12">{{ fixState(kyc_status) }}</span>
          </div>
        </div>
        <div class="px-32">
          <div class="flex items-center mt-34 font-30 textColor">
            <img
              src="../../assets/image/certificationCenter/info.png"
              class="w-36 h-36"
              alt=""
            />
            <span class="ml-24 textColor">{{ $t("个人信息") }}</span>
          </div>
          <div class="flex items-center mt-40 font-30 textColor">
            <img
              src="../../assets/image/certificationCenter/identity.png"
              class="w-36 h-36"
              alt=""
            />
            <span class="ml-24 textColor">{{ $t("政府发行的身份证") }}</span>
          </div>
        </div>
        <div class="px-32">
          <div class="font-36 textColor mt-82">{{ $t("功能与限制") }}</div>
          <content-com
            class="mt-40"
            :contentObj="coinObj"
            :state="identityverif"
          ></content-com>
          <content-com
            class="mt-40"
            :contentObj="c2cObj"
            :state="identityverif"
          ></content-com>
          <content-com
            class="mt-40"
            :contentObj="currencyObj"
            :state="identityverif"
          ></content-com>
          <div class="flex items-center text-grey font-30 mt-64">
            <img
              src="../../assets/image/certificationCenter/suditIcon.png"
              class="w-36 h-36"
              alt=""
            />
            <span class="ml-24">{{ $t("审核时间:3天") }}</span>
          </div>
          <div class="px-32 text-red font-20">
            <p v-show="kyc_status == 3">
              {{ this.$t("认证驳回:") }}{{ turnDownMsg }}
            </p>
          </div>
          <div
            class="rounded-lg py-26 text-center mt-16"
            :class="
              kyc_status == 0 || kyc_status == 3
                ? 'btnMain text-white'
                : 'bgDark text-grey'
            "
            @click="$router.push('/authentication')"
          >
            {{ fixBtnState(kyc_status) }}
          </div>
        </div>
      </div>
      <div v-show="active == 1">
        <div class="flex pl-32 justify-between mt-54">
          <div class="textColor font-36">{{ $t("要求") }}</div>
          <div
            class="font-28 flex items-center py-12 px-14 border-radius-left"
            :class="{
              status0: advStatus == 0 || advStatus == 3,
              status1: advStatus == 1,
              status2: advStatus == 2,
            }"
          >
            <img
              :src="
                require(`../../assets/image/certificationCenter/status${advStatus}.png`)
              "
              class="w-32 h-32"
              alt=""
            />
            <span class="font-28 ml-12">{{ fixState(advStatus) }}</span>
          </div>
        </div>
        <div class="px-32">
          <div class="flex items-center mt-34 font-30 textColor">
            <img
              src="../../assets/image/certificationCenter/address.png"
              class="w-36 h-36"
              alt=""
            />
            <span class="ml-24 textColor">{{ $t("家庭地址") }}</span>
          </div>
          <div class="flex items-center mt-34 font-30 textColor">
            <img
              src="../../assets/image/certificationCenter/address.png"
              class="w-36 h-36"
              alt=""
            />
            <span class="ml-24 textColor">{{ $t("工作地址") }}</span>
          </div>
          <div class="flex items-center mt-40 font-30 textColor">
            <img
              src="../../assets/image/certificationCenter/connect.png"
              class="w-36 h-36"
              alt=""
            />
            <span class="ml-24 textColor">{{ $t("亲属联系方式") }}</span>
          </div>
        </div>
        <div class="px-32">
          <div class="font-36 textColor mt-82">{{ $t("功能与限制") }}</div>
          <content-com
            class="mt-40"
            :contentObj="advCoinObj"
            :state="advancedverif"
          ></content-com>
          <content-com
            class="mt-40"
            :contentObj="advC2cObj"
            :state="advancedverif"
          ></content-com>
          <content-com
            class="mt-40"
            :contentObj="advCurrencyObj"
            :state="advancedverif"
          ></content-com>
          <div class="flex items-center text-grey font-30 mt-64">
            <img
              src="../../assets/image/certificationCenter/suditIcon.png"
              class="w-36 h-36"
              alt=""
            />
            <span class="ml-24">{{ $t("公证时间为1-30个工作日") }}</span>
          </div>
          <div
            class="btnMain rounded-lg py-26 text-center mt-16"
            :class="
              advStatus == 0 || advStatus == 3
                ? 'btnMain text-black'
                : 'bgDark text-grey'
            "
            @click="$router.push('/advancedCtf')"
          >
            {{ fixBtnState(advStatus) }}
          </div>
        </div>
      </div>
    </div>
    <van-popup
      v-model="show"
      position="bottom"
      :close-on-click-overlay="false"
      @close="onClose"
    >
      <div class="pop-box relative mainBackground pb-46 px-32">
        <img
          src="@/assets/image/icon-close.png"
          class="w-38 h-38 absolute right-20 top-46"
          @click="onClose"
        />
        <div class="pt-46 textColor font-40 mb-20">
          {{ $t("您当前拥有的功能") }}
        </div>
        <div
          class="pb-32 pt-32 border-b-color"
          v-for="(item, index) in currentList"
          :key="index"
        >
          <div class="font-32 text-grey flex items-center">
            <img
              :src="
                require(`../../assets/image/certificationCenter/${item.icon}.png`)
              "
              class="w-36 h-36 mr-24"
              alt=""
            />
            <span class="textColor mr-10">{{ item.title }}</span>
            <span>{{ item.des }}</span>
          </div>
          <div
            class="text-grey font-30 mt-36 pl-60"
            v-for="(str, index) in item.arr"
            :class="{ colorMain: index == 1 }"
            :key="index"
          >
            {{ str }}
          </div>
        </div>
        <div
          class="btnMain text-black font-34 py-26 rounded-lg text-center mt-68"
          @click="onClose"
        >
          {{ $t("确认") }}
        </div>
      </div>
    </van-popup>
  </div>
</template>
 
<script>
import assetsHead from "@/components/assets-head";
import contentCom from "./contentCom.vue";
import { Popup } from "vant";
import { _getIdentify } from "@/API/fund.api";
import Axios from "@/API/userCenter";
export default {
  props: {},
  components: {
    [Popup.name]: Popup,
    assetsHead,
    contentCom,
  },
  data() {
    return {
      turnDownMsg: "",
      show: false,
      active: 0,
      kyc_status: 0, //初级认证0未认证 ,1审核中 ,2审核通过,3审核未通过
      advStatus: 0, //高级认证
      identityverif: false, //初级认证
      advancedverif: false, //高级认证
      nationality: "",
      coinObj: {
        title: this.$t("法币限额"),
        list: [
          {
            left: this.$t("充值"),
            // right: this.$t('$50K 每日')
          },
          {
            left: this.$t("提现"),
            // right: this.$t('$50K 每日')
          },
        ],
      },
      c2cObj: {
        title: this.$t("C2C交易限额"),
        list: [
          {
            left: "C2C",
            right: this.$t("无限额"),
          },
        ],
      },
      currencyObj: {
        title: this.$t("加密货币限额"),
        list: [
          {
            left: this.$t("充值"),
            right: this.$t("无限额"),
          },
          {
            left: this.$t("提现"),
            right: this.$t("8M 每日"),
          },
        ],
      },
      advCoinObj: {
        title: this.$t("法币限额"),
        list: [
          {
            left: this.$t("充值"),
            right: this.$t("$100K 每日"),
          },
          {
            left: this.$t("提现"),
            right: this.$t("$100K 每日"),
          },
        ],
      },
      advC2cObj: {
        title: this.$t("C2C交易限额"),
        list: [
          {
            left: "C2C",
            right: this.$t("无限额"),
          },
        ],
      },
      advCurrencyObj: {
        title: this.$t("加密货币限额"),
        list: [
          {
            left: this.$t("充值"),
            right: this.$t("无限额"),
          },
          {
            left: this.$t("提现"),
            right: this.$t("16M 每日"),
          },
        ],
      },
      currentList: [],
      ownList: [
        {
          icon: "1",
          title: "$50K",
          des: this.$t("每日"),
          arr: [this.$t("法币充值 & 提现限额")],
        },
        {
          icon: "2",
          title: this.$t("无限额"),
          des: "",
          arr: [this.$t("数字货币充值"), this.$t("提高限额")],
        },
        {
          icon: "3",
          title: "8M USDT",
          des: this.$t("每日"),
          arr: [this.$t("数字货币提现限额")],
        },
        {
          icon: "4",
          title: this.$t("无限额"),
          des: "",
          arr: [this.$t("C2C交易限额")],
        },
        {
          icon: "5",
          title: "OTC",
          des: "",
          arr: [this.$t("其他功能")],
        },
      ],
      advOwnList: [
        {
          icon: "1",
          title: "$100K",
          des: this.$t("每日"),
          arr: [this.$t("法币充值 & 提现限额")],
        },
        {
          icon: "2",
          title: this.$t("无限额"),
          des: "",
          arr: [this.$t("数字货币充值"), this.$t("提高限额")],
        },
        {
          icon: "3",
          title: "16M USDT",
          des: this.$t("每日"),
          arr: [this.$t("数字货币提现限额")],
        },
        {
          icon: "4",
          title: this.$t("无限额"),
          des: "",
          arr: [this.$t("C2C交易限额")],
        },
        {
          icon: "5",
          title: "OTC",
          des: "",
          arr: [this.$t("其他功能")],
        },
      ],
    };
  },
  created() {
    this.currentList = this.ownList;
    this.getLocaluserAction();
    this.getIdentify();
  },
  methods: {
    changeTab(index) {
      this.active = index;
      if (index == 0) {
        this.currentList = this.ownList;
      } else {
        this.currentList = this.advOwnList;
      }
    },
    onClose() {
      this.show = false;
    },
    getLocaluserAction() {
      Axios.localuserAction().then((res) => {
        this.identityverif = res.data.identityverif;
        this.advancedverif = res.data.advancedverif;
        this.nationality = res.data.nationality;
        this.kyc_status = res.data.kyc_status;
        this.advStatus = res.data.kyc_high_level_status;
      });
    },
    getIdentify() {
      _getIdentify().then((data) => {
        this.turnDownMsg = data.msg;
      });
    },
    fixState(kyc_status) {
      let str = "";
      if (kyc_status == 0) {
        str = this.$t("未认证");
      } else if (kyc_status == 1) {
        str = this.$t("审核中");
      } else if (kyc_status == 2) {
        str = this.$t("已认证");
      } else {
        str = this.$t("未认证");
      }
      return str;
    },
    fixBtnState(kyc_status) {
      let str = "";
      if (kyc_status == 0) {
        str = this.$t("开始认证");
      } else if (kyc_status == 1) {
        str = this.$t("审核详情");
      } else if (kyc_status == 2) {
        str = this.$t("认证详情");
      } else {
        str = this.$t("开始认证");
      }
      return str;
    },
  },
};
</script>
 
<style lang="scss" scoped>
.certificationCenter {
  width: 100%;
  box-sizing: border-box;
}
 
.contentBox {
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
 
.btnBox {
  .activeStyle {
    @include themify() {
      background: themed("btn_main") !important;
    }
 
    color: #fff !important;
  }
}
 
.status0 {
  background: #ffeaec;
  color: #e35461;
}
 
.status1 {
  background: #ffeaec;
  color: #dbae18;
}
 
.status2 {
  background: #e6f6f0;
  color: #03a66d;
}
 
.status3 {
  background: #ffeaec;
  color: #e35461;
}
 
.border-radius-left {
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}
 
.van-popup.van-popup--bottom {
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}
</style>