fix and add

Former-commit-id: 85e1b3a1dce5d7715e98cefec4450336c30760df
TangShanKaiPing
zhengpengju 5 years ago
parent d5280b05a5
commit 66e2a061e7

@ -0,0 +1 @@
当前目录源代码已经迁移到Mobile目录当前目录只作为Mobile/dist的目标地址运行移动应用

@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48px" height="60px" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50" xml:space="preserve">
<rect x="0" y="7.6416" width="4" height="14.7168" fill="#ffffff" opacity="0.2">
<animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>
<animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>
<animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>
</rect>
<rect x="8" y="5.1416" width="4" height="19.7168" fill="#ffffff" opacity="0.2">
<animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>
<animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>
<animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>
</rect>
<rect x="16" y="7.3584" width="4" height="15.2832" fill="#ffffff" opacity="0.2">
<animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>
<animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>
<animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>
</rect>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -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;

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1588125713142" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2449" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024" height="1024"><defs><style type="text/css"></style></defs><path d="M928 96H96c-35.296 0-64 28.704-64 64v704c0 35.296 28.704 64 64 64h832c35.296 0 64-28.704 64-64V160c0-35.296-28.704-64-64-64zM96 864V160h832l0.064 704H96z" fill="#cccccc" p-id="2450"></path><path d="M832 192H192c-35.296 0-64 28.704-64 64v512c0 35.296 28.704 64 64 64h640c35.296 0 64-28.704 64-64V256c0-35.296-28.704-64-64-64zM192 768V256h640l0.064 512H192z" fill="#cccccc" p-id="2451"></path><path d="M672 288H352a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64z" fill="#cccccc" p-id="2452"></path></svg>

After

Width:  |  Height:  |  Size: 872 B

@ -215,8 +215,7 @@ function saveMessage(msg){
if( jsonMsg.key ){ if( jsonMsg.key ){
console.log('IS MSG'); console.log('IS MSG');
objectStore.add({data: jsonMsg}); 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}]); store.commit('setMessages', [{data: jsonMsg}]);
} }
}else{ }else{

Loading…
Cancel
Save