Commit b87b10ea3204cd881cef9f187bb653d699252e0c

Authored by wangfan
1 parent dcb46afb

smsbatch

... ... @@ -48,7 +48,6 @@ Page({
}
})
},
/**
* 生命周期函数--监听页面显示
*/
... ... @@ -292,4 +291,11 @@ Page({
})
this.getMarkers()
},
moveToLocation(){
this.mapCtx.moveToLocation({
success:(res)=>{
console.log('moveToLocation',res)
}
})
},
})
\ No newline at end of file
... ...
... ... @@ -18,4 +18,7 @@
<showModal id="showModal" confirmText="去授权" bindshowModal="showModal"></showModal>
<seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box>
<cover-view class="tab-patch"></cover-view>
<cover-view bindtap="moveToLocation" class="moveToLocation">
<cover-image src="http://qn.colorcun.com/custom/lite-yd/image/location.png"></cover-image>
</cover-view>
... ...
... ... @@ -13,4 +13,18 @@
height: 20rpx;
width: 100%;
bottom: -120rpx;
}
.moveToLocation{
position: fixed;
bottom: 20rpx;
left: 20rpx;
width: 50rpx;
height: 50rpx;
border-radius: 10rpx;
background-color: #fefefe;
padding: 10rpx;
}
.moveToLocation cover-image{
width: 50rpx;
height: 50rpx;
}
\ No newline at end of file
... ...