From bc7b375c7dd6b256ebd582c4ab85f77fca8dc054 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 21 三月 2024 14:54:55 +0800
Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master

---
 pages/cart/index.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pages/cart/index.js b/pages/cart/index.js
index 98123d1..7e52034 100644
--- a/pages/cart/index.js
+++ b/pages/cart/index.js
@@ -20,7 +20,11 @@
     });
     this.shoppingCartGet();
   },
+  onShow() {
+    this.shoppingCartGet();
+    this.setData({ totalPrice: 0.00, selectedCount: 0, checkAll: false, })
 
+  },
   onDelete(e) {
     const item = e.currentTarget.dataset.item;
     app.MG.store.delShoppingCart({
@@ -125,5 +129,10 @@
         direction: 'column',
       });
     }
+  },
+  onLogin() {
+    wx.navigateTo({
+      url: '/pages/testLogin/index'
+    });
   }
 });

--
Gitblit v1.9.1