8a20cdb5 by 任超

style:新闻动态

1 parent 4dc2fd50
...@@ -52,7 +52,7 @@ function HotArticle() { ...@@ -52,7 +52,7 @@ function HotArticle() {
52 if (result.code == 200 && result.data != null) { 52 if (result.code == 200 && result.data != null) {
53 for (var i = 0; i < result.data.length; i++) { 53 for (var i = 0; i < result.data.length; i++) {
54 if (i == 3) return; 54 if (i == 3) return;
55 li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; 55 li = '<li class="tj"><a href="/staticViews/news/'+result.data[i].id+'.html" target="_blank">';
56 if ( result.data[i].preViewUrl ) { 56 if ( result.data[i].preViewUrl ) {
57 li += '<img src="' + result.data[i].preViewUrl + '">'; 57 li += '<img src="' + result.data[i].preViewUrl + '">';
58 } 58 }
...@@ -79,7 +79,7 @@ function PolicyHotArticle() { ...@@ -79,7 +79,7 @@ function PolicyHotArticle() {
79 if (result.code == 200 && result.data != null) { 79 if (result.code == 200 && result.data != null) {
80 for (var i = 0; i < result.data.length; i++) { 80 for (var i = 0; i < result.data.length; i++) {
81 li = '<li class="zcfg">' 81 li = '<li class="zcfg">'
82 li += '<a href="./xyzcxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">' 82 li += '<a href="/staticViews/policy/'+result.data[i].id+'.html" title="' + result.data[i].headline + '" target="_blank">'
83 li += '<div class="zcfg-top">' + result.data[i].headline + '</div>' 83 li += '<div class="zcfg-top">' + result.data[i].headline + '</div>'
84 li += '<p class="zcfg-body">' + result.data[i].summary + '</p>' 84 li += '<p class="zcfg-body">' + result.data[i].summary + '</p>'
85 li += '<div class="zcfg-bottom">' + result.data[i].deadtime + '</div>' 85 li += '<div class="zcfg-bottom">' + result.data[i].deadtime + '</div>'
...@@ -92,30 +92,6 @@ function PolicyHotArticle() { ...@@ -92,30 +92,6 @@ function PolicyHotArticle() {
92 }) 92 })
93 } 93 }
94 94
95
96 // layui.use('laypage', function () {
97 // let laypage = layui.laypage;
98 // laypage.render({
99 // elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
100 // , count: 100 //数据总数,从服务端得到
101 // , limit: 5
102 // , prev: '<'
103 // , next: '>'
104 // , theme: '#0091FF'
105 // ,first: '首页'
106 // ,last: '尾页'
107 // , jump: function (obj, first) {
108 // if (!first) {
109 // LoadNewsData(obj.curr);
110 // }
111 // }
112 // });
113 // if(data.total ==0) {
114 // $('#page').hide();
115 // }else {
116 // $('#page').show();
117 // }
118 // })
119 var data = { //数据 95 var data = { //数据
120 "list": [], 96 "list": [],
121 total: 0 97 total: 0
......