<wxs module="m1">
  var countdownText = function(countdownText) {
    return countdownText ? countdownText.split(':') : ['00', '00'];
  }
  module.exports.countdownText = countdownText;
</wxs>
<view class="status-tip" wx:if="{{countdownText === '00:00' && timeOverText}}">{{timeOverText}}</view>
<!-- 答题倒计时 -->
<view wx:elif="{{type === 'quiz'}}" class="quiz-count-down {{isDownWarn ? 'quiz-count-down-warn' : ''}}" >
  <view class="quiz-count-down-item" >
    {{m1.countdownText(countdownText)[0]}}
  </view>:<view class="quiz-count-down-item" >
    {{m1.countdownText(countdownText)[1]}}
  </view>
</view>
<!-- 签到倒计时 -->
<view wx:elif="{{type === 'check-in'}}" class="check-in-count-down {{useDarkTheme ? 'check-in-count-down-dark' : ''}}" >
  <view class="check-in-count-down-item" >
    {{m1.countdownText(countdownText)[0]}}
  </view>:<view class="check-in-count-down-item" >
    {{m1.countdownText(countdownText)[1]}}
  </view>{{m1.countdownText(countdownText).length === 3 ? ':' : ''}}<view wx:if="{{m1.countdownText(countdownText).length === 3}}" class="check-in-count-down-item" >
    {{m1.countdownText(countdownText)[2]}}
  </view>
</view>
<!-- 抽奖倒计时 -->
<view wx:elif="{{type === 'lottery'}}" class="lottery-detail-countdown {{useDarkTheme ? ' lottery-detail-countdown-dark' : ''}}{{awardThemeUrl === 'lotteryBox' ? ' lottery-detail-countdown-box' : ''}}{{awardThemeUrl === 'slotMachine' ? 'lottery-detail-countdown-machine' : '' }}" >
  <view class="lottery-detail-countdown-box" >
    {{m1.countdownText(countdownText)[0]}}
  </view>:<view class="lottery-detail-countdown-box" >
    {{m1.countdownText(countdownText)[1]}}
  </view>{{m1.countdownText(countdownText).length === 3 ? ':' : ''}}<view wx:if="{{m1.countdownText(countdownText).length === 3}}" class="lottery-detail-countdown-box" >
    {{m1.countdownText(countdownText)[2]}}
  </view>
</view>
<view wx:else class="status-tip" wx:else>{{countdownText}}</view>


