Explorar el Código

购物车清空功后清空总金额

徐鹏 hace 2 años
padre
commit
4c0bdafba1

+ 2 - 1
app/containers/shoppingcart/ShoppingCartHome.js

@@ -170,7 +170,8 @@ class ShoppingCartHome extends Component {
       })
     )
     this.setState({
-      edited: !this.state.edited
+      edited: !this.state.edited,
+      Amount: 0
     })
   }  
 

+ 2 - 1
app/models/shoppingcart/ShoppingCart.js

@@ -147,7 +147,8 @@ export default {
             isDelete: true,
             edited: false,
             ShopList: [],
-            TotalNum: 0
+            TotalNum: 0,
+            Amount: 0
           })
         )
       } catch (error) {