Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
geek-contract-h5
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘春鲜
geek-contract-h5
Commits
c43dfb77
Commit
c43dfb77
authored
Jul 17, 2021
by
刘春鲜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(电子签章): 电子签章
parent
4bbe4830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
index.html
contract/index.html
+16
-8
No files found.
contract/index.html
View file @
c43dfb77
...
...
@@ -4,13 +4,14 @@
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
合同签订
</title>
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<script
src=
"util.js"
></script>
</head>
<body>
<div>
证书申请中...
</div>
<div>
证书申请中...
<
span
id=
"text"
></span><
/div>
<script>
// alert(window.location.href)
const
el
=
document
.
getElementById
(
'text'
)
window
.
onload
=
function
()
{
const
studentId
=
getQueryString
(
'studentId'
)
const
schoolAreaId
=
getQueryString
(
'schoolAreaId'
)
...
...
@@ -18,7 +19,15 @@
const
url
=
getQueryString
(
'url'
)
if
(
studentId
&&
schoolAreaId
)
{
setTimeout
(()
=>
{
// 后端说 延迟3s 调借口
let
count
=
5
const
timer
=
setInterval
(()
=>
{
if
(
count
<=
0
)
{
clearInterval
(
timer
)
}
el
.
innerText
=
count
--
+
's'
},
1000
);
setTimeout
(()
=>
{
// 后端说 延迟5s 调借口
sendMessage
({
type
:
'batchPageUrl'
,
__callback__
:
'__callback__'
,
data
:
{
studentId
,
schoolAreaId
}})
},
5000
);
}
...
...
@@ -27,10 +36,9 @@
sendMessage
({
type
:
type
||
'contract'
})
}
if
(
url
)
{
// 合同预览
window
.
location
.
href
=
url
}
// if (url) { // 合同预览
// window.location.href = url
// }
window
.
$geek_excuteJS
=
(
params
)
=>
{
const
{
data
}
=
JSON
.
parse
(
params
)
...
...
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