Commit b87b10ea3204cd881cef9f187bb653d699252e0c

Authored by wangfan
1 parent dcb46afb

smsbatch

@@ -48,7 +48,6 @@ Page({ @@ -48,7 +48,6 @@ Page({
48 } 48 }
49 }) 49 })
50 }, 50 },
51 -  
52 /** 51 /**
53 * 生命周期函数--监听页面显示 52 * 生命周期函数--监听页面显示
54 */ 53 */
@@ -292,4 +291,11 @@ Page({ @@ -292,4 +291,11 @@ Page({
292 }) 291 })
293 this.getMarkers() 292 this.getMarkers()
294 }, 293 },
  294 + moveToLocation(){
  295 + this.mapCtx.moveToLocation({
  296 + success:(res)=>{
  297 + console.log('moveToLocation',res)
  298 + }
  299 + })
  300 + },
295 }) 301 })
@@ -18,4 +18,7 @@ @@ -18,4 +18,7 @@
18 <showModal id="showModal" confirmText="去授权" bindshowModal="showModal"></showModal> 18 <showModal id="showModal" confirmText="去授权" bindshowModal="showModal"></showModal>
19 <seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box> 19 <seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box>
20 <cover-view class="tab-patch"></cover-view> 20 <cover-view class="tab-patch"></cover-view>
  21 +<cover-view bindtap="moveToLocation" class="moveToLocation">
  22 + <cover-image src="http://qn.colorcun.com/custom/lite-yd/image/location.png"></cover-image>
  23 +</cover-view>
21 24
@@ -13,4 +13,18 @@ @@ -13,4 +13,18 @@
13 height: 20rpx; 13 height: 20rpx;
14 width: 100%; 14 width: 100%;
15 bottom: -120rpx; 15 bottom: -120rpx;
  16 +}
  17 +.moveToLocation{
  18 + position: fixed;
  19 + bottom: 20rpx;
  20 + left: 20rpx;
  21 + width: 50rpx;
  22 + height: 50rpx;
  23 + border-radius: 10rpx;
  24 + background-color: #fefefe;
  25 + padding: 10rpx;
  26 +}
  27 +.moveToLocation cover-image{
  28 + width: 50rpx;
  29 + height: 50rpx;
16 } 30 }