guhongwei 4 년 전
부모
커밋
a123a66981
1개의 변경된 파일28개의 추가작업 그리고 5개의 파일을 삭제
  1. 28 5
      public/home.html

+ 28 - 5
public/home.html

@@ -42,6 +42,23 @@
       cursor: pointer;
       color: #76bdfe;
     }
+    .floatingInfoSpan{
+      height: 150px;
+      padding: 10px 0;
+      text-shadow: 5px 5px 5px #000;
+    }
+    .floatingInfoSpan span {
+      font-size: 16px;
+      color: #fff;
+      display: inline-block;
+      width: 100%;
+      padding: 3px 10px;
+    }
+
+     .floatingInfoSpan span:hover{
+      cursor: pointer;
+      color: #76bdfe;
+    }
   </style>
 </head>
 
@@ -79,7 +96,14 @@
   <div id="floatingDiv" style="position:absolute;left:50px;top:60px;z-index: 9999;">
     <div id="a" onClick="javascript:this.parentNode.style.display='none';">关闭窗口</div>
     <div class='floating' onclick="noticeBtn()">
-      <p id="floatingid" class='floatingInfo'></p>
+      <!-- <p id="floatingid" class='floatingInfo'></p> -->
+      <p class='floatingInfoSpan'>
+        <span>网站联系人:顾红伟</span>
+        <span>联系电话:</span>
+        <span>17319450324</span>
+        <span>微信号:</span>
+        <span>guhongwei324</span>
+      </p>
     </div>
   </div>
   <!--流星-->
@@ -96,7 +120,7 @@
   <script>
     window.onload = function () {
       $.ajax({
-        url:'/api/market/notice',
+        url:'/api/market/notice?isenable=1',
         type:"GET",
         contentType:'application/json',
         success:function(res){
@@ -105,9 +129,8 @@
             if(res.data.length>0) {
               var head = res.data[0];
               $('#floatingid').text(head.title)
-            }
+            } 
           }
-
         },
         error:function (e) {
           console.error(e)
@@ -468,7 +491,7 @@
   </script>
   <script>
     function noticeBtn() {
-      window.location.href="../platlive/notice/index"
+      // window.location.href="../platlive/notice/index"
       }
   </script>
   <script>