Fix(商品列表):[#3880]增加商品到购物车,红点提示未及时同步更新数量
This commit is contained in:
@@ -233,7 +233,7 @@ export default {
|
||||
|
||||
|
||||
},
|
||||
handleOk() {
|
||||
handleOk(cb = '') {
|
||||
const productSelect = this.getAttrItemData(this.attrValue)
|
||||
// 如果有属性,没有选择,提示用户选择
|
||||
const hasNo = (this.attr.productAttr.length && productSelect === undefined && this.isOpen) || productSelect.stock === 0
|
||||
@@ -261,6 +261,7 @@ export default {
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
})
|
||||
cb && cb()
|
||||
})
|
||||
},
|
||||
ChangeCartNum(changeValue) {
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
:cartNum="cart_num"
|
||||
:showOk="true"
|
||||
@changeFun="changeFun"
|
||||
@ok="handleOk"
|
||||
@ok="handleOk(getCartCount())"
|
||||
/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user