fc75a2f9 by 任超

style:办事指南

1 parent 2236c920
......@@ -243,7 +243,13 @@
border: 1px solid #0F93F6;
color: #0F93F6;
}
.online-processing:hover {
color: #0F93F6!important;
}
.business-guide {
color: #9B9B9B;
border: 1px solid #DDDDDD;
}
.business-guide:hover {
border-color: #DDDDDD;
}
\ No newline at end of file
......
$(function () {
// if(GetQueryString('id')) {
// _initData();
// }else {
// _getBsznDetailByYwid();
// }
$('.layui-breadcrumb a').eq(1).attr('href',GetQueryString('href'));
//模板点击下载
downLoad()
})
......
$(function () {
// newsDetail()
})
layui.use('element', function () {
......@@ -8,29 +7,6 @@ layui.use('element', function () {
element.on('nav(demo)', function (elem) {
});
});
// 新闻详情数据
function newsDetail() {
var newsDetail = $("#newsDetail");
newsDetail.empty();
$.ajax({
type: "get", //提交方式
url: portal.api_url + "/portal/MhNews/getDetailById",//路径
data: {
"id": GetQueryString('id'),
},
dataType: "json",
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
$('.newsTitle').html(result.data.headline)
$('.releaseTime').html(result.data.addtime)
$('.source p').html(result.data.source)
newsDetail.append(result.data.content)
}
}
});
}
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
......
......@@ -98,7 +98,7 @@
<a class="onlineProcessing" data-id={{item.bsznListVOS[i].bsmBszn}}>
<button type="button" class="layui-btn layui-btn-sm online-processing layui-btn-normal">在线办理</button>
</a>
<a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank">
<a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html?href=/staticViews/bszn.html' target="_blank">
<button type="button"
class="layui-btn layui-btn-primary business-guide layui-btn-sm">办事指南</button>
</a>
......@@ -130,7 +130,7 @@
<a href="./yyxz.html" data-id={{item.bsznListVOS[i].bsmBszn}}>
<button type="button" class="layui-btn online-processing layui-btn-sm layui-btn-normal">在线办理</button>
</a>
<a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html' target="_blank">
<a href='./businessGuide/{{item.bsznListVOS[i].bsmBszn}}.html?title=办事指南' target="_blank">
<button type="button" class="layui-btn business-guide layui-btn-primary layui-btn-sm">办事指南</button>
</a>
</div>
......