<template>
  <div id="app">
    <!-- <err></err> -->
    <router-view @openSchool="openSchool" />
    <van-popup
      style="background: transparent"
      get-container="body"
      v-model="showSchool"
      @close="closeSchool"
    >
      <school-add @closeAdd="closeAdd"></school-add>
    </van-popup>
  </div>
</template>
<script>
import schoolAdd from "@/views/Travel/component/schoolAdd";
import err from "@/views/502";
import vConsole from "vconsole";
export default {
  data() {
    return {
      showSchool: false,
    };
  },
  mounted() {
    // if (this.$route.query.dev) {
    //   sessionStorage.setItem(
    //     "prePageQuery",
    //     JSON.stringify({ dev: this.$route.query.dev })
    //   );
    //   new vConsole();
    // }
  },
  methods: {
    openSchool() {
      this.showSchool = true;
    },
    closeSchool() {
      if (
        sessionStorage.getItem("schoolNames") == "undefined" ||
        !sessionStorage.getItem("schoolNames")
      ) {
        // this.showSchool = true
      }
    },
    closeAdd() {
      this.showSchool = false;
    },
  },
  components: {
    schoolAdd,
    err
  },
};
</script>
<style lang="stylus">
html,body,#app {
  height:100%;
}
html {
  font-size: 10px;
}

body {
  max-width: 800px;
  margin: auto;
}



.van-tabs__line {
  background-color: #1CDA89;
}

::-webkit-scrollbar {
  display: none; /* Chrome Safari */
}

.oh {
  overflow: hidden;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.van-rate__icon {
  font-size: 1.2rem;
}

.releaseEvaluate {
  .van-rate__icon {
    font-size: 1.8rem;
  }
}

.evaluateDetail {
  .van-rate__icon {
    font-size: 1.8rem;
  }
}

.cardCont {
  td {
    border: 1px solid #72DAB1;
    text-align: center;
  }
}

.noMove {
  text-align: center;
  padding: 10px 0;
  clear: both;
  color: #ccc;
}

.baseDetail .cont img, .courseDetail .courseCont img {
  width: 100% !important;
}

.custom-image .van-empty__image {
  width: 90px;
  height: 90px;
}
p{
  margin:0;
}
</style>
