diff --git a/projects/WebMVC/wwwroot/README.md b/projects/WebMVC/wwwroot/README.md new file mode 100644 index 00000000..cd85ffa1 --- /dev/null +++ b/projects/WebMVC/wwwroot/README.md @@ -0,0 +1 @@ +当前目录源代码已经迁移到Mobile目录,当前目录只作为Mobile/dist的目标地址运行移动应用 \ No newline at end of file diff --git a/projects/WebMVC/wwwroot/loading.svg b/projects/WebMVC/wwwroot/loading.svg new file mode 100644 index 00000000..86d34bc1 --- /dev/null +++ b/projects/WebMVC/wwwroot/loading.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/projects/WebMVC/wwwroot/redirect.js b/projects/WebMVC/wwwroot/redirect.js new file mode 100644 index 00000000..b7b3d3d1 --- /dev/null +++ b/projects/WebMVC/wwwroot/redirect.js @@ -0,0 +1,29 @@ +/** + * [閫氳繃鍙傛暟鍚嶈幏鍙杣rl涓殑鍙傛暟鍊糫 + * 绀轰緥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 diff --git a/projects/WebSPA/wwwroot/images/switch.svg b/projects/WebSPA/wwwroot/images/switch.svg new file mode 100644 index 00000000..49c8e550 --- /dev/null +++ b/projects/WebSPA/wwwroot/images/switch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/WebSPA/wwwroot/js/app.js b/projects/WebSPA/wwwroot/js/app.js index d8f7092d..7433a1ac 100644 --- a/projects/WebSPA/wwwroot/js/app.js +++ b/projects/WebSPA/wwwroot/js/app.js @@ -215,8 +215,7 @@ function saveMessage(msg){ if( jsonMsg.key ){ console.log('IS MSG'); objectStore.add({data: jsonMsg}); - // 濡傛灉鏁版嵁瓒呰繃100鏉★紝鍒欑Щ闄1鏉 - objectStore.delete(store.state.messages[0]._id); + // objectStore.delete(store.state.messages[0]._id); store.commit('setMessages', [{data: jsonMsg}]); } }else{