Fix(购物车):[#1609]点击增减商品数量,取消加载效果
This commit is contained in:
+2
-2
@@ -342,11 +342,11 @@ export default {
|
|||||||
const { type } = e
|
const { type } = e
|
||||||
const value = good.cartNum + (type === 'plus' ? 1 : -1)
|
const value = good.cartNum + (type === 'plus' ? 1 : -1)
|
||||||
const id = good.id
|
const id = good.id
|
||||||
uni.showLoading()
|
// uni.showLoading()
|
||||||
changeCartNum(id, value).then(res => {
|
changeCartNum(id, value).then(res => {
|
||||||
const { success } = res
|
const { success } = res
|
||||||
if (success) {
|
if (success) {
|
||||||
uni.hideLoading()
|
// uni.hideLoading()
|
||||||
this.$set(this.list[index].carts[gIndex], 'cartNum', value)
|
this.$set(this.list[index].carts[gIndex], 'cartNum', value)
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user