Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wifi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xhw
wifi
Commits
d2b6c85b
Commit
d2b6c85b
authored
2 months ago
by
xhw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
bd3c2d92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
index.html
+6
-6
No files found.
index.html
View file @
d2b6c85b
...
...
@@ -96,7 +96,7 @@
<body>
<!-- 弹窗 -->
<div
id=
"successModal"
class=
"modal"
>
<p
id=
"text"
>
提交成功!3 秒后跳转...
</p>
<p
id=
"text"
></p>
</div>
<div
class=
"img"
></div>
...
...
@@ -229,17 +229,17 @@
const
modal
=
document
.
getElementById
(
'successModal'
);
modal
.
style
.
display
=
'block'
;
//
3
秒后跳转
//
5
秒后跳转
setTimeout
(()
=>
{
window
.
location
.
href
=
`https://admin.mindepoch.com/#/mobile?DeviceId=
${
data
.
DevicdId
}
`
},
5000
);
//一秒一变化
let
i
=
5
;
var
countNumber
=
5
;
var
timer
=
setInterval
(()
=>
{
--
i
;
document
.
getElementById
(
"text"
).
innerHTML
=
`提交成功!
${
i
}
秒后跳转...`
if
(
i
==
0
){
countNumber
--
;
document
.
getElementById
(
"text"
).
innerHTML
=
`提交成功!
${
countNumber
}
秒后跳转...`
if
(
countNumber
==
0
){
clearInterval
(
timer
)
}
},
1000
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment