a6a8c9ff by 任超

style:置顶

1 parent 5db3d278
...@@ -106,3 +106,8 @@ ...@@ -106,3 +106,8 @@
106 .policy_list_con li { 106 .policy_list_con li {
107 margin-bottom: 10px; 107 margin-bottom: 10px;
108 } 108 }
109 .sticky p {
110 font-size: 24px;
111 color: #1E9FFF!important;
112 font-weight: 700;
113 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -97,3 +97,8 @@ ...@@ -97,3 +97,8 @@
97 height: 124px; 97 height: 124px;
98 margin-bottom: 10px; 98 margin-bottom: 10px;
99 } 99 }
100 .sticky p {
101 font-size: 24px;
102 color: #1E9FFF!important;
103 font-weight: 700;
104 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -27,7 +27,11 @@ function getLawsArticleList() { ...@@ -27,7 +27,11 @@ function getLawsArticleList() {
27 if (result.code == 200 && result.data != null) { 27 if (result.code == 200 && result.data != null) {
28 data.total = result.data.total 28 data.total = result.data.total
29 for (var i = 0; i < result.data.records.length; i++) { 29 for (var i = 0; i < result.data.records.length; i++) {
30 if (result.data.records[i].isTop == '1') {
31 li = '<li class="sticky">';
32 }else {
30 li = '<li>'; 33 li = '<li>';
34 }
31 li += '<a href="./law/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">' 35 li += '<a href="./law/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
32 li += '<p>' + result.data.records[i].headline + '</p>'; 36 li += '<p>' + result.data.records[i].headline + '</p>';
33 if (result.data.records[i].isTop == '1') { 37 if (result.data.records[i].isTop == '1') {
......
...@@ -27,7 +27,11 @@ function getLawsArticleList() { ...@@ -27,7 +27,11 @@ function getLawsArticleList() {
27 if (result.code == 200 && result.data != null) { 27 if (result.code == 200 && result.data != null) {
28 data.total = result.data.total; 28 data.total = result.data.total;
29 for (var i = 0; i < result.data.records.length; i++) { 29 for (var i = 0; i < result.data.records.length; i++) {
30 if (result.data.records[i].isTop == '1') {
31 li = '<li class="sticky">';
32 }else {
30 li = '<li>'; 33 li = '<li>';
34 }
31 li += '<a href="./policy/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">' 35 li += '<a href="./policy/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
32 li += '<p>' + result.data.records[i].headline + '</p>'; 36 li += '<p>' + result.data.records[i].headline + '</p>';
33 if (result.data.records[i].isTop == '1') { 37 if (result.data.records[i].isTop == '1') {
......