style:法律法规
Showing
3 changed files
with
23 additions
and
4 deletions
... | @@ -39,8 +39,8 @@ | ... | @@ -39,8 +39,8 @@ |
39 | <li id='zwgk' class='layui-nav-item'> | 39 | <li id='zwgk' class='layui-nav-item'> |
40 | <a href='javascript:;'>政务公开</a> | 40 | <a href='javascript:;'>政务公开</a> |
41 | <dl class='layui-nav-child'> | 41 | <dl class='layui-nav-child'> |
42 | <dd><a href='/staticViews/xyzc.html'>相应政策</a></dd> | 42 | <dd><a href='/staticViews/policyList/1.html'>相应政策</a></dd> |
43 | <dd><a href='/staticViews/flfg.html'>法律法规</a></dd> | 43 | <dd><a href='/staticViews/lawList/1.html'>法律法规</a></dd> |
44 | <dd><a href='/staticViews/gsgg.html'>公示公告</a></dd> | 44 | <dd><a href='/staticViews/gsgg.html'>公示公告</a></dd> |
45 | </dl> | 45 | </dl> |
46 | </li> | 46 | </li> | ... | ... |
... | @@ -45,8 +45,8 @@ document.writeln(" <li id='news' class=\'layui-nav-item\'><a href=\'" | ... | @@ -45,8 +45,8 @@ document.writeln(" <li id='news' class=\'layui-nav-item\'><a href=\'" |
45 | document.writeln(" <li id='zwgk' class=\'layui-nav-item\'>"); | 45 | document.writeln(" <li id='zwgk' class=\'layui-nav-item\'>"); |
46 | document.writeln(" <a href=\'javascript:;\'>政务公开</a>"); | 46 | document.writeln(" <a href=\'javascript:;\'>政务公开</a>"); |
47 | document.writeln(" <dl class=\'layui-nav-child\'>"); | 47 | document.writeln(" <dl class=\'layui-nav-child\'>"); |
48 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/xyzc.html\'>相应政策</a></dd>"); | 48 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/policyList/1.html\'>相应政策</a></dd>"); |
49 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/flfg.html\'>法律法规</a></dd>"); | 49 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/lawList/1.html\'>法律法规</a></dd>"); |
50 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/gsgg.html\'>公示公告</a></dd>"); | 50 | document.writeln(" <dd><a href=\'" + localhostPaht + "/staticViews/gsgg.html\'>公示公告</a></dd>"); |
51 | document.writeln(" </dl>"); | 51 | document.writeln(" </dl>"); |
52 | document.writeln(" </li>"); | 52 | document.writeln(" </li>"); | ... | ... |
1 | $(function () { | 1 | $(function () { |
2 | newsCenterData(); | 2 | newsCenterData(); |
3 | // | ||
4 | fetchNewsData(); | ||
3 | }) | 5 | }) |
4 | function newsCenterData() { | 6 | function newsCenterData() { |
5 | $(document).on("mouseover", ".sysNewsList .newsDetail", function (e) { | 7 | $(document).on("mouseover", ".sysNewsList .newsDetail", function (e) { |
... | @@ -9,4 +11,21 @@ function newsCenterData() { | ... | @@ -9,4 +11,21 @@ function newsCenterData() { |
9 | $(document).on("mouseout", ".sysNewsList .newsDetail", function (e) { | 11 | $(document).on("mouseout", ".sysNewsList .newsDetail", function (e) { |
10 | $('.sysNewsList .newsDetail').addClass('ellipsis'); | 12 | $('.sysNewsList .newsDetail').addClass('ellipsis'); |
11 | }) | 13 | }) |
14 | } | ||
15 | // 根据用户id及展示数量读取消息提醒 | ||
16 | function fetchNewsData(userid, size) { | ||
17 | $.ajax({ | ||
18 | type: "get", //提交方式 | ||
19 | url: portal.api_url + "/portal/messageRemind/getDetailByUserid?userid="+userid+"&size="+size,//路径 | ||
20 | dataType: "json", | ||
21 | //数据,这里使用的是Json格式进行传输 | ||
22 | success: function (result) {//返回数据根据结果进行相应的处理 | ||
23 | if (result.code == 200 && result.data != null) { | ||
24 | console.log(result.data) | ||
25 | for (var i = 0; i < result.data.length; i++) { | ||
26 | |||
27 | } | ||
28 | } | ||
29 | } | ||
30 | }); | ||
12 | } | 31 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment