Browse Source

版本信息样式调整

zhouna 5 năm trước cách đây
mục cha
commit
c1b4b93532

+ 1 - 1
src/css/indexHorizontal.less

@@ -65,7 +65,7 @@
             display: inline-block;
             width: 100%;
             height: 26px;
-            background: url("../images/newv.png") -2px -4px no-repeat;
+            background: url("../images/newv.png") -3px -4px no-repeat;
         }
     }
 }

+ 1 - 5
src/css/indexVert.less

@@ -279,11 +279,7 @@
         margin-left: 20px;
         font-size: 12px;
         padding-right: 34px;
-        i{
-            cursor: pointer;
-            color:#267FD7;
-            font-size: 12px;
-        }
+        cursor: pointer;
         &.new-icon{
             background: url(../images/new.png) 100% 0px no-repeat;
         }

+ 1 - 1
src/html/index.html

@@ -21,7 +21,7 @@
       </div>
       <div class="disclaimer clearfix">
         <span class="logo">&copy 朗通医疗</span>
-        <span class="version-tip">版本号:<i></i></span>
+        <span class="version-tip">版本信息</span>
         <span class="disclaimerInfo">免责声明</span>
       </div>
   </div>

+ 2 - 2
src/html/indexHorizontal.html

@@ -19,9 +19,9 @@
         <div class="recommendWrap clearfix">
           <div class="disclaimer clearfix">
             <p></p>
-            <p class="logo">智<br/>能<br/>推<br/>送<br/>仅<br/>供<br/>参<br/>考<br/>&copy; <br/>朗<br/>通<br/>医<br/>疗</p>
+            <p class="version">版本说明<i></i></p>
             <p></p>
-            <p class="version">版本号<span></span><i></i></p>
+            <p class="logo">智<br/>能<br/>推<br/>送<br/>仅<br/>供<br/>参<br/>考<br/>&copy; <br/>朗<br/>通<br/>医<br/>疗</p>
             <p></p>
           </div>
             <div class="push"></div>

+ 1 - 3
src/js/index.js

@@ -237,7 +237,6 @@ function moreInfo() {
 function getVersion() {
   post(config.getVersion, '').then((res) => {
     const data = res.data.data;
-    const name = data.name;
     const ver = localStorage.getItem('versionTime');
     const time = data.refreshTime;
     if(!ver||ver===time+"=new"||time!==ver.replace("=new","")){       //判断版本是否更新
@@ -246,7 +245,6 @@ function getVersion() {
     }else{
       $(".version-tip").removeClass('new-icon');
     }
-    $(".version-tip i").html(name);
   })
 }
 
@@ -255,7 +253,7 @@ $(function(){
   $(".disclaimerInfo").on("click", function(){
     openNewWin("disclaimer.html")
   });
-  $(".version-tip i").on("click", function(){
+  $(".version-tip").on("click", function(){
     const ver = localStorage.getItem('versionTime');
     $(".version-tip").removeClass('new-icon');
     localStorage.setItem('versionTime',ver.replace("=new",""));

+ 1 - 1
src/js/indexHorizontal.js

@@ -291,7 +291,7 @@ function getVersion() {
 $(function(){
   getVersion();
   //打开版本信息
-  $(".disclaimer .version span").on("click",function() {
+  $(".disclaimer .version").on("click",function() {
     const ver = localStorage.getItem('versionTime-v');
     $(".version").removeClass('new-icon');
     localStorage.setItem('versionTime-v',ver.replace("=new",""));