<template>
	<div>
		<!-- <a  @click="login">云版本</a>
		<a href="http://xpgj.xiaoxinda.com/xpgj/xsy/home/#/user/login?project=business">湖北新生源生物专版</a> -->
		<header class="mui-bar mui-bar-nav">
				<h1 class="mui-title">欢迎使用小鹏管家</h1>
			</header>
			<div class="mui-content von-xzbb">
				<ul class="mui-table-view mui-grid-view mui-grid-9">
					<li class="mui-table-view-cell mui-media mui-col-xs-6">
						<a href="#">
							<div class="mui-pull-left von-xzbb-logo"><img src="~$project/assets/img/logo_xiaopengguanjia.png" /></div>
							<span class="mui-pull-left von-xzbb-tit">健康证</span>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-xs-6">
						<a href="#">
							<div class="mui-pull-left von-xzbb-logo"><img src="~$project/assets/img/logo_xsy01.jpg" /></div>
							<span class="mui-pull-left von-xzbb-tit">新生源专版</span>
						</a>
					</li>
				</ul>
			</div>
	</div>
</template>

<script>
	export default {
		name: 'Home',
		components: {
		
		},
		
		data() {
			return {
				list:[
					{
						name:"湖北新生源生物专版",
						path1:"http://xpgj.xiaoxinda.com/xpgj/xsy/home/#/user/login?project=business",
						path2:"http://xpgj.xiaoxinda.com/xpgj/xsy/home/#/user/login?project=business",
					}
				]
			}
		},
		created() {},
		methods: {
			loginUrl(item){
				if (process.env.VUE_APP_NODE_NAME == 'production') {
					window.location.href = item.path1;//正式版本
				}else{
					window.location.href = item.path2; //测试版本
				}
			},
			login(){
				this.$router.push({
										name: 'UserLogin',
										query: {
											project:"business"
										}
									})
			},
			asynCallBack() {
				//登录状态判断
				
			},
		},
		mounted() {
            document.body.style.backgroundColor = '#fff';
        },
        destroyed() {
           document.body.style.backgroundColor = '';
         },
		
	}
</script>

<style scoped src="$project/assets/css/xpgj.css"></style>
<style src="$project/assets/css/iconfont.css"></style>
<style>
	.mui-bar{
		box-shadow: initial;
	}
	.mui-bar-nav ~ .von-xzbb.mui-content{
		padding-top:60px;
		background:0
	}
</style>
