From c4ecdde7f6b7b45c40f9609aae849ef5cd04e672 Mon Sep 17 00:00:00 2001 From: mubai <1609539827@qq.com> Date: Sun, 9 Jul 2023 22:46:39 +0800 Subject: [PATCH] fix UI bug --- client/src/App.vue | 2 +- client/src/assets/css/film.css | 115 +++ client/src/components/FilmList.vue | 297 ++++---- client/src/components/RelateList.vue | 34 +- client/src/router/router.ts | 4 - client/src/style.css | 13 + client/src/views/index/CategoryFilm.vue | 437 ------------ client/src/views/index/FilmClassify.vue | 2 +- client/src/views/index/FilmClassifySearch.vue | 44 +- client/src/views/index/FilmDetails.vue | 658 ++++++++---------- client/src/views/index/Play.vue | 606 ++++++++-------- client/src/views/index/PlayV1.vue | 357 ---------- 12 files changed, 906 insertions(+), 1663 deletions(-) create mode 100644 client/src/assets/css/film.css delete mode 100644 client/src/views/index/CategoryFilm.vue delete mode 100644 client/src/views/index/PlayV1.vue diff --git a/client/src/App.vue b/client/src/App.vue index ba6417e..ae4803d 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -33,7 +33,7 @@ html, body, #app { a { outline: none; text-decoration: none; - color: #888888; + color: rgba(255,255,255,0.38); } a:hover { diff --git a/client/src/assets/css/film.css b/client/src/assets/css/film.css new file mode 100644 index 0000000..7562b40 --- /dev/null +++ b/client/src/assets/css/film.css @@ -0,0 +1,115 @@ +/*wrap*/ +@media (max-width: 650px) { + .play-link{ + line-height: 22px; + min-width: calc(25% - 10px); + } + .play-list-item { + max-height: 240px; + } + .play-module-title{ + display: none; + } + .play-tab-item{ + height: 34px; + line-height: 34px; + font-size: 12px; + padding: 0 8px; + } + .play-list{ + border-radius: 0 8px 8px 8px; + } +} +/*pc*/ +@media (min-width: 650px) { + .play-link{ + line-height: 34px; + min-width: calc(16.7% - 12px); + } + .play-list-item { + max-height: 380px; + } + + .play-module-title{ + height: 45px; + line-height: 45px; + font-size: 24px; + color: rgba(255,255,255,0.55); + } + .play-tab-item{ + height: 45px; + line-height: 45px; + font-size: 14px; + padding: 0 15px; + } + .play-list{ + border-radius: 8px 0 8px 8px; + } + +} + +/*播放列表样式*/ +.play-module{ + width: 100%; + border-radius: 10px; + margin-top: 50px; +} +.module-heading{ + display: flex; + justify-content: space-between; +} +.play-module-title{ + font-weight: 700; + margin: 0 0; +} +.play-tab-group{ + display: flex; + white-space: nowrap; + padding: 5px 5px 0; + background: rgba(255,255,255,0.15); + border-radius: 8px 8px 0 0; +} +.play-tab-item{ + display: inline-block; + border-radius: 6px 6px 0 0; + font-weight: 700; + box-shadow: 0 0 5px 0 rgba(0,0,0,.08), 0 0 1px rgba(0,0,0,.1) +} +.play-tab-item:hover{ + color: orange; +} + +.tab-active{ + background: #2e2e2e; + font-weight: 700; + color: orange; +} + +.play-list{ + background: #2e2e2e; + padding: 20px; + +} +.play-list-item{ + overflow-y: auto; + display: flex; + flex-wrap: wrap; +} +.play-link{ + padding: 3px; + border: 1px solid rgba(255,255,255,0.28); + border-radius: 8px; + margin: 5px; + text-align: center; + font-size: 14px; + display: inline-block; +} +.play-link:hover { + color: orange; + background: #b36d3824; +} +.play-link-active { + color: orange; + background: #b36d3824; +} + diff --git a/client/src/components/FilmList.vue b/client/src/components/FilmList.vue index aa3c34f..0adb690 100644 --- a/client/src/components/FilmList.vue +++ b/client/src/components/FilmList.vue @@ -1,185 +1,188 @@ \ No newline at end of file diff --git a/client/src/components/RelateList.vue b/client/src/components/RelateList.vue index 24813bb..ee7959b 100644 --- a/client/src/components/RelateList.vue +++ b/client/src/components/RelateList.vue @@ -1,29 +1,43 @@ \ No newline at end of file diff --git a/client/src/router/router.ts b/client/src/router/router.ts index 08055e6..e532ec7 100644 --- a/client/src/router/router.ts +++ b/client/src/router/router.ts @@ -1,17 +1,14 @@ - import { createRouter, createWebHistory, } from "vue-router"; - // 1.定义路由组件 import IndexHome from "../views/IndexHome.vue"; import Home from "../views/index/Home.vue"; import FilmDetails from "../views/index/FilmDetails.vue"; import Play from "../views/index/Play.vue"; import SearchFilm from "../views/index/SearchFilm.vue"; -import CategoryFilm from "../views/index/CategoryFilm.vue"; import NotFound from '../views/error/Error404.vue' import FilmClassifySearch from "../views/index/FilmClassifySearch.vue"; import FilmClassify from "../views/index/FilmClassify.vue"; @@ -28,7 +25,6 @@ const routes = [ {path: 'filmDetail', component: FilmDetails}, {path: 'play', component: Play}, {path: 'search', component: SearchFilm}, - {path: 'CategoryFilm', component: CategoryFilm}, {path: 'filmClassify', component: FilmClassify}, {path: 'filmClassifySearch', component: FilmClassifySearch}, ] diff --git a/client/src/style.css b/client/src/style.css index dc31925..0fef3f5 100644 --- a/client/src/style.css +++ b/client/src/style.css @@ -94,6 +94,19 @@ button:focus-visible { } +/*滚动条样式*/ +@media (min-width: 650px) { + ::-webkit-scrollbar { + width: 3px; + } + ::-webkit-scrollbar-thumb { + border-radius: 5px; + height: 10px; + background: rgba(255,255,255,0.25); + } +} + + diff --git a/client/src/views/index/CategoryFilm.vue b/client/src/views/index/CategoryFilm.vue deleted file mode 100644 index acb99fe..0000000 --- a/client/src/views/index/CategoryFilm.vue +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/client/src/views/index/FilmClassify.vue b/client/src/views/index/FilmClassify.vue index af77da3..d95e86e 100644 --- a/client/src/views/index/FilmClassify.vue +++ b/client/src/views/index/FilmClassify.vue @@ -1,5 +1,5 @@