natasha 11 miesięcy temu
rodzic
commit
a13086e9b9

+ 3 - 3
src/components/Adult/common/Header.vue

@@ -2,12 +2,12 @@
   <!-- 顶部登录导航 -->
   <!-- 顶部登录导航 -->
   <div class="LoginNav">
   <div class="LoginNav">
     <div class="logo">
     <div class="logo">
-      <template v-if="configInfor">
+      <!-- <template v-if="configInfor">
         <img :src="configInfor.logo_image_url" alt="logo" class="logo-image" />
         <img :src="configInfor.logo_image_url" alt="logo" class="logo-image" />
       </template>
       </template>
       <template v-else>
       <template v-else>
         <span class="logo-img"> logo </span>
         <span class="logo-img"> logo </span>
-      </template>
+      </template> -->
       <el-menu
       <el-menu
         :default-active="activeIndex"
         :default-active="activeIndex"
         class="el-menu-demo"
         class="el-menu-demo"
@@ -693,4 +693,4 @@ export default {
     background: #ff9900;
     background: #ff9900;
   }
   }
 }
 }
-</style>
+</style>

+ 35 - 15
src/components/inputModules/common/Header.vue

@@ -2,7 +2,7 @@
   <!-- 顶部登录导航 -->
   <!-- 顶部登录导航 -->
   <div class="LoginNav">
   <div class="LoginNav">
     <div class="logo">
     <div class="logo">
-      <template v-if="configInfor">
+      <!-- <template v-if="configInfor">
         <img
         <img
           :src="configInfor.logo_image_url"
           :src="configInfor.logo_image_url"
           alt="logo"
           alt="logo"
@@ -12,7 +12,7 @@
       </template>
       </template>
       <template v-else>
       <template v-else>
         <span class="logo-img"> logo </span>
         <span class="logo-img"> logo </span>
-      </template>
+      </template> -->
       <ul class="logo-projectlist">
       <ul class="logo-projectlist">
         <li
         <li
           v-for="(itemI, indexI) in projectList"
           v-for="(itemI, indexI) in projectList"
@@ -25,7 +25,13 @@
       </ul>
       </ul>
     </div>
     </div>
     <div class="userName">
     <div class="userName">
-      <template v-if="routePath == '/curGoodsDetail'||routePath == '/TextbookDetailVideo'||routePath == '/TextbookDetailPdf'">
+      <template
+        v-if="
+          routePath == '/curGoodsDetail' ||
+          routePath == '/TextbookDetailVideo' ||
+          routePath == '/TextbookDetailPdf'
+        "
+      >
         <el-dropdown
         <el-dropdown
           style="margin-right: 16px; cursor: pointer"
           style="margin-right: 16px; cursor: pointer"
           trigger="click"
           trigger="click"
@@ -46,7 +52,11 @@
       </template>
       </template>
       <div v-if="!userMessage" class="selectLoginOrRegistration">
       <div v-if="!userMessage" class="selectLoginOrRegistration">
         <span @click="cutLoginReg">{{
         <span @click="cutLoginReg">{{
-          routePath == "/curGoodsDetail"||routePath == '/TextbookDetailVideo'||routePath == '/TextbookDetailPdf' ? $t("Key9") : "登录"
+          routePath == "/curGoodsDetail" ||
+          routePath == "/TextbookDetailVideo" ||
+          routePath == "/TextbookDetailPdf"
+            ? $t("Key9")
+            : "登录"
         }}</span>
         }}</span>
       </div>
       </div>
       <!-- 用户头像和用户名 -->
       <!-- 用户头像和用户名 -->
@@ -67,11 +77,23 @@
         <div class="userShow" v-show="userShow">
         <div class="userShow" v-show="userShow">
           <p @click="gopresonal">
           <p @click="gopresonal">
             <img src="../../../assets/login/project7.png" alt="" />
             <img src="../../../assets/login/project7.png" alt="" />
-            {{ routePath == "/curGoodsDetail"||routePath == '/TextbookDetailVideo'||routePath == '/TextbookDetailPdf' ? $t("Key38") : "个人中心" }}
+            {{
+              routePath == "/curGoodsDetail" ||
+              routePath == "/TextbookDetailVideo" ||
+              routePath == "/TextbookDetailPdf"
+                ? $t("Key38")
+                : "个人中心"
+            }}
           </p>
           </p>
           <p @click="QuitLogin">
           <p @click="QuitLogin">
             <img src="../../../assets/login/Frame77.png" alt="" />
             <img src="../../../assets/login/Frame77.png" alt="" />
-            {{ routePath == "/curGoodsDetail"||routePath == '/TextbookDetailVideo'||routePath == '/TextbookDetailPdf' ? $t("Key39") : "退出登录" }}
+            {{
+              routePath == "/curGoodsDetail" ||
+              routePath == "/TextbookDetailVideo" ||
+              routePath == "/TextbookDetailPdf"
+                ? $t("Key39")
+                : "退出登录"
+            }}
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>
@@ -236,22 +258,20 @@ export default {
           if (res.child_sys_list && res.child_sys_list.length > 0) {
           if (res.child_sys_list && res.child_sys_list.length > 0) {
             let invok_module = this.$route.query.invok_module;
             let invok_module = this.$route.query.invok_module;
             _this.projectList = res.child_sys_list;
             _this.projectList = res.child_sys_list;
-            for(let i = 0;i<_this.projectList.length;i++){
+            for (let i = 0; i < _this.projectList.length; i++) {
               let item = _this.projectList[i];
               let item = _this.projectList[i];
-              if(invok_module){
-                if(invok_module==item.key){
+              if (invok_module) {
+                if (invok_module == item.key) {
                   _this.LoginNavIndex = i;
                   _this.LoginNavIndex = i;
                   _this.projectName = item.name;
                   _this.projectName = item.name;
                 }
                 }
-              }else{
+              } else {
                 let key = "GCLS-Book";
                 let key = "GCLS-Book";
-                if(key==item.key){
+                if (key == item.key) {
                   _this.LoginNavIndex = i;
                   _this.LoginNavIndex = i;
                   _this.projectName = item.name;
                   _this.projectName = item.name;
                 }
                 }
               }
               }
-              
-             
             }
             }
           }
           }
         })
         })
@@ -342,7 +362,7 @@ export default {
         line-height: 64px;
         line-height: 64px;
         cursor: pointer;
         cursor: pointer;
         font-weight: 500;
         font-weight: 500;
-        white-space:nowrap;
+        white-space: nowrap;
         &:hover {
         &:hover {
           background: #f6f6f6;
           background: #f6f6f6;
         }
         }
@@ -507,4 +527,4 @@ export default {
     background: #ff9900;
     background: #ff9900;
   }
   }
 }
 }
-</style>
+</style>