<template>
    <div class="bottomBody" :class="{'bottom-fixed':fixed}">
        <template v-if="$slots.default">
            <slot/>
        </template>
        <template v-else-if="$slots.left || $slots.right">
            <div class="left">
                <slot name="left"/>
            </div>
            <div class="right">
                <slot name="right"/>
            </div>
        </template>
        <template v-else="">
            <div class="left timer">
                <div class="time">12:23</div>
                <div class="date">
                    <div class="week" >{{week[nowDate.getDay()]}}</div>
                    <div class="day">{{nowDate | dateFormat}}</div>
                </div>
            </div>
            <div class="right copyright">Powered by 富茂智能云POS</div>
        </template>

    </div>
</template>
<script>
export default {
    data(){
        return{
            nowDate:new Date(),
            week:{
                0:'星期日',
                1:'星期一',
                2:'星期二',
                3:'星期三',
                4:'星期四',
                5:'星期七',
                6:'星期六'
            }
        }
    },
    created(){

    },
    props:['fixed']
}
</script>
