Browse Source

修改跳转移动端地址

natasha 1 year ago
parent
commit
ef993786e0
1 changed files with 69 additions and 72 deletions
  1. 69 72
      src/views/login/index.vue

+ 69 - 72
src/views/login/index.vue

@@ -33,7 +33,6 @@
               :changeLoginType="changeLoginType"
               :getChildSysList="getChildSysList"
               :changeEmailTips="changeEmailTips"
-
             />
           </div>
           <div
@@ -92,16 +91,16 @@
       </div>
     </template>
     <div class="emailTipsBox" v-if="emailTipShow">
-        <div class="emailTipsBox-innder">
-            <img
-                src="../../assets/login/close-forget.png"
-                class="close-win"
-                @click="closeEmailTip"
-            />
-            <h2>提示</h2>
-            <b>您已{{emailTipDay}}天未修改密码,为了账户安全,请更改密码。</b>
-            <a @click="changeLoginReg('Forget password')">好的</a>
-        </div>
+      <div class="emailTipsBox-innder">
+        <img
+          src="../../assets/login/close-forget.png"
+          class="close-win"
+          @click="closeEmailTip"
+        />
+        <h2>提示</h2>
+        <b>您已{{ emailTipDay }}天未修改密码,为了账户安全,请更改密码。</b>
+        <a @click="changeLoginReg('Forget password')">好的</a>
+      </div>
     </div>
   </div>
 </template>
@@ -268,7 +267,7 @@ export default {
       configInfor: null,
       isData: false,
       emailTipShow: false,
-      emailTipDay: 0
+      emailTipDay: 0,
     };
   },
   //计算属性 类似于data概念
@@ -286,7 +285,7 @@ export default {
         this.LoginOrRegistration = value;
       }
       this.userMessage = userMessage;
-      this.emailTipShow = false
+      this.emailTipShow = false;
     },
     changeLoginType(value) {
       this.loginType = value;
@@ -402,10 +401,8 @@ export default {
         bIsCE ||
         bIsWM
       ) {
-        location.href = "/GCLS-Mobile-ROOT/#/EnterSys";
-        console.log("移动端");
+        location.href = "/GCLS-Mobile/#/";
       } else {
-        console.log("PC端");
         this._getConfig();
       }
     },
@@ -451,14 +448,14 @@ export default {
         this.LoginOrRegistration = "login";
       }
     },
-    changeEmailTips(data){
-        this.emailTipShow = true
-        this.emailTipDay = data
+    changeEmailTips(data) {
+      this.emailTipShow = true;
+      this.emailTipDay = data;
+    },
+    closeEmailTip() {
+      this.emailTipShow = false;
+      this.browserRedirect();
     },
-    closeEmailTip(){
-        this.emailTipShow = false
-        this.browserRedirect();
-    }
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   async created() {
@@ -644,8 +641,8 @@ export default {
       a {
         display: flex;
         align-items: center;
-        &:hover{
-            text-decoration: underline;
+        &:hover {
+          text-decoration: underline;
         }
       }
       img {
@@ -719,7 +716,7 @@ export default {
       box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
     }
   }
-  .emailTipsBox{
+  .emailTipsBox {
     position: fixed;
     left: 0;
     top: 0;
@@ -730,53 +727,53 @@ export default {
     box-sizing: border-box;
     overflow: hidden;
     overflow-y: auto;
-    .emailTipsBox-innder{
-        width: 395px;
-        min-height: 234px;
+    .emailTipsBox-innder {
+      width: 395px;
+      min-height: 234px;
+      position: absolute;
+      left: 50%;
+      top: 50%;
+      margin-left: -186px;
+      margin-top: -117px;
+      background: #ffffff;
+      border-radius: 8px;
+      padding: 32px 60px;
+      text-align: center;
+      img {
+        width: 14px;
+        height: 14px;
         position: absolute;
-        left: 50%;
-        top: 50%;
-        margin-left: -186px;
-        margin-top: -117px;
-        background: #FFFFFF;
-        border-radius: 8px;
-        padding: 32px 60px;
-        text-align: center;
-        img{
-            width: 14px;
-            height: 14px;
-            position: absolute;
-            right: 9px;
-            top: 9px;
-            cursor: pointer;
-        }
-        h2{
-            font-weight: 700;
-            font-size: 20px;
-            line-height: 29px;
-            color: #FF9900;
-        }
-        b{
-            font-weight: 400;
-            font-size: 16px;
-            line-height: 150%;
-            color: #2C2C2C;
-            display: block;
-        }
-        a{
-            height: 44px;
-            padding: 12px;
-            min-width: 80px;
-            background: #FF9900;
-            border-radius: 4px;
-            font-weight: 700;
-            font-size: 16px;
-            line-height: 20px;
-            color: #FFFFFF;
-            display: inline-block;
-            margin-top: 32px;
-        }
+        right: 9px;
+        top: 9px;
+        cursor: pointer;
+      }
+      h2 {
+        font-weight: 700;
+        font-size: 20px;
+        line-height: 29px;
+        color: #ff9900;
+      }
+      b {
+        font-weight: 400;
+        font-size: 16px;
+        line-height: 150%;
+        color: #2c2c2c;
+        display: block;
+      }
+      a {
+        height: 44px;
+        padding: 12px;
+        min-width: 80px;
+        background: #ff9900;
+        border-radius: 4px;
+        font-weight: 700;
+        font-size: 16px;
+        line-height: 20px;
+        color: #ffffff;
+        display: inline-block;
+        margin-top: 32px;
+      }
     }
   }
 }
-</style>
+</style>