style:办事指南
Showing
4 changed files
with
9 additions
and
31 deletions
... | @@ -243,7 +243,13 @@ | ... | @@ -243,7 +243,13 @@ |
243 | border: 1px solid #0F93F6; | 243 | border: 1px solid #0F93F6; |
244 | color: #0F93F6; | 244 | color: #0F93F6; |
245 | } | 245 | } |
246 | .online-processing:hover { | ||
247 | color: #0F93F6!important; | ||
248 | } | ||
246 | .business-guide { | 249 | .business-guide { |
247 | color: #9B9B9B; | 250 | color: #9B9B9B; |
248 | border: 1px solid #DDDDDD; | 251 | border: 1px solid #DDDDDD; |
252 | } | ||
253 | .business-guide:hover { | ||
254 | border-color: #DDDDDD; | ||
249 | } | 255 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | $(function () { | 1 | $(function () { |
2 | // newsDetail() | ||
3 | }) | 2 | }) |
4 | 3 | ||
5 | layui.use('element', function () { | 4 | layui.use('element', function () { |
... | @@ -8,29 +7,6 @@ layui.use('element', function () { | ... | @@ -8,29 +7,6 @@ layui.use('element', function () { |
8 | element.on('nav(demo)', function (elem) { | 7 | element.on('nav(demo)', function (elem) { |
9 | }); | 8 | }); |
10 | }); | 9 | }); |
11 | // 新闻详情数据 | ||
12 | function newsDetail() { | ||
13 | var newsDetail = $("#newsDetail"); | ||
14 | newsDetail.empty(); | ||
15 | $.ajax({ | ||
16 | type: "get", //提交方式 | ||
17 | url: portal.api_url + "/portal/MhNews/getDetailById",//路径 | ||
18 | data: { | ||
19 | "id": GetQueryString('id'), | ||
20 | }, | ||
21 | dataType: "json", | ||
22 | //数据,这里使用的是Json格式进行传输 | ||
23 | success: function (result) {//返回数据根据结果进行相应的处理 | ||
24 | if (result.code == 200 && result.data != null) { | ||
25 | $('.newsTitle').html(result.data.headline) | ||
26 | $('.releaseTime').html(result.data.addtime) | ||
27 | $('.source p').html(result.data.source) | ||
28 | newsDetail.append(result.data.content) | ||
29 | } | ||
30 | } | ||
31 | }); | ||
32 | } | ||
33 | |||
34 | function GetQueryString(name) { | 10 | function GetQueryString(name) { |
35 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | 11 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
36 | var r = window.location.search.substr(1).match(reg); | 12 | var r = window.location.search.substr(1).match(reg); | ... | ... |
... | @@ -98,7 +98,7 @@ | ... | @@ -98,7 +98,7 @@ |
98 | <a class="onlineProcessing" data-id={{item.bsznListVOS[i].bsmBszn}}> | 98 | <a class="onlineProcessing" data-id={{item.bsznListVOS[i].bsmBszn}}> |
99 | <button type="button" class="layui-btn layui-btn-sm online-processing layui-btn-normal">在线办理</button> | 99 | <button type="button" class="layui-btn layui-btn-sm online-processing layui-btn-normal">在线办理</button> |
100 | </a> | 100 | </a> |
101 | <a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank"> | 101 | <a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html?href=/staticViews/bszn.html' target="_blank"> |
102 | <button type="button" | 102 | <button type="button" |
103 | class="layui-btn layui-btn-primary business-guide layui-btn-sm">办事指南</button> | 103 | class="layui-btn layui-btn-primary business-guide layui-btn-sm">办事指南</button> |
104 | </a> | 104 | </a> |
... | @@ -130,7 +130,7 @@ | ... | @@ -130,7 +130,7 @@ |
130 | <a href="./yyxz.html" data-id={{item.bsznListVOS[i].bsmBszn}}> | 130 | <a href="./yyxz.html" data-id={{item.bsznListVOS[i].bsmBszn}}> |
131 | <button type="button" class="layui-btn online-processing layui-btn-sm layui-btn-normal">在线办理</button> | 131 | <button type="button" class="layui-btn online-processing layui-btn-sm layui-btn-normal">在线办理</button> |
132 | </a> | 132 | </a> |
133 | <a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank"> | 133 | <a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html?title=办事指南' target="_blank"> |
134 | <button type="button" class="layui-btn business-guide layui-btn-primary layui-btn-sm">办事指南</button> | 134 | <button type="button" class="layui-btn business-guide layui-btn-primary layui-btn-sm">办事指南</button> |
135 | </a> | 135 | </a> |
136 | </div> | 136 | </div> | ... | ... |
-
Please register or sign in to post a comment