message_notice.html
2.55 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>消息通知-{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
<link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
<script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
<script src="__STATIC__/js/slider.js"></script>
</head>
<body>
<!--------头部开始-------------->
<include file="public/header" />
<!--------头部结束-------------->
<div class="layout ov-hi">
<div class="breadcrumb-area">
<foreach name="navigate_user" key="k" item="v">
<if condition="$k neq '首页'"> > </if>
<a href="{$v}">{$k}</a>
</foreach>
</div>
</div>
<div class="layout pa-to-10 fo-fa-ar">
<!--菜单-->
<include file="user/menu" />
<!--菜单-->
<div class="fr wi940">
<div class="he50 wddd">
<div class="fl ddd-h2">
<h2><span>消息通知</span></h2>
</div>
</div>
<div class="wddd-li">
<ul>
<li class="wddd-red" id="ALL" onclick="ajax_message(0);"><a>全部消息</a></li>
<li id="WAITPAY" onclick="ajax_message(1);"><a>系统消息<em></em></a></li>
<li id="WAITSEND" onclick="ajax_message(2);"><a>活动通知<em></em></a></li>
</ul>
</div>
<div class="wddd-js ov-in">
<div class="tp_notice">
</div>
</div>
</div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="public/footer2" />
<!--------footer-结束-------------->
</body>
<script>
$(function () {
ajax_message(0);
$('.wddd-li ul li').click(function() {
$(this).addClass('wddd-red').siblings().removeClass('wddd-red');
});
});
/**
* @author dyr
* 消息ajax请求
* @param type
*/
function ajax_message(type) {
$.ajax({
type: "post",
url: "{:U('Home/User/ajax_message_notice')}",
data:{type:type},
success: function (data) {
if (data) {
$(".tp_notice").html('');
$(".tp_notice").append(data);
} else {
$(".tp_notice").html('');
}
}
});
}
</script>
</html>