From bf580d5477d65f5eefb70a8fb9a6b37eaf0ae9bb Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 06 九月 2022 09:16:25 +0800
Subject: [PATCH] 2022.9.6

---
 pages/module_consult/consulthome/consulthome.wxml |  175 ++++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 138 insertions(+), 37 deletions(-)

diff --git a/pages/module_consult/consulthome/consulthome.wxml b/pages/module_consult/consulthome/consulthome.wxml
index bcc321b..13faa4a 100644
--- a/pages/module_consult/consulthome/consulthome.wxml
+++ b/pages/module_consult/consulthome/consulthome.wxml
@@ -10,63 +10,164 @@
     <view class="flex-h">
       <view class="card" bindtap="goto" data-index="0">
         <image src="/res/icons/con_pro_bg.png" class="card-bg" mode="scaleToFill" />
-        <view class="card-title">甯歌闂</view>
-        <view class="card-abstract">甯歌浼佷笟鐜繚闂</view>
+        <view class="card-title">鐜繚闂</view>
+        <view class="card-abstract">甯歌浼佷笟闂</view>
         <image src="/res/icons/con_pro.png" mode="aspectFit" class="icon"></image>
       </view>
       <view class="divider"></view>
       <view class="card middle" bindtap="goto" data-index="1">
         <image src="/res/icons/con_lib_bg.png" class="card-bg" mode="scaleToFill" />
         <view class="card-title">鐜繚鐭ヨ瘑搴�</view>
-        <view class="card-abstract">鐜繚娉曞緥娉曡</view>
+        <view class="card-abstract">鐢熸�佺幆澧冩硶寰嬫硶瑙�</view>
         <image src="/res/icons/con_lib.png" mode="aspectFit" class="icon"></image>
       </view>
       <view class="divider"></view>
       <view class="card" bindtap="goto" data-index="2">
         <image src="/res/icons/con_qa_bg.png" class="card-bg" mode="scaleToFill" />
         <view class="card-title">鏅鸿兘鍜ㄨ</view>
-        <view class="card-abstract">鐜繚涓撳 鍦ㄧ嚎鍜ㄨ</view>
+        <view class="card-abstract">鐜繚鏅鸿兘鍔╂墜</view>
         <image src="/res/icons/con_qa.png" mode="aspectFit" class="icon"></image>
       </view>
     </view>
 
