Merge branch 'TangShanKaiPing' of http://49.4.92.112:3000/root/ZHXY into TangShanKaiPing
Former-commit-id: 85168e5649922297a16960ebe47f06302f7fcf6d Former-commit-id: fc687ecb57e4c2e2f4c542f95376c52f8d21bb77TangShanKaiPing
commit
653e821de5
@ -1,29 +1,12 @@
|
|||||||
/**
|
|
||||||
* [通过参数名获取url中的参数值]
|
|
||||||
* 示例URL:http://iot.edusoa.com/IoTCenter/index.html?organ=测试学校
|
|
||||||
* @param {[string]} queryName [参数名]
|
|
||||||
* @return {[string]} [参数值]
|
|
||||||
*/
|
|
||||||
function GetQueryValue(queryName) {
|
|
||||||
var reg = new RegExp("(^|&)" + queryName + "=([^&]*)(&|$)", "i");
|
|
||||||
var r = window.location.search.substr(1).match(reg);
|
|
||||||
if ( r != null ){
|
|
||||||
return decodeURI(r[2]);
|
|
||||||
}else{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var url = '';
|
var url = '';
|
||||||
var school = GetQueryValue('organ').replace(/\'/g, '');
|
var school = (GetQueryValue('organname') || '').replace(/\'/g, '');
|
||||||
|
|
||||||
switch(school) {
|
switch(school) {
|
||||||
case '东师理想':
|
|
||||||
url = 'http://iot.edusoa.com'
|
|
||||||
break;
|
|
||||||
case '唐山市税东中学':
|
case '唐山市税东中学':
|
||||||
url = 'http://tsssdzx.iot.edusoa.com'
|
url = 'http://221.194.113.154:8100'
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
url = 'http://iot.edusoa.com'
|
url = 'http://221.194.113.154:8100'
|
||||||
}
|
}
|
||||||
window.location.href = url;
|
window.location.href = url;
|
@ -0,0 +1,39 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="stylesheet" href="lib/weui/weui.min.css">
|
||||||
|
<link rel="stylesheet" href="css/weui.ext.css">
|
||||||
|
<link rel="stylesheet" href="css/app.css">
|
||||||
|
</head>
|
||||||
|
<div class="page js_show">
|
||||||
|
<div style="background-color: #fff; height: 100%; min-height: 480px;">
|
||||||
|
<div class="weui-header" v-if="typeof api !== 'undefined'">
|
||||||
|
<div class="weui-header-left"> <a class="icon icon-109" style="color:#fff" href="javascript:" onclick="closeWindow()">关闭</a> </div>
|
||||||
|
<h1 class="weui-header-title"></h1>
|
||||||
|
<div class="weui-header-right"></div>
|
||||||
|
</div>
|
||||||
|
<div style="margin-top:46px;padding:40px;text-align:center">
|
||||||
|
<img src="400.svg" style="display:inline-block;max-width:80%">
|
||||||
|
<p class="weui-footer__text" style="padding:20px;color:#ccc;text-align:center">暂未开通相关服务</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script>
|
||||||
|
// 人人通原生返回键回调
|
||||||
|
var closeWindow = function (){
|
||||||
|
if(window.api){
|
||||||
|
window.api.execScript(
|
||||||
|
{
|
||||||
|
name: window.api.winName,
|
||||||
|
script: "api.closeWin()"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</html>
|
After Width: | Height: | Size: 17 KiB |
Loading…
Reference in new issue