ll
liukangdong
2024-08-15 ebc6e7ee67f13e7aa311e737dfcb4c5caed112ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<view class="container">
  <!-- 分类 -->
  <view>
    <scroll-view wx:if="{{ category.length > 0 && category.length == 1 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;">
      <view class="scroll_cate">
        <view bindtap="cateClick" data-index="{{index}}" data-code="{{item.labelValueCode}}" wx:for="{{ category[0].valueVos }}" class="item {{ activeIndex == index ? 'active': '' }}">{{ item.labelValueName }}</view>
      </view>
    </scroll-view>
    <block wx:if="{{ category.length > 1 }}">
      <scroll-view class="query_wrap_scroll" scroll-x>
        <view class="query_wrap">
          <view data-index="{{index}}" wx:for="{{ category }}" class="item" bindtap="changeShowParams">
            <view class="name">{{ item.tempParamName || item.labelName }}</view>
            <van-icon name="{{ index == activeIndex ? 'arrow-up' : 'arrow-down' }}" />
          </view>
        </view>
      </scroll-view>
      <view wx:if="{{ activeParam.length > 0 }}" class="query_form">
        <view class="list">
          <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ category[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view>
        </view>
        <view class="btns">
          <view class="btn" bindtap="cancelParam">取消</view>
          <view class="btn sub" bindtap="subParam">确认</view>
        </view>
      </view>
      <view wx:if="{{ activeParam.length > 0 }}" class="shade"></view>
    </block>
  </view>
  <!-- content -->
  <view class="content">
    <view wx:for="{{ dataList }}" class="item">
      <video id="{{item.id}}" poster="{{ item.coverImage }}" data-item="{{ item }}" bindplay="itemClick" class="img_wrap" src="{{ item.videoUrl }}" show-center-play-btn show-fullscreen-btn></video>
 
      <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>{{ 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>
  <videoPlay class='videoPlay' />
</view>
<wxs module="math" src="../../utils/math.wxs"></wxs>