<style>
  .offlineIndex {
    height: 100%;
    display: flex;
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    min-width: 0;
    font-size: 14px;
  }

  .offlineIndex .mainLeftMenu {
    position: relative;
    display: flex;
    flex-direction: row;
    color: #fff;
  }

  .offlineIndex .leftMenu1 {
    background: #444444;
    cursor: pointer;
    width: 200px;
    height: 100%;
    overflow-y: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .offlineIndex .asideInner {
    background: rgba(0, 0, 0, 0.15);
    padding: 6px 6px;
    width: 100%;
    border-radius: 3px;
    font-weight: bold;
  }

  .offlineIndex .F_Logo {
    height: 60px;
    background: #464d54;
    color: #f2f2f2;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    padding: 0 15px;
    display: flex;
    align-items: center;
  }

  .offlineIndex .mainRightContent {
    width: 100%;
    height: 100%;
    background-color: #f3f3f3;
    min-width: 0;
  }

  .offlineIndex .mainRightTop {
    width: 100%;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    color: #909399;
  }

  .offlineIndex .mainRightLeft {
    width: 170px;
    height: 60px;
    line-height: 62px;
    text-align: center;
    margin-left: 30px;
    cursor: pointer;
    position: relative;
    top: -2px;
  }

  .offlineIndex .marinRightList {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 300px;
    float: right;
  }

  .offlineIndex .marinRightList ul {
    display: flex;
    width: 100%;
    justify-content: space-around;
  }

  .offlineIndex .marinRightList ul li {
    display: block;
    list-style-type: none;
    cursor: pointer;
    color: #909399;
    outline: none;
    border: none;
  }

  .offlineIndex .main_routerPage {
    padding: 20px;
    overflow-y: scroll;
  }

  .offlineIndex .FsettingUU {
    position: fixed;
    width: 200px;
    height: 100%;
    position: fixed;
    top: 60px;
    left: 0;
    overflow: auto;
    z-index: 5;
    background-color: rgb(84, 92, 100);
  }

  .offlineIndex .FsettingUU .menu_item {
    font-size: 14px;
    color: #303133;
    padding: 0 20px;
    cursor: pointer;
    -webkit-transition: border-color 0.3s, background-color 0.3s, color 0.3s;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
    box-sizing: border-box;
    height: 56px;
    line-height: 56px;
    list-style: none;
    white-space: nowrap;
    color: #fff;
    display: flex;
    align-items: center;
  }

  .offlineIndex .FsettingUU .menu_item i {
    margin-right: 5px;
    width: 24px;
    text-align: center;
    font-size: 18px;
    vertical-align: middle;
    color: #909399;
  }

  .offlineIndex .menu_item:hover {
    background-color: rgba(67, 74, 80, 0);
  }

  .offlineIndex .F_Logo:hover {
    background-color: #30353a;
    color: #fff;
  }

  .offlineIndex .Fchecked {
    color: rgb(255, 208, 75) !important;
  }

  .offlineIndex .Fchecked i {
    color: rgb(255, 208, 75) !important;
  }

</style>
<template>
  <div class="offlineIndex">
    <div class="mainLeftMenu">
      <div class="leftMenu1">
        <div class="F_Logo">
          <div class="asideInner" @click="CommonJump('mallIndex')">
            {{ currentUser.MallName }}
          </div>
        </div>
        <ul class="FsettingUU" v-if="currentUser.TenantId==18">
          <!-- <li class="menu_item" :class="{'Fchecked':isChecked=='/companyList'}"
            @click="isChecked='/companyList',CommonJump('companyList')">
            <i class="el-icon-menu"></i><span>公司资料</span>
          </li> -->
          <li class="menu_item" :class="{ Fchecked: isChecked == '/contactus' }"
            @click="(isChecked = '/contactus'), CommonJump('contactus')">
            <i class="el-icon-menu"></i><span>联系我们</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/brandClassification' }" @click="
              (isChecked = '/brandClassification'),
                CommonJump('brandClassification')
            ">
            <i class="el-icon-menu"></i><span>分类管理</span>
          </li>

          <li class="menu_item" :class="{ Fchecked: isChecked == '/VehicleManagement' }" @click="
              (isChecked = '/VehicleManagement'),
                CommonJump('VehicleManagement')
            ">
            <i class="el-icon-menu"></i><span>项目管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/brandManagement' }" @click="
              (isChecked = '/brandManagement'), CommonJump('brandManagement')
            ">
            <i class="el-icon-menu"></i><span>品牌管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/tenementManager' }" @click="
              (isChecked = '/tenementManager'),
                CommonJump('tenementManager')
            ">
            <i class="el-icon-menu"></i><span>楼宇管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/firmManager' }" @click="
              (isChecked = '/firmManager'), CommonJump('firmManager')
            ">
            <i class="el-icon-menu"></i><span>企业服务管理</span>
          </li>
          
          <li class="menu_item" :class="{ Fchecked: isChecked == '/activityType' }"
            @click="(isChecked = '/activityType'), CommonJump('activityType')">
            <i class="el-icon-menu"></i><span>活动类型管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/tradeactivityList' }" @click="
              (isChecked = '/tradeactivityList'),
                CommonJump('tradeactivityList')
            ">
            <i class="el-icon-menu"></i><span>活动列表</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/newsList' }"
            @click="(isChecked = '/newsList'), CommonJump('newsList')">
            <i class="el-icon-menu"></i><span>新闻列表</span>
          </li>

          <li class="menu_item" :class="{ Fchecked: isChecked == '/consultList' }"
            @click="(isChecked = '/consultList'), CommonJump('consultList')">
            <i class="el-icon-menu"></i><span>投诉建议</span>
          </li>
          <!-- <li class="menu_item" :class="{'Fchecked':isChecked=='/investmentList'}"
            @click="isChecked='/investmentList',CommonJump('investmentList')">
            <i class="el-icon-menu"></i><span>招商管理</span>
          </li>
          <li class="menu_item" :class="{'Fchecked':isChecked=='/procurementList'}"
            @click="isChecked='/procurementList',CommonJump('procurementList')">
            <i class="el-icon-menu"></i><span>采购管理</span>
          </li> -->

          <li class="menu_item" :class="{ Fchecked: isChecked == '/realAuthentication' }" @click="
              (isChecked = '/realAuthentication'),
                CommonJump('realAuthentication')
            ">
            <i class="el-icon-menu"></i><span>企业认证</span>
          </li>

          <li class="menu_item" :class="{ Fchecked: isChecked == '/firstStoreApply' }" @click="
              (isChecked = '/firstStoreApply'), CommonJump('firstStoreApply')
            ">
            <i class="el-icon-menu"></i><span>首店申请</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/wishList' }"
            @click="(isChecked = '/wishList'), CommonJump('wishList')">
            <i class="el-icon-menu"></i><span>心愿列表</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/billboardList' }"
            @click="(isChecked = '/billboardList'), CommonJump('billboardList')">
            <i class="el-icon-menu"></i><span>榜单管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == 'registrationLogin' }" @click="
              (isChecked = 'registrationLogin'), CommonJump('registrationLogin')
            ">
            <i class="el-icon-menu"></i><span>榜单报名表单</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/prizeMange' }"
            @click="(isChecked = '/prizeMange'), CommonJump('prizeMange')">
            <i class="el-icon-menu"></i><span>奖项管理</span>
          </li>
        </ul>
        <!-- 宜宾商载通 -->
        <ul class="FsettingUU" v-else>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/ybrandClassification' }" @click="
              (isChecked = '/ybrandClassification'),
                CommonJump('ybrandClassification')
            ">
            <i class="el-icon-menu"></i><span>分类管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/BuildingServiceManager' }" @click="
              (isChecked = '/BuildingServiceManager'),
                CommonJump('BuildingServiceManager')
            ">
            <i class="el-icon-menu"></i><span>商业载体管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/BrandEnterpriseManager' }" @click="
              (isChecked = '/BrandEnterpriseManager'), CommonJump('BrandEnterpriseManager')
            ">
            <i class="el-icon-menu"></i><span>消费品牌管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/tenementManager' }" @click="
              (isChecked = '/tenementManager'),
                CommonJump('tenementManager')
            ">
            <i class="el-icon-menu"></i><span>楼宇管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/firmManager' }" @click="
              (isChecked = '/firmManager'), CommonJump('firmManager')
            ">
            <i class="el-icon-menu"></i><span>企业服务管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/activityType' }"
            @click="(isChecked = '/activityType'), CommonJump('activityType')">
            <i class="el-icon-menu"></i><span>活动类型管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/tradeactivityList' }" @click="
              (isChecked = '/tradeactivityList'),
                CommonJump('tradeactivityList')
            ">
            <i class="el-icon-menu"></i><span>活动列表</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/newsList' }"
            @click="(isChecked = '/newsList'), CommonJump('newsList')">
            <i class="el-icon-menu"></i><span>新闻列表</span>
          </li>

          <li class="menu_item" :class="{ Fchecked: isChecked == '/consultList' }"
            @click="(isChecked = '/consultList'), CommonJump('consultList')">
            <i class="el-icon-menu"></i><span>投诉建议</span>
          </li>

          <li class="menu_item" :class="{ Fchecked: isChecked == '/ybRealAuthentication' }" @click="
              (isChecked = '/ybRealAuthentication'),
                CommonJump('ybRealAuthentication')
            ">
            <i class="el-icon-menu"></i><span>企业认证</span>
          </li>

          <li class="menu_item" :class="{ Fchecked: isChecked == '/firstStoreApply' }" @click="
              (isChecked = '/firstStoreApply'), CommonJump('firstStoreApply')
            ">
            <i class="el-icon-menu"></i><span>首店申请</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/wishList' }"
            @click="(isChecked = '/wishList'), CommonJump('wishList')">
            <i class="el-icon-menu"></i><span>心愿列表</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/billboardList' }"
            @click="(isChecked = '/billboardList'), CommonJump('billboardList')">
            <i class="el-icon-menu"></i><span>榜单管理</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == 'registrationLogin' }" @click="
              (isChecked = 'registrationLogin'), CommonJump('registrationLogin')
            ">
            <i class="el-icon-menu"></i><span>榜单报名表单</span>
          </li>
          <li class="menu_item" :class="{ Fchecked: isChecked == '/prizeMange' }"
            @click="(isChecked = '/prizeMange'), CommonJump('prizeMange')">
            <i class="el-icon-menu"></i><span>奖项管理</span>
          </li>

        </ul>
      </div>
    </div>
    <div class="mainRightContent">
      <div class="mainRightTop">
        <div class="mainRightLeft">
          {{currentUser.MallName}}
        </div>
        <div class="marinRightList">
          <ul>
            <li style="display: none">缓存</li>
            <li style="display: none" title="教程管理">
              <el-dropdown trigger="click">
                <span class="el-dropdown-link">
                  教程管理<i class="el-icon-arrow-down el-icon--right"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                  <el-dropdown-item>操作教程</el-dropdown-item>
                </el-dropdown-menu>
              </el-dropdown>
            </li>
            <li :title="currentUser.MallName">
              <el-dropdown trigger="click">
                <span class="el-dropdown-link">
                  {{ currentUser.MallName
                  }}<i class="el-icon-arrow-down el-icon--right"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                  <el-dropdown-item disabled>{{
                    currentUser.MallName
                  }}</el-dropdown-item>
                  <el-dropdown-item disabled>{{ currentUser.Account }}({{
                      currentUser.MobilePhone
                    }})</el-dropdown-item>
                  <el-dropdown-item @click.native="CommonJump('index')">返回系统</el-dropdown-item>
                </el-dropdown-menu>
              </el-dropdown>
            </li>
          </ul>
        </div>
      </div>
      <div class="main_routerPage" :style="{ height: Height + 'px' }">
        <router-view />
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        currentUser: {},
        isChecked: "",
        Height: 0,
        ERPEmpId: 0,
      };
    },
    created() {
      this.currentUser = this.getLocalStorage();
      this.ERPEmpId = this.currentUser.ERPEmpId;
      this.isChecked = this.$route.path;
      if (this.$route.query.FIndex) {
        if (this.currentUser.TenantId == 18) {
          this.CommonJump("companyList");
          this.isChecked = "/companyList";
        } else {
          this.CommonJump("BuildingServiceManager");
          this.isChecked = "/BuildingServiceManager";
        }

      }
    },
    methods: {},
    mounted() {
      this.Height = document.documentElement.clientHeight - 60;
      //监听浏览器窗口变化
      window.onresize = () => {
        this.Height = document.documentElement.clientHeight - 60;
      };
    },
  };

</script>
