Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3086fd6f
authored
2020-12-14 18:57:04 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:办事指南
1 parent
d9bc5634
Pipeline
#29
for
3086fd6f
failed
in 0 seconds
Changes
3
Pipelines
1
Builds
0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
staticJs/businessGuideDeatil.js
staticJs/common.js
staticViews/bszn.html
staticJs/businessGuideDeatil.js
View file @
3086fd6
...
...
@@ -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/Mh
Notice/getMH
DetailById"
,
//路径
url
:
portal
.
api_url
+
"/portal/Mh
Guide/getBszn
DetailById"
,
//路径
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
...
...
staticJs/common.js
View file @
3086fd6
...
...
@@ -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
()
};
...
...
staticViews/bszn.html
View file @
3086fd6
...
...
@@ -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
>
...
...
Please
register
or
sign in
to post a comment