Browse Source

Merge branch 'xy3yuan1015'

1178232204@qq.com 3 years atrás
parent
commit
2a3094cdff
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/js/login.js

+ 7 - 3
src/js/login.js

@@ -9,14 +9,16 @@ const { post, setCookie, delCookie, getUrlArgObject, toast } = require('../js/ut
 const md5 = require('js-md5');
 const hideLogo = getUrlArgObject("hideLg");
 const otherLogo = getUrlArgObject("adLg");
-let type;
+const hideXy = getUrlArgObject("hideXy");
+let type
 let is3His=false; //医院标记:湘雅三院1/通用0
 $(function () {
   getHospitalMark()
-  if (hideLogo || otherLogo) {
+  if (hideLogo || otherLogo || hideXy) {
     $(".copy-right").text("");
   }
   delCookie('accessToken')
+  delCookie('hideXy')
   $(document).keyup(function (event) {
     if (event.keyCode == 13) {
       sureLogin()
@@ -57,6 +59,7 @@ function getHospitalMark() {
   if (data.code == 0) {
     type = parseInt(data.data)
     is3His=type===1;
+    setCookie('hideXy', type)
     if (is3His) {   //湘雅三院登录样式
       str = '<div class="bg2">'
       str += '<div class="login-info">'
@@ -171,7 +174,8 @@ function sureLogin() {
         cacheCheckDatas(data.data.selRoles);
         const otherLogoPm = otherLogo ? '?adLg=1' : '';
         const hideLgPm = hideLogo ? '?hideLg=1' : '';
-        window.location.href = 'index.html' + hideLgPm + otherLogoPm + "?is3His="+is3His;
+        const hideXyPm = hideXy ? '?hideXy=1' : '';
+        window.location.href = 'index.html' + hideLgPm + otherLogoPm +hideXyPm+ "?is3His="+is3His;
       }, 600);
     } else {
         if(!is3His){