wenhongquan 9 سال پیش
والد
کامیت
b50eadb5b0
3فایلهای تغییر یافته به همراه12 افزوده شده و 1 حذف شده
  1. 7 0
      VisualInspection/css/common/header.css
  2. 1 1
      VisualInspection/js/main.js
  3. 4 0
      VisualInspection/view/common/head.html

+ 7 - 0
VisualInspection/css/common/header.css

@@ -20,4 +20,11 @@ html body {
 
 .main {
     background: #328dc7;
+}
+
+.logout_btn{
+
+    background: rgba(0,0,0,0);
+    border: none;
+    outline:none;
 }

+ 1 - 1
VisualInspection/js/main.js

@@ -28,7 +28,7 @@ $(document).ready(function () {
         $("#user").html(html);
     }
 
-    $("#user").on("click", function () {
+    $("#login_out_btn").on("click", function () {
         layer.confirm('您确定要退出登录?', {
             btn: ['确定'] //按钮
         }, function () {

+ 4 - 0
VisualInspection/view/common/head.html

@@ -18,6 +18,10 @@
             <li>
                 <p id="time_p" class="header_font"></p>
             </li>
+
+            <li>
+               <button class="header_font logout_btn " id="login_out_btn"> <i class="icon icon-signout" style="font-size: 24px;"></i> </button>
+            </li>
         </ul>
     </div>
 </div>