<template>
  <div class="explain">
    <div class="fixbox" @click="up">
      <img src="../assets/up.png" alt="" class="up-img" />
    </div>
    <div class="jg"></div>
    <!-- 内容区域 -->
    <xhcontent :bodyList="bodyList">
      <!-- 子路由 -->
      <router-view></router-view>
    </xhcontent>
  </div>
</template>

<script>
// @ is an alias to /src
import Xhcontent from "../components/xhcontent";

export default {
  name: "explain",
  metaInfo: {
    title: "委员会简介",
  },
  components: {
    Xhcontent,
  },
  data() {
    return {
      bodyList: [
        {title: "基本介绍", path: 'int'},
        {title: "组织架构", path: 'arch'},
        {title: "促进会章程", path: 'bylaws'}],
    };
  },
  methods: {
    up() {
      document.body.scrollTop = document.documentElement.scrollTop = 0;
    },
  },
};
</script>

<style lang="scss" scoped>
.jg {
  height: 10px;
}
.fixbox {
  position: fixed;
  right: 20px;
  bottom: 30px;
  .up-img {
    width: 60px;
    height: 60px;
  }
}
</style>
