deming/components/shop/shop-item/index.vue

32 lines
577 B
Vue
Raw Normal View History

2020-06-11 09:34:23 +08:00
<template>
<view class="shop-item">
2020-06-30 18:06:50 +08:00
<image :src="info.goodscn_pic"></image>
<text class="u-line-1">{{ info.gc_name }}</text>
2020-06-11 09:34:23 +08:00
</view>
</template>
<script>
export default {
2020-06-18 14:57:26 +08:00
name:"shopItem",
2020-06-30 18:06:50 +08:00
props: {
info: Object,
}
2020-06-11 09:34:23 +08:00
}
</script>
<style lang="scss" scoped>
.shop-item{
display: flex;
flex-direction: column;
align-items: center;
>image{
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
>text{
2020-06-30 18:06:50 +08:00
width: 80rpx;
2020-06-11 09:34:23 +08:00
font-size: 24rpx;
color: #333;
margin-top: 14rpx;
}
}
</style>