明梦爽
2021-11-06 aef7583ccccd04b6f63a81d8cdf174bdb57d390f
src/components/page/introduce.vue
@@ -3,6 +3,23 @@
    <el-row>
      <globalTitle />
    </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>
@@ -15,6 +32,7 @@
  },
  data() {
      return{
      cont:'',
          menuList: [
              {name: '简介'},
              {name: '章程'},
@@ -23,22 +41,33 @@
              {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 {
ul {
  // background-color: rgb(242, 243, 245 );
  width: 200px;
  li {
  background-color: rgb(242, 243, 245);
  .el-menu {
    border-right: none;
    height: 50px;
    line-height: 50px;
    text-align: center;
  }
}
.ft-blue{
  color:rgb(9, 143, 252);
}
.ft-black{
  color: #000;
}
</style>