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.
37 lines
627 B
37 lines
627 B
11 months ago
|
<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>
|