systemNotify.vue
2.5 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<template>
<view class="notify-page">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view>
<u-list @scrolltolower="scrolltolower">
<u-list-item style="margin-top: 20rpx;background: #FFFFFF;width: 695rpx;border-radius: 20px;" v-for="(item, index) in notifyList" :key="index">
<u-cell :border="false" @click="clickNotifyDetail(item.id)" isLink :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>
<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'
},
{
id: '2',
name: '今天晚上会议室开会',
imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
time: '2022-04-12'
},
{
id: '3',
name: '今天晚上会议室开会',
imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
time: '2022-04-12'
},
{
id: 'eww',
name: '今天晚上会议室开会',
imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
time: '2022-04-12'
},
{
id: '4',
name: '今天晚上会议室开会',
imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
time: '2022-04-12'
},
{
id: '1',
name: '今天晚上会议室开会',
imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
time: '2022-04-12'
},
{
id: '5',
name: '今天晚上会议室开会',
imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
time: '2022-04-12'
},
{
id: '6',
name: '今天晚上会议室开会',
imageUrl: 'https://cdn.uviewui.com/uview/album/1.jpg',
time: '2022-04-12'
}
]
};
},
onLoad() {
// 隐藏原生的tabbar
uni.hideTabBar();
this.loadmore();
},
methods: {
scrolltolower() {
this.loadmore();
},
loadmore() {},
clickNotifyDetail(e) {
console.log(e);
uni.navigateTo({
url: './notifyDetail?item' + e
});
}
}
};
</script>
<style lang="scss" scoped>
.notify-page {
min-height: 100vh;
background-color: #f8f9fa;
padding-top: 10rpx;
padding-left: 27rpx;
}
/deep/.u-list-item {
background: #ffffff;
width: 695rpx;
border-radius: 20px;
margin-top: 20rpx;
}
</style>