notifyDetail.vue 1.54 KB
<template>
	<view class="notify-detail-page">
		<!-- 公共组件-每个页面必须引入 -->
		<public-module></public-module>
		<view>
			<view class="u-flex" style="margin-top: 10rpx;justify-content: center;">
				<text style="color: #2E384D;font-size: 18px;">{{ notifyList.receiverName }}</text>
			</view>
			<view style="border-radius: 20px;;margin-top: 20rpx;width: 696rpx;height: 1000rpx;background-color: #FFFFFF;">
				<u-list height="140rpx">
					<u-list-item>
						<u-cell :value="`${notifyList.createTime}`" :title="`${notifyList.receiverName}`">
							<u-avatar slot="icon" shape="circle" size="35" :src="1111"></u-avatar>
						</u-cell>
					</u-list-item>
				</u-list>
				<view class="">
					<text style="color: #2E384D;font-size: 15px;">{{ notifyList.receiverName }}</text>
				</view>
			</view>
		</view>
		<f-tabbar></f-tabbar>
	</view>
</template>

<script>
import fTabbar from '@/components/module/f-tabbar/f-tabbar';

export default {
	components: {
		fTabbar
	},
	data() {
		return {
			notifyList: {}
		};
	},
	onLoad(e) {
		// 隐藏原生的tabbar
		uni.hideTabBar();
		if (e.data !== null) {
			let params = e.data;
			this.loadData(params);
		}
	},
	methods: {
		loadData(e) {
			uni.$u.http
				.get(`/yt/noticeUser/${e}`)
				.then(res => {
					if (res) {
						this.notifyList = res;
					}
				})
				.catch(e => {
					uni.$u.toast(e.data.message);
				});
		}
	}
};
</script>

<style lang="scss" scoped>
.notify-detail-page {
	min-height: 100vh;
	background-color: #f8f9fa;
	padding-top: 10rpx;
	padding-left: 27rpx;
}
</style>