This commit is contained in:
2020-06-11 16:37:52 +08:00
parent 55238876a8
commit 09f11d7d44
3 changed files with 94 additions and 3 deletions

View File

@@ -1,15 +1,54 @@
<template>
<view class="list">
<view class="top">
商品推荐
</view>
<view class="label">
<text>asd</text>
<text>sda</text>
<text>w3eq</text>
</view>
<view class="item">
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
</view>
</view>
</template>
<script>
import item from "./item"
export default {
name:"list"
name:"list",
components:{
item
}
}
</script>
<style lang="scss" scoped>
.list{
.top{
font-size: 30rpx;
height: 90rpx;
line-height: 90rpx;
text-align: center;
color: #333;
}
.label{
display: flex;
color: #999;
>text{
margin-right: 34rpx;
}
}
.item{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 20rpx;
}
}
</style>

View File

@@ -0,0 +1,49 @@
<template>
<view class="item">
<image class="img"></image>
<view class="info">
<text class="title"></text>
<text class="jianjie"></text>
<text class="price"></text>
</view>
</view>
</template>
<script>
export default {
name:"item"
}
</script>
<style lang="scss" scoped>
.item{
width: 330rpx;
height: 469rpx;
margin-bottom: 27rpx;
background-color: #f8f8f8;
border-radius: 10rpx;
overflow: hidden;
.img{
width: 100%;
height: 272rpx;
}
.info{
padding: 0 12rpx;
display: flex;
flex-direction: column;
justify-content: space-around;
.title{
font-size: 30rpx;
color: #333;
}
.jianjie{
font-size: 26rpx;
color: #666;
}
.price{
color: #FF3131;
font-size: 26rpx;
}
}
}
</style>