0
点赞
收藏
分享

微信扫一扫

舒工悄悄告诉你~不用嵌入小程序、不用公众号唤起扫一扫不是梦


 

 

 index.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<title>舒工悄悄告诉你!不用嵌入小程序、不用公众号唤起扫一扫不是梦!</title>
</head>
<body>
<a href="http://sao315.com/w/api/saoyisao/?redirect_uri=http://www.shuzhiqiang.com/test/scan/result.html"><u>点我扫码</u>(不用嵌入小程序、不用公众号唤起扫一扫不是梦!)</a>
</body>
</html>
<style>
a{
color: red;
font-size: 30px;
font-weight: bold;
text-decoration: none;
}
</style>

result.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<title>入座成功!</title>
</head>
<body>
<p style="color: darkgreen;font-size: 30px;font-weight: bold">哥!恭喜您,入座成功,上课的时候不要和邻座妹子说悄悄话哟,疫情期间我们稍微矜持一点好吗?</p>
<p>您入座的座位号:</p><p>行知学院-4号教学楼-302教室第二排第三个座位</p><br>
<p>您扫码的内容是:</p>
<p></p>
</body>
</html>
<script>
var getQueryString = (name, win, isEncode) => {
var r = (win || top).location.search.substr(1).match(new RegExp("(^|&)" + name + "=([^&]*)(&|$)"));
if (r != null) {
return isEncode ? r[2] : decodeURIComponent(r[2]);
}
return null;
};
document.querySelector("p:last-of-type").innerHTML = getQueryString("qrresult", null, true);
</script>

举报

相关推荐

0 条评论