<script>
	export default {
		onLaunch: function() {
			this.handleHomeConfig()
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			handleHomeConfig() {
				let that = this
				that.$model.getHomeConfig({}).then(res => {
					if (res.code != 0) return
					that.$store.commit('changeMenuList', res.data.cook_label)
					that.$store.commit('changeFoodList', res.data.food_list)
					that.$store.commit('changeUserInfo', res.data.account)
				})
			},
		}
	}
</script>

<style>
	/*每个页面公共css */
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		/* justify-content: center; */
		background-color: #efefef;
		min-height: 100vh;
	}
</style>
