lilei 4 vuotta sitten
vanhempi
commit
73bdaa5f05
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      pages/index/index.vue

+ 4 - 2
pages/index/index.vue

@@ -214,8 +214,9 @@
 						})
 						// 刷新购物车
 						this.getCartList()
+					}else{
+						uni.hideLoading()
 					}
-					uni.hideLoading()
 				})
 			},
 			// 删除购物车
@@ -232,8 +233,9 @@
 						})
 						// 刷新购物车
 						this.getCartList()
+					}else{
+						uni.hideLoading()
 					}
-					uni.hideLoading()
 				})
 			},
 			// 更新商品数量