<template>
  <view class="seckillTittle">
    <view class="left">{{show == 0 ? '抢购中 先到先得哦':'未开始 请耐心等待'}}</view>
    <view class="right">
      <view class="text">{{show == 0 ? '据结束' : '待抢购'}}</view>
      <view class="djs">
           <countdown 
    :hour="date[0]" 
    :minute="date[1]" 
    :second="date[2]"></countdown>
      </view>
   
    </view>
  </view>
</template>

<script>
import countdown from "./countdown"
export default {
  name: "seckillTittle",
  components:{
    countdown
  },
  props:['date','show']
};
</script>

<style lang="scss">
.seckillTittle {
  width: 702upx;
  height: 39upx;
  display: flex;
  justify-content: space-between;
  .left {
    color: #333333;
    font-size: 22upx;
    font-weight: 800;
  }
  .right {
    width: 254upox;
    height: 39upx;
    display: flex;
    font-weight: 800;
    line-height: 39upx;
    .text {
      width: 96upx;
      height: 39upx;
      background-color: #df3348;
      color: white;
      text-align: center;
      font-size: 22upx;
    }
    .djs {
      width: 158upx;
      text-align: center;
      color: #df3348;
      font-size: 24upx;
      background-color: #F9EBEA;
    }
  }
}
</style>