notifyDetail.vue 1.36 KB
<template>
	<view class="notify-detail-page">
		<!-- 公共组件-每个页面必须引入 -->
		<public-module></public-module>
		<view>
			<view class="u-flex" style="margin-top: 10rpx;justify-content: center;"><text>今天晚上开会</text></view>
			<view style="border-radius: 20px;;margin-top: 20rpx;width: 696rpx;height: 1000rpx;background-color: #FFFFFF;">
				<u-list height="140rpx">
					<u-list-item v-for="(item, index) in notifyList" :key="index">
						<u-cell @click="clickNotifyDetail(item.id)" :value="`${item.time}`" :title="`${item.name}`">
							<u-avatar slot="icon" shape="circle" size="35" :src="item.imageUrl"></u-avatar>
						</u-cell>
					</u-list-item>
				</u-list>
				<view class=""><text>内容</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: [
				{
					id: '1',
					name: '系统管理员',
					imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
					time: '2022-04-12'
				}
			]
		};
	},
	onLoad(e) {
		// 隐藏原生的tabbar
		uni.hideTabBar();
		const item = e.item;
		console.log(item);
	}
};
</script>

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