Переглянути джерело

更新 新增返回按钮;更新地图默认缩放级别

wzh 3 роки тому
батько
коміт
5cda0b34a2

+ 0 - 1
miniprogram/pages/share/share.js

@@ -13,7 +13,6 @@ Page({
     logoUrl: 'https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/%E6%B1%87%E5%BE%88%E5%A4%9Alogo-%E5%B7%A6%E5%8F%B3.png'
   },
   onLoad: function (options) {
-    wx.hideHomeButton()
     let {
       latitude,
       longitude

+ 2 - 1
miniprogram/pages/share/share.json

@@ -1,4 +1,5 @@
 {
   "usingComponents": {},
-  "navigationBarTitleText": "汇很多科技"
+  "navigationBarTitleText": "汇很多科技",
+  "navigationStyle": "default"
 }

+ 5 - 5
miniprogram/pages/share/share.wxml

@@ -1,6 +1,6 @@
 <view class="df aic" class="header">
-    <image mode="aspectFit" class="logo" mode="aspectFit" src="{{logoUrl}}"></image>
-    <view class="text">航行日志</view>
-  </view>
-  <image mode="widthFix" src="{{shareImageUrl}}" class="main-image"></image>
-  <map enable-zoom="{{false}}" enable-scroll="{{false}}" scale="8" markers="{{markers}}" latitude="{{markers[0].latitude}}" longitude="{{markers[0].longitude}}" class="map" name=""></map>
+  <image mode="aspectFit" class="logo" mode="aspectFit" src="{{logoUrl}}"></image>
+  <view class="text">航行日志</view>
+</view>
+<image mode="widthFix" src="{{shareImageUrl}}" class="main-image"></image>
+<map enable-zoom="{{false}}" enable-scroll="{{false}}" scale="12" markers="{{markers}}" latitude="{{markers[0].latitude}}" longitude="{{markers[0].longitude}}" class="map" name=""></map>

+ 1 - 1
miniprogram/pages/share/share.wxss

@@ -16,7 +16,7 @@
 }
 
 .header {
-  margin-top: 6vh;
+  margin-top: 2vh;
   align-items: center;
   margin-bottom: 3vh;
 }