Commit 8a69317426e9bd7960c0d32910f14652be4e3d31

Authored by wangfan
1 parent 35db713c

c端预定

... ... @@ -34,6 +34,7 @@ Page({
//qqmapsdk:null,
sellers: [],
sellersIds:[],
searchAddrTop:50,
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -72,8 +73,11 @@ Page({
*/
onShow: function () {
//this.getPos();
let sys=getApp().system;
this.setData({
[`map.height`]: getApp().system.windowHeight-this.transverseViewHeight,
[`map.height`]: sys.windowHeight-this.transverseViewHeight,
searchAddrTop:sys.statusBarHeight
*(sys.system.toLowerCase().indexOf('ios')>-1?2:sys.pixelRatio),
})
this.getPos();
},
... ... @@ -355,4 +359,10 @@ Page({
}
})
},
bindMultiPickerChange(e){
console.log(e);
this.setData({
multiIndex:util.val(e)
})
},
})
\ No newline at end of file
... ...
... ... @@ -14,9 +14,9 @@
enable-rotate
show-compass
style="width: 100%; height: {{map.height}}px;"></map>
<cover-view class="searchAddr flex-ll">
<cover-view class="searchAddr flex-ll" style="top: {{searchAddrTop}}rpx;">
<cover-image class="icon" src="http://qn.colorcun.com/custom/lite-online/image/search.png"></cover-image>
请输入位置
<cover-view>请输入位置</cover-view>
</cover-view>
</view>
<view class="transverse-view">
... ... @@ -30,7 +30,10 @@
range="{{multiArray}}"
>
<view class="picker flex-lr" style="width: 100%">
<view class="input">{{multiArray[0][multiIndex[0]]}},{{multiArray[1][multiIndex[1]]}}</view>
<view class="input">
<block wx:if="{{multiIndex[0]==0 && multiIndex[1]==0}}">贵宾几位,吃点什么?</block>
<block wx:else="">{{multiArray[0][multiIndex[0]]}},{{multiArray[1][multiIndex[1]]}}</block>
</view>
<view class="more"></view>
</view>
</picker>
... ...
... ... @@ -91,7 +91,7 @@
position: fixed;
top: 50rpx;
left: 38rpx;
width: 500rpx;
width: 450rpx;
height: 60rpx;
background-color: #fefefe;
border-radius: 30rpx;
... ...