<script>
export default {
	onLaunch: function (option) {
		console.log('App Launch', option);
	},
	onShow: function (option) {
		const param = option;
		if (param.query.code) {
			uni.setStorageSync('global_key_app', param.query.code);
		}
		if (param.referrerInfo.extraData) {
			try {
				uni.setStorageSync('global_key', param.referrerInfo.extraData.code);
			} catch (e) {
				// error
			}
		}
	},
	onHide: function () {
		console.log('App Hide');
	}
};
</script>

<style>
/*每个页面公共css */
page {
	height: 100%;
}
</style>
