Browse Source

Merge branch 'px0908' into referMaster

wyq 3 years ago
parent
commit
16796270ff
3 changed files with 24 additions and 23 deletions
  1. 22 21
      src/css/login.less
  2. BIN
      src/images/bg.png
  3. 2 2
      src/js/login.js

+ 22 - 21
src/css/login.less

@@ -30,10 +30,14 @@ body {
   }
   .bg2{
     width: 100%;
-    height: 100%;
+    height:  100%;
     text-align: center;
     background: url("../images/bg.png") center center no-repeat;
-    background-size: 100% 100%;
+    background-size: 783px 396px;
+    background-color: #ffffff;
+    display: flex;
+    align-items: center;
+    justify-content: center;
   }
 }
 p.title {
@@ -112,34 +116,31 @@ p.title {
       box-shadow: @activeColor  0px 0px 2px;
   }
 .login-info{
-  width: 100%;
-  position: absolute;
-  bottom: 31px;
-  padding: 0 110px;
+  padding-top: 325px;
   .info-perPub{
     float: left;
-    width: 35%;
     & p{
       float: left;
-      line-height: 50px;
+      line-height: 34px;
       margin-right: 7px;
-      font-size: 24px;
+      font-size: 14px;
       color: #fff;
     }
     .info-iptWrap{
       float: left;
       box-sizing: border-box;
-      width: 213px;
-      height: 50px;
-      line-height: 38px;
-      border-radius: 6px;
+      width: 130px;
+      height: 34px;
+      line-height: 34px;
+      border-radius: 4px;
+      margin-right: 58px;
       & input {
         display: inline-block;
         width: 100%;
         height: 100%;
-        border-radius: 6px;
-        padding-left: 10px;
-        font-size: 22px;
+        border-radius: 4px;
+        padding: 0 10px;
+        font-size: 14px;
       }
     }
     
@@ -151,14 +152,14 @@ p.title {
   }
   .sureLogin{
     float: left;
-    width: 213px;
-    height: 50px;
-    line-height: 50px;
+    width: 150px;
+    height: 34px;
+    line-height: 34px;
     background: #0363D1;
     box-shadow: 0px 2px 6px 0px #1C4473;
-    border-radius: 6px;
+    border-radius: 4px;
     margin: 0;
-    font-size: 24px;
+    font-size: 14px;
   }
 }
 .alertModal {

BIN
src/images/bg.png


+ 2 - 2
src/js/login.js

@@ -32,7 +32,7 @@ function getHospitalMark() {
     if (data.code == 0) {
       type = parseInt(data.data)
       if (parseInt(data.data) == 1) {
-        str = '<div class="bg2"></div>'
+        str = '<div class="bg2">'
         str += '<div class="login-info">'
         str += '<div class="info-perPub">'
         str += ' <p> 用户名:</p>'
@@ -44,7 +44,7 @@ function getHospitalMark() {
         str += '<div class="info-iptWrap">'
         str += '<input type="text" placeholder="请输入密码" id="password" value="" autocomplete="off">'
         str += '</div></div>'
-        str += '<p class="waring"></p><div class="sureLogin">登录</div>'
+        str += '<p class="waring"></p><div class="sureLogin">登录</div></div>'
         $('.login').html(str)
       } else {
         str = '<div class="bg fl"><p class="title">AI病案质控平台</p></div>'