shop
This commit is contained in:
49
components/shop/list/item.vue
Normal file
49
components/shop/list/item.vue
Normal 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>
|
||||
Reference in New Issue
Block a user