明梦爽
2021-11-06 aef7583ccccd04b6f63a81d8cdf174bdb57d390f
src/components/page/introduce.vue
@@ -2,7 +2,24 @@
  <div>
    <el-row>
      <globalTitle />
    </el-row>
    </el-row>
    <el-row class="mart10">
     <el-col :span="4" class="marr10">
       <ul>
        <li
          v-for="(item, index) in menuList"
          :key="index"
          class="liStylenone liPointer marb10"
          @click="changeMenu(item.name)"
        >
          <b :class="cont == item.name?'ft-blue':'ft-black'">{{ item.name }}</b>
        </li>
      </ul>
     </el-col>
    <el-col :span="18">
      <div v-html="cont"></div>
    </el-col>
    </el-row>
  </div>
</template>
@@ -10,35 +27,47 @@
import globalTitle from '../globalTitle.vue'
export default {
  name: 'introduce',
  components:{
  components: {
    globalTitle
  },
  data() {
      return{
          menuList: [
              {name: '简介'},
              {name: '章程'},
              {name: '组织机构'},
              {name: '工作职责'},
              {name: '专职人员'}
          ]
      }
    return {
      cont:'',
      menuList: [
        { name: '简介' },
        { name: '章程' },
        { name: '组织机构' },
        { name: '工作职责' },
        { name: '专职人员' }
      ]
    }
  },
  mounted(){
    this.cont = this.menuList[0].name;
  },
  methods:{
    changeMenu(val){
      this.cont = val;
    },
  }
}
</script>
<style lang="less" scoped>
.el-header {
  display: flex;
  justify-content: space-between;
  background-color: rgb(85, 81, 82);
  font-size: 20px;
  line-height: 60px;
  padding: 0px 4px;
}
.el-aside {
  background-color: rgb(242, 243, 245);
  .el-menu {
    border-right: none;
ul {
  // background-color: rgb(242, 243, 245 );
  width: 200px;
  li {
    background-color: rgb(242, 243, 245 );
    height: 50px;
    line-height: 50px;
    text-align: center;
  }
}
.ft-blue{
  color:rgb(9, 143, 252);
}
.ft-black{
  color: #000;
}
</style>