<template>
    <view class="shop-item" @click="toClassifyPage">
        <image :src="info.goodscn_pic"></image>
        <text class="">{{ info.gc_name }}</text>
    </view>    
</template>
<script>
export default {
	name:"shopItem",
	props: {
		info: Object,
	},
	methods: {
		toClassifyPage() {
			this.$u.route('pageC/classify/goods', {
				cid: this.info.gc_id,
				cname: this.info.gc_name,
			});
		}
	}
}
</script>
<style lang="scss" scoped>
.shop-item{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 20%;
    margin-bottom:34rpx;
    >image{
        width: 80rpx;
        height: 80rpx;
        border-radius: 50%;
    }
    >text{
		max-width: 100rpx;
        margin-top: 14rpx;
        font-size: 24rpx;
        color: #333;
    }
}
</style>