index.vue
2.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
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
<template>
<view class="ListItem">
<view class="ListItem-l">
<view class="ListItem-l-1">
<u--image
shape="circle"
height="72rpx"
width="72rpx"
:src="info.img"></u--image>
<image class="ListItem-l-1-l" src="@/static/images/admin/icon7.png" mode="widthFix"></image>
</view>
<view class="ListItem-l-2">{{ info.name }}</view>
</view>
<view class="ListItem-r">
<view class="ListItem-r-i">
<image class="ListItem-r-i-i" src="@/static/images/admin/icon9.png" mode=""></image>
<text class="ListItem-r-i-t" style="font-size: 28rpx; color: #0D69E1;">{{ info.class_title }}</text>
</view>
<view class="ListItem-r-i">
<image class="ListItem-r-i-i" src="@/static/images/admin/icon10.png" mode=""></image>
<text class="ListItem-r-i-t">{{ info.phone }}</text>
</view>
<view class="ListItem-r-i">
<image class="ListItem-r-i-i" src="@/static/images/admin/icon11.png" mode=""></image>
<text class="ListItem-r-i-t">{{ info.add_time }}至{{ info.end_time }}</text>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'ListItem',
props: {
info: {
type: Object,
default: () => {
return {}
}
}
},
data() {
return {
}
}
}
</script>
<style lang="scss" scoped>
.ListItem{
border-radius: 15rpx;
background-color: #fff;
height: 188rpx;
padding: 28rpx;
box-shadow: 7rpx 0rpx 24rpx 0rpx rgba(153,153,153,0.22);
margin-bottom: 20rpx;
display: flex;
.ListItem-l{
flex-shrink: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.ListItem-l-1{
position: relative;
color: #3D4054;
.ListItem-l-1-l{
position: absolute;
right: 0;
top: 0;
height: 28rpx;
width: 28rpx;
transform: translate(25%, -25%);
}
}
.ListItem-l-2{
font-size: 28rpx;
margin-top: 15rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 85rpx;
}
}
.ListItem-r{
display: flex;
flex-direction: column;
justify-content: space-between;
margin-left: 30rpx;
.ListItem-r-i{
display: flex;
align-items: center;
.ListItem-r-i-i{
height: 26rpx;
width: 26rpx;
flex-shrink: 0;
}
.ListItem-r-i-t{
font-size: 26rpx;
margin-left: 13rpx;
color: #A1A0AB;
}
}
}
}
</style>