From 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 18:38:20 +0800
Subject: [PATCH] ‘’

---
 wechat_jiaxuan/pages/consult/consult.wxml |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/wechat_jiaxuan/pages/consult/consult.wxml b/wechat_jiaxuan/pages/consult/consult.wxml
index 06a8342..d428352 100644
--- a/wechat_jiaxuan/pages/consult/consult.wxml
+++ b/wechat_jiaxuan/pages/consult/consult.wxml
@@ -1,21 +1,21 @@
 <view class="container">
   <view class="home_top">
     <view class="search_wrap">
-      <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image>
-      <input bindblur="getList" model:value="{{ query }}" type="text" placeholder="鎼滅储璧勮鏍囬" />
+      <image src="../../static/icon/ic_search@2x.png"></image>
+      <input bindconfirm="searchList" model:value="{{ query }}" type="text" placeholder="鎼滅储璧勮鏍囬" />
     </view>
   </view>
   <!-- 鍒嗙被 -->
   <view class="cate_wrap">
     <view class="cate_one">
-      <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;">
+      <scroll-view scroll-x="true">
         <view class="scroll_cate">
           <view bindtap="cateClick" data-code="{{item.code}}" wx:for="{{ category }}" class="item {{ catalogCode == item.code ? 'active': '' }}">{{ item.name }}</view>
         </view>
       </scroll-view>
     </view>
-    <view class="cate_two">
-      <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 24rpx;">
+    <view animation="{{animationData}}" wx:if="{{showCate && secondCategory && secondCategory.length > 0}}" class="cate_two">
+      <scroll-view scroll-x="true">
         <view class="scroll_cate second_list">
           <view bindtap="seCateClick" data-code="{{item.code}}" wx:for="{{ secondCategory }}" class="item {{ tagCode == item.code ? 'active': '' }}">{{ item.name }}</view>
         </view>
@@ -23,7 +23,8 @@
     </view>
   </view>
   <!-- content -->
-  <view class="content" style="padding-top: {{ secondCategory.length > 0 ? 276 : 186 }}rpx;">
+  <scroll-view scroll-y enhanced class="content" bindscrolltolower="bindscrolltolower" bindscrolltoupper="bindscrolltoupper" binddragging="touchmove" binddragstart="touchstart">
+    <view wx:if="{{ secondCategory && secondCategory.length > 0 }}" class="empty"></view>
     <view wx:for="{{ dataList }}" class="item" bindtap="itemClick" data-item="{{item}}">
       <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image>
       <view class="title">{{ item.title }}</view>
@@ -31,9 +32,13 @@
         <view>{{ item.publishDt || '' }}</view>
         <view class="df_sb">
           <image class="liulan" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image>
-          <text>{{ item.viewCount }}</text>
+          <text>{{ math.formarCount(item.viewCount) }}</text>
         </view>
       </view>
     </view>
-  </view>
-</view>
\ No newline at end of file
+    <view wx:if="{{ dataList.length == 0 }}" class="empty_wrap">
+      <image class="default_empty" src="../../static/images/default_empty.png"></image>
+    </view>
+  </scroll-view>
+</view>
+<wxs module="math" src="../../utils/math.wxs"></wxs>
\ No newline at end of file

--
Gitblit v1.9.3