跳板页面增加二维码
This commit is contained in:
parent
a02dd75fa6
commit
ed9d191c6c
File diff suppressed because one or more lines are too long
|
@ -3,19 +3,24 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
<script src="qrcode.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<button><a id="login" href="#"><h1>点击登录跳转学习强国app</h1></a></button>
|
||||
</div>
|
||||
<div id="wx"></div>
|
||||
|
||||
<div id="qrcode">
|
||||
<img id="img" src="#" alt="#"/>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
function load() {
|
||||
let search = window.location.search
|
||||
search = search.substring(1,search.length)
|
||||
document.getElementById("login").setAttribute("href","dtxuexi://appclient/page/study_feeds?url="+search)
|
||||
let imgBase64 = jrQrcode.getQrBase64(search, {});
|
||||
document.getElementById("img").setAttribute("src",imgBase64)
|
||||
document.getElementById("login").click()
|
||||
}
|
||||
function isWeixin () {
|
||||
|
|
Loading…
Reference in New Issue