10378774 by 任超

style:办事指南

1 parent 78145e83
1 $(function () { 1 $(function () {
2 if(GetQueryString('id')) { 2 // if(GetQueryString('id')) {
3 _initData(); 3 // _initData();
4 }else { 4 // }else {
5 _getBsznDetailByYwid(); 5 // _getBsznDetailByYwid();
6 } 6 // }
7 //模板点击下载
8 downLoad()
7 }) 9 })
10 function downLoad() {
11 $('.item_notice a').click(function () {
12 var url = $(this).attr('url')
13 var ua = navigator.userAgent;
14 if (/chrome/i.test(ua)) {
15 window.open(`${portal.api_url}/hlwj/accessoryDO/download?url=${url}`, '_self')
16 } else if ("ActiveXObject" in window) {
17 url = encodeURI(url)
18 var gotolink = document.createElement('a');
19 var urlLink = `${portal.api_url}/hlwj/accessoryDO/download?url=${url}`;
20 gotolink.href = urlLink;
21 gotolink.setAttribute("target", "_self");
22 document.body.appendChild(gotolink);
23 gotolink.click();
24 }
25 })
26 }
8 27
9 layui.use('element', function () { 28 layui.use('element', function () {
10 var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 29 var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
...@@ -59,6 +78,6 @@ function _getBsznDetailByYwid() { ...@@ -59,6 +78,6 @@ function _getBsznDetailByYwid() {
59 function GetQueryString(name) { 78 function GetQueryString(name) {
60 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); 79 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
61 var r = window.location.search.substr(1).match(reg); 80 var r = window.location.search.substr(1).match(reg);
62 if (r != null) return decodeURIComponent(r[2]).replace(/\"/g,""); 81 if (r != null) return decodeURIComponent(r[2]).replace(/\"/g, "");
63 return null; 82 return null;
64 } 83 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
94 <a class="onlineProcessing" data-id={{item.bsznListVOS[i].bsmBszn}}> 94 <a class="onlineProcessing" data-id={{item.bsznListVOS[i].bsmBszn}}>
95 <button type="button" class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button> 95 <button type="button" class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button>
96 </a> 96 </a>
97 <a href='./businessGuideDeatil.html?id="{{item.bsznListVOS[i].bsmBszn}}"' target="_blank"> 97 <a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank">
98 <button type="button" 98 <button type="button"
99 class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button> 99 class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button>
100 </a> 100 </a>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
126 <a href="./yyxz.html" data-id={{item.bsznListVOS[i].bsmBszn}}> 126 <a href="./yyxz.html" data-id={{item.bsznListVOS[i].bsmBszn}}>
127 <button type="button" class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button> 127 <button type="button" class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button>
128 </a> 128 </a>
129 <a href='./businessGuideDeatil.html?id={{item.bsznListVOS[i].bsmBszn}}' target="_blank"> 129 <a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank">
130 <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button> 130 <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button>
131 </a> 131 </a>
132 </div> 132 </div>
...@@ -136,5 +136,4 @@ ...@@ -136,5 +136,4 @@
136 </div> 136 </div>
137 {{# }); }} 137 {{# }); }}
138 </script> 138 </script>
139
140 </html> 139 </html>
...\ No newline at end of file ...\ No newline at end of file
......