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/consultresult/consultresult.wxml |   67 ++++++++++++++++++++++-----------
 1 files changed, 45 insertions(+), 22 deletions(-)

diff --git a/pages/module_consult/consultresult/consultresult.wxml b/pages/module_consult/consultresult/consultresult.wxml
index 78e8d38..aa66034 100644
--- a/pages/module_consult/consultresult/consultresult.wxml
+++ b/pages/module_consult/consultresult/consultresult.wxml
@@ -1,26 +1,49 @@
 <!--pages/module_consult/consultresult/consultresult.wxml-->
 <view class="page">
-  <view class="page__hd">
-  <view><text>{{keyword}}</text>鐨勬硶寰嬫硶瑙� ></view>
-  </view>
-  <view class="page__bd">
-  <view class="fyui-panel">
-    <view wx:for="{{result}}" wx:key="index" data-index="{{index}}" bindtap="gotoDetail">
-      <view class="fyui-box  fyui-box__text">
-        <view class="fyui-box__hd">
-          {{item.name}}
-        </view>
-        <view class="fyui-box__bd">
-          <view class="fyui-box__content tag">鐩稿叧琛屼笟 -> {{item.fileIndustry}}</view>
-          <view class="fyui-box__content des">{{item.des}}</view>
-        </view>
-        <view class="fyui-box__ft">
-          <text class="keyword">鍏抽敭璇嶏細</text>
-          <view class="keyword-item"><text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i" >{{word}}</text></view>
-        </view>
-      </view>
+  <block wx:for="{{result}}" wx:key="i1" wx:for-item="catagory" wx:for-index="i1">
+    <view class="page__hd">
+      <view><text style="color: #57E4CB;">{{keyword}}</text>鐨剓{catagory.typeName}} ></view>
     </view>
-  </view>
-  </view>
+    <view class="page__bd">
+      <view class="fyui-panel">
+        <block wx:if="{{catagory.typeId === 1}}">
+          <view wx:for="{{catagory.contents}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoDetail">
+            <view class="fyui-box  fyui-box__text">
+              <view class="fyui-box__hd">
+                {{item.name}}
+              </view>
+              <view class="fyui-box__bd">
+                <view class="fyui-box__content tag">鐩稿叧琛屼笟 -> {{item.fileIndustry}}</view>
+                <view class="fyui-box__content des">{{item.des}}</view>
+              </view>
+              <view class="fyui-box__ft">
+                <text class="keyword">鍏抽敭璇嶏細</text>
+                <view class="keyword-item"><text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text></view>
+              </view>
+            </view>
+          </view>
+
+        </block>
+        <block wx:else="{{catagory.typeId === 2}}">
+          <view wx:for="{{catagory.contents}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoDetail">
+            <view class="fyui-box  fyui-box__text">
+              <view class="fyui-box__hd">
+                <rich-text nodes="{{item.des}}" class="fyui-box__content des subtitle"></rich-text>
+              </view>
+              <view class="fyui-box__bd">
+                <!-- <view class="fyui-box__content tag">鐩稿叧琛屼笟 -> {{item.fileIndustry}}</view> -->
+                <text class="tag2">鏉ユ簮锛氥�妠{item.fileName}}銆� {{item.chapterName}}{{item.name ? ' ' + item.name : ''}}</text>
+              </view>
+              <view class="fyui-box__ft">
+                <text class="keyword">鍏抽敭璇嶏細</text>
+                <view class="keyword-item"><text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text></view>
+              </view>
+            </view>
+          </view>
+        </block>
+      </view>
+      <view class="btn-more" data-typeid="{{catagory.typeId}}" bindtap="gotoMore">鏌ョ湅鏇村</view>
+    </view>
+  </block>
   <view class="page__ft"></view>
-</view>
+</view>
\ No newline at end of file

--
Gitblit v1.9.3