From b273028fde3178d2643312c66d943b12f2c1bfad Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 21 三月 2024 09:26:06 +0800
Subject: [PATCH] 图书分类、图书列表、图书详情·页测试bug修改

---
 packageBookService/pages/bookServices/detail/index.js |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index 77bf47c..6c00c0f 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -51,7 +51,8 @@
       residue: 0, // 缁勫嵎鍓╀綑娆℃暟
       mockList: [] // 鐢ㄦ埛缁勫嵎鎻愪氦淇℃伅
     },
-    flag: true
+    flag: true,
+    applyResourceLoading: false
   },
 
 
@@ -262,7 +263,6 @@
           })
         }
       }
-      console.log('缁勫嵎淇℃伅', this.data.mockData);
       this.setData({
         'bookDetail.publicationDate': this.formatDate(this.data.bookDetail.publicationDate),
         'bookDetail.class': className,
@@ -270,6 +270,7 @@
         'bookDetail.oldPrice': this.numFormat(this.data.bookDetail.oldPrice),
         'bookDetail.paperPrice': this.numFormat(this.data.bookDetail.paperPrice),
       });
+      console.log('鍥句功淇℃伅', this.data.bookDetail);
     });
 
   },
@@ -426,6 +427,7 @@
                 teach: list,
                 loading: false
               })
+              console.log('鏁欏璧勬簮', this.data.teach);
               this.findChildIds(this.data.teach, this.data.openTeachids = [])
             } else if (type.refCode == 'jsek_cloudLearning') {
               // res.datas.cmsDatas[0].datas.forEach(item => {
@@ -706,10 +708,15 @@
         })
       }
     })
-    console.log('鏈夋晥鏃ユ湡', this.data.deadline);
+    this.setData({
+      applyResourceLoading: false
+    })
   },
   // 鐢宠鏁欏璧勬簮
   applyResource() {
+    this.setData({
+      applyResourceLoading: true
+    })
     // let role = userStore.userInfo ? userStore.userInfo.role : null
     // if (role) {
     //   if (role == 'Teacher') {
@@ -732,7 +739,9 @@
     }
     app.MG.ugc.newTopicMessage(query).then((res) => {
       if (res) {
-        Message.success('鐢宠宸叉彁浜わ紝璇峰緟瀹℃牳閫氳繃鍚庝笅杞�')
+        wx.showToast({
+          title: '鐢宠宸叉彁浜わ紝璇峰緟瀹℃牳閫氳繃鍚庝笅杞�',
+        })
       }
       this.getApplyInfo(this.data.bookDetail.id)
     })

--
Gitblit v1.9.1