2020-06-11 16:12:04 +08:00
|
|
|
<template>
|
|
|
|
<view class="list">
|
2020-06-11 16:37:52 +08:00
|
|
|
<view class="top">
|
|
|
|
商品推荐
|
|
|
|
</view>
|
|
|
|
<view class="label">
|
2020-06-18 14:57:26 +08:00
|
|
|
<text>分类名称</text>
|
|
|
|
<text v-for="item in classifyList" :key="item.gc_id">{{ item.gc_name }}</text>
|
2020-06-11 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
<view class="item">
|
2020-06-18 14:57:26 +08:00
|
|
|
<item v-for="item in goodsList" :key="item.goods_id" :info="item"></item>
|
2020-06-11 16:37:52 +08:00
|
|
|
</view>
|
2020-06-11 16:12:04 +08:00
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
2020-06-11 16:37:52 +08:00
|
|
|
import item from "./item"
|
2020-06-11 16:12:04 +08:00
|
|
|
export default {
|
2020-06-11 16:37:52 +08:00
|
|
|
name:"list",
|
|
|
|
components:{
|
|
|
|
item
|
2020-06-18 14:57:26 +08:00
|
|
|
},
|
|
|
|
props: {
|
|
|
|
classifyList: Array,
|
|
|
|
goodsList: Array,
|
|
|
|
}
|
2020-06-11 16:12:04 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.list{
|
2020-06-11 16:37:52 +08:00
|
|
|
.top{
|
|
|
|
font-size: 30rpx;
|
|
|
|
height: 90rpx;
|
|
|
|
line-height: 90rpx;
|
|
|
|
text-align: center;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.label{
|
|
|
|
display: flex;
|
|
|
|
color: #999;
|
2020-06-18 14:57:26 +08:00
|
|
|
flex-wrap: wrap;
|
2020-06-11 16:37:52 +08:00
|
|
|
>text{
|
|
|
|
margin-right: 34rpx;
|
2020-06-18 14:57:26 +08:00
|
|
|
margin-bottom: 10rpx;
|
2020-06-11 16:37:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.item{
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
|
|
|
}
|
2020-06-11 16:12:04 +08:00
|
|
|
}
|
|
|
|
</style>
|