index.vue
1.7 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
<template>
<u-popup :show="show" mode="center" bgColor="transparent">
<view class="InfoPop">
<view class="InfoPop-c" @click="show = false">
<image src="@/static/images/admin/icon14.png"></image>
</view>
<view class="InfoPop-b">
<view class="InfoPop-b-t">{{ info.uname }}的违纪详情</view>
<view class="InfoPop-b-1">
<view class="InfoPop-b-1-l">扣分时间</view>
<view class="InfoPop-b-1-r">{{ info.deduct_time }}</view>
</view>
<view class="InfoPop-b-1">
<view class="InfoPop-b-1-l">扣分类型</view>
<view class="InfoPop-b-1-r">{{ info.type }}</view>
</view>
<view class="InfoPop-b-1">
<view class="InfoPop-b-1-l">扣分原因</view>
<view class="InfoPop-b-1-r">{{ info.title }}</view>
</view>
</view>
</view>
</u-popup>
</template>
<script>
export default {
name: 'InfoPop',
data() {
return {
show: false,
info: {}
}
},
methods: {
open(info) {
this.show = true,
this.info = info
console.log(this.info)
}
}
}
</script>
<style lang="scss" scoped>
.InfoPop{
padding-bottom: 300rpx;
.InfoPop-c{
text-align: right;
image{
height: 58rpx;
width: 58rpx;
}
}
.InfoPop-b{
margin-top: 20rpx;
width: 700rpx;
background: #FFFFFF;
border-radius: 20rpx;
padding: 50rpx 80rpx;
.InfoPop-b-t{
color: #3D4054;
font-size: 30rpx;
margin-bottom: 35rpx;
text-align: center;
}
.InfoPop-b-1{
display: flex;
font-size: 28rpx;
margin-bottom: 30rpx;
.InfoPop-b-1-l{
flex-shrink: 0;
color: #727272;
}
.InfoPop-b-1-r{
font-size: 28rpx;
color: #3D4054;
margin-left: 30rpx;
}
}
}
}
</style>