You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
618 B

<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('click')
}
}
}
</script>
<style lang="scss" scoped>
.add-cart {
font-size: 40rpx;
padding: 0 20rpx;
color: #17C161;
}
</style>