head-counter.wxml
1.3 KB
<!--page/subPackage/pages/zeroSell/components/head-counter.wxml-->
<wxs src="./helper.wxs" module="helper" />
<!-- <view class="head-counter"> -->
<!-- <view class="title">
<view class="txt">已有</view>
<block wx:for="{{helper.formatN('000000', count)}}">
<view class="num-wrapper">
<text>{{item}}</text>
<view class="mask"></view>
</view>
</block>
<view class="txt">参与</view>
</view>
<view style="font-size: 28rpx;" wx:if="{{status === 0}}"> 活动结束 </view>
<view style="font-size: 28rpx;" wx:elif="{{status === 1 || status === 2}}"> 达到{{num}}人开奖 </view>
<view style="font-size: 28rpx;" wx:elif="{{status === 3}}"> 等待开奖中 </view>
<view style="font-size: 28rpx;" wx:elif="{{status === 4}}"> 已开奖 </view>
<view style="font-size: 28rpx;" wx:elif="{{status === 5}}"> 人数不足 活动结束 </view> -->
<!-- </view> -->
<view class="container">
<view class="text">
已有{{count}}人参加,
<text wx:if="{{status === 0}}"> 活动结束 </text>
<text wx:elif="{{status === 1 || status === 2}}"> 达到{{num}}人开奖 </text>
<text wx:elif="{{status === 3}}"> 等待开奖中 </text>
<text wx:elif="{{status === 4}}"> 已开奖 </text>
<text wx:elif="{{status === 5}}"> 人数不足 活动结束 </text>
</view>
</view>