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
aadb19d6
authored
2020-12-21 09:31:44 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:注销
1 parent
3d4146d0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
6 deletions
staticCss/common.css
staticCss/wdyy.css
staticJs/head.js
staticJs/login.js
staticJs/wdyy.js
staticCss/common.css
View file @
aadb19d
...
...
@@ -110,7 +110,7 @@ div.top-logo .top_logo_search {
float
:
left
;
width
:
350px
;
position
:
relative
;
margin-left
:
3
85
px
;
margin-left
:
3
38
px
;
}
div
.top-logo
.top_logo_search
input
{
border-radius
:
50px
;
...
...
@@ -163,7 +163,9 @@ div.top-logo .top_logo_search i {
height
:
13px
;
line-height
:
12px
;
}
#cancellation
{
cursor
:
pointer
;
}
div
.navigation
{
text-align
:
center
;
height
:
59px
;
...
...
staticCss/wdyy.css
View file @
aadb19d
...
...
@@ -179,4 +179,7 @@
#page
{
text-align
:
center
;
margin
:
30px
0
;
}
.business
{
cursor
:
pointer
;
}
\ No newline at end of file
...
...
staticJs/head.js
View file @
aadb19d
...
...
@@ -40,6 +40,9 @@ document.writeln(" </li>");
document
.
writeln
(
" <li>"
);
document
.
writeln
(
" <p class='PersonLogin'>登录</p>"
);
document
.
writeln
(
" </li>"
);
document
.
writeln
(
" <li>"
);
document
.
writeln
(
" <p id='cancellation'>注销</p>"
);
document
.
writeln
(
" </li>"
);
document
.
writeln
(
" </ul>"
);
document
.
writeln
(
" </div>"
);
document
.
writeln
(
" </div>"
);
...
...
staticJs/login.js
View file @
aadb19d
var
localhostPaht
=
curWwwPath
.
substring
(
0
,
pos
);
function
login
()
{
layui
.
use
(
'layer'
,
function
()
{
layer
.
open
({
...
...
@@ -40,6 +41,24 @@ $(document).on('click', '#loginButton', function () {
clicklogin
(
userLoginRequest
)
layer
.
closeAll
()
});
// cancellation
$
(
document
).
on
(
'click'
,
'#cancellation'
,
function
()
{
delCookie
();
window
.
open
(
''
+
localhostPaht
+
'/index.html'
,
'_self'
)
});
function
delCookie
()
{
var
keys
=
document
.
cookie
.
match
(
/
[^
=;
]
+
(?=
=
)
/g
)
if
(
keys
)
{
for
(
var
i
=
keys
.
length
;
i
--
;)
{
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;expires='
+
new
Date
(
0
).
toUTCString
()
// 清除当前域名下的,例如:m.ratingdog.cn
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;domain='
+
document
.
domain
+
';expires='
+
new
Date
(
0
).
toUTCString
()
// 清除当前域名下的,例如 .m.ratingdog.cn
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;domain=ratingdog.cn;expires='
+
new
Date
(
0
).
toUTCString
()
// 清除一级域名下的或指定的,例如 .ratingdog.cn
}
}
}
$
(
function
()
{
$
(
'.PersonLogin'
).
html
(
getCookie
(
'myCookie'
).
username
)
if
(
getCookie
(
'myCookie'
).
username
)
{
...
...
staticJs/wdyy.js
View file @
aadb19d
...
...
@@ -7,9 +7,13 @@ layui.use('element', function () {
});
});
$
(
function
()
{
_initData
()
$
(
'#zjhm'
).
text
(
getCookie
().
zjhm
)
$
(
'#username'
).
text
(
getCookie
().
username
)
_initData
();
$
(
'#zjhm'
).
text
(
getCookie
().
zjhm
);
$
(
'#username'
).
text
(
getCookie
().
username
);
$
(
document
).
on
(
"click"
,
".business"
,
function
(
e
)
{
window
.
open
(
"./businessGuideDeatil.html?id="
+
$
(
this
).
attr
(
'ywid'
)
+
""
)
})
})
// 获取列表信息
function
_initData
(
currentPage
=
1
)
{
...
...
@@ -53,7 +57,7 @@ function _initData(currentPage=1) {
li
+=
'<ul class="item_info">'
li
+=
'<li><span>预约人:</span><p>'
+
records
[
i
].
name
+
'</p></li>'
li
+=
'<li><span>办事大厅:</span><p>'
+
records
[
i
].
organizationName
+
'</p></li>'
li
+=
'<li><span>办理业务类型:</span><p>'
+
records
[
i
].
businessName
+
'</p><a
href="
">办事指南</a></li>'
li
+=
'<li><span>办理业务类型:</span><p>'
+
records
[
i
].
businessName
+
'</p><a
class="business" ywid="'
+
records
[
i
].
ywid
+
'
">办事指南</a></li>'
li
+=
'<li><span>预约日期:</span><p>'
+
records
[
i
].
reserveTime
+
'</p></li>'
li
+=
'<li><span>预约流水号:</span><p>'
+
records
[
i
].
reservationNumber
+
'</p></li>'
li
+=
'</ul>'
...
...
@@ -93,6 +97,7 @@ function paged(pageCount, curr) {
});
})
}
var
dataList
=
{
"userid"
:
getCookie
().
userid
};
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment