diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue
index 84b4a1e0..9c5c5e2f 100644
--- a/src/views/layout/components/Navbar.vue
+++ b/src/views/layout/components/Navbar.vue
@@ -31,7 +31,7 @@

-
早上好,{{userInfo.username}}
+
{{getTimeStatus}},{{userInfo.username}}
@@ -119,6 +119,7 @@ import Screenfull from '@/components/Screenfull'
import LangSelect from '@/components/LangSelect'
import ThemePicker from '@/components/ThemePicker';
import NoticeMsgBar from '@/components/NoticeMsgBar'
+import dayjs from 'dayjs'
//import selectShopLocationBySysDept from '@/views/mdp/app/selectShopLocationBySysDept/selectShopLocationBySysDept';
export default {
@@ -204,6 +205,16 @@ export default {
}
})
return myShops
+ },
+ getTimeStatus() {
+ let hour = dayjs().hour();
+ let msg = '早上好';
+ if(hour >= 13 || hour <= 18) {
+ msg = '下午好';
+ }else if (hour >= 19 || hour <= 24){
+ msg = '晚上好';
+ }
+ return msg;
}
},
methods: {
diff --git a/src/views/layout/components/Sidebar/index.vue b/src/views/layout/components/Sidebar/index.vue
index 2b9b58e9..fc8774a2 100644
--- a/src/views/layout/components/Sidebar/index.vue
+++ b/src/views/layout/components/Sidebar/index.vue
@@ -11,7 +11,7 @@
text-color="rgba(255,255,255,.6)"
active-text-color="#409EFF"
>
-
+
@@ -38,11 +38,10 @@ export default {