10378774 by 任超

style:办事指南

1 parent 78145e83
$(function () {
if(GetQueryString('id')) {
_initData();
}else {
_getBsznDetailByYwid();
}
// if(GetQueryString('id')) {
// _initData();
// }else {
// _getBsznDetailByYwid();
// }
//模板点击下载
downLoad()
})
function downLoad() {
$('.item_notice a').click(function () {
var url = $(this).attr('url')
var ua = navigator.userAgent;
if (/chrome/i.test(ua)) {
window.open(`${portal.api_url}/hlwj/accessoryDO/download?url=${url}`, '_self')
} else if ("ActiveXObject" in window) {
url = encodeURI(url)
var gotolink = document.createElement('a');
var urlLink = `${portal.api_url}/hlwj/accessoryDO/download?url=${url}`;
gotolink.href = urlLink;
gotolink.setAttribute("target", "_self");
document.body.appendChild(gotolink);
gotolink.click();
}
})
}
layui.use('element', function () {
var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
......@@ -59,6 +78,6 @@ function _getBsznDetailByYwid() {
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURIComponent(r[2]).replace(/\"/g,"");
if (r != null) return decodeURIComponent(r[2]).replace(/\"/g, "");
return null;
}
\ No newline at end of file
......
......@@ -94,7 +94,7 @@
<a class="onlineProcessing" data-id={{item.bsznListVOS[i].bsmBszn}}>
<button type="button" class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button>
</a>
<a href='./businessGuideDeatil.html?id="{{item.bsznListVOS[i].bsmBszn}}"' target="_blank">
<a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank">
<button type="button"
class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button>
</a>
......@@ -126,7 +126,7 @@
<a href="./yyxz.html" data-id={{item.bsznListVOS[i].bsmBszn}}>
<button type="button" class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button>
</a>
<a href='./businessGuideDeatil.html?id={{item.bsznListVOS[i].bsmBszn}}' target="_blank">
<a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank">
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm">办事指南</button>
</a>
</div>
......@@ -136,5 +136,4 @@
</div>
{{# }); }}
</script>
</html>
\ No newline at end of file
......