懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@layout("/common/_container.html",{title:"消息列表",css:["/assets/modular/frame/message.css"],js:["/assets/modular/frame/message.js"]}){
<div class="layui-tab layui-tab-brief" style="padding: 5px 0;margin: 0;">
    <ul class="layui-tab-title" style="text-align: center;">
        <li class="layui-this">通知(5)</li>
        <li>私信(12)</li>
        <li>待办(3)</li>
    </ul>
    <div class="layui-tab-content" style="padding: 5px 0;">
 
        <!-- tab1 -->
        <div class="layui-tab-item layui-show">
            <div class="message-list">
                <!-- 实际项目请使用后台数据循环出来 -->
                <a class="message-list-item" href="javascript:;">
                    <img class="message-item-icon" src="${ctxPath}/assets/common/images/message.png">
                    <div class="message-item-right">
                        <h2 class="message-item-title">你收到了14份新周报</h2>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
                <a class="message-list-item" href="javascript:;">
                    <img class="message-item-icon" src="${ctxPath}/assets/common/images/message.png">
                    <div class="message-item-right">
                        <h2 class="message-item-title">你收到了14份新周报</h2>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
                <a class="message-list-item" href="javascript:;">
                    <img class="message-item-icon" src="${ctxPath}/assets/common/images/message.png">
                    <div class="message-item-right">
                        <h2 class="message-item-title">你收到了14份新周报</h2>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
 
                <!-- 列表为空 -->
                <div class="message-list-empty" style="display: none;">
                    <img src="${ctxPath}/assets/common/images/img_msg_notice.svg">
                    <div>没有通知</div>
                </div>
 
            </div>
 
            <a class="message-btn-clear" href="javascript:;">全部标记已读</a>
 
        </div>
 
        <!-- tab2 -->
        <div class="layui-tab-item">
            <div class="message-list">
                <a class="message-list-item" href="javascript:;">
                    <img class="message-item-icon" src="${ctxPath}/assets/common/images/head.png">
                    <div class="message-item-right">
                        <h2 class="message-item-title">xx评论了你</h2>
                        <p class="message-item-text">哈哈哈哈哈哈</p>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
                <a class="message-list-item" href="javascript:;">
                    <img class="message-item-icon" src="${ctxPath}/assets/common/images/head.png">
                    <div class="message-item-right">
                        <h2 class="message-item-title">xx评论了你</h2>
                        <p class="message-item-text">哈哈哈哈哈哈</p>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
                <a class="message-list-item" href="javascript:;">
                    <img class="message-item-icon" src="${ctxPath}/assets/common/images/head.png">
                    <div class="message-item-right">
                        <h2 class="message-item-title">xx评论了你</h2>
                        <p class="message-item-text">哈哈哈哈哈哈</p>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
 
                <a id="btn-more1" class="message-btn-more" href="javascript:;">加载更多</a>
 
                <!-- 列表为空 -->
                <div class="message-list-empty" style="display: none;">
                    <img src="${ctxPath}/assets/common/images/img_msg_pri.svg">
                    <div>没有消息</div>
                </div>
 
            </div>
 
            <a class="message-btn-clear" href="javascript:;">清空消息</a>
 
        </div>
 
        <!-- tab3 -->
        <div class="layui-tab-item">
            <div class="message-list">
                <a class="message-list-item" href="javascript:;">
                    <div class="message-item-right">
                        <span class="layui-badge pull-right">待完成</span>
                        <h2 class="message-item-title">你收到了14份新周报</h2>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
                <a class="message-list-item" href="javascript:;">
                    <div class="message-item-right">
                        <span class="layui-badge layui-bg-gray pull-right">已完成</span>
                        <h2 class="message-item-title">你收到了14份新周报</h2>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
                <a class="message-list-item" href="javascript:;">
                    <div class="message-item-right">
                        <span class="layui-badge layui-bg-gray pull-right">已完成</span>
                        <h2 class="message-item-title">你收到了14份新周报</h2>
                        <p class="message-item-text">10个月前</p>
                    </div>
                </a>
 
                <!-- 列表为空 -->
                <div class="message-list-empty" style="display: none;">
                    <img src="${ctxPath}/assets/common/images/img_msg_db.svg">
                    <div>没有待办</div>
                </div>
 
            </div>
 
            <a class="message-btn-clear" href="javascript:;">清空待办</a>
 
        </div>
    </div>
</div>
@}