a6a8c9ff by 任超

style:置顶

1 parent 5db3d278
......@@ -106,3 +106,8 @@
.policy_list_con li {
margin-bottom: 10px;
}
.sticky p {
font-size: 24px;
color: #1E9FFF!important;
font-weight: 700;
}
\ No newline at end of file
......
......@@ -97,3 +97,8 @@
height: 124px;
margin-bottom: 10px;
}
.sticky p {
font-size: 24px;
color: #1E9FFF!important;
font-weight: 700;
}
\ No newline at end of file
......
......@@ -27,7 +27,11 @@ function getLawsArticleList() {
if (result.code == 200 && result.data != null) {
data.total = result.data.total
for (var i = 0; i < result.data.records.length; i++) {
if (result.data.records[i].isTop == '1') {
li = '<li class="sticky">';
}else {
li = '<li>';
}
li += '<a href="./law/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
li += '<p>' + result.data.records[i].headline + '</p>';
if (result.data.records[i].isTop == '1') {
......
......@@ -27,7 +27,11 @@ function getLawsArticleList() {
if (result.code == 200 && result.data != null) {
data.total = result.data.total;
for (var i = 0; i < result.data.records.length; i++) {
if (result.data.records[i].isTop == '1') {
li = '<li class="sticky">';
}else {
li = '<li>';
}
li += '<a href="./policy/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
li += '<p>' + result.data.records[i].headline + '</p>';
if (result.data.records[i].isTop == '1') {
......