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.
121 lines
2.4 KiB
121 lines
2.4 KiB
<template>
|
|
<view>
|
|
<lf-nav title="餐饮配套" :showIcon="true" bgColor="transparent" titleColor="#fff" :spreadOut="false"></lf-nav>
|
|
<view class="head">
|
|
<image class="img" src="https://picsum.photos/200/300"></image>
|
|
</view>
|
|
<view class="content">
|
|
<view v-for="(t_item, t_index) in 3" :key="t_index">
|
|
<view class="title">正餐</view>
|
|
<view class="list">
|
|
<view class="item" v-for="(item, index) in 6" :key="index">
|
|
<view class="img">
|
|
<image src="https://picsum.photos/200/300" mode="aspectFill"></image>
|
|
<view class="float-layer">
|
|
<image src="../../../static/recommend-r.png"></image>
|
|
</view>
|
|
</view>
|
|
<view class="name">海底捞</view>
|
|
<view class="desc">火锅L3</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<u-back-top :scrollTop="pageScrollTop"></u-back-top>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return {
|
|
|
|
}
|
|
},
|
|
onLoad(){
|
|
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped="scoped">
|
|
.head{
|
|
width: 750rpx;
|
|
height: 520rpx;
|
|
.img{
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
.content{
|
|
padding: 20rpx 32rpx 40rpx;
|
|
width: 750rpx;
|
|
height: max-content;
|
|
box-sizing: border-box;
|
|
.title{
|
|
font-size: 36rpx;
|
|
color: #15716E;
|
|
font-weight: bold;
|
|
padding: 20rpx 0;
|
|
// border-bottom: 4rpx dashed;
|
|
background-image: linear-gradient(to right, #15716E 0%, #15716E 50%, transparent 50%);
|
|
background-size: 28rpx 4rpx;
|
|
background-repeat: repeat-x;
|
|
background-position-y: bottom;
|
|
}
|
|
.list{
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.item{
|
|
width: 200rpx;
|
|
height: max-content;
|
|
padding: 20rpx 0;
|
|
margin-right: 43rpx;
|
|
&:nth-child(3n){
|
|
margin-right: 0rpx;
|
|
}
|
|
.img{
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border-radius: 10rpx;
|
|
overflow: hidden;
|
|
position: relative;
|
|
&>image{
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #EEEEEE;
|
|
}
|
|
.float-layer{
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
&>image{
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
}
|
|
.name{
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
color: #222222;
|
|
margin-top: 10rpx;
|
|
}
|
|
.desc{
|
|
font-size: 24rpx;
|
|
color: #777777;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|