index.vue 1.7 KB
<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>