From da94201fd0167031ae83b9f0c61ba6cc8a50739e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A5=E8=AF=B4?= Date: Tue, 7 Jun 2022 19:43:12 +0800 Subject: [PATCH 1/2] update --- src/assets/css/Footer.css | 14 +++---- src/assets/css/Header.css | 6 +-- src/assets/css/common.css | 17 ++++---- src/components/404.vue | 3 -- src/components/AdminHeader.vue | 9 +++-- src/components/Footer.vue | 4 +- src/components/Header.vue | 9 ++--- src/components/Login.vue | 40 ++++++++++-------- src/components/Video.vue | 17 +++++--- src/pages/Chat/Chat.vue | 74 ++++++++++++++++++---------------- src/pages/Chat/ChatEdit.vue | 24 ++++++----- src/pages/Home/Home.vue | 20 +++++---- src/pages/Home/HomeEdit.vue | 12 ++++-- src/pages/Notice/Notice.vue | 2 +- src/utils/pageUtils.js | 8 ++-- 15 files changed, 148 insertions(+), 111 deletions(-) diff --git a/src/assets/css/Footer.css b/src/assets/css/Footer.css index e1ebd9c..3536f32 100644 --- a/src/assets/css/Footer.css +++ b/src/assets/css/Footer.css @@ -1,4 +1,4 @@ -.footer{ +.footer { position: absolute; bottom: 0; height: 11.3vw; @@ -7,18 +7,18 @@ background-color: #0a1d30; } -.footer-content{ +.footer-content { display: flex; justify-content: center; align-items: center; margin: 3.2vw; } -.osredm-logo{ +.osredm-logo { width: 200px; } -.text{ +.text { text-align: center; align-items: center; margin-left: 50px; @@ -27,13 +27,13 @@ vertical-align: middle; } -a:hover{ +a:hover { color: rgb(250, 202, 46); } -a:active{ +a:active { color: rgb(250, 202, 46); } -a{ +a { text-decoration: none; color: white; } \ No newline at end of file diff --git a/src/assets/css/Header.css b/src/assets/css/Header.css index 99369ac..c6d6541 100644 --- a/src/assets/css/Header.css +++ b/src/assets/css/Header.css @@ -19,14 +19,14 @@ img { float: right; } -.nav{ +.nav { display: flex; justify-content: center; } -.el-menu-item{ +.el-menu-item { font-size: 1.1rem; } -::v-deep .el-submenu__title{ +::v-deep .el-submenu__title { font-size: 1.1rem !important; } diff --git a/src/assets/css/common.css b/src/assets/css/common.css index b56ea9e..709b6b1 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -7,22 +7,23 @@ .breadcrumb { margin: 2vw 0; font-size: 1.1rem; - } -.edit-content{ + +.edit-content { display: flex; flex-direction: column; justify-content: center; - margin: 0 17vw 3vw; text-align: center; + margin: 0vw 17vw 3vw; } + /* 面板 */ .content { display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - margin: 0 6vw 3vw; + flex-direction: column; /* 纵向排列 */ + justify-content: center; /* 垂直居中 */ + align-items: center; /* 水平居中 */ + margin: 0vw 6vw 3vw; } .content ul { list-style-type: none; @@ -42,10 +43,10 @@ margin: 2vw; } .card-content-left { - text-align: left; display: block; position: relative; float: left; + text-align: left; margin: 1vw 1.5vw; } .card-img { diff --git a/src/components/404.vue b/src/components/404.vue index 4ae4a59..e8236a0 100644 --- a/src/components/404.vue +++ b/src/components/404.vue @@ -72,9 +72,6 @@ export default { color: #ee8145; } } - .not-found-btn-gohome { - - } } .el-button--primary { diff --git a/src/components/AdminHeader.vue b/src/components/AdminHeader.vue index a8f2fca..3d14fef 100644 --- a/src/components/AdminHeader.vue +++ b/src/components/AdminHeader.vue @@ -14,21 +14,24 @@ diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 64a0e2d..9be43e0 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -28,11 +28,13 @@ diff --git a/src/components/Header.vue b/src/components/Header.vue index f2d199f..097a21b 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -46,7 +46,7 @@ import pageUtils from "../utils/pageUtils"; export default { name: "Header", - data() { + data(){ return { banner: require("@/assets/logo/banner.jpg"), osredmLogo: require("@/assets/logo/osredmLogo.svg"), @@ -59,7 +59,7 @@ export default { }; }, - methods: { + methods:{ // 导航栏页面更改 handleSelect(key, keyPath) { @@ -123,18 +123,17 @@ export default { // 获取路由path 得到当前页 getPath(){ - var path = this.$route.path this.activeIndex = path.split("/")[2] } }, - mounted() { + mounted(){ this.userName = sessionStorage.getItem("name"); this.userPass = sessionStorage.getItem("pass"); this.userAvatar = require("@/assets/logo/user.jpg"); - this.getPath() + this.getPath(); /* var userRank = sessionStorage.getItem("rank"); if (userRank == 1) { this.rankIf = true; diff --git a/src/components/Login.vue b/src/components/Login.vue index 8df9d9b..7fa56e4 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -1,4 +1,5 @@ + + \ No newline at end of file + + + + diff --git a/src/pages/Home/Home.vue b/src/pages/Home/Home.vue index 1fcce86..a1e8c53 100644 --- a/src/pages/Home/Home.vue +++ b/src/pages/Home/Home.vue @@ -39,10 +39,10 @@ export default { data(){ return{ data: "", - videoTitle:"标题", - videoSrc:"https://outin-396971199eed11e991a100163e1c7426.oss-cn-shanghai.aliyuncs.com/sv/34277901-180465b8b73/34277901-180465b8b73.mp4", + videoTitle: "标题", + videoSrc: "https://outin-396971199eed11e991a100163e1c7426.oss-cn-shanghai.aliyuncs.com/sv/34277901-180465b8b73/34277901-180465b8b73.mp4", videoWidth: "100%", - content:'测试内容测试内容测试内容' + content: "测试内容测试内容测试内容", } }, diff --git a/src/pages/Notice/Notice.vue b/src/pages/Notice/Notice.vue index bcb9452..0789108 100644 --- a/src/pages/Notice/Notice.vue +++ b/src/pages/Notice/Notice.vue @@ -63,10 +63,14 @@ export default { }, + mounted() { + + }, } +