index.vue 1.9 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">
					确定修改为已读吗?
				</view>
				<view class="InfoPop-b-2">
					<view class="InfoPop-b-2-l"  @click="show = false">取消</view>
					<view class="InfoPop-b-2-r" @click="confirm">确定</view>
				</view>
			</view>
		</view>
	</u-popup>
</template>

<script>
	export default {
		name: 'MarkReadPop',
		data() {
			return {
				show: false,
				info: {}
			}
		},
		methods: {
			open(info) {
				this.show = true
				this.info = info
			},
			confirm() {
				var datas = {
					id: this.info.id
				}
				var jkurl = '/admin/message_read'
				this.$service.P_post(jkurl, datas).then(res => {
					this.$emit('success',this.info.id)
					this.show = false
				})	
			}
		}
	}
</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{
				text-align: center;
				font-size: 28rpx;
				color: #3D4054;
			}
			.InfoPop-b-2{
				display: flex;
				justify-content: space-between;
				margin-top: 40rpx;
				.InfoPop-b-2-l{
					line-height: 90rpx;
					width: 260rpx;
					text-align: center;
					border-radius: 15rpx;
					background: #EFEFEF;
					color: #646464;
				}
				.InfoPop-b-2-r{
					line-height: 90rpx;
					width: 260rpx;
					text-align: center;
					border-radius: 15rpx;
					background: #2D81FF;
					color: #FFFFFF;
				}
			}
		}
	}
</style>