Former-commit-id: a6ab5ca149c79c06f688d2fda839b356e60d44d1 Former-commit-id: eaecb1b74e97a8a28b0b40566b3c09aa2ce257f8TangShanKaiPing
parent
fa194317ef
commit
371dc32415
@ -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 school = GetQueryValue('organ').replace(/\'/g, '');
|
||||
var school = (GetQueryValue('organname') || '').replace(/\'/g, '');
|
||||
|
||||
switch(school) {
|
||||
case '东师理想':
|
||||
url = 'http://iot.edusoa.com'
|
||||
break;
|
||||
case '唐山市税东中学':
|
||||
url = 'http://tsssdzx.iot.edusoa.com'
|
||||
url = 'http://221.194.113.154:8100'
|
||||
break;
|
||||
default:
|
||||
url = 'http://iot.edusoa.com'
|
||||
url = 'http://221.194.113.154:8100'
|
||||
}
|
||||
window.location.href = url;
|
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body>
|
||||
<head>
|
||||
<link rel="stylesheet" href="lib/weui/weui.min.css">
|
||||
<link rel="stylesheet" href="css/weui.ext.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:" v-on:click="closeWindow()">关闭</a> </div>
|
||||
<h1 class="weui-header-title"></h1>
|
||||
<div class="weui-header-right"></div>
|
||||
</div>
|
||||
<img src="400.svg" style="maring:20px;">
|
||||
<div class="weui-footer weui-footer_fixed-bottom">
|
||||
<p class="weui-footer__text">Copyright © 2020 Ver 0.1.0.202006220919</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
After Width: | Height: | Size: 17 KiB |
Loading…
Reference in new issue