index.wxml 1.07 KB
<view class="gl-video-page custom-class">
  <view class="video-play-box video-play-class" wx:if="{{list || list.videoUrl}}">
    <video
      src="{{current.vedioUrl}}"
      class="video-box"
    ></video>
  </view>
  <view class="video-title">
    <view class="title">
      {{current.title}}
    </view>
    <view class="total">
      <image class="img" src="../assets/eye.png" />
      <text class="">{{current.view}}</text>

    </view>

  </view>

  <view class="video-content" wx:if="{{likeList || likeList.length}}">
    <view class="head">猜你喜欢</view>
    <scroll-view
      class="video-list"
      enable-flex
      scroll-x
    >
      <view
        class="cell"
        wx:for="{{likeList}}"
        wx:key="index"
      >
        <gl-video
          src="{{item.prodImg}}"
          title="{{item.proName}}"
          user-name="{{item.manufacturer || '嘀加智慧'}}"
          visit="{{item.view}}"
          data-info="{{item}}"
          data-index="{{index}}"
          catchtap="chooseVideo"
        ></gl-video>
      </view>

    </scroll-view>

  </view>

</view>