From 312fd09aaf90c0e52ab61bde22d0edbf105baa5e Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期二, 02 四月 2024 09:16:03 +0800
Subject: [PATCH] 书展的排序1

---
 packageBookService/pages/bookServices/detail/components/tree/index.js |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js
index d6814f5..e2395d2 100644
--- a/packageBookService/pages/bookServices/detail/components/tree/index.js
+++ b/packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -50,7 +50,8 @@
     activeValues: [1, 2],
     webpageSrc: '',
     cloudShoppingCart: [],
-    selectAll: []
+    selectAll: [],
+    shoppingCart: true
   },
   ready() {
     this.setData({
@@ -352,7 +353,6 @@
           })
         }
       })
-
     },
     // 瀛愰」鍕鹃��
     checkResource(e) {
@@ -402,6 +402,14 @@
       })
       if (shoppingCartGetId.includes(saleMethodId)) {
         console.log(111);
+
+        wx.showToast({
+          icon: 'error',
+          title: '宸叉坊鍔�',
+        })
+        this.setData({
+          shoppingCart: false
+        })
       } else {
         let query = {
           requests: [{
@@ -412,6 +420,10 @@
         }
         const addRes = await app.MG.store.addShoppingCart(query)
         console.log(addRes, 'addRes');
+        wx.showToast({
+          icon: 'success',
+          title: '娣诲姞鎴愬姛',
+        })
       }
 
     },
@@ -422,5 +434,5 @@
     // this.setData({
     //   checkAllValues: event.detail,
     // });
-  }
+  },
 })
\ No newline at end of file

--
Gitblit v1.9.1