This commit is contained in:
luyuan 2020-06-11 16:37:52 +08:00
parent 55238876a8
commit 09f11d7d44
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
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>

View File

@ -45,6 +45,7 @@
<image class="lingquan"></image>
<youhq></youhq>
<view class="hr" style="margin-top:40rpx"></view>
<list></list>
</view>
</template>
<script>
@ -53,6 +54,7 @@ import recommend from "@/components/shop/recommend/index"
import seckill from "@/components/shop/seckill/index"
import group from "@/components/shop/group/index"
import youhq from "@/components/shop/youhq/index"
import list from "../../components/shop/list/index"
export default {
name:"shop",
@ -61,7 +63,8 @@ export default {
recommend,
seckill,
group,
youhq
youhq,
list
},
data(){
return {