<template>
	<view>
		<!-- 头部区域 -->
		<top-box :timeStamp="timeStamp" />
		<!-- 作业模块 -->
		<task-box :current="1"></task-box>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex'
	export default {
		data() {
			return {
				//时间戳
				timeStamp: '',
			};
		},
		onLoad() {
			this.init()
		},
		//刷新页面
		onPullDownRefresh() {
			this.init()
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		methods: {
			//初始化页面
			init() {
				this.timeStamp = (new Date()).format("hh:mm")
			},
			
		}
	}
</script>

<style lang="scss">
	.home-topinfo {
		background: linear-gradient($color-yellow, $page-background-color) !important;
	}
</style>
