فهرست منبع

智能医疗开放平台logo

zhouna 4 سال پیش
والد
کامیت
8bfee2c8ca
5فایلهای تغییر یافته به همراه18 افزوده شده و 4 حذف شده
  1. 1 1
      src/App.vue
  2. 9 1
      src/components/common/Banner.vue
  3. 5 2
      src/components/common/HomePage.vue
  4. 3 0
      src/components/login/Login.vue
  5. BIN
      src/images/o-logo.png

+ 1 - 1
src/App.vue

@@ -12,7 +12,7 @@
   import utils from '@api/utils.js';
   import api from './api/user.js';
   import icss from './api/icss.js';
-  document.title='医学数据平台';         //修改标签页标题
+  document.title=window.location.hash.indexOf("otherLg=")>-1?"智能医疗开放平台":'医学数据平台';         //修改标签页标题
   export default {
     name: 'app',
     created() {

+ 9 - 1
src/components/common/Banner.vue

@@ -4,7 +4,9 @@
             <div class="logo fl">
                 <img v-if="!hideLg" class="logoLT" src="../../images/logo.png" alt="朗通logo"/>
                  <img class="logoShaoyifu"  src="../../images/logo_shaoyifu.png" alt="邵逸夫logo"/>
-                <span class="bannerName">医学数据平台</span>
+                <img v-if="otherLg" class="logoOther" style="top: 15px;" src="../../images/o-logo.png"/>
+                <span v-if="!otherLg" class="bannerName">医学数据平台</span>
+                <span v-if="otherLg" class="bannerName">智能医疗开放平台</span>
                 <!-- <img class="img-title" src="../../images/title.png"/> -->
             </div>
             <div class="consult fr">
@@ -29,6 +31,9 @@
         hideLg(){
             return window.location.hash.indexOf("hideLg=")>-1;
         },
+        otherLg(){
+            return window.location.hash.indexOf("otherLg=")>-1;
+        },
         route(){
             return this.$route.path;
         } 
@@ -99,6 +104,9 @@
         display: inline-block;
         position: relative;
         left: 13.5%;
+    }
+    .logo .otherLg{
+
     }
     .banner .logoLT{
         top: 1px;

+ 5 - 2
src/components/common/HomePage.vue

@@ -2,7 +2,7 @@
     <el-container :class="getRole">
         <el-aside>
             <div class="logo">
-                <p><b>医学数据平台</b></p>
+                <p><b v-if="otherLg">智能医疗开放平台</b><b v-if="!otherLg">医学数据平台</b></p>
                 <p><b>后台管理系统</b></p>
                <!-- <p v-if="userLoginDTO&&userLoginDTO.type=='1'"><b>朗通后台管理系统</b></p>
                 <p v-if="userLoginDTO&&userLoginDTO.type=='0'"><b>DiagbotCloud</b></p>
@@ -61,6 +61,7 @@
     },
     data: function () {
       return {
+        otherLg:false,
         menuWrappers: null,
         organization: null,
         userLoginDTO: null,
@@ -77,9 +78,11 @@
     computed: {
       getRole: function () {
         return this.userLoginDTO && this.userLoginDTO.type == '0' ? 'user' : 'admin';
-      }
+      },
     },
     created () {
+        const hash = localStorage.getItem("hashParam")||'';
+        this.otherLg = hash.indexOf("otherLg=")>-1;
       //获取菜单
       this.getMenuList();
     },

+ 3 - 0
src/components/login/Login.vue

@@ -88,6 +88,7 @@
       return {
         otherCor: true,
         hideLg:false,
+        otherLg:undefined,
         ruleForm2: {
           tel: '',
           pwd: ''
@@ -108,6 +109,7 @@
     },
     mounted() {
       this.hideLg = window.location.hash.indexOf("hideLg=")>-1;
+      this.otherLg = window.location.hash.indexOf("otherLg=")>-1;
       if (window.history && window.history.pushState) {
         history.pushState(null, null, document.URL);
         window.addEventListener('popstate', function () {
@@ -167,6 +169,7 @@
                 } else if (res.data.code == '0') {
                   const token = JSON.stringify(res.data.data);
                   localStorage.setItem("token", token);
+                  localStorage.setItem("hashParam", window.location.hash.replace("#/",""));
                   this.$message({
                     message: '登录成功!',
                     type: 'success',

BIN
src/images/o-logo.png