From 6e696ecd502aab39953feef6da2c217c346b228c Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Tue, 22 Aug 2023 17:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B6=E9=83=A8=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home/home.module.scss | 43 ++++++++++++++++++++++- src/pages/index/index.module.scss | 38 -------------------- src/pages/preview/videoFull/videoFull.tsx | 22 +++++++++--- 3 files changed, 59 insertions(+), 44 deletions(-) diff --git a/src/pages/home/home.module.scss b/src/pages/home/home.module.scss index c9954e3..87fb844 100644 --- a/src/pages/home/home.module.scss +++ b/src/pages/home/home.module.scss @@ -1,3 +1,44 @@ +.header { + font-weight: bold; + font-size: 34rpx; + position: fixed; + width: 100%; + left: 0; + top: 0; + overflow: hidden; + box-sizing: border-box; + display: flex; + justify-content: center; + align-items: flex-end; + + &:after { + min-height: 100vh; + position: absolute; + top: 0; + left: -10%; + width: 120%; + content: ''; + display: block; + background: linear-gradient(40deg, #fff 50rpx, #caf0e2, #92ecc5) no-repeat; + min-height: 100vh; + background-size: 100% 600rpx; + z-index: -1; + } +} + +.tipsLogin { + padding: 24rpx; + color: #fff; + align-items: center; + position: fixed; + bottom: 0; + left: 0; + display: flex; + justify-content: space-between; + width: 100%; + box-sizing: border-box; + background: rgba(#000, .7); +} .content { @@ -26,7 +67,6 @@ .search { width: 710rpx; - margin: 40rpx 0 0; background: #fff; border-radius: 100px; line-height: 68rpx; @@ -35,6 +75,7 @@ display: flex; align-items: center; justify-content: center; + margin-top: 40rpx; } .adware { diff --git a/src/pages/index/index.module.scss b/src/pages/index/index.module.scss index e130875..f51f3b1 100644 --- a/src/pages/index/index.module.scss +++ b/src/pages/index/index.module.scss @@ -1,28 +1,3 @@ -.header { - text-align: center; - font-weight: bold; - font-size: 34rpx; - position: fixed; - width: 100%; - left: 0; - top: 0; - height: 70rpx; - overflow: hidden; - - &:after { - min-height: 100vh; - position: absolute; - top: 0; - left: -10%; - width: 120%; - content: ''; - display: block; - background: linear-gradient(40deg, #fff 50rpx, #caf0e2, #92ecc5) no-repeat; - min-height: 100vh; - background-size: 100% 600rpx; - z-index: -1; - } -} .content { position: relative; @@ -53,16 +28,3 @@ border-radius: 20px; } -.tipsLogin { - padding: 24rpx; - color: #fff; - align-items: center; - position: fixed; - bottom: 0; - left: 0; - display: flex; - justify-content: space-between; - width: 100%; - box-sizing: border-box; - background: rgba(#000, .7); -} diff --git a/src/pages/preview/videoFull/videoFull.tsx b/src/pages/preview/videoFull/videoFull.tsx index 7f33431..da7afd8 100644 --- a/src/pages/preview/videoFull/videoFull.tsx +++ b/src/pages/preview/videoFull/videoFull.tsx @@ -9,18 +9,30 @@ interface Props { const VideoFull: FC = () => { const {url} = Taro.useRouter().params + + Taro.useLoad(() => { + if (!url) { + Taro.showModal({ + title: '播放地址错', + success(){ + Taro.navigateBack() + } + }) + } + }) + return (