<template>
  <view class="add-cart" @click.stop="handleAddCart">
    <text class="icon iconfont" :class="[`icon-jiagou${btnStyle}`]"></text>
  </view>
</template>

<script>
  export default {
    props: {
      // 购物车按钮样式 1 2 3
      btnStyle: {
        type: Number,
        default: 1
      },
    },
    data() {
      return {
        value: false,
        goodsInfo: {}
      }
    },
    methods: {
      handleAddCart() {
        this.$emit('handleAddCart')
      }
    }
  }
</script>

<style lang="scss" scoped>
  .add-cart {
    font-size: 38rpx;
    padding: 0 20rpx;
    color: $main-bg;
  }
</style>
