Refactor(云灵AI):礼品商品轮播效果实现
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
color="#C52733"
|
||||
@click="$emit('ok')"
|
||||
:disabled="(attr.productSelect.stock === 0 && attr.cartAttr)"
|
||||
>加入购物车</u-button>
|
||||
>{{ okText }}</u-button>
|
||||
</view>
|
||||
<view class="v12-px-2 v12-mt-3" v-if="isGift">
|
||||
<u-button
|
||||
@@ -118,6 +118,10 @@ export default {
|
||||
cartNum: {
|
||||
type: Number,
|
||||
default: () => 1
|
||||
},
|
||||
okText: {
|
||||
type: String,
|
||||
default: '加入购物车'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user