From 2ee8ddb1ecac7df4198e54e08ec7f22daf4b07c0 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期五, 03 一月 2025 16:57:38 +0800
Subject: [PATCH] 111

---
 packageBookService/pages/bookServices/detail/index.js |   31 ++++++++++++++++++++++++-------
 1 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index 978eb97..6eae7bd 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -214,7 +214,8 @@
     protocolShow: false,
     protocolTxt: '',
     learnMenu: null,
-    md5List: []
+    md5List: [],
+    editDialog: false
   },
 
   resetTree: function (e) {
@@ -271,8 +272,6 @@
       this.setData({
         tabValue: options.tabValue,
       });
-
-
     }
   },
 
@@ -394,7 +393,6 @@
   },
   // 鑾峰彇鍥句功璇︽儏
   getBookInfo(id) {
-    console.log(id, "id")
     this.setData({
       "mockData'.id": 0,
       "mockData.price": 0,
@@ -434,11 +432,14 @@
         protectedEpub: [],
         probationPage: [], //pdf璇曡椤垫暟
         freeEpubPage: [], //epub璇曡鐧惧垎姣�
+        bookEditor: [], //鍥句功缂栬緫
+        contactInformation: [], //鑱旂郴鏂瑰紡
       },
     };
     app.MG.store.getProductDetail(query).then(async (res) => {
       this.getResourceCode(id, res.datas.rootCmsItemId)
-      console.log(res.datas, "res.datas")
+      res.datas.bookEditor = res.datas.bookEditor ? res.datas.bookEditor : '-'
+      res.datas.contactInformation = res.datas.contactInformation ? res.datas.contactInformation : '-'
       this.setData({
         bookDetail: res.datas,
         buyIdList: res.datas.purchasedSaleMethodIdList,
@@ -472,6 +473,16 @@
           }
           await this.getBookClass(classData);
         }
+      }
+      // 鎵爜浠庨搴撹烦杞洖鍥句功璇︽儏
+      const localData = wx.getStorageSync('tabValue')
+      if (localData) {
+        this.setData({
+          tabValue: localData
+        })
+        wx.removeStorage({
+          key: 'tabValue',
+        })
       }
       if (this.data.tabValue == 'questionBank' || this.data.tabValue == 'jsek_cloudLearning' || this.data.tabValue == 'jsek_teachingResources') {
         const checkData = this.data.cmsDatas.find(
@@ -516,7 +527,6 @@
         "bookDetail.paperPrice": this.numFormat(
           this.data.bookDetail.paperPrice
         ),
-
       });
     });
   },
@@ -749,6 +759,14 @@
       }
     }
   },
+
+  // 鑱旂郴
+  editPhone() {
+    this.setData({
+      editDialog: true
+    })
+  },
+
   // 鎴戣寤鸿
   suggestBtn() {
     // 妫�鏌ョ櫥褰曠姸鎬�
@@ -1903,7 +1921,6 @@
   // 浜戝涔犲叏閮ㄨ喘涔�
   async buyCloudLearnClass() {
     const cloundMenu = this.data.resourceCodeList.find((item) => item.refCode == 'jsek_cloudLearning')
-    debugger
     let query = {
       remarks: '浜戝涔�',
       requests: [{

--
Gitblit v1.9.1