<!-- 页面：网信信息详情 -->
<template>
	<view class="message-detail">
		<view class="title">{{title}}</view>
		<view class="time">{{time}}</view>
		<view class="time source">来源：{{ source}}</view>
		<view class="line"></view>
		<view class="content" v-for="(item, index) in content" :key="index">
			<image src="../../static/share.png" style="width: 100%;height: 260rpx;flex-shrink: 0;" mode=""></image>
			<view class="text">{{item.value}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '深刻的监控设备VS大V和SVis道刻的监控设备VSSVis道刻的监控设备VS大V和SVis道具具欧式是OSID剧哦SV',
				time: '2022-12-12 12:12:12',
				source: '某某某工作室',
				content: [
					{
						img: '../../static/share.png',
						value: '阿萨斯多阿斯傻傻的澳双方奥安徽师范啊同时符合澳双方,'
					},
					{
						img: '../../static/share.png',
						value: '阿萨斯多阿斯傻傻的澳双方奥安徽师范啊同时符合澳双方,阿萨斯多阿斯傻傻的澳双方奥安徽师范啊同时符合澳双方,阿萨斯多阿斯傻傻的澳双方奥安徽师范啊同时符合澳双方,阿萨斯多阿斯傻傻的澳双方奥安徽师范啊同时符合澳双方,阿萨斯多阿斯傻傻的澳双方奥安徽师范啊同时符合澳双方,'
					},
				]
			}
		},
		mounted(){
			uni.showShareMenu({
				withShareTicket: true,
				menus: ["shareAppMessage", "shareTimeline"]
			});
		},
		//分享好友
		onShareAppMessage() {
			return {
				title: this.title,
				imageUrl: this.content[0].img,
				path: "/pages/messageDetail/messageDetail",
			};
		},
		//分享朋友圈
		onShareTimeline() {
			return {
				title: this.title,
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.message-detail {
		min-height: 100%;
		padding: 40rpx 40rpx 60rpx 40rpx;
		background-color: #fff;
		box-sizing: border-box;
		overflow: auto;
		// 标题
		.title {
			font-size: 38rpx;
			color: #000;
			font-weight: 600;
		}
		// 时间
		.time {
			font-size: 28rpx;
			color: #a4a4a4;
			margin-top: 44rpx;
		}
		// 来源
		.source {
			margin-top: 8rpx;
		}
		// 分割线
		.line {
			width: 100%;
			height: 1rpx;
			background-color: #eeeeee;
			margin: 46rpx 0;
		}
		// 内容
		.content {
			.text {
				margin: 32rpx 0;
				font-weight: 32rpx;
				line-height: 58rpx;
				text-indent: 64rpx; //缩进
				text-align: justify; //文字两端对齐
			}
		}
	}
</style>
