From 81c23f9c2f5bdfbe962d0b19a5a80ea7c12f043d Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 10 七月 2024 17:39:02 +0800
Subject: [PATCH] 二维码

---
 packagePersonal/pages/myOrder/index.js |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/packagePersonal/pages/myOrder/index.js b/packagePersonal/pages/myOrder/index.js
index 129bb1f..1ad1223 100644
--- a/packagePersonal/pages/myOrder/index.js
+++ b/packagePersonal/pages/myOrder/index.js
@@ -80,7 +80,6 @@
 
   getDataList(isReachBottom) {
     var searchArr = [];
-    console.log(this.data.searchText, "earch")
     if (this.data.searchText != undefined && this.data.searchText != "") {
       searchArr.push({
         compareType: "Contains",
@@ -157,7 +156,6 @@
           })
         } else {
           this.setData({
-            list: [],
             skeletonLoding: false,
             loading: false
           })
@@ -173,7 +171,26 @@
     })
     this.getDataList(false);
   },
+  async goBookDetails(e) {
 
+    console.log(e.currentTarget.dataset);
+    const {
+      book,
+      remarks
+    } = e.currentTarget.dataset;
+    let parentData = null;
+    let bookId = book.orderSaleMethod.product.id;
+
+    parentData = await app.MG.store.getProductBySaleMethod({
+      'saleMethodId': book.orderSaleMethod.id
+    })
+    if (parentData.parentProduct.length > 0) {
+      bookId = parentData.parentProduct[parentData.parentProduct.length - 1].id;
+    }
+    wx.navigateTo({
+      url: `/packageBookService/pages/bookServices/detail/index?id=${bookId}&name=${book.name}`,
+    });
+  },
 
   /**
    * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔

--
Gitblit v1.9.1