Commit 8a69317426e9bd7960c0d32910f14652be4e3d31

Authored by wangfan
1 parent 35db713c

c端预定

@@ -34,6 +34,7 @@ Page({ @@ -34,6 +34,7 @@ Page({
34 //qqmapsdk:null, 34 //qqmapsdk:null,
35 sellers: [], 35 sellers: [],
36 sellersIds:[], 36 sellersIds:[],
  37 + searchAddrTop:50,
37 /** 38 /**
38 * 生命周期函数--监听页面加载 39 * 生命周期函数--监听页面加载
39 */ 40 */
@@ -72,8 +73,11 @@ Page({ @@ -72,8 +73,11 @@ Page({
72 */ 73 */
73 onShow: function () { 74 onShow: function () {
74 //this.getPos(); 75 //this.getPos();
  76 + let sys=getApp().system;
75 this.setData({ 77 this.setData({
76 - [`map.height`]: getApp().system.windowHeight-this.transverseViewHeight, 78 + [`map.height`]: sys.windowHeight-this.transverseViewHeight,
  79 + searchAddrTop:sys.statusBarHeight
  80 + *(sys.system.toLowerCase().indexOf('ios')>-1?2:sys.pixelRatio),
77 }) 81 })
78 this.getPos(); 82 this.getPos();
79 }, 83 },
@@ -355,4 +359,10 @@ Page({ @@ -355,4 +359,10 @@ Page({
355 } 359 }
356 }) 360 })
357 }, 361 },
  362 + bindMultiPickerChange(e){
  363 + console.log(e);
  364 + this.setData({
  365 + multiIndex:util.val(e)
  366 + })
  367 + },
358 }) 368 })
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 enable-rotate 14 enable-rotate
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 - <cover-view class="searchAddr flex-ll"> 17 + <cover-view class="searchAddr flex-ll" style="top: {{searchAddrTop}}rpx;">
18 <cover-image class="icon" src="http://qn.colorcun.com/custom/lite-online/image/search.png"></cover-image> 18 <cover-image class="icon" src="http://qn.colorcun.com/custom/lite-online/image/search.png"></cover-image>
19 - 请输入位置 19 + <cover-view>请输入位置</cover-view>
20 </cover-view> 20 </cover-view>
21 </view> 21 </view>
22 <view class="transverse-view"> 22 <view class="transverse-view">
@@ -30,7 +30,10 @@ @@ -30,7 +30,10 @@
30 range="{{multiArray}}" 30 range="{{multiArray}}"
31 > 31 >
32 <view class="picker flex-lr" style="width: 100%"> 32 <view class="picker flex-lr" style="width: 100%">
33 - <view class="input">{{multiArray[0][multiIndex[0]]}},{{multiArray[1][multiIndex[1]]}}</view> 33 + <view class="input">
  34 + <block wx:if="{{multiIndex[0]==0 && multiIndex[1]==0}}">贵宾几位,吃点什么?</block>
  35 + <block wx:else="">{{multiArray[0][multiIndex[0]]}},{{multiArray[1][multiIndex[1]]}}</block>
  36 + </view>
34 <view class="more"></view> 37 <view class="more"></view>
35 </view> 38 </view>
36 </picker> 39 </picker>
@@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
91 position: fixed; 91 position: fixed;
92 top: 50rpx; 92 top: 50rpx;
93 left: 38rpx; 93 left: 38rpx;
94 - width: 500rpx; 94 + width: 450rpx;
95 height: 60rpx; 95 height: 60rpx;
96 background-color: #fefefe; 96 background-color: #fefefe;
97 border-radius: 30rpx; 97 border-radius: 30rpx;