From 9ae2eb5616a236db5006398554fafd2180bbafad Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 5 Mar 2024 18:49:33 +0800 Subject: [PATCH] save --- src/components/Footer.vue | 2 +- src/pages/home/index.vue | 176 +++++++++++++++++++++++++++++++++++++- src/utils/index.jsx | 4 +- 3 files changed, 178 insertions(+), 4 deletions(-) diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 5a9e7d9..09bec13 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -87,7 +87,7 @@ export default { font-size: 14rem; position: fixed; width: 100%; - height: 50rem; + height: @footer-height; //border-top: 1px solid #7b7878; z-index: 2; //不用bottom:0是因为,在进行页面切换的时候,vue的transition diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index 78d4937..ef10745 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -2,8 +2,95 @@
+
+
下午好
+
+ + 扫一扫 +
+
+
+
+
常用小程序
+
+ 全部 + +
+
+
+
+ + 今日头条 +
+
+ + 西瓜视频 +
+
+
+
+
+
最近常看
+
+ 全部 + +
+
+
+
+ + 随机名字 +
+
+
+
+
+
常用功能
+
+
+
+
+
+ + 我的钱包 +
+
+ + 券包 +
+
+ + 小程序 +
+
+ + 观看历史 +
+
+ + 内容偏好 +
+
+ + 离线模式 +
+
+ + 设置 +
+
+ + 稍后再看 +
+
@@ -130,6 +217,7 @@ import Slide0 from "@/pages/home/slide/Slide0.vue"; import Slide2 from "@/pages/home/slide/Slide2.vue"; import Slide4 from "@/pages/home/slide/Slide4.vue"; import {DefaultUser} from "@/utils/const_var"; +import {$no} from "@/utils"; const nav = useNav() const store = useStore() @@ -252,7 +340,93 @@ function dislike() { width: 75vw; height: 100vh; overflow: auto; - background: red; + background: rgb(22, 22, 22); + padding: 10rem; + box-sizing: border-box; + + & > .header { + font-size: 16rem; + display: flex; + color: white; + justify-content: space-between; + align-items: center; + + .right { + border-radius: 20rem; + padding: 8rem 15rem; + background: rgb(36, 36, 36); + display: flex; + align-items: center; + font-size: 14rem; + gap: 10rem; + + svg { + font-size: 18rem; + } + } + } + + .card { + margin-top: 20rem; + border-radius: 12rem; + padding: 15rem; + background: rgb(29, 29, 29); + + .header { + margin-bottom: 16rem; + font-size: 14rem; + display: flex; + color: white; + justify-content: space-between; + align-items: center; + + .right { + display: flex; + align-items: center; + font-size: 14rem; + gap: 4rem; + color: gray; + + svg { + font-size: 18rem; + } + } + } + + .content { + color: white; + display: grid; + grid-template-columns: 1fr 1fr 1fr; + + .item { + min-height: 20vw; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + font-size: 16rem; + gap: 8rem; + + svg { + font-size: 30rem; + } + + .xcx { + border-radius: 12rem; + width: 55rem; + } + } + + .avatar { + height: 25vw; + + img { + border-radius: 50%; + width: 55rem; + } + } + } + } } .slide-content { diff --git a/src/utils/index.jsx b/src/utils/index.jsx index 7a7e0b1..ad4aea5 100644 --- a/src/utils/index.jsx +++ b/src/utils/index.jsx @@ -6,9 +6,8 @@ import Loading from "../components/Loading.vue"; import Config from '../config' import NoticeDialog from "../components/dialog/NoticeDialog"; import dayjs from 'dayjs' -import bus from "./bus"; +import bus, {EVENT_KEY} from "./bus"; import {cloneDeep} from "lodash"; -import {EVENT_KEY} from "./bus"; const Utils = { require2(url) { @@ -430,6 +429,7 @@ export default Utils export function $no() { Utils.$no(arguments) } + export function $notice(val) { Utils.$notice(val) } \ No newline at end of file