notifyDetail.vue
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<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>