跳板页面增加二维码
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>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Title</title>
|
<title>Title</title>
|
||||||
|
<script src="qrcode.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<button><a id="login" href="#"><h1>点击登录跳转学习强国app</h1></a></button>
|
<button><a id="login" href="#"><h1>点击登录跳转学习强国app</h1></a></button>
|
||||||
</div>
|
</div>
|
||||||
<div id="wx"></div>
|
<div id="wx"></div>
|
||||||
|
<div id="qrcode">
|
||||||
|
<img id="img" src="#" alt="#"/>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
function load() {
|
function load() {
|
||||||
let search = window.location.search
|
let search = window.location.search
|
||||||
search = search.substring(1,search.length)
|
search = search.substring(1,search.length)
|
||||||
document.getElementById("login").setAttribute("href","dtxuexi://appclient/page/study_feeds?url="+search)
|
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()
|
document.getElementById("login").click()
|
||||||
}
|
}
|
||||||
function isWeixin () {
|
function isWeixin () {
|
||||||
|
|
Loading…
Reference in New Issue