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
39943843
Commit
39943843
authored
Jul 16, 2021
by
刘春鲜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(电子签章): 接口调用延迟
parent
a6bc60c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
index.html
contract/index.html
+5
-3
util.js
contract/util.js
+1
-0
No files found.
contract/index.html
View file @
39943843
...
...
@@ -7,15 +7,17 @@
<script
src=
"util.js"
></script>
</head>
<body>
<div>
合同签订
中...
</div>
<div>
证书申请
中...
</div>
<script>
window
.
onload
=
function
()
{
const
studentId
=
getQueryString
(
'studentId'
)
const
schoolAreaId
=
getQueryString
(
'schoolAreaId'
)
const
type
=
getQueryString
(
'type'
)
if
(
studentId
&&
schoolAreaId
)
{
sendMessage
({
type
:
'batchPageUrl'
,
__callback__
:
'__callback__'
,
data
:
{
studentId
,
schoolAreaId
}})
setTimeout
(()
=>
{
// 后端说 延迟3s 调借口
sendMessage
({
type
:
'batchPageUrl'
,
__callback__
:
'__callback__'
,
data
:
{
studentId
,
schoolAreaId
}})
},
3000
);
}
if
(
type
)
{
...
...
contract/util.js
View file @
39943843
...
...
@@ -19,6 +19,7 @@ const sendMessage = (data) => {
const
getQueryString
=
(
name
)
=>
{
const
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
);
const
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
{
return
unescape
(
r
[
2
]);
}
...
...
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