diff --git a/projects/IoTCenter/wwwroot/index.html b/projects/IoTCenter/wwwroot/index.html new file mode 100644 index 00000000..29d03de4 --- /dev/null +++ b/projects/IoTCenter/wwwroot/index.html @@ -0,0 +1,41 @@ + + + + + + + + +载入中... + + + + + + + \ No newline at end of file diff --git a/projects/IoTCenter/wwwroot/loading.svg b/projects/IoTCenter/wwwroot/loading.svg new file mode 100644 index 00000000..86d34bc1 --- /dev/null +++ b/projects/IoTCenter/wwwroot/loading.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/projects/IoTCenter/wwwroot/redirect.js b/projects/IoTCenter/wwwroot/redirect.js new file mode 100644 index 00000000..b7b3d3d1 --- /dev/null +++ b/projects/IoTCenter/wwwroot/redirect.js @@ -0,0 +1,29 @@ +/** + * [通过参数名获取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, ''); + +switch(school) { + case '东师理想': + url = 'http://iot.edusoa.com' + break; + case '唐山市税东中学': + url = 'http://tsssdzx.iot.edusoa.com' + break; + default: + url = 'http://iot.edusoa.com' +} +window.location.href = url; \ No newline at end of file