index.wxml 2.44 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <!-- <view class="app__top-shadow"></view> -->
  <view class="app__content main">
    <view class="top-space"></view>
    <van-sticky>
      <van-tabs ellipsis="{{ false }}" active="{{ active }}" bind:click="onVanTabsHandler">
        <van-tab wx:for="{{tabList}}" wx:key="{{index}}" title="{{item.tabName}}"></van-tab>
      </van-tabs>
    </van-sticky>
    <view class="banner" wx:if="{{bannerList && bannerList.length>0}}">
      <swiper bindchange="onBannerChangeHandler" class="swiper" indicator-color="rgba(0,0,0,.3)" indicator-active-color="rgba(255,255,255,1)" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{5000}}" duration="{{500}}">
        <block wx:for="{{bannerList}}" wx:key="{{index}}">
          <swiper-item>
            <image bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="swiper-image" src="{{item.imageUrl}}" mode="aspectFill" />
          </swiper-item>
        </block>
      </swiper>
      <view wx:if="{{curBanner && curBanner.bannerTitle}}" class="tit">
        {{curBanner && curBanner.bannerTitle || ""}}
      </view>
      <!-- <view class="tit">名字</view> -->
    </view>
    <view class="content">
      <view class="list">
        <view wx:for="{{dataList}}" wx:key="index" class="list-item">
          <view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="list-item-video">
            <image class="img" src="{{item.thumbnail}}" mode="aspectFill" />
            <view class="tit">{{item.videoName}}</view>
            <div class="play">
              <span class="iconfont iconplay"></span>
            </div>
          </view>
          <view class="list-item-func">
            <view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="user">
              <image class="portrait" mode="aspectFill" src="{{item.headImage}}" />
              <text class="name">{{item.accountName || ""}}</text>
            </view>
            <button class="share" open-type="share">
              <span class="t1 iconfont iconwechat"></span>
              <span class="t1">分享</span>
            </button>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<shortcut class="red-p" types="{{[]}}" pics="{{['red-package']}}"></shortcut>