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

42 lines
782 B
Vue
Raw Normal View History

2020-06-11 09:34:23 +08:00
<template>
2020-08-04 19:08:04 +08:00
<view class="shop-item" @click="toClassifyPage">
2020-06-30 18:06:50 +08:00
<image :src="info.goodscn_pic"></image>
2020-08-04 19:39:31 +08:00
<text class="">{{ 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-08-04 19:08:04 +08:00
},
methods: {
toClassifyPage() {
this.$u.route('pageC/classify/goods', {
cid: this.info.gc_id,
cname: this.info.gc_name,
});
}
2020-06-30 18:06:50 +08:00
}
2020-06-11 09:34:23 +08:00
}
</script>
<style lang="scss" scoped>
.shop-item{
display: flex;
align-items: center;
2020-08-04 19:39:31 +08:00
flex-direction: column;
width: 20%;
2020-08-05 21:39:02 +08:00
margin-bottom:34rpx;
2020-06-11 09:34:23 +08:00
>image{
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
>text{
2020-08-04 19:39:31 +08:00
width: 100rpx;
margin-top: 14rpx;
2020-06-11 09:34:23 +08:00
font-size: 24rpx;
color: #333;
}
}
</style>