From db6ff05d90c01201b6920f5891964e55ba8b1cca Mon Sep 17 00:00:00 2001 From: zhengpengju Date: Tue, 26 May 2020 13:42:40 +0800 Subject: [PATCH] fix bug Former-commit-id: 8a6dafd2c6e415c06dd8965600dd9dafbfc38b10 --- projects/WebSPA/wwwroot/images/button.svg | 1 + projects/WebSPA/wwwroot/index.html | 2 +- projects/WebSPA/wwwroot/js/message.js | 8 +++---- projects/WebSPA/wwwroot/pages/home.html | 10 ++++----- projects/WebSPA/wwwroot/pages/iot/nodes.html | 21 +++++++++++++------ projects/WebSPA/wwwroot/pages/iot/scenes.html | 4 ++-- 6 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 projects/WebSPA/wwwroot/images/button.svg diff --git a/projects/WebSPA/wwwroot/images/button.svg b/projects/WebSPA/wwwroot/images/button.svg new file mode 100644 index 00000000..25e95c0f --- /dev/null +++ b/projects/WebSPA/wwwroot/images/button.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/WebSPA/wwwroot/index.html b/projects/WebSPA/wwwroot/index.html index 306f2d91..1efe0bb1 100644 --- a/projects/WebSPA/wwwroot/index.html +++ b/projects/WebSPA/wwwroot/index.html @@ -24,7 +24,7 @@ diff --git a/projects/WebSPA/wwwroot/js/message.js b/projects/WebSPA/wwwroot/js/message.js index e9281d2f..62536c20 100644 --- a/projects/WebSPA/wwwroot/js/message.js +++ b/projects/WebSPA/wwwroot/js/message.js @@ -64,13 +64,13 @@ connection.on("ServerToClient", function (method, message, to, from) { * from: null */ - console.log('event:'); + console.log('message.js event:'); console.log(event); - console.log('model:'); + console.log('message.js model:'); console.log(model); - console.log('to:'); + console.log('message.js to:'); console.log(to); - console.log('from:'); + console.log('message.js from:'); console.log(from); /** diff --git a/projects/WebSPA/wwwroot/pages/home.html b/projects/WebSPA/wwwroot/pages/home.html index d766d95b..a9ce7a14 100644 --- a/projects/WebSPA/wwwroot/pages/home.html +++ b/projects/WebSPA/wwwroot/pages/home.html @@ -71,7 +71,7 @@
-
+
-
+
性别
- {{ (user && user.sex === 0) ? '男' : '女' }}
+ {{ user ? (user.sex).toString().replace('0', '保密').replace('1', '男').replace('2', '女') : '' }}
生日
- {{user ? user.birthday : '' }}
+ {{user ? user.birthday.replace('T00:00:00', '') : '' }}
-
+ diff --git a/projects/WebSPA/wwwroot/pages/iot/nodes.html b/projects/WebSPA/wwwroot/pages/iot/nodes.html index 3125545a..ce5b28c2 100644 --- a/projects/WebSPA/wwwroot/pages/iot/nodes.html +++ b/projects/WebSPA/wwwroot/pages/iot/nodes.html @@ -6,13 +6,22 @@

智慧教室

-
- -
- +
+
+
+
+ + + +
+ +
+ +
+

{{node.name}}({{node.count}})

+
-

{{node.name}}({{node.count}})

- +
\ No newline at end of file diff --git a/projects/WebSPA/wwwroot/pages/iot/scenes.html b/projects/WebSPA/wwwroot/pages/iot/scenes.html index 1ccf5679..dc4c6555 100644 --- a/projects/WebSPA/wwwroot/pages/iot/scenes.html +++ b/projects/WebSPA/wwwroot/pages/iot/scenes.html @@ -9,9 +9,9 @@
- +
-

{{scene.name}}

+

{{scene.name}}