index.wxml 3.24 KB
<tabs tabs-class="tabs-class {{tabIndex==3 ? 'hidden' : ''}}" current-key="{{tabIndex}}" bindchange="onTabChange">
  <view class="list-top-blank {{tabIndex==3 ? 'hidden' : ''}}"></view>

  <tabs-pane name="进行中">
    <image class="topgif" src="./images/yoluck.gif"/>
    <view class="productList">
      <block  wx:for="{{list[0].products}}" wx:key="{{item.id}}">
        <product-item product="{{item}}" class="product" tab-idx="{{tabIndex}}"></product-item>
      </block>
    </view>
  </tabs-pane>

  <tabs-pane name="即将开始">
    <view class="productList">
      <block wx:for="{{list[1].products}}" wx:key="{{item.id}}">
        <product-item product="{{item}}" class="product" tab-idx="{{tabIndex}}"></product-item>
      </block>
    </view>
  </tabs-pane>

  <tabs-pane name="已结束">
    <view class="productList">
      <block wx:for="{{list[2].products}}" wx:key="{{item.id}}">
        <product-item product="{{item}}" class="product" tab-idx="{{tabIndex}}"></product-item>
      </block>
    </view>
  </tabs-pane>

  <!-- 首页改版,tabIndex=3的已参加一栏取消,改为点击我的抽奖码进入 2019.6.20 -->
  <!-- <tabs-pane name="已参加"> -->
  <block wx:if="{{tabIndex == 3}}">
    <block wx:if="{{isLogin}}">
      <view class="title-view">
        <view class="space-line"></view>
        <text class="title">进行中</text>
      </view>
      <block wx:if="{{my_zero_list[0].data && my_zero_list[0].data.length === 0}}">
        <view class="list-foot-blank">您还没有参与的抽奖,赶紧去参加吧
</view>
      </block>
      <block wx:else>
        <block wx:for="{{my_zero_list[0].data}}" wx:key="{{index}}">
          <prize-item item="{{item}}" tab-idx="{{tabIndex}}"></prize-item>
        </block>
      </block>
      <view class="title-view">
        <view class="space-line"></view>
        <text class="title">已公布</text>
      </view>
      <block wx:if="{{my_zero_list[1].data && my_zero_list[1].data.length === 0}}">
        <view class="list-foot-blank">暂无已公布活动,请继续参加活动</view>
      </block>
      <block wx:else>
        <block wx:for="{{my_zero_list[1].data}}" wx:key="{{index}}">
          <prize-item item="{{item}}" tab-idx="{{tabIndex}}"></prize-item>
        </block>
      </block>
    </block>
    <block wx:else>
      <login theme="light" openType="{{openType}}"></login>
    </block>
  <!-- </tabs-pane> -->
  </block>

  <block wx:if="{{tabIndex !== 3}}">
    <view class="list-foot-blank">{{footText}}</view>
  </block>
</tabs>
<block wx:if="{{tabIndex !== 3}}">
  <view class="bottom-banner" bindtap="_jumpBanner" wx:if="{{bannerSrc != null}}">
    <image class="bottom-banner-img" src="{{bannerSrc}}"></image>
  </view>
</block>

<block wx:if="{{tabIndex !== 3}}">
  <view class="my-draw-code" bindtap="_jumpMyDrawCode">
    <text class="my-draw-code-text">我的抽奖码</text>
  </view>
</block>

<import src="../../vendors/zanui/toast/index.wxml"/>
<template is="zan-toast" data="{{zanToast}}"/>

<import src="../../vendors/toast/wetoast.wxml"/>
<template is="wetoast" data="{{...__wetoast__}}"/>
<dialog
id='dialog'
src="{{dialogSrc}}"
url="{{dialogUrl}}"
></dialog>
<import src="../../vendors/zanui/actionsheet/index.wxml" />
<template is="zan-actionsheet" data="{{...actionsheet}}" />