index.wxml 3.33 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="{{bannerList.length>1}}" autoplay="{{bannerList.length>1}}" interval="{{5000}}" duration="{{500}}">
        <block wx:for="{{bannerList}}" wx:key="{{index}}">
          <swiper-item>
            <image bindtap="onBannerHandler" data-data="{{item}}" data-index="{{index}}" class="swiper-image" src="{{item.imageUrl}}" mode="aspectFill" />
            <view class="tit-bg" wx:if="{{curBanner && curBanner.bannerTitle}}"></view>
            <view wx:if="{{curBanner && curBanner.bannerTitle}}" class="tit">
              {{curBanner && curBanner.bannerTitle || ""}}
            </view>
          </swiper-item>
        </block>
      </swiper>
    </view>
    <view class="content">
      <view class="list">
        <!-- 拜年item -->
        <block wx:if="{{listType == 2}}">
          <view wx:for="{{dataList}}" bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" wx:key="index" class="list-bless-item">
            <image class="poster" src="{{item.thumbnail}}" />
            <view class="desc-wrap">
              <view class="tit">{{item.blessTitle}}</view>
              <view class="scene">{{item.type == 0 ? '单人祝福 >> 送' : '团队祝福 >> 送'}}{{item.scene}}</view>
            </view>
          </view>
        </block>
        <!-- 视频item -->
        <block wx:else>
          <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">
                <view class="tit-bg"></view>
                <view class="tit-t1">{{item.videoName}}</view>
              </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 data-data="{{item}}" data-index="{{index}}" class="share" open-type="share" bindtap="onShareItem">
                <span class="t1 iconfont iconwechat"></span>
                <span class="t1">分享</span>
              </button>
            </view>
          </view>
        </block>
      </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>