<script>
	import {
		INIT_HOTEL_ID,
		INIT_HOTEL_NAME
	} from './config.js'
	import {
		initEid,
		startEid
	} from './mp_ecard_sdk/main'
	import {
		mapState,
		mapMutations
	} from 'vuex'
	export default {
		methods: {
			...mapMutations('m_business', ['updateCurrentHotelId', 'updateCurrentHotelName']),
		},
		onLaunch: function() {
			initEid()
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
			this.updateCurrentHotelId(INIT_HOTEL_ID)
			this.updateCurrentHotelName(INIT_HOTEL_NAME)
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";

	/* #ifndef APP-NVUE */
	// 设置整个项目的背景色
	page {
		background-color: #F0EFF5;
		width: 100%;
		height: 100%;
		margin: 0;
		border: 0;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>