diff --git a/projects/WebSPA/wwwroot/images/avatar.svg b/projects/WebSPA/wwwroot/images/avatar.svg index e80a3a22..824c373c 100644 --- a/projects/WebSPA/wwwroot/images/avatar.svg +++ b/projects/WebSPA/wwwroot/images/avatar.svg @@ -1 +1,13 @@ - \ No newline at end of file + + + + + + background + + + + Layer 1 + + + \ No newline at end of file diff --git a/projects/WebSPA/wwwroot/images/device.svg b/projects/WebSPA/wwwroot/images/device.svg new file mode 100644 index 00000000..fb4cdb40 --- /dev/null +++ b/projects/WebSPA/wwwroot/images/device.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/WebSPA/wwwroot/images/node.svg b/projects/WebSPA/wwwroot/images/node.svg new file mode 100644 index 00000000..1ee2e2a5 --- /dev/null +++ b/projects/WebSPA/wwwroot/images/node.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/WebSPA/wwwroot/images/scene.svg b/projects/WebSPA/wwwroot/images/scene.svg new file mode 100644 index 00000000..7de644e0 --- /dev/null +++ b/projects/WebSPA/wwwroot/images/scene.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 7871a2a3..f69b112a 100644 --- a/projects/WebSPA/wwwroot/index.html +++ b/projects/WebSPA/wwwroot/index.html @@ -22,9 +22,9 @@ - + @@ -37,10 +37,10 @@ - - - - - + + + + + \ No newline at end of file diff --git a/projects/WebSPA/wwwroot/js/app.js b/projects/WebSPA/wwwroot/js/app.js index 5a857525..ef2ba7f6 100644 --- a/projects/WebSPA/wwwroot/js/app.js +++ b/projects/WebSPA/wwwroot/js/app.js @@ -24,6 +24,8 @@ axios.interceptors.request.use( } // 绝对路径替换为网关+路径 (防止多次请求重复拼接URL) config.url = config.url.indexOf('/') == 0 ? apigateway + config.url : config.url; + }else{ + config.url += `?v=${version}` } $('#loading').show(); return config; @@ -149,8 +151,17 @@ router.afterEach((route, redirect) => { }) }) -/// - +// 人人通原生返回键回调 +var onReturnBack = function (){ + if(window.api){ + window.api.execScript( + { + name: window.api.winName, + script: "api.closeWin()" + } + ) + } +} // indexedDB兼容 var indexedDB = window.indexedDB || window.webkitindexedDB || window.msIndexedDB || mozIndexedDB || null; diff --git a/projects/WebSPA/wwwroot/pages/home.html b/projects/WebSPA/wwwroot/pages/home.html index 1fa6e708..a9a184de 100644 --- a/projects/WebSPA/wwwroot/pages/home.html +++ b/projects/WebSPA/wwwroot/pages/home.html @@ -2,8 +2,8 @@
- -

+ +

消息({{store.state.messages.length}})

@@ -30,39 +30,48 @@
-
-
物联网
-
- -
- -
-

设备

-
- -
- -
-

智慧教室

-
- -
- -
-

平台场景

-
+
+ +

应用

+
+
+
+ +
+ +
+

设备管理

+
+ +
+ +
+

智慧教室

+
+ +
+ +
+

平台场景

+
+
+
- +
+ +

我的

+
+