add message
This commit is contained in:
parent
e28948c3bd
commit
f29af863a4
|
@ -1,8 +1,44 @@
|
|||
{% extends 'polls/base.html' %}
|
||||
{% block content%}
|
||||
<div class="col-xs-12">
|
||||
<div style="text-align: center; margin: 50px auto">
|
||||
<a href="/polls/app/download/">下载APP</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock%}
|
||||
|
||||
|
||||
<!-- saved from url=(0074)http://swx.chinaunicom.cn:8086/qrcodescanner/qrcode/showview?code=dangjian -->
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>党建</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<script>
|
||||
var appVersion = window.navigator.appVersion,
|
||||
isAndroid = (/android/i).test(appVersion),
|
||||
isIOS = (/iphone|ipad/i).test(appVersion),
|
||||
isWinPhone = (/windows/i).test(appVersion);
|
||||
|
||||
function init() {
|
||||
var type = "";
|
||||
var code = window.location.search.substr(1);
|
||||
var ua = window.navigator.userAgent.toLowerCase();
|
||||
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
|
||||
return true;
|
||||
}else{
|
||||
if (isAndroid) {
|
||||
type = "android";
|
||||
|
||||
setTimeout(function() {
|
||||
window.location = "https://pom.gsdwl.com/polls/app/download/";
|
||||
}, 30);
|
||||
|
||||
}
|
||||
if (isIOS) {
|
||||
type = "ios";
|
||||
setTimeout(function() {
|
||||
window.location = "itms-services://?action=download-manifest&url=https://www.gsdj.gov.cn/apk/gsdjapp.plist";
|
||||
}, 30);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="init();" style="background:url(https://www.gsdj.gov.cn/apk/gsdjappas.png) no-repeat;background-size:100%;">
|
||||
|
||||
|
||||
</body></html>
|
Loading…
Reference in New Issue