
<template>
    <div id="scrollbox">
        <h-shop-car-card 
            :checked="checked"
            cover="http://frxs-devevn2018.oss-cn-shenzhen.aliyuncs.com/productMainImg/20190225/100percent_ad583582-f6d2-40b7-b744-6434dd9a821b1551075460833.jpg"
            tag='https://front-xps-cdn.xsyx.xyz/2019/11/01/260431903.png'
            disabled
            vendor='UAT789专供'
            status="active"
            title='乔帮主约了花花仙'
            subTitle="一斤装每份一斤装每份一斤装份一斤装每份一斤装每份"
            :price="10"
            :marketPrice="20"
            :cartCount="cartCount"
            @check="handleCkeck"
            @add="handleAdd"
            @reduce="handleDel"
        />
    </div>
</template>

<script>
import hShopCarCard from './index'
export default {
    name: "back-top-demo",
    components: {
        hShopCarCard
    },
    data() {
        return {
            checked: false,
            cartCount: 2
        }
    },
    methods: {
        handleCkeck(params) {
            this.checked = !this.checked;
        },
        handleAdd( item ) {
            console.log('item', item);
            this.cartCount = this.cartCount+1;
        },
        handleDel() {
            this.cartCount = this.cartCount-1;
        }
    }
}
</script>
<style>
</style>