jhzh
2025-04-03 db12897dc68c68d40c557aa59ad78022e2b30ac2
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>
  <view class="layout-page" :style="themeStyle">
    <v-header title=""></v-header>
    <main class="layout-main">
      <view class="top bgb5">
        <view class="user d-flex align-center">
          <view class="head-box flex-shrink m-r-lg">
            <!-- <van-icon
              class="head w-63 h-63 rounded-max overflow-hidden color-theme-1"
              name="user-circle-o"
            /> -->
            <img :src="logoMap.login_logo" class="h-80 rounded-max" />
          </view>
          <view class="info color-plain">
            <view class="name">
              {{$t('invite.c0')}}:
              <span>{{user.username}}</span>
            </view>
            <view class="id">ID:{{user.user_id}}</view>
          </view>
        </view>
        <view class="d-flex level-text justify-between align-center">
          <view class="color-plain fn-lg">{{$t('invite.b6')}}:{{user.user_grade_name}}</view>
          <view
            class="fn-sm border-buy border-r-0  border color-success rounded-tl-lg rounded-bl-lg"
            style="padding:4px 6px"
          >{{$t('invite.c9')}}</view>
        </view>
      </view>
      <view  @click="_router.push('/pages/invite/index')" class="nav-two d-flex justify-between color-light">
        <view class="item fn-center fn-10 flex-fill flex-shrink">
          <img src="static/img/13@2x.png" class="icon h-40" />
          <p>{{$t('invite.c3')}}</p>
        </view>
        <view class="item fn-center fn-10 flex-fill flex-shrink">
          <img src="static/img/8@2x.png" class="icon h-40" />
          <p>
            {{$t('invite.c2')}}
            <span class="fn-8">(USDT)</span>
          </p>
        </view>
        <view class="item fn-center fn-10 flex-fill flex-shrink">
          <img src="static/img/4@2x.png" class="icon h-40" />
          <p>{{$t('invite.c1')}}</p>
        </view>
 
        <view class="item fn-center fn-10 flex-fill flex-shrink">
          <img src="static/img/4@2x(1).png" class="icon h-40" />
          <p>{{$t('invite.c4')}}</p>
        </view>
      </view>
      <view class="bg-panel-3 table-box color-light level-box box-shadow">
        <view class="title fn-center">{{$t('invite.c5')}}</view>
        <table class="table">
          <thead class="fn-13 fn-center bg-form-panel-4">
            <tr>
              <th>{{$t('invite.c6')}}</th>
              <th class="fn-wrap">{{$t('invite.b8')}} / {{$t('invite.b9')}}</th>
            </tr>
          </thead>
          <tbody>
            <template v-for="item in grade">
              <tr :key="item.grade_id">
                <td rowspan="2" class="fn-center fn-nowrap p-x-lg">
                  <img
                    v-if="levelListIcon[item.grade_id]"
                    class="icon h-16"
                    :src="levelListIcon[item.grade_id]"
                    alt
                  />
                  <p>{{item.grade_name}}</p>
                </td>
                <td class="fn-sm">
                  <view
                    class="m-b-xs"
                    v-for="(minItem,idx) in item.upgrade_condition_text"
                    :key="idx"
                  >({{idx+1}}){{minItem}}</view>
                  <view class="fn-center" v-if="!item.upgrade_condition_text.length">-</view>
                </td>
              </tr>
              <tr :key="item.grade_id+'a'">
                <td class="fn-sm">{{item.bonus_text}}</td>
              </tr>
            </template>
          </tbody>
        </table>
      </view>
      <view class="bg-panel-3 invate-info color-light box-shadow">
        <view class="title m-b-xs">{{remark.title}}</view>
        <view v-html="remark.body"></view>
      </view>
    </main>
  </view>
</template>
<script>
import Profile from "@/api/profile";
import { mapGetters,mapState } from "vuex";
export default {
  name: "level",
  data() {
    return {
      levelListIcon: {
        //  普通账户
        1: "",
        //  期权矿工
        2: "static/img/invite-2.png",
        //  节点矿工
        3: "static/img/invite-3.png",
        //  高级矿工
        4: "static/img/invite-4.png",
        //  超级矿工
        5: "static/img/invite-5.png",
        //  矿池
        6: "static/img/invite-6.png",
      },
      user: {},
      grade: [],
      remark: {},
    };
  },
  computed:{
    ...mapGetters(['themeStyle']),
    ...mapState({
      logoMap: "logoMap",
    }),
  },
  methods: {
    getGradeInfo() {
      Profile.getGradeInfo().then((res) => {
        this.user = res.data.user;
        this.grade = res.data.grade;
        this.remark = res.data.remark;
      });
    },
  },
  created() {
    this.getGradeInfo();
  },
};
</script>
<style lang="scss" scoped>
$rounded: 16px;
$pad: 23px;
$border: $border-color;
.top {
  margin: 27px 18px 0;
  border-radius: $rounded;
 
  padding: 19px 0;
    background: url("../../static/img/invite-bg.png") $panel-4
      no-repeat;
    background-size: 100% 100%;
  .user {
    padding: 0 $pad;
    .head-box {
      position: relative;
      .head {
        font-size: 63px;
      }
      .level-icon {
        position: absolute;
        right: 0;
        bottom: 0;
      }
    }
  }
  .level-text {
    margin-top: 40px;
    padding-left: $pad;
  }
}
.fn-8 {
  font-size: 8px;
}
.nav-two {
  margin: 21px 15px;
}
.table-box {
  border-radius: $rounded;
  margin: 0 18px;
  // padding: 0 13px;
    th,
    td {
      padding: 14px 10px;
      &:not(:last-of-type) {
        border-right: 1px solid $border-color;
      }
    }
    td {
      border-top: 1px solid $border-color;
    }
  .title {
    padding: 15px 0;
  }
}
.invate-info {
  margin: 13px 18px;
  border-radius: $rounded;
  padding: 16px $pad;
}
.bgb5{
    background: url(../../static/img/bgb5.png)no-repeat;
    background-size: 100% 100%;
}
 
</style>