From 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 八月 2024 11:09:06 +0800
Subject: [PATCH] aa

---
 wechat_jiaxuan/pages/homeId/index.wxml |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/wechat_jiaxuan/pages/homeId/index.wxml b/wechat_jiaxuan/pages/homeId/index.wxml
index 48b4dc2..0fd5ff0 100644
--- a/wechat_jiaxuan/pages/homeId/index.wxml
+++ b/wechat_jiaxuan/pages/homeId/index.wxml
@@ -1,7 +1,7 @@
 <view class="container">
 
   <!-- 鍒嗙被 -->
-  <view>
+  <view class="home_tabs">
     <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;">
       <view class="scroll_cate">
         <view bindtap="cateClick" data-code="{{item.labelValueCode}}" wx:for="{{ tagList }}" class="item {{ tagCodes == item.labelValueCode ? 'active': '' }}">{{ item.labelValueName }}</view>
@@ -10,16 +10,20 @@
   </view>
   <!-- content -->
   <view class="content">
-    <view wx:for="{{ dataList }}" class="item" bindtap="itemClick" data-abg="qwe">
+    <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>
       <view class="df_sb static">
         <view>{{ item.publishDt }}</view>
         <view class="df_sb">
           <image class="liulan" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image>
-          <text>{{ item.viewCount || 0 }}</text>
+          <text>{{ math.formarCount(item.viewCount) }}</text>
         </view>
       </view>
     </view>
+    <view wx:if="{{ dataList.length == 0 }}" class="empty_wrap">
+      <image class="default_empty" src="../../static/images/default_empty.png"></image>
+    </view>
   </view>
-</view>
\ No newline at end of file
+</view>
+<wxs module="math" src="../../utils/math.wxs"></wxs>
\ No newline at end of file

--
Gitblit v1.9.3