7e16013c by 任超

style:法律法规

1 parent ae98cfd9
......@@ -39,8 +39,8 @@
<li id='zwgk' class='layui-nav-item'>
<a href='javascript:;'>政务公开</a>
<dl class='layui-nav-child'>
<dd><a href='/staticViews/xyzc.html'>相应政策</a></dd>
<dd><a href='/staticViews/flfg.html'>法律法规</a></dd>
<dd><a href='/staticViews/policyList/1.html'>相应政策</a></dd>
<dd><a href='/staticViews/lawList/1.html'>法律法规</a></dd>
<dd><a href='/staticViews/gsgg.html'>公示公告</a></dd>
</dl>
</li>
......
......@@ -45,8 +45,8 @@ document.writeln(" <li id='news' class=\'layui-nav-item\'><a href=\'"
document.writeln(" <li id='zwgk' class=\'layui-nav-item\'>");
document.writeln(" <a href=\'javascript:;\'>政务公开</a>");
document.writeln(" <dl class=\'layui-nav-child\'>");
document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/xyzc.html\'>相应政策</a></dd>");
document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/flfg.html\'>法律法规</a></dd>");
document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/policyList/1.html\'>相应政策</a></dd>");
document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/lawList/1.html\'>法律法规</a></dd>");
document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/gsgg.html\'>公示公告</a></dd>");
document.writeln(" </dl>");
document.writeln(" </li>");
......
$(function () {
newsCenterData();
//
fetchNewsData();
})
function newsCenterData() {
$(document).on("mouseover", ".sysNewsList .newsDetail", function (e) {
......@@ -9,4 +11,21 @@ function newsCenterData() {
$(document).on("mouseout", ".sysNewsList .newsDetail", function (e) {
$('.sysNewsList .newsDetail').addClass('ellipsis');
})
}
// 根据用户id及展示数量读取消息提醒
function fetchNewsData(userid, size) {
$.ajax({
type: "get", //提交方式
url: portal.api_url + "/portal/messageRemind/getDetailByUserid?userid="+userid+"&size="+size,//路径
dataType: "json",
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
console.log(result.data)
for (var i = 0; i < result.data.length; i++) {
}
}
}
});
}
\ No newline at end of file
......