<!-- 文章页 -->
<template>
	<view>
		<view class="article-all">
			<view class="article-title">
				标题
			</view>
			<view class="article-tip">
				<text class="tip-time">2024-04-30 10:00</text>
				<text class="tip-readCount">阅读 598</text>
			</view>
			<view class="article-content">
				<u-parse :html="content"></u-parse>
			</view>
		</view>
		<view class="share">
			<button open-type="share">
				<u-icon name="share" color="#666666" size="45rpx"></u-icon>
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:'<p>内容</p>'
			}
		},
		onLoad(options) {
			if(options.title)
				uni.setNavigationBarTitle({title: options.title})
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
.article-all{
	padding: 30rpx 40rpx 0;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 140rpx);
	.article-title{
		color: #000;
		font-weight: bold;
		font-size: 40rpx;
	}
	.article-tip{
		color: #afb1af;
		font-size: 25rpx;
		margin: 20rpx 0;
		.tip-time{
			margin-right: 25rpx;
		}
	}
	.article-content{
		flex: 1;
	}
}
.share{
	background-color: #fff;
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 120rpx;
	box-shadow: -1px -4px 8px 0px rgba(100, 100, 111, 0.12);
	button{
		width: 100%;
		height: 120rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}
</style>
