From 98c6c98f673e9a715b9d398d098afd96afac6701 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期三, 20 三月 2024 18:34:19 +0800
Subject: [PATCH] 3月20号的bug

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

diff --git a/pages/cart/index.js b/pages/cart/index.js
index 98123d1..16c1922 100644
--- a/pages/cart/index.js
+++ b/pages/cart/index.js
@@ -20,7 +20,9 @@
     });
     this.shoppingCartGet();
   },
-
+  onShow() {
+    this.shoppingCartGet();
+  },
   onDelete(e) {
     const item = e.currentTarget.dataset.item;
     app.MG.store.delShoppingCart({
@@ -125,5 +127,10 @@
         direction: 'column',
       });
     }
+  },
+  onLogin() {
+    wx.navigateTo({
+      url: '/pages/testLogin/index'
+    });
   }
 });

--
Gitblit v1.9.1