<script>
	export default {
		globalData: {  
		            isShow: 0 
		        },
		onLaunch: function() {
			// #ifdef H5
			var script = document.createElement('script');
					 // script.src = "http://117.73.3.171:88/qlgh/static/js/qlgh_client_sdk.js";//测试
					 script.src = "https://qlgh.sdgh.org.cn/qlgh/static/js/qlgh_client_sdk.js";//正式
					 document.head.appendChild(script);
			// #endif
				uni.$u.http.post('/api/Publics/config_info').then(res => {
					if(res.code==1){
						this.globalData.isShow=res.data.applet_switch
					}
				})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	.bg{
		position: fixed;
		width: 100vw;
		height: 100vh;
		z-index: -1;
	}
	@import "@/uni_modules/uview-ui/index.scss";
	@import "common/demo.scss";
	page {
		background-color:#fff;
	}
	
	/* 横向靠左 */
	.all-row-start {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
	}
	
	/* 横向靠右 */
	.all-row-end {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
	}
	
	/* 横向居中 */
	.all-row-center {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}
	
	/* 纵向靠上 */
	.all-col-start {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
	}
	
	/* 纵向靠下 */
	.all-col-end {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
	}
	
	/* 纵向居中 */
	.all-col-center {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.u-flex {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		align-items: center;
	}
	.u-warp{
		flex-wrap: wrap;
	}
	.u-flex-col {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: column;
		align-items: center;
	}
	.u-flex-wrap {
		flex-wrap: wrap;
	}
	
	.u-flex-nowrap {
		flex-wrap: nowrap;
	}
	
	.u-col-center {
		align-items: center;
	}
	
	.u-col-top {
		align-items: flex-start;
	}
	
	.u-col-bottom {
		align-items: flex-end;
	}
	
	.u-row-center {
		justify-content: center;
	}
	
	.u-row-left {
		justify-content: flex-start;
	}
	
	.u-row-right {
		justify-content: flex-end;
	}
	
	.u-row-between {
		justify-content: space-between;
	}
	
	.u-row-around {
		justify-content: space-around;
	}

</style>
