Browse Source

bug 修复

lilei 4 years ago
parent
commit
73bdaa5f05
1 changed files with 4 additions and 2 deletions
  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()
 				})
 			},
 			// 更新商品数量