diff --git a/html/collection.html b/html/collection.html index eacef1a..46ca994 100644 --- a/html/collection.html +++ b/html/collection.html @@ -175,8 +175,8 @@ }); } - function handleClassClick(obj,batch,name){ - batch = batch + function handleClassClick(obj,b,name){ + batch = b mui.toast(name+'切换成功'); var doms = document.getElementsByClassName('classes'); if (doms.length > 0) { @@ -294,8 +294,8 @@ } }, function (ret, err) { if (ret){ - cowshedName = '收集重量' mui.toast(cowshedName+"上传成功"); + cowshedName = '收集重量' } }) @@ -457,8 +457,7 @@ ret.peripherals.forEach(function (p) { if (undefined !== p.name) { console.log(p.name); - // if (p.name.indexOf("TMR_BLE") === -1){ - if (p.name === -1){ + if (p.name.indexOf("TMR_BLE") === -1){ return false }else{ mui.toast("已扫描到" +p.name,{duration:3500,type:'div'}); @@ -548,7 +547,6 @@ document.getElementById('nextCowshed').setAttribute("class", 'btnc mui-btn-success flex dis'); connectTimes ++; console.log('主机端连接失败'+connectTimes+' '+uuid) - // addNotice(sbId + '主机端连接失败'+connectTimes+'次 '+uuid); wifiDom.innerHTML = '连接失败'; api.hideProgress(); setTimeout(function (){ diff --git a/html/config.html b/html/config.html index c4a3c4d..fb9418a 100644 --- a/html/config.html +++ b/html/config.html @@ -133,7 +133,7 @@
- +