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
10378774
authored
2021-01-20 11:05:47 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:办事指南
1 parent
78145e83
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
9 deletions
staticJs/businessGuideDeatil.js
staticViews/bszn.html
staticJs/businessGuideDeatil.js
View file @
1037877
$
(
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
...
...
staticViews/bszn.html
View file @
1037877
...
...
@@ -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
=
'./businessGuide
Deatil.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
=
'./businessGuide
Deatil.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
...
...
Please
register
or
sign in
to post a comment