liukangdong
2024-08-05 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7
wechat_jiaxuan/pages/homeId/index.wxml
@@ -1,15 +1,15 @@
<view class="container">
  <!-- 分类 -->
  <view class="home_tabs">
    <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;">
  <view wx:if="{{ tagList && tagList.length > 0 }}" class="home_tabs">
    <scroll-view scroll-x="true" style="width: 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>
      </view>
    </scroll-view>
  </view>
  <!-- content -->
  <view class="content">
  <view class="content" style="padding-top: {{ tagList && tagList.length > 0 ? 80 : 0 }}rpx;">
    <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>
@@ -17,9 +17,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 || 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>
</view>
<wxs module="math" src="../../utils/math.wxs"></wxs>