智慧教室
+ +{{node.name}}({{node.count}})
- +{{node.name}}({{node.count}})
+diff --git a/projects/Infrastructure/wwwroot/favicon.ico b/projects/Infrastructure/wwwroot/favicon.ico
index a3a79998..9ffa7168 100644
Binary files a/projects/Infrastructure/wwwroot/favicon.ico and b/projects/Infrastructure/wwwroot/favicon.ico differ
diff --git a/projects/JobServer/wwwroot/favicon.ico b/projects/JobServer/wwwroot/favicon.ico
index a3a79998..9ffa7168 100644
Binary files a/projects/JobServer/wwwroot/favicon.ico and b/projects/JobServer/wwwroot/favicon.ico differ
diff --git a/projects/StudyCenter/wwwroot/favicon.ico b/projects/StudyCenter/wwwroot/favicon.ico
index a3a79998..9ffa7168 100644
Binary files a/projects/StudyCenter/wwwroot/favicon.ico and b/projects/StudyCenter/wwwroot/favicon.ico differ
diff --git a/projects/WebSPA/wwwroot/js/app.js b/projects/WebSPA/wwwroot/js/app.js
index fbc97d13..da753827 100644
--- a/projects/WebSPA/wwwroot/js/app.js
+++ b/projects/WebSPA/wwwroot/js/app.js
@@ -172,6 +172,10 @@ var onReturnBack = function (){
}
}
+window.addEventListener("popstate", function(e) {
+ $('.weui-header a.weui-header-left')[0].click();
+}, false);
+
// indexedDB兼容
var indexedDB = window.indexedDB || window.webkitindexedDB || window.msIndexedDB || mozIndexedDB || null;
diff --git a/projects/WebSPA/wwwroot/js/util.js b/projects/WebSPA/wwwroot/js/util.js
index 677f481a..2d913927 100644
--- a/projects/WebSPA/wwwroot/js/util.js
+++ b/projects/WebSPA/wwwroot/js/util.js
@@ -76,6 +76,20 @@ function execScene(id) {
});
}
+function nodePower(number, command) {
+ var loading = weui.loading('提交中...');
+ axios.post('/IoTCenter/api/v1/node/power'+command, '"' + number + '"', { headers: { 'Content-Type': 'application/json;charset=UTF-8' } })
+ .then(function (response) {
+ console.log(response);
+ })
+ .catch(function (error) {
+ console.log(error);
+ })
+ .finally(function () {
+ loading.hide();
+ });
+}
+
/**
* 格式化时间
* @param {*} value
diff --git a/projects/WebSPA/wwwroot/pages/iot/node.html b/projects/WebSPA/wwwroot/pages/iot/node.html
index 9f1f35b3..6ad4f77d 100644
--- a/projects/WebSPA/wwwroot/pages/iot/node.html
+++ b/projects/WebSPA/wwwroot/pages/iot/node.html
@@ -79,7 +79,7 @@
{{node.name}}({{node.count}})
- +{{node.name}}({{node.count}})
+