-    <view class="fyui-cell fyui-cell_select">
-      <view class="fyui-cell__bd">鐑棬</view>
-      <view class="fyui-cell__ft">鏇村</view>
-    </view>
-    <view wx:for="{{hotTopics}}" wx:key="index" data-index="{{index}}" bindtap="gotoDetail">
-      <!-- <view class="fyui-box  fyui-box__text">
-        <view class="fyui-box__hd">
-          <text class="" wx:for="{{item.tags}}" wx:key="i" data-index="i" wx:for-item="tag">{{tag}}</text>
-          {{item.name}}
-        </view>
-        <view class="fyui-box__bd">
-          <view class="fyui-box__content">{{item.abstract}}</view>
-          
-        </view>
-        <view class="fyui-box__ft">
-          <view>{{item.time}}</view>
-          <view>{{item.author}}</view>
-        </view>
-      </view> -->
-      <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>
+
+    <switch-tab tabList="{{tabList}}" pageList="{{pageList}}">
+      <view slot="slot{{i1}}" wx:for="{{pageList}}" wx:for-item="page" wx:key="i1" wx:for-index="i1">
+        <block wx:if="{{page.length > 0}}">
+
+          <block wx:if="{{i1 == 0 || i1 == 1}}">
+            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoFile">
+              <view class="fyui-box  fyui-box__text">
+                <view class="fyui-box__hd">
+                  {{item.mfName}}
+                </view>
+                <view class="fyui-box__bd">
+                  <view class="fyui-box__content tag">
+                    <view>鏂囦欢绫诲埆锛歿{item.mfFileType}}</view>
+                    <view>鐢熸晥鏃堕棿锛歿{item.mfEffectiveDate}}</view>
+                    <view>鏂囧彿锛歿{item.mfReferenceNumber}}</view>
+                    <view>鐩稿叧琛屼笟 -> {{item.mfFileIndustry}}</view>
+                  </view>
+                  <view class="fyui-box__content des">{{item.mfSummary}}</view>
+                </view>
+                <view class="fyui-box__ft">
+                  <text class="keyword">鍏抽敭璇嶏細</text>
+                  <view class="keyword-item">
+                    <text wx:for="{{item.mfKeywordLv1}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text>
+                  </view>
+                </view>
+              </view>
+            </view>
+          </block>
+
+          <block wx:elif="{{i1 == 2}}">
+            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoItem">
+              <view class="fyui-box  fyui-box__text">
+                <view class="fyui-box__hd">
+                  <rich-text nodes="{{item.miItemContent}}" 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.miChapterName}} {{item.miItemName ? ' ' + item.miItemName : ''}}</text>
+                  <text class="tag2">鎵�灞炴枃浠讹細銆妠{item.mfName}}銆�</text>
+                  <text class="tag2" wx:if="{{item.miReferenceNumber}}">鎵�灞炴枃鍙凤細{{item.miReferenceNumber}}</text>
+                </view>
+                <view class="fyui-box__ft">
+                  <!-- <text class="tag3 {{item.effective? '' : 'tag3_disable'}}">{{item.effective ? '鐢熸晥涓�':'宸插け鏁�' }}</text>
+                  <text class="tag3 {{item.relatedItems? '' : 'tag3_disable'}}">{{item.relatedItems ? '鍏宠仈鏉$洰' + item.relatedItems + '涓� >':'鏃犲叧鑱旀潯鐩�' }}</text>
+                  <text class="tag3 {{item.relatedCases? '' : 'tag3_disable'}}">{{item.relatedCases ? '鍏宠仈妗堜緥' + item.relatedCases + '涓� >':'鏃犲叧鑱旀渚�' }}</text> -->
+                  <!-- <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:elif="{{i1 == 3}}">
+            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoQA">
+              <view class="fyui-box  fyui-box__text">
+                <view class="fyui-box__hd">
+                  <text class="fyui-box__content des subtitle">{{item.cqContent}}</text>
+                </view>
+                <view class="fyui-box__bd answer">
+                  <!-- <view class="fyui-box__content tag">鐩稿叧琛屼笟 -> {{item.fileIndustry}}</view> -->
+                  <view class="tag2">绛旓細</view>
+                  <rich-text class="tag2 des" nodes="{{item.answer}}"></rich-text>
+                </view>
+                <view class="fyui-box__ft">
+                  <text class="tag3">鎻愰棶鏃堕棿锛歿{item.cqCreateTime}}</text>
+                  <text class="tag3">鍥炲鏃堕棿锛歿{item.cqCreateTime}}</text>
+                  <!-- <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:elif="{{i1 == 4}}">
+            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoCase">
+              <view class="fyui-box fyui-box__text">
+                <view class="fyui-box__hd">
+                  <text class="fyui-box__content des subtitle">{{item.ecTitle}}</text>
+                </view>
+                <view class="fyui-box__bd">
+                  <view class="case-bd">
+                    <rich-text class="tag2 des" nodes="{{item.ecSummary}}"></rich-text>
+                    <image wx:if="{{item.ecAppendixUrl.length > 0}}" src="{{item.ecAppendixUrl[0]}}" mode="aspectFill"></image>
+                  </view>
+                </view>
+                <view class="fyui-box__ft">
+                  <text class="tag3">妗堝彂鍦板潃锛歿{item.ecProvinceName + item.ecCityName}}</text>
+                  <text class="tag3">妗堝彂鏃堕棿锛歿{item.ecOccurDate}}</text>
+                </view>
+                <view class="fyui-box__ft_2">
+                  <view style="white-space: nowrap;">娑夊強锛�</view>
+                  <view class="case-tag-group">
+                    <view class="case-tag" wx:if="{{item.ecIsPunish}}">
+                      <image src="/res/icons/cq_punish.png"></image>
+                      <text>琛屾斂澶勭綒</text>
+                    </view>
+                    <view class="case-tag" wx:if="{{item.ecIsDetained}}">
+                      <image src="/res/icons/cq_detained.png"></image>
+                      <text>琛屾斂鎷樼暀</text>
+                    </view>
+                    <view class="case-tag" wx:if="{{item.ecIsIllegal}}">
+                      <image src="/res/icons/cq_illegal.png"></image>
+                      <text>鍒戜簨璐d换</text>
+                    </view>
+                    <view class="case-tag" wx:if="{{item.ecIsShotspot}}">
+                      <image src="/res/icons/cq_shotspot.png"></image>
+                      <text>鐜繚鐑偣</text>
+                    </view>
+                    <view class="case-tag" wx:if="{{item.ecIsSupervise}}">
+                      <image src="/res/icons/cq_supervise.png"></image>
+                      <text>鐫e療瑕佺偣</text>
+                    </view>
+                    <view class="case-tag" wx:if="{{item.ecIsMinor}}">
+                      <image src="/res/icons/cq_minor.png"></image>
+                      <text>杞诲井杩濇硶</text>
+                    </view>
+                  </view>
+                </view>
+              </view>
+            </view>
+          </block>
+        </block>
+
+        <view wx:else class="page__ft">
+          <mp-loading duration="{{900}}" type="dot-gray" show="{{true}}" animated="{{true}}"></mp-loading>
         </view>
       </view>
-    </view>
+    </switch-tab>
+
+
+    <!-- <view class="fyui-cell fyui-cell_select">
+      <view class="fyui-cell__bd">鐑棬</view>
+      <view class="fyui-cell__ft">鏇村</view>
+    </view> -->
 
   </view>
   <view class="page__ft">
+
   </view>
 </view>
\ No newline at end of file

--
Gitblit v1.9.3