<template>
	<view class="head-status-wrap" :style="{height: hasHeight ? '80rpx' : null}">
		<view class="head-status" :style="{backgroundColor: bgColor || null}">
			<view>{{ date2TimeStr }}</view>
			<view>{{ photosSyncStr }}</view>
		</view>
	</view>
</template>

<script>
	import { mapGetters } from 'vuex'
	export default {
		name:"title-status",
		props: {
			hasHeight: {
				type: Boolean,
				default: true
			},
			bgColor: {
				type: String,
				default: '#3D7CF7'
			}
		},
		data() {
			return {
				
			}
		},
		computed: {
			...mapGetters(['date2TimeStr', 'photosSyncStr'])
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.head-status-wrap {
		position: relative;
		width: 100%;
		background-color: transparent;
	}
	.head-status {
		background-color: transparent;
		width: calc(100% - 60rpx);
		height: 80rpx;
		padding: 0 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 30rpx;
		font-weight: 400;
		color: #FFF;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
	}
</style>