index.vue 1.8 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">信箱内容</view>
				<view class="InfoPop-b-1">
					<text>{{ info.uname }}</text>
					<image src="@/static/images/admin/icon12.png" v-if="info.usex === GENDER.MALE" mode="widthFix"></image>
					<image src="@/static/images/admin/icon13.png" v-else mode="widthFix"></image>
				</view>
				<scroll-view :scroll-y="true" class="InfoPop-b-2">
					<view>
						{{ info.message }}
					</view>
				</scroll-view>
				<view class="InfoPop-b-3">
					{{ info.create_time }}
				</view>
			</view>
		</view>
	</u-popup>
</template>

<script>
	import { GENDER } from "@/emit/index.js"
	export default {
		name: 'InfoPop',
		data() {
			return {
				GENDER,
				show: false,
				info: {}
			}
		},
		methods: {
			open(info) {
				this.show = true
				this.info = 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 40rpx;
			.InfoPop-b-t{
				color: #3D4054;
				font-size: 30rpx;
				margin-bottom: 35rpx;
				text-align: center;
			}
			.InfoPop-b-1{
				color: #323232;
				font-size: 30rpx;
				display: flex;
				align-items: center;
				margin-bottom: 34rpx;
				image{
					height: 28rpx;
					width: 28rpx;
					margin-left: 10rpx;
				}
			}
			.InfoPop-b-2{
				max-height: 40vh;
				color: #8E8D97;
				font-size: 26rpx;
				line-height: 39rpx;
			}
			.InfoPop-b-3{
				font-size: 24rpx;
				color: #A1A0AB;
				margin-top: 27rpx;
			}
		}
	}
</style>