From 1cee3a660c5f8e5f4290ae894c2898c4966a834d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 02 八月 2024 18:33:33 +0800
Subject: [PATCH] ''

---
 wechat_staff/pages/consult/consult.wxml |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/wechat_staff/pages/consult/consult.wxml b/wechat_staff/pages/consult/consult.wxml
index 287470e..40f45e0 100644
--- a/wechat_staff/pages/consult/consult.wxml
+++ b/wechat_staff/pages/consult/consult.wxml
@@ -10,15 +10,15 @@
   </view>
   <!-- 鍒嗙被 -->
   <view class="cate_wrap">
-    <view class="cate_one">
-      <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;">
+    <view wx:if="{{ category && category.length > 0 }}" class="cate_one">
+      <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 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>
@@ -26,7 +26,7 @@
     </view>
   </view>
   <!-- content -->
-  <view class="content" style="padding-top: {{ secondCategory.length > 0 ? 276 : 186 }}rpx;">
+  <scroll-view scroll-y enhanced class="content" bindscrolltolower="bindscrolltolower" binddragging="touchmove" binddragstart="touchstart">
     <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>
@@ -41,6 +41,6 @@
     <view wx:if="{{ dataList.length == 0 }}" class="empty_wrap">
       <image class="default_empty" src="../../static/images/default_empty.png"></image>
     </view>
-  </view>
+  </scroll-view>
 </view>
 <wxs module="format" src="../../utils/format.wxs"></wxs>
\ No newline at end of file

--
Gitblit v1.9.3