3086fd6f by 任超

style:办事指南

1 parent d9bc5634
Pipeline #29 for 3086fd6f failed in 0 seconds
......@@ -5,13 +5,13 @@ $(function () {
layui.use('element', function () {
var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
});
// 新闻详情数据
// 办事指南详情数据
function _initData() {
var newsDetail = $("#newsDetail");
newsDetail.empty();
$.ajax({
type: "get", //提交方式
url: portal.api_url + "/portal/MhNotice/getMHDetailById",//路径
url: portal.api_url + "/portal/MhGuide/getBsznDetailById",//路径
data: {
"id": GetQueryString('id'),
},
......@@ -30,6 +30,6 @@ function _initData() {
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURIComponent(r[2]);
if (r != null) return decodeURIComponent(r[2]).replace(/\"/g,"");
return null;
}
\ No newline at end of file
......
......@@ -13,7 +13,7 @@ function SetServicesPath() {
//设置全局參數
var portal =
{
'api_url': "http://192.168.2.59:8000", //属性名用引号括起来,属性间由逗号隔开
'api_url': "http://192.168.2.108:8000", //属性名用引号括起来,属性间由逗号隔开
'name': 'myName',
"rootPath": GetRootPath()
};
......
......@@ -89,7 +89,7 @@
<ul class="online_list">
{{# for(var i = 0; i < item.bsznListVOS.length; i++){ }}
<li>
<a href="">
<a href='./businessGuideDeatil.html?id="{{item.bsznListVOS[i].bsmBszn}}"' target="_blank">
<span>{{item.bsznListVOS[i].headline}}</span>
<button type="button"
class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button>
......@@ -116,7 +116,7 @@
<ul class="online_list">
{{# for(var i = 0; i < item.bsznListVOS.length; i++){ }}
<li>
<a href="">
<a href='./businessGuideDeatil.html?id={{item.bsznListVOS[i].bsmBszn}}'>
<span>{{item.bsznListVOS[i].headline}}</span>
<button type="button"
class="layui-btn layui-btn-sm layui-btn-normal">在线办理</button>
......