<template>
    <div class="product" @click="goNext(info)">
        <van-image width="100%" height="140px" :radius="30" :src="getImg(info.pic)" fit="cover" />
        <!-- <div class="content">
            <div class="name van-ellipsis">
                {{ info.name }}
            </div>
            <div class="text van-ellipsis">
                {{ info.remark }}
            </div>
        </div> -->
    </div>
</template>

<script>
import banner from '../../mixins/banner';
export default {
    mixins: [banner],
    props: {
        info: {
            type: Object,
            default: () => {
                return {};
            }
        }
    }
};
</script>

<style lang="less" scoped>
.product {
    display: inline-block;
    border-radius: 30px;
    overflow: hidden;
    .van-image {
        overflow: hidden;
        display: block;
    }
}
</style>
