From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交

---
 wechat_staff/components/disRealpic/index.wxml |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/wechat_staff/components/disRealpic/index.wxml b/wechat_staff/components/disRealpic/index.wxml
index 7d967f4..f8a9367 100644
--- a/wechat_staff/components/disRealpic/index.wxml
+++ b/wechat_staff/components/disRealpic/index.wxml
@@ -2,7 +2,7 @@
   <view class="home_top" style="top:{{ menuButtonInfo.top + menuButtonInfo.height + 6 }}px">
     <view class="search_wrap">
       <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image>
-      <input bindconfirm="bindblur" bindblur="bindblur"  model:value="{{ query }}" type="text" placeholder="鎼滅储瀹炴櫙鍚嶇О" />
+      <input bindconfirm="bindblur" model:value="{{ query }}" type="text" placeholder="鎼滅储瀹炴櫙鍚嶇О" />
     </view>
   </view>
 
@@ -37,7 +37,7 @@
       </view>
       <!-- goods_list -->
       <scroll-view bindscrolltolower="scrolltolower" scroll-y enable-passive enable-flex class="goods_list">
-        <view wx:for="{{ dataList }}" data-item="{{item}}" class="item" bindtap="handleDetail">
+        <view wx:for="{{ dataList }}" data-index="index" data-item="{{item}}" class="item {{(index%2 == 0 && index == dataList.length-1)?'lastitem':''}}" bindtap="handleDetail">
           <view class="img_wrap">
             <image src="{{ item.coverImage }}" class="img"></image>
             <view wx:if="{{ item.openType == 'link' }}" data-item="{{item}}" bindtap="priviewFull" class="full">
@@ -51,13 +51,16 @@
             <view class="name">{{ item.title }}</view>
           </view>
           <view class="info">
-            <image wx:if="{{ !item.collection }}" data-code="like" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
+            <image wx:if="{{ !item.isCollection }}" data-code="like" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
             <image wx:else data-code="like_cancel" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
-            <text class="num {{item.collection ? 'primary' : ''}}">{{ item.collectCount }}</text>
+            <text class="num {{item.isCollection ? 'primary' : ''}}">{{ item.collectCount }}</text>
             <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image>
             <text>{{ item.viewCount }}</text>
           </view>
         </view>
+        <view wx:if="{{ dataList.length == 0 }}" class="empty_wrap">
+          <image class="default_empty" src="../../static/images/default_empty.png"></image>
+        </view>
       </scroll-view>
     </view>
   </view>

--
Gitblit v1.9.3