From 8fbd6b8d09e70494d920cc0b77812e9643be3196 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 23 八月 2022 17:37:31 +0800
Subject: [PATCH] 2022.8.23

---
 pages/module_consult/consulthome/consulthome.js |   32 +++++++++++++++++++++++++++-----
 1 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/pages/module_consult/consulthome/consulthome.js b/pages/module_consult/consulthome/consulthome.js
index 66ac077..36071c1 100644
--- a/pages/module_consult/consulthome/consulthome.js
+++ b/pages/module_consult/consulthome/consulthome.js
@@ -10,7 +10,28 @@
    */
   data: {
     searchTips: '璇疯緭鍏ュ叧閿瓧鎼滅储',
-    hotTopics: []
+    hotTopics: [],
+
+    tabList: [{
+      name: '鐑棬',
+      tag: 0
+    }, {
+      name: '鏂囦欢',
+      tag: 0
+    }, {
+      name: '鏉$洰',
+      tag: 0
+    }, {
+      name: '妗堜緥',
+      tag: 0
+    }],
+
+    pageList: [
+      [],
+      [],
+      [],
+      [],
+    ]
   },
 
   /**
@@ -82,7 +103,8 @@
           r.mfClosingDate = that.formateTime(r.mfClosingDate)
         });
         that.setData({
-          hotTopics: res
+          'pageList[0]': res,
+          'pageList[1]': res
         })
       }
     })
@@ -90,7 +112,7 @@
 
   gotoDetail(e) {
     var i = e.currentTarget.dataset.index
-    var fileId = this.data.hotTopics[i].mfGuid
+    var fileId = this.data.pageList[0][i].mfGuid
     wx.navigateTo({
       url: '/pages/module_consult/consultdetail/consultdetail',
       success: (res) => {
@@ -102,9 +124,9 @@
     })
   },
 
-  formateTime (t) {
+  formateTime(t) {
     if (t) {
-      return moment(t).format("YYYY骞碝M鏈圖D鏃�") 
+      return moment(t).format("YYYY骞碝M鏈圖D鏃�")
     } else {
       return undefined
     }

--
Gitblit v1.9.3