Fix(购物车):[#1609]点击增减商品数量,取消加载效果

This commit is contained in:
lifizer
2024-05-27 16:23:11 +08:00
parent f7dcdc22f1
commit 86b927b487
+2 -2
View File
@@ -342,11 +342,11 @@ export default {
const { type } = e
const value = good.cartNum + (type === 'plus' ? 1 : -1)
const id = good.id
uni.showLoading()
// uni.showLoading()
changeCartNum(id, value).then(res => {
const { success } = res
if (success) {
uni.hideLoading()
// uni.hideLoading()
this.$set(this.list[index].carts[gIndex], 'cartNum', value)
}
}).catch(() => {