liukangdong
2024-08-05 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7
wechat_staff/pages/productVideo/index.wxml
@@ -2,12 +2,12 @@
  <buoyClient class="buoyClient"/>
  <!-- 分类 -->
  <view>
    <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;">
    <scroll-view wx:if="{{ category.length > 0 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;">
      <view class="scroll_cate">
        <view bindtap="cateClick" data-code="{{item.labelCode}}" wx:for="{{ category }}" class="item {{ tagCodes == item.labelCode ? 'active': '' }}">{{ item.labelName }}</view>
      </view>
    </scroll-view>
    <!-- <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 28rpx;">
    <!-- <scroll-view scroll-x="true" style="width: 710rpx;margin-bottom: 28rpx;">
      <view class="scroll_cate second_list">
        <view bindtap="seCateClick" data-index="{{index}}" wx:for="{{ secondCategory }}" class="item {{ index == 0 ? 'active': '' }}">{{ index }}{{ item }}</view>
      </view>
@@ -16,21 +16,23 @@
  <!-- content -->
  <view class="content">
    <view wx:for="{{ dataList }}" class="item">
      <view class="img_wrap">
      <!-- <view bindtap="itemClick" data-videourl="{{ item.videoUrl }}" data-id="{{ item.id }}" class="img_wrap">
        <image class="img" src="{{ item.coverImage }}" mode="widthFix"></image>
        <image bindtap="itemClick" data-videourl="{{ item.videoUrl }}" data-id="{{ item.id }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image>
      </view>
        <image class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image>
      </view> -->
      <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>{{ item.viewCount }}</text>
          <text>{{ format.formarCount(item.viewCount) }}</text>
        </view>
      </view>
    </view>
  </view>
  
  <videoPlay class='videoPlay' /> 
</view>
</view>
<wxs module="format" src="../../utils/format.wxs"></wxs>