Commit e7845a93109e52ab9ce854bf442b976a8a4c7c91

Authored by vking
1 parent 6d68b990

search

... ... @@ -79,5 +79,8 @@ Component({
})
console.log('this.setData', this.data);
},
getHeight(){
return this.data.statusBarHeightFull
},
}
})
... ...
... ... @@ -19,6 +19,7 @@ Page({
hasSellerMore:false,
keyword:'',
sellerSplit:-1,
navHeight:100,
},
/**
... ... @@ -40,6 +41,10 @@ Page({
*/
onShow: function () {
this.getHistory();
this.setData({
navHeight:this.selectComponent('#nav').getHeight()
})
},
/**
... ...
<!--pages/reserve/search.wxml-->
<nav>搜索</nav>
<view class="searchAddrView">
<view class="searchAddr flex-ll">
<nav id="nav">搜索</nav>
<view class="searchAddrView" style="height: {{navHeight+40}}px;">
<view class="searchAddr flex-ll" style="margin-top: {{navHeight+5}}px;">
<image class="icon" src="http://qn.colorcun.com/custom/lite-online/image/search26.png"></image>
<input style="width: 100%;" placeholder="输入餐厅名或地名,快速订包间"
type="text" confirm-type="done"
... ...
... ... @@ -6,15 +6,13 @@
}
.searchAddrView{
position: fixed;
top:100rpx;
top:0rpx;
width: 100%;
height: 120rpx;
background-color: #fefefe;
height: 240rpx;
background-color: #ffffff;
z-index: 9;
}
.searchAddr {
position: fixed;
top:140rpx;
width: 90%;
height: 60rpx;
background-color: #F5F5F5;
... ... @@ -23,8 +21,7 @@
color:#999999;
line-height: 60rpx;
font-size: 28rpx;
z-index: 99;
left: 5%;
margin:0 auto;
}
.searchAddr .icon{
min-width: 26rpx;
... ...