You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.1 KiB
102 lines
2.1 KiB
5 months ago
|
<template>
|
||
|
<view class="bg">
|
||
|
<image src="https://static.ticket.sz-trip.com/cgc/images/index/shiguang.png" mode="aspectFill" class="topImg"></image>
|
||
|
|
||
|
<view class="box">
|
||
|
<view v-for="(item,index) in list" :key="index" class="item">
|
||
|
<view style="display: flex;align-items: center;">
|
||
|
<image :src="showImg(item.head_img)" mode="aspectFill" class="profile"></image>
|
||
|
<view class="name">君到苏州</view>
|
||
|
</view>
|
||
|
<view class="title">
|
||
|
视频标题视频标题视频标题视频标题视频标题视频标题视频标题视频标题视频标题
|
||
|
</view>
|
||
|
<view class="video-box" :style="{backgroundImage: 'url('+showImg(item.head_img)+')'}">
|
||
|
<image src="https://static.ticket.sz-trip.com/cgc/images/index/plays.png" mode="" class="play"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
list: [
|
||
|
{
|
||
|
head_img: 'https://static.ticket.sz-trip.com/uploads/20230920/7cdb05709d09cc2c86ea5671bd657c85.jpg'
|
||
|
},
|
||
|
{
|
||
|
head_img: 'https://changshu.js-dyyj.com/uploads/20250418/8a7631a1955ca05e619c0a25ad5ac1d1.jpg'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.bg {
|
||
|
min-height: 100vh;
|
||
|
background: #FFFFFF;
|
||
|
padding-bottom: 100rpx;
|
||
|
}
|
||
|
|
||
|
.topImg {
|
||
|
width: 750rpx;
|
||
|
height: 380rpx;
|
||
|
}
|
||
|
|
||
|
.box {
|
||
|
margin-top: -24rpx;
|
||
|
border-radius: 24rpx 24rpx 0 0;
|
||
|
padding: 0 32rpx;
|
||
|
|
||
|
.item {
|
||
|
padding: 32rpx 0;
|
||
|
|
||
|
.profile {
|
||
|
width: 48rpx;
|
||
|
height: 48rpx;
|
||
|
border-radius: 50%;
|
||
|
margin-right: 16rpx;
|
||
|
}
|
||
|
.name {
|
||
|
font-weight: 500;
|
||
|
font-size: 28rpx;
|
||
|
color: #000000;
|
||
|
}
|
||
|
|
||
|
.title {
|
||
|
font-weight: 400;
|
||
|
font-size: 28rpx;
|
||
|
color: #000000;
|
||
|
margin-top: 24rpx;
|
||
|
}
|
||
|
|
||
|
.video-box {
|
||
|
width: 686rpx;
|
||
|
height: 372rpx;
|
||
|
border-radius: 32rpx;
|
||
|
margin-top: 20rpx;
|
||
|
background-size: 100% 100%;
|
||
|
position: relative;
|
||
|
|
||
|
.play {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
margin: auto;
|
||
|
width: 56rpx;
|
||
|
height: 56rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.item:nth-child(n+2) {
|
||
|
border-top: 2rpx solid rgba(0,0,0,0.05);
|
||
|
}
|
||
|
}
|
||
|
</style>
|