<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive">
        <!-- 这里是会被缓存的视图组件，比如 page1,page2 -->
      </router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive">
    </router-view>
    <!--<router-view/>-->
    <a :href="'tel:'+telPhone" class="mobile-fixed" v-show="isMobile"><img src="./assets/images/airlines.png" alt=""></a>
  </div>
</template>

<script>
export default {
  name: 'App',
  provide(){
      return {
        reload:this.reload,
      }
  },
  data () {
    return {
      isMobile:false,
      telPhone:telPhone
    }
  },
  methods:{
      reload(){
      }
  },
  mounted(){
    if(this.$route.path.indexOf("/wx")!=-1){
      this.isMobile=true
    }else {
      this.isMobile=false
    }
  }
}
</script>

<style>
#app {
  font-family: 'Microsoft Yahei', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f8f8f8;
}
.mobile-fixed{
  position: fixed;
  right: 10px;
  bottom: 150px;
}
.mobile-fixed img{
  width: 36px;
}
@media (max-width: 768px){
  #app {
    background: #fff;
  }
}
/*@media (min-width: 768px){*/
  /*#app {*/
    /*min-width: 1200px;*/
  /*}*/
/*}*/
</style>
