product-item-status.wxml
677 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">参加抽奖</view>
</block>
<block wx:elif="{{product.status === 3 || 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>