lower.vue
1.3 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
<template>
<view>
<view v-for="(item,index) in list" class="award-wrp">
<view>
<image class="avatar-wrp" :src="item.avatar"></image>
<view class="tit-wrp">
<view>{{item.nickname}}</view>
<view>{{item.createtime}}</view>
</view>
</view>
<view>¥{{item.commission_sum}}</view>
</view>
</view>
</template>
<script>
import request from "../../../App.vue"
export default {
data() {
return {
list:''
};
},
onLoad:function(){
request.post('/api/user/lowerList').then(r=>{
if(r.code == 1){
this.list = r.data.data
}
})
}
}
</script>
<style lang="scss" scoped>
.tit-wrp{
display: flex;
flex-direction: column;
margin-left: 24rpx;
}
.avatar-wrp{
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.award-wrp{
display: flex;
justify-content: space-between;
align-items: center;
width: 686rpx;
margin: 0 auto;
padding-bottom: 28rpx;
border-bottom: 1rpx solid #EBEDF0;
padding-top: 23rpx;
>view:first-child{
display: flex;
align-items: center;
>view:first-child{
color: #323233;
font-size: 28rpx;
padding-bottom: 16rpx;
}
>view:last-child{
color: #969799;
font-size: 24rpx;
font-weight: 400;
}
}
>view:last-child{
color: #FC8C06;
font-size: 32rpx;
}
}
</style>