notify-detail.vue 1.45 KB
<template>
	<view class="notify-detail-page">
		<!-- 公共组件-每个页面必须引入 -->
		<public-module></public-module>
		<view class="notify-column">
			<view class="column-list">
				<view class="column-title">
					<view class="text-clip w-500">
						<text class="notify-detail-text ">{{ notifyList.title }}</text>
					</view>
				</view>
				<view class="h-25"></view>
				<u-list height="140rpx">
					<u-list-item>
						<u-cell :value="`${notifyList.senderDate}`" :title="`${notifyList.senderName}`">
							<u-avatar slot="icon" shape="circle" size="35" :src="notifyList.avatar"></u-avatar>
						</u-cell>
					</u-list-item>
				</u-list>
				<view class="bottom-text">
					<view class="u-flex column"></view>
					<view class="mt-20">
						<!-- 富文本解析 -->
						<u-parse :content="notifyList.content"></u-parse>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			notifyList: {}
		};
	},
	onShow(){
		this.$nextTick(()=>{
			uni.setNavigationBarTitle({
				title:this.$t('menu.notDetails')
			})
		})
	},
	onLoad(e) {
		// 隐藏原生的tabbar
		uni.hideTabBar();
		if (e.data !== null) {
			let params = JSON.parse(decodeURIComponent(e.data));
			if (params) this.notifyList = params;
		}
	}
};
</script>

<style lang="scss" scoped>
@import './static/notifyDetail.scss';
/deep/ .u-line {
	position: relative !important;
	width: 640rpx !important;
	left: 31rpx !important;
}
</style>