<template>
    <view class="countdown-box">
        <view class="hour">{{ countDownTime.hh }}</view> <text>:</text>
        <view class="minute">{{ countDownTime.mm }}</view> <text>:</text>
        <view class="second">{{ countDownTime.ss }}</view> <text>后结束</text>
    </view>
</template>

<script>
export default {
    props: {
        countDownTime: {
            type: Object,
            default: () => ({
                dd: '00',
                hh: '00',
                mm: '00',
                ss: '00'
            })
        }
    }
}
</script>

<style lang="scss" scoped>
.flex-center-box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.countdown-box {
    @extend .flex-center-box;
    .hour,
    .minute,
    .second {
        text-align: center;
        align-items: center;
        width: 48rpx;
        height: 48rpx;
        background: #ff457b;
        border-radius: 50%;
        color: #fff;
        font-size: 26rpx;
        line-height: 48rpx;
    }
    text {
        margin: 0 8rpx;
        font-size: 30rpx;
        color: #ff457b;
        font-size: 26rpx;
        &:last-child {
            margin-right: 0;
            margin-left: 16rpx;
            color: #333333;
            font-size: 30rpx;
        }
    }
}
</style>
