product-item-status.wxml 772 Bytes
<view>
  <block wx:if="{{product.status === 0}}">
    <view class="btn cancel" >活动已结束</view>
  </block>

  <block wx:elif="{{product.status === 1}}">
    <view class="btn cancel" >即将开始</view>
  </block>

  <block wx:elif="{{product.status === 2}}">
    <view class="btn ok" catchtap="onClick" animation="{{animation}}">参加抽奖</view>
  </block>

  <block wx:elif="{{product.status === 3}}">
    <view class="btn cancel">待开奖</view>
  </block>

  <block wx:elif="{{product.status === 4}}">
    <view class="btn cancel">活动已结束</view>
  </block>

  <block wx:elif="{{product.status === 5}}">
    <view class="btn cancel">待开奖</view>
  </block>

  <block wx:else>
    <view class="btn cancel">活动未开始</view>
  </block>
</view>