Showing
4 changed files
with
38 additions
and
6 deletions
| @@ -64,7 +64,7 @@ | @@ -64,7 +64,7 @@ | ||
| 64 | "color": "#999999", | 64 | "color": "#999999", |
| 65 | "selectedColor": "#C0A369", | 65 | "selectedColor": "#C0A369", |
| 66 | "backgroundColor": "#262628", | 66 | "backgroundColor": "#262628", |
| 67 | - "borderStyle": "white", | 67 | + "borderStyle": "black", |
| 68 | "list": [ | 68 | "list": [ |
| 69 | { | 69 | { |
| 70 | "pagePath": "pages/reserve/index", | 70 | "pagePath": "pages/reserve/index", |
| @@ -18,6 +18,7 @@ Page({ | @@ -18,6 +18,7 @@ Page({ | ||
| 18 | markers: [], | 18 | markers: [], |
| 19 | //polygons:{}, | 19 | //polygons:{}, |
| 20 | }, | 20 | }, |
| 21 | + transverseViewHeight:150,//横向滚动高度 | ||
| 21 | //qqmapsdk:null, | 22 | //qqmapsdk:null, |
| 22 | sellers: [], | 23 | sellers: [], |
| 23 | sellersIds:[], | 24 | sellersIds:[], |
| @@ -60,7 +61,7 @@ Page({ | @@ -60,7 +61,7 @@ Page({ | ||
| 60 | onShow: function () { | 61 | onShow: function () { |
| 61 | //this.getPos(); | 62 | //this.getPos(); |
| 62 | this.setData({ | 63 | this.setData({ |
| 63 | - [`map.height`]: getApp().system.windowHeight, | 64 | + [`map.height`]: getApp().system.windowHeight-this.transverseViewHeight, |
| 64 | }) | 65 | }) |
| 65 | this.getPos(); | 66 | this.getPos(); |
| 66 | }, | 67 | }, |
| @@ -105,7 +106,7 @@ Page({ | @@ -105,7 +106,7 @@ Page({ | ||
| 105 | let map = this.data.map; | 106 | let map = this.data.map; |
| 106 | map.latitude = res.latitude; | 107 | map.latitude = res.latitude; |
| 107 | map.longitude = res.longitude; | 108 | map.longitude = res.longitude; |
| 108 | - map.height = getApp().system.windowHeight | 109 | + map.height = getApp().system.windowHeight-this.transverseViewHeight |
| 109 | this.setData({ | 110 | this.setData({ |
| 110 | map: map, | 111 | map: map, |
| 111 | }) | 112 | }) |
| 1 | <!--pages/reservr/index.wxml--> | 1 | <!--pages/reservr/index.wxml--> |
| 2 | -<view class="page"> | 2 | +<view class="pages"> |
| 3 | <view class="flex-vc map"> | 3 | <view class="flex-vc map"> |
| 4 | <map id="map" scale="{{map.scale}}" | 4 | <map id="map" scale="{{map.scale}}" |
| 5 | longitude="{{map.longitude}}" latitude="{{map.latitude}}" | 5 | longitude="{{map.longitude}}" latitude="{{map.latitude}}" |
| @@ -15,6 +15,11 @@ | @@ -15,6 +15,11 @@ | ||
| 15 | show-compass | 15 | show-compass |
| 16 | style="width: 100%; height: {{map.height}}px;"></map> | 16 | style="width: 100%; height: {{map.height}}px;"></map> |
| 17 | </view> | 17 | </view> |
| 18 | + <view class="transverse-view"> | ||
| 19 | + <cover-view class="transverse-view-top"></cover-view> | ||
| 20 | + <view class="transverse-search"></view> | ||
| 21 | + <view class="transverse-list"></view> | ||
| 22 | + </view> | ||
| 18 | </view> | 23 | </view> |
| 19 | <cover-view bindtap="moveToLocation" class="moveToLocation"> | 24 | <cover-view bindtap="moveToLocation" class="moveToLocation"> |
| 20 | <cover-image src="http://qn.colorcun.com/custom/lite-yd/image/location.png"></cover-image> | 25 | <cover-image src="http://qn.colorcun.com/custom/lite-yd/image/location.png"></cover-image> |
| 1 | /* pages/reservr/index.wxss */ | 1 | /* pages/reservr/index.wxss */ |
| 2 | -.page{ | 2 | +.pages{ |
| 3 | width: 100%; | 3 | width: 100%; |
| 4 | margin: 0 0 0; | 4 | margin: 0 0 0; |
| 5 | color:#353535; | 5 | color:#353535; |
| @@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
| 16 | } | 16 | } |
| 17 | .moveToLocation{ | 17 | .moveToLocation{ |
| 18 | position: fixed; | 18 | position: fixed; |
| 19 | - bottom: 20rpx; | 19 | + bottom: 344rpx; |
| 20 | right: 20rpx; | 20 | right: 20rpx; |
| 21 | width: 50rpx; | 21 | width: 50rpx; |
| 22 | height: 50rpx; | 22 | height: 50rpx; |
| @@ -27,4 +27,30 @@ | @@ -27,4 +27,30 @@ | ||
| 27 | .moveToLocation cover-image{ | 27 | .moveToLocation cover-image{ |
| 28 | width: 50rpx; | 28 | width: 50rpx; |
| 29 | height: 50rpx; | 29 | height: 50rpx; |
| 30 | +} | ||
| 31 | + | ||
| 32 | +.transverse-view{ | ||
| 33 | + position: relative; | ||
| 34 | + height: 324rpx; | ||
| 35 | + width: 100%; | ||
| 36 | + background-color: #262628; | ||
| 37 | +} | ||
| 38 | +.transverse-view-top{ | ||
| 39 | + border-radius: 20rpx 20rpx 0 0; | ||
| 40 | + background-color: #fe0000; | ||
| 41 | + position: absolute; | ||
| 42 | + top:-20rpx; | ||
| 43 | + left: 0; | ||
| 44 | + width: 100%; | ||
| 45 | + height: 20rpx; | ||
| 46 | +} | ||
| 47 | +.transverse-search{ | ||
| 48 | + background-color: #1AAD19; | ||
| 49 | + height: 60rpx; | ||
| 50 | + width: 100%; | ||
| 51 | +} | ||
| 52 | +.transverse-list{ | ||
| 53 | + background-color: #199095; | ||
| 54 | + height: 264rpx; | ||
| 55 | + width: 100%; | ||
| 30 | } | 56 | } |
-
Please register or login to post a comment