style:置顶
Showing
4 changed files
with
18 additions
and
0 deletions
... | @@ -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 | ... | ... |
... | @@ -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') { | ... | ... |
-
Please register or sign in to post a comment