Commit 49697cd8 by 朱建香

稳定版

parent f9cc342d
...@@ -755,8 +755,9 @@ async function ringBell(self){ ...@@ -755,8 +755,9 @@ async function ringBell(self){
function sleep(time){ function sleep(time){
return new Promise(function(resolve, reject){ return new Promise(function(resolve, reject){
setTimeout(()=>{ let timeOut = setTimeout(()=>{
resolve(time); resolve(time);
clearTimeout(timeOut);
},time); },time);
}) })
} }
...@@ -798,12 +799,12 @@ function notificationListener(self) { ...@@ -798,12 +799,12 @@ function notificationListener(self) {
if (plus.os.name == 'Android') { if (plus.os.name == 'Android') {
setInterval(function () { setInterval(function () {
var pushMsgArray = plus.push.getAllMessage(); var pushMsgArray = plus.push.getAllMessage();
console.log(pushMsgArray); // console.log(pushMsgArray);
if (pushMsgArray) { if (pushMsgArray) {
var pushMsgLength = pushMsgArray.length; var pushMsgLength = pushMsgArray.length;
if (pushMsgLength) { if (pushMsgLength) {
var pushMsg = pushMsgArray[(pushMsgArray.length - 1)]; var pushMsg = pushMsgArray[(pushMsgArray.length - 1)];
// pushAction(self, pushMsg); pushAction(self, pushMsg);
plus.push.clear(); plus.push.clear();
} }
} }
......
...@@ -11,7 +11,7 @@ UIOT_Debug.prototype.push = function (key) { ...@@ -11,7 +11,7 @@ UIOT_Debug.prototype.push = function (key) {
}; };
UIOT_Debug.prototype.upload = function (iot,title) { UIOT_Debug.prototype.upload = function (iot,title) {
var logData = this.logData; var logData = this.logData;
console.log(logData); // console.log(logData);
var http = new XMLHttpRequest(); var http = new XMLHttpRequest();
iot.business.websql.getMap('userinfo', function (userinfo) { iot.business.websql.getMap('userinfo', function (userinfo) {
var params = { var params = {
...@@ -29,10 +29,10 @@ UIOT_Debug.prototype.upload = function (iot,title) { ...@@ -29,10 +29,10 @@ UIOT_Debug.prototype.upload = function (iot,title) {
http.onreadystatechange = () => { http.onreadystatechange = () => {
if (http.readyState === 4 && http.status === 200) { if (http.readyState === 4 && http.status === 200) {
var response = JSON.parse(http.responseText); var response = JSON.parse(http.responseText);
console.log(response); // console.log(response);
} }
}; };
http.send(JSON.stringify(params)); // http.send(JSON.stringify(params));
}, function (error) { }, function (error) {
}); });
}; };
......
...@@ -24684,8 +24684,9 @@ function ringBell(self) { ...@@ -24684,8 +24684,9 @@ function ringBell(self) {
function sleep(time) { function sleep(time) {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
setTimeout(function () { var timeOut = setTimeout(function () {
resolve(time); resolve(time);
clearTimeout(timeOut);
}, time); }, time);
}); });
} }
...@@ -24727,12 +24728,12 @@ function notificationListener(self) { ...@@ -24727,12 +24728,12 @@ function notificationListener(self) {
if (plus.os.name == 'Android') { if (plus.os.name == 'Android') {
setInterval(function () { setInterval(function () {
var pushMsgArray = plus.push.getAllMessage(); var pushMsgArray = plus.push.getAllMessage();
console.log(pushMsgArray); // console.log(pushMsgArray);
if (pushMsgArray) { if (pushMsgArray) {
var pushMsgLength = pushMsgArray.length; var pushMsgLength = pushMsgArray.length;
if (pushMsgLength) { if (pushMsgLength) {
var pushMsg = pushMsgArray[pushMsgArray.length - 1]; var pushMsg = pushMsgArray[pushMsgArray.length - 1];
// pushAction(self, pushMsg); pushAction(self, pushMsg);
plus.push.clear(); plus.push.clear();
} }
} }
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<u-switch :value="valueSetHijack" v-show="recordSelectList.length && selectedMode == 2" <u-switch :value="valueSetHijack" v-show="recordSelectList.length && selectedMode == 2"
:init-param="componentsConfig.setHijackSwitch.initParam" v-on:u-switch-tap="onSetHijackTap(arguments[0])"></u-switch> :init-param="componentsConfig.setHijackSwitch.initParam" v-on:u-switch-tap="onSetHijackTap(arguments[0])"></u-switch>
</div> </div>
<u-button :init-param="componentsConfig.addButton.initParam" v-on:u-button-tap="onAddButtonTap"></u-button> <u-button :init-param="componentsConfig.addButton.initParam" :disabled="!recordSelectList.length" v-on:u-button-tap="onAddButtonTap"></u-button>
</div> </div>
<transition name="fade"> <transition name="fade">
<div class="guide-dialog" v-show="guideShowFlag"> <div class="guide-dialog" v-show="guideShowFlag">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment