lower-level.vue
3.9 KB
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
<template>
<view>
<!-- title -->
<view class="lower-title">
<view class="lower-top">
<view>
<view>{{comm}}</view>
<view>可提现奖励</view>
</view>
<view @click="toTi">提现</view>
</view>
<view class="lower-bottom">
<!-- 占位 -->
<view></view>
<view>
<view>{{comm_sum}}</view>
<view>累计获得奖励</view>
</view>
<view>
<view>{{comm_month}}</view>
<view>本月获得奖励</view>
</view>
</view>
</view>
<view class="nav-wrp">
<view class="nav-list">
<view>
<image src="../../../static/up.png" mode=""></image>
<view>当前奖励比例</view>
</view>
<image src="../../../static/back.png" mode=""></image>
</view>
<view class="nav-list">
<view>
<image src="../../../static/all.png" mode=""></image>
<view>我的事业</view>
</view>
<image src="../../../static/back.png" mode=""></image>
</view>
<view class="nav-list">
<view>
<image src="../../../static/mssion.png" mode=""></image>
<view>奖励清单</view>
</view>
<image src="../../../static/back.png" mode=""></image>
</view>
<view class="nav-list">
<view>
<image src="../../../static/friend.png" mode=""></image>
<view>我的伙伴</view>
</view>
<image src="../../../static/back.png" mode=""></image>
</view>
<view class="nav-list">
<view>
<image src="../../../static/group.png" mode=""></image>
<view>我的二维码</view>
</view>
<image src="../../../static/back.png" mode=""></image>
</view>
</view>
</view>
</template>
<script>
import request from "../../../App.vue"
export default {
data() {
return {
// 可提现 累计 今日
comm:'',
comm_sum:'',
comm_month:'',
};
},
methods:{
toTi(){
uni.navigateTo({
url:'/pages/user/withdraw/withdraw'
})
}
},
onLoad:function(){
request.post('/api/user/commission').then(r=>{
if(r.code == 1){
this.comm = r.data.commission
this.comm_sum = r.data.commission_month
this.comm_month = r.data.commission_sum
}
})
}
}
</script>
<style lang="scss" scoped>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.lower-title{
box-shadow: 4px 3px 6px 0px #ff5722a6;
width: 686rpx;
background-size: cover;
margin: 0 auto;
margin-top: 32rpx;
border-radius: 16rpx;
background-image: url('../../../static/lower-level.png');
padding:48rpx 32rpx 32rpx 32rpx;
.lower-top{
display: flex;
align-items: flex-start;
justify-content: space-between;
>view:first-child{
color: white;
>view:first-child{
font-size: 56rpx;
font-weight: 600;
padding-bottom: 8rpx;
}
>view:last-child{
font-size: 28rpx;
font-weight: 400;
}
}
>view:last-child{
border: 5rpx solid #FFFFFF;
color: white;
font-size: 24rpx;
font-weight: 400;
padding: 16rpx 32rpx;
border-radius: 32rpx;
}
}
}
.lower-bottom{
display: flex;
justify-content: space-around;
color: white;
padding-top: 54rpx;
>view:nth-child(2){
>view:first-child{
font-size: 36rpx;
font-weight: 600;
}
>view:last-child{
font-size: 24rpx;
}
}
>view:nth-child(3){
>view:first-child{
font-size: 36rpx;
font-weight: 600;
}
>view:last-child{
font-size: 24rpx;
}
}
}
.nav-wrp{
width: 686rpx;
margin: 0 auto;
padding-top: 100rpx;
>.nav-list{
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1rpx solid rgba(25, 24, 51, 0.10);
padding-bottom: 30rpx;
padding-top: 29rpx;
>view{
display: flex;
align-items: center;
>image{
width: 48rpx;
height: 48rpx;
}
>view{
color: #191833;
font-size: 28rpx;
font-weight: 400;
margin-left: 16rpx;
}
}
>image{
width: 32rpx;
height: 32rpx;
}
}
}
</style>