Commit c43dfb77 authored by 刘春鲜's avatar 刘春鲜

feat(电子签章): 电子签章

parent 4bbe4830
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment