git vor 5 Jahren
Ursprung
Commit
e740e752f6
3 geänderte Dateien mit 38 neuen und 7 gelöschten Zeilen
  1. 9 6
      pages/amap/amap.css
  2. 16 0
      pages/amap/navigation/navigation.css
  3. 13 1
      pages/amap/navigation/navigation.html

Datei-Diff unterdrückt, da er zu groß ist
+ 9 - 6
pages/amap/amap.css


+ 16 - 0
pages/amap/navigation/navigation.css

@@ -22,4 +22,20 @@
 #address{
     word-break: break-all;
     margin-left: 5px;
+}
+
+.right-panel{
+    display: flex;
+    flex-direction: row;
+    justify-content: flex-end;
+}
+
+#daohang-button{
+    background: white;
+    border-radius: 5px;
+    border: solid 1px darkgray;
+    display: flex;
+    padding: 2px;
+    justify-content: center;
+    align-items: center;
 }

+ 13 - 1
pages/amap/navigation/navigation.html

@@ -1,5 +1,17 @@
 <div class="navigation-layout" >
-    <div id='navigation-map' class="amap-navigation-contarner"></div>
+    <div id='navigation-map' class="amap-navigation-contarner">
+        <div class="map-panel">
+            <!-- 右上角功能面板 -->
+
+            <div style="z-index:555;flex: 0 0 auto;margin-top: 50%;margin-right: 5px;align-self: flex-end;">
+                <div class="right-panel">
+                    <div id="daohang-button">
+                        <span style="font-size: 1.5em;color: #686565;" class="iconfont icon-daohang"></span>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
     <div id="navg-panel">
         <span style="min-width:80px">当前位置:</span>
         <span id="navg-address"></span>