Browse Source

首页添加原地名地址网站跳转按钮。

DESKTOP-6LTVLN7\Liumouren 1 year ago
parent
commit
810d1d5a39
4 changed files with 25 additions and 0 deletions
  1. BIN
      images/layout/addrWebLogo.png
  2. 4 0
      scripts/layout/user.js
  3. 19 0
      styles/user.css
  4. 2 0
      templates/user.html

BIN
images/layout/addrWebLogo.png


+ 4 - 0
scripts/layout/user.js

@@ -456,6 +456,10 @@ define(['html!templates/user',
             $(".closeDiv").off("click").on("click", function () {
                 showResultListBox(false, [], false);
             })
+            //监听地名地址原网站跳转按钮点击事件
+            $(".UserAHref").off("click").on("click", function () {
+                window.open("http://10.235.245.226:3200/geoAM/#/map?token=" + localStorage.getItem("Accesstoken"), "_blank");
+            })
         }, 500);
 
         // $(tplLayout).appendTo($("#wrapper"));

+ 19 - 0
styles/user.css

@@ -17,6 +17,25 @@
   /*background: #3b8ee1 url(../images/layout/userLogo.png) 0 8px no-repeat;*/
   position: relative;
 }
+
+/* 地名地址原网站跳转 */
+#userContent .UserAHref {
+  position: absolute;
+  right: 270px;
+  width: 50px;
+  height: 50px;
+  /*top: 0;*/
+  /*line-height: 68px;*/
+  cursor: pointer;
+  z-index: 111;
+  /*left: 0;*/
+  /*margin: 10px 0 0 10px;*/
+  background: url(../images/layout/addrWebLogo.png) no-repeat;
+  /*position: absolute;*/
+  /*left: 10px;*/
+  /*top: -5px;*/
+}
+
 /* 地名地址搜索框 */
 #userContent .UserAddressSearch {
   position: absolute;

+ 2 - 0
templates/user.html

@@ -1,4 +1,6 @@
 <div id="userContent">
+  <!-- 地名地址原网页跳转 -->
+  <div class="UserAHref"></div>
   <!-- 地名地址搜索框 -->
   <div class="UserAddressSearch">
     <input