Compare commits
6
Commits
824668764e
...
8afbb9ef59
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8afbb9ef59 | ||
|
|
631df21b33 | ||
|
|
5be3f23807 | ||
|
|
f4117066b0 | ||
|
|
44ca641fa1 | ||
|
|
f718a21f5e |
No files matched your search
+134
-3
@@ -1,11 +1,142 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import left_top_logo from '@/static/image/shouye/lt_logo.png'
|
||||||
|
import Rectangle from '@/static/image/shouye/Rectangle.png'
|
||||||
|
import ToolFun from '@/utils/index'
|
||||||
|
|
||||||
|
const titleName = ref<string>('首页')
|
||||||
|
const safeHeight = ToolFun.getSafeHeight()
|
||||||
|
const videoSrc = ref(
|
||||||
|
'https://test-cos-1308655658.cos.ap-shanghai.myqcloud.com/bright-intro-video.mp4',
|
||||||
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="text-lg text-red-900">
|
<TitleBar :title-name="titleName" />
|
||||||
Hello World
|
<view
|
||||||
|
class="flex flex-col bg-[#F5F6F7] overflow-y-auto"
|
||||||
|
:style="`height: calc(100vh - ${safeHeight}px)`"
|
||||||
|
>
|
||||||
|
<view class="container">
|
||||||
|
<video
|
||||||
|
class="video-player min-h-80 max-w-full"
|
||||||
|
:src="videoSrc"
|
||||||
|
autoplay
|
||||||
|
loop
|
||||||
|
muted
|
||||||
|
:controls="false"
|
||||||
|
objectFit="fill"
|
||||||
|
/>
|
||||||
|
<view class="content">
|
||||||
|
<image :src="left_top_logo" class="left-3 w-48 h-6" />
|
||||||
|
<view
|
||||||
|
class="content_text flex justify-between flex-col my-8 w-full h-5/6 items-center"
|
||||||
|
>
|
||||||
|
<view class="flex justify-center flex-col w-full items-center">
|
||||||
|
<view>为你的爱宠建档</view>
|
||||||
|
<view>制定专业喂养方案</view>
|
||||||
|
<view class="conten_science">
|
||||||
|
科学喂养专业有爱
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="flex justify-center flex-col w-full items-center">
|
||||||
|
<view class="content_botton">
|
||||||
|
<button type="primary" class="content_botton_text">
|
||||||
|
开始建档
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
<view class="content_details">
|
||||||
|
下拉了解详情
|
||||||
|
</view>
|
||||||
|
<view class="content_img">
|
||||||
|
<image :src="Rectangle" />
|
||||||
|
<image :src="Rectangle" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="sass" scoped>
|
||||||
|
.container
|
||||||
|
position: relative
|
||||||
|
width: 100%
|
||||||
|
height: 650px /* 根据需要设置视频容器的高度 */
|
||||||
|
/* display: flex; */
|
||||||
|
overflow: hidden
|
||||||
|
padding-top: calc(100% / (16 / 9)) /* 视频宽高比 */
|
||||||
|
.video-player
|
||||||
|
position: absolute
|
||||||
|
top: 0
|
||||||
|
left: 0
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
controlslist: none
|
||||||
|
objectfit: cover /* 修改适应方式为覆盖 */
|
||||||
|
|
||||||
|
.content
|
||||||
|
position: absolute
|
||||||
|
box-sizing: border-box
|
||||||
|
top: 0
|
||||||
|
left: 0
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
padding: 23px
|
||||||
|
&_text
|
||||||
|
color: var(--Color, #fff)
|
||||||
|
text-align: center
|
||||||
|
font-family: "Source Han Sans CN"
|
||||||
|
font-size: 29px
|
||||||
|
font-style: normal
|
||||||
|
font-weight: 500
|
||||||
|
line-height: 37px /* 127.586% */
|
||||||
|
letter-spacing: 1.45px
|
||||||
|
.conten_science
|
||||||
|
color: var(--Color, #fff)
|
||||||
|
text-align: center
|
||||||
|
font-family: "Source Han Sans CN"
|
||||||
|
font-size: 12px
|
||||||
|
font-style: normal
|
||||||
|
font-weight: 400
|
||||||
|
line-height: 16px /* 133.333% */
|
||||||
|
letter-spacing: 0.6px
|
||||||
|
|
||||||
|
.content_botton
|
||||||
|
display: inline
|
||||||
|
padding: 5px 51px
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
&_text
|
||||||
|
display: block
|
||||||
|
width: 176px
|
||||||
|
|
||||||
|
border-radius: 69px
|
||||||
|
background: #4545e5 /* 按钮 */
|
||||||
|
box-shadow: 0px 4px 12px 0px rgba(69, 69, 229, 0.3)
|
||||||
|
color: var(--Color, #fff)
|
||||||
|
text-align: center
|
||||||
|
font-family: "PingFang SC"
|
||||||
|
font-size: 18px
|
||||||
|
font-style: normal
|
||||||
|
font-weight: 400
|
||||||
|
line-height: 37px /* 205.556% */
|
||||||
|
letter-spacing: 0.36px
|
||||||
|
|
||||||
|
.content_details
|
||||||
|
margin-top: 20px
|
||||||
|
color: var(--Color, #fff)
|
||||||
|
text-align: center
|
||||||
|
font-family: "Source Han Sans CN"
|
||||||
|
font-size: 12px
|
||||||
|
font-style: normal
|
||||||
|
font-weight: 400
|
||||||
|
line-height: 16px /* 133.333% */
|
||||||
|
letter-spacing: 1.8px
|
||||||
|
|
||||||
|
.content_img
|
||||||
|
width: 16px
|
||||||
|
height: 16px
|
||||||
|
& image
|
||||||
|
background: #4545e5
|
||||||
</style>
|
</style>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
import bg from '@/static/image/feed-plan/bg.png'
|
import bg from '@/static/image/feed-plan/bg.png'
|
||||||
import circle from '@/static/image/feed-plan/circle.png'
|
import circle from '@/static/image/feed-plan/circle.png'
|
||||||
import message from '@/static/image/feed-plan/message.png'
|
import message from '@/static/image/feed-plan/message.png'
|
||||||
import {getSafeHeight} from '@/utils'
|
import ToolApi from '@/utils'
|
||||||
|
|
||||||
interface ListItem {
|
interface ListItem {
|
||||||
img: string
|
img: string
|
||||||
@@ -69,7 +69,7 @@ const listModel = ref<ListItem[]>([
|
|||||||
time: '2025年1月1日',
|
time: '2025年1月1日',
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
const safeHeight = getSafeHeight()
|
const safeHeight = ToolApi.getSafeHeight()
|
||||||
const searchValue = ref<string>('')
|
const searchValue = ref<string>('')
|
||||||
|
|
||||||
const info = ref<Item[]>([
|
const info = ref<Item[]>([
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 282 B |
Binary file not shown.
|
After Width: | Height: | Size: 6.5 KiB |
+1
-1
@@ -5,6 +5,6 @@ function getSafeHeight(): number {
|
|||||||
return safeAreaInsetBottom + menuButtonInfoHeight
|
return safeAreaInsetBottom + menuButtonInfoHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export default {
|
||||||
getSafeHeight
|
getSafeHeight
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user