交易所前端蓝色ui, 4.5 jiem
jhzh
2024-04-08 67357c691325dc3cf743267f1ef0e1f5c93d7528
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
<template>
  <div class="flex flex-col w-full h-full">
    <order-nav :title="ctc_user.nickName" />
    <div class="pl-32 pr-32 flex-1 mt-30" style="overflow-y: auto">
      <van-cell-group class="mb-40 border-b-grey border-light-grey">
        <van-cell :title="$t('30天成单数')">
          <template #default>
            <span class="mr-10 text-black">{{ ctc_user.thirtyDaysOrder }}</span>
            <span class="text-grey">{{ $t('次') }}</span>
          </template>
        </van-cell>
        <van-cell :title="$t('30日成单率')" :value="`${ctc_user.thirtyDaysOrderRatio}%`" />
      </van-cell-group>
      <van-cell-group class="mb-40 border-b-grey border-light-grey">
        <van-cell :title="$t('30天平均放行时间')">
          <template #default>
            <span class="mr-10 text-black">{{ ctc_user.thirtyDaysPassAverageTime }}</span>
            <span class="text-grey">{{ $t('分钟') }}</span>
          </template>
        </van-cell>
        <van-cell class="" :title="$t('30日平均付款')">
          <template #default>
            <span class="mr-10 text-black">{{ ctc_user.thirtyDaysPayAverageTime }}</span>
            <span class="text-grey">{{ $t('分钟') }}</span>
          </template>
        </van-cell>
      </van-cell-group>
      <!--      <van-cell-group class="mb-40 border-b-grey border-light-grey">-->
      <!--        <van-cell  :title="$t('好评率')" :value="`${ctc_user.isGoodRaio}%`"/>-->
      <!--        <van-cell  :title="$t('好评数')" :value="ctc_user.appraiseGood"/>-->
      <!--        <van-cell  :title="$t('差评数')" :value="ctc_user.appraiseBad"/>-->
      <!--      </van-cell-group>-->
      <van-cell-group class="mb-40 border-b-grey border-light-grey">
        <van-cell :title="$t('账户已创建')">
          <template #default>
            <span class="mr-10 text-black">{{ ctc_user.accountCreateDays }}</span>
            <span class="text-grey">{{ $t('天') }}</span>
          </template>
        </van-cell>
        <van-cell class="" :title="$t('首次交易至今')">
          <template #default>
            <span class="mr-10 text-black">{{ ctc_user.firstExchangeDays }}</span>
            <span class="text-grey">{{ $t('天') }}</span>
          </template>
        </van-cell>
        <van-cell :title="$t('交易人数')" :value="ctc_user.exchangeUsers" />
        <van-cell class="" :title="$t('总成单数')">
          <template #default>
            <div>
              <span class="mr-10 text-black">{{ ctc_user.totalSuccessOrders }}</span>
              <span class="text-grey">{{ $t('次') }}</span>
            </div>
            <div>
              <span class="mr-10 text-grey">{{ $t('买') }}</span>
              <span class="pr-15 text-black border-r-grey"
                style="border-color: #868D9A">{{ ctc_user.buySuccessOrders }}</span>
              <span class="pl-15 mr-10 text-grey">{{ $t('卖') }}</span>
              <span class=" text-black">{{ ctc_user.sellSuccessOrders }}</span>
            </div>
          </template>
        </van-cell>
      </van-cell-group>
      <van-cell-group class="mb-40">
        <van-cell :title="$t('30天交易量折合')">
          <template #default>
            <span class="mr-10 text-black">{{ ctc_user.thirtyDaysAmount }}</span>
            <span class="text-grey">{{ $t('BTC') }}</span>
          </template>
        </van-cell>
        <van-cell class="" :title="$t('总交易量折合')">
          <template #default>
            <span class="mr-10 text-black">{{ ctc_user.totalAmount }}</span>
            <span class="text-grey">{{ $t('BTC') }}</span>
          </template>
        </van-cell>
      </van-cell-group>
    </div>
  </div>
</template>
 
<script>
import { Cell, CellGroup } from 'vant';
import OrderNav from "@/components/order-nav/OrderNav";
export default {
  name: "c2cUserMore",
  data() {
    return {
      email: "cn*****.com",
      ctc_user: {}
    }
  },
  mounted() {
    let ctc_user = this.$route.query.ctc_user
    this.ctc_user = JSON.parse(ctc_user)
    if (this.ctc_user.appraiseGood == 0) {
      this.ctc_user.isGoodRaio = 0
    } else if (this.appraiseBad == 0) {
      this.ctc_user.isGoodRaio = 100
    } else {
      this.ctc_user.isGoodRaio = (this.ctc_user.appraiseGood * 1 / (this.ctc_user.appraiseGood * 1 + this.ctc_user.appraiseBad * 1)) * 100
    }
  },
  components: {
    [Cell.name]: Cell,
    [CellGroup.name]: CellGroup,
    OrderNav,
  }
}
</script>
 
<style lang="scss" scoped>
::v-deep {
 
  .van-cell {
    padding: 0 0 48px;
    font-size: 29px;
    color: #868D9A;
  }
 
  .van-cell__value {
    @include themify() {
      color: themed("text_color");
    }
  }
 
  .van-cell,
  .van-cell-group {
 
 
    &::after {
      border: none;
    }
  }
 
}
</style>