From 8ffd379964344871231acb742de6d4a1ac986c97 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 10 Oct 2022 14:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E5=86=8C=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/userbar.vue | 115 +++++++++++++----------------- 1 file changed, 50 insertions(+), 65 deletions(-) diff --git a/src/layout/components/userbar.vue b/src/layout/components/userbar.vue index 371af74a..603cb254 100644 --- a/src/layout/components/userbar.vue +++ b/src/layout/components/userbar.vue @@ -1,28 +1,22 @@ @@ -126,9 +94,12 @@ export default { var userInfo = this.$TOOL.data.get("USER_INFO"); this.userName = userInfo.name; this.userNameF = this.userName.substring(0, 1); - + }, methods: { + openBook() { + window.open('/media/ehs_guide.pdf') + }, getMyVents() { this.$API.ecm.myevent.list .req({ is_read: false, page: 0 }) @@ -137,26 +108,26 @@ export default { }); }, goEvent() { - this.$router.push({name:"event"}) + this.$router.push({ name: "event" }) }, createhandele(id) { -this.$router.push({ + this.$router.push({ name: "eventhandlefrom", query: { id: id, }, }); -this.msg=false; - }, + this.msg = false; + }, handele(id) { - this.$router.push({ + this.$router.push({ name: "eventhandlefrom", query: { id: id, }, }); - this.msg=false; - }, + this.msg = false; + }, //个人信息 handleUser(command) { if (command == "uc") { @@ -208,7 +179,7 @@ this.msg=false; //显示短消息 showMsg() { this.msg = true; - this.getMyVents(); + this.getMyVents(); }, //标记已读 markRead() { @@ -228,6 +199,7 @@ this.msg=false; align-items: center; height: 100%; } + .user-bar .panel-item { padding: 0 10px; cursor: pointer; @@ -235,17 +207,21 @@ this.msg=false; display: flex; align-items: center; } + .user-bar .panel-item i { font-size: 16px; } + .user-bar .panel-item:hover { background: rgba(0, 0, 0, 0.1); } + .user-bar .user-avatar { height: 49px; display: flex; align-items: center; } + .user-bar .user-avatar label { display: inline-block; margin-left: 5px; @@ -256,31 +232,38 @@ this.msg=false; .msg-list li { border-top: 1px solid #eee; } + .msg-list li a { display: flex; padding: 20px; } + .msg-list li a:hover { background: #ecf5ff; } + .msg-list__icon { width: 40px; margin-right: 15px; } + .msg-list__main { flex: 1; } + .msg-list__main h2 { font-size: 15px; font-weight: normal; color: #333; } + .msg-list__main p { font-size: 12px; color: #999; line-height: 1.8; margin-top: 5px; } + .msg-list__time { width: 100px; text-align: right; @@ -290,9 +273,11 @@ this.msg=false; .dark .msg-list__main h2 { color: #d0d0d0; } + .dark .msg-list li { border-top: 1px solid #363636; } + .dark .msg-list li a:hover { background: #383838; }