Showing
3 changed files
with
48 additions
and
39 deletions
| @@ -8,7 +8,7 @@ import PubSub from '../../utils/PubSub' | @@ -8,7 +8,7 @@ import PubSub from '../../utils/PubSub' | ||
| 8 | const {regeneratorRuntime} = global | 8 | const {regeneratorRuntime} = global |
| 9 | const mapScale=15//18; | 9 | const mapScale=15//18; |
| 10 | const barHeight=50; | 10 | const barHeight=50; |
| 11 | -const transverseViewHeight=235+barHeight; | 11 | +const transverseViewHeight=253+barHeight; |
| 12 | 12 | ||
| 13 | const renNum=function(){ | 13 | const renNum=function(){ |
| 14 | let arr=[] | 14 | let arr=[] |
| @@ -15,31 +15,32 @@ | @@ -15,31 +15,32 @@ | ||
| 15 | enable-rotate | 15 | enable-rotate |
| 16 | subkey="SDEBZ-I74W4-QLGUX-XXYXU-HIR23-3QFBJ" | 16 | subkey="SDEBZ-I74W4-QLGUX-XXYXU-HIR23-3QFBJ" |
| 17 | layer-style="2" | 17 | layer-style="2" |
| 18 | - style="width: 100%; height: {{map.height+60}}px;"></map> | ||
| 19 | - <formids url="/pages/reserve/search" style="position: fixed;" > | ||
| 20 | - <view bindtap="elog" data-ename="点击搜索框" | ||
| 21 | - class="flex-ll" | ||
| 22 | - style="position:fixed;top:{{statusBarHeight}}px;left:0;height: {{titleBarHeight}}px; line-height: {{titleBarHeight}}px;"> | ||
| 23 | - <view class="searchList flex-ll" catchtap="listShow"> | ||
| 24 | - <image class="icon" src="http://nosqn.colorcun.com/reserve/images/hasList3.png"></image> | ||
| 25 | - <view class="title">列表</view> | ||
| 26 | - </view> | ||
| 27 | - <view class="searchAddr flex-ll"> | ||
| 28 | - <image class="icon" src="http://nosqn.colorcun.com/custom/lite-online/image/search26.png"></image> | ||
| 29 | - <view class="title">{{hasSuggestion?suggestion.title:'输入餐厅名或地名,快速订包间'}}</view> | ||
| 30 | - </view> | ||
| 31 | - </view> | ||
| 32 | - </formids> | 18 | + style="width: 100%; height: {{map.height}}px;"></map> |
| 33 | </view> | 19 | </view> |
| 34 | - <view class="seller-view {{(listMoreCount<1)?(hasSearchLimit?'disabled enabled':'disabled'):''}}"> | 20 | + <view class="seller-view"> |
| 35 | <view class="toast" wx:if="{{hasGetSellersEnd && listMoreCount<1 && !hasSearchLimit && markers.length<2}}">该地区没有可供预订的餐厅哦!努力开通中</view> | 21 | <view class="toast" wx:if="{{hasGetSellersEnd && listMoreCount<1 && !hasSearchLimit && markers.length<2}}">该地区没有可供预订的餐厅哦!努力开通中</view> |
| 36 | <view class="toast" wx:if="{{hasGetSellersEnd && markers.length<2 && listMoreCount>0}}">移动或缩放地图,获取更多餐厅</view> | 22 | <view class="toast" wx:if="{{hasGetSellersEnd && markers.length<2 && listMoreCount>0}}">移动或缩放地图,获取更多餐厅</view> |
| 23 | + <!-- | ||
| 37 | <view class="flex-vc transverse-view-top" bindtap="listShow" wx:if="{{hasGetSellersEnd && listMoreCount>0}}"> | 24 | <view class="flex-vc transverse-view-top" bindtap="listShow" wx:if="{{hasGetSellersEnd && listMoreCount>0}}"> |
| 38 | <view class="line"></view> | 25 | <view class="line"></view> |
| 39 | <view class="text"> | 26 | <view class="text"> |
| 40 | <view>{{hasSellers?'查看其它':'已扩大范围为你找到'}}{{listMoreCount}}家餐厅</view> | 27 | <view>{{hasSellers?'查看其它':'已扩大范围为你找到'}}{{listMoreCount}}家餐厅</view> |
| 41 | </view> | 28 | </view> |
| 42 | </view> | 29 | </view> |
| 30 | + --> | ||
| 31 | + <navigator url="./search" | ||
| 32 | + bindtap="elog" data-ename="点击搜索框" hover-class="navigator-hover"> | ||
| 33 | + <view class="flex-ll transverse-view-search"> | ||
| 34 | + <view class="searchAddr flex-ll"> | ||
| 35 | + <image class="icon" src="http://nosqn.colorcun.com/custom/lite-online/image/search26.png"></image> | ||
| 36 | + <view class="title">{{hasSuggestion?suggestion.title:'输入餐厅名或地名,快速订包间'}}</view> | ||
| 37 | + </view> | ||
| 38 | + <view class="searchList flex-tb" catchtap="listShow"> | ||
| 39 | + <image class="icon" src="http://nosqn.colorcun.com/mapmenu/maplist.png"></image> | ||
| 40 | + <view class="title">列表模式</view> | ||
| 41 | + </view> | ||
| 42 | + </view> | ||
| 43 | + </navigator> | ||
| 43 | <view class="transverse-search flex-ll"> | 44 | <view class="transverse-search flex-ll"> |
| 44 | <view | 45 | <view |
| 45 | bindtap="caixiShow" | 46 | bindtap="caixiShow" |
| @@ -174,12 +174,15 @@ page{ | @@ -174,12 +174,15 @@ page{ | ||
| 174 | .searchAddr { | 174 | .searchAddr { |
| 175 | margin-left: 15rpx; | 175 | margin-left: 15rpx; |
| 176 | width: 400rpx; | 176 | width: 400rpx; |
| 177 | - height: 60rpx; | 177 | + height: 64rpx; |
| 178 | background-color: #fefefe; | 178 | background-color: #fefefe; |
| 179 | - border-radius: 30rpx; | ||
| 180 | - line-height: 60rpx; | 179 | + line-height: 64rpx; |
| 181 | color:#999999; | 180 | color:#999999; |
| 182 | font-size: 24rpx; | 181 | font-size: 24rpx; |
| 182 | + | ||
| 183 | + border-radius:32rpx; | ||
| 184 | + border:2rpx solid rgba(204,204,204,1); | ||
| 185 | + width: 100%; | ||
| 183 | } | 186 | } |
| 184 | .searchAddr .icon{ | 187 | .searchAddr .icon{ |
| 185 | min-width: 22rpx; | 188 | min-width: 22rpx; |
| @@ -195,27 +198,24 @@ page{ | @@ -195,27 +198,24 @@ page{ | ||
| 195 | text-align: left; | 198 | text-align: left; |
| 196 | } | 199 | } |
| 197 | .searchList{ | 200 | .searchList{ |
| 198 | - margin-left: 26rpx; | ||
| 199 | - width: 100rpx; | ||
| 200 | - height: 60rpx; | ||
| 201 | - background-color: #fefefe; | ||
| 202 | - border-radius: 30rpx; | ||
| 203 | - line-height: 60rpx; | ||
| 204 | - color:#C28C56; | ||
| 205 | - font-size: 20rpx; | 201 | + margin-left: 30rpx; |
| 202 | + width:72rpx; | ||
| 203 | + min-width: 72rpx; | ||
| 204 | + align-items: center; | ||
| 205 | + | ||
| 206 | } | 206 | } |
| 207 | .searchList .icon{ | 207 | .searchList .icon{ |
| 208 | - min-width: 24rpx; | ||
| 209 | - width: 24rpx; | ||
| 210 | - height: 24rpx; | ||
| 211 | - margin: 0 8rpx 0 14rpx; | 208 | + width:40rpx; |
| 209 | + height:36rpx; | ||
| 210 | + margin-bottom: 4rpx; | ||
| 212 | } | 211 | } |
| 213 | .searchList .title{ | 212 | .searchList .title{ |
| 214 | - line-height: 60rpx; | ||
| 215 | - height: 60rpx; | ||
| 216 | - overflow: hidden; | ||
| 217 | - width: 100%; | ||
| 218 | - text-align: left; | 213 | + height:26rpx; |
| 214 | + font-size:18rpx; | ||
| 215 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 216 | + font-weight:400; | ||
| 217 | + color:rgba(192,163,105,1); | ||
| 218 | + line-height:26rpx; | ||
| 219 | } | 219 | } |
| 220 | .empty-txt{ | 220 | .empty-txt{ |
| 221 | height: 300rpx; | 221 | height: 300rpx; |
| @@ -292,7 +292,6 @@ page{ | @@ -292,7 +292,6 @@ page{ | ||
| 292 | 292 | ||
| 293 | /* seller-view start*/ | 293 | /* seller-view start*/ |
| 294 | .seller-view{ | 294 | .seller-view{ |
| 295 | - height: 470rpx; | ||
| 296 | position:fixed; | 295 | position:fixed; |
| 297 | bottom: calc(0rpx + var(--barHeight)); | 296 | bottom: calc(0rpx + var(--barHeight)); |
| 298 | width: 100%; | 297 | width: 100%; |
| @@ -300,6 +299,9 @@ page{ | @@ -300,6 +299,9 @@ page{ | ||
| 300 | border-radius: 20rpx 20rpx 0 0; | 299 | border-radius: 20rpx 20rpx 0 0; |
| 301 | box-shadow: -4rpx 0 4rpx 2rpx #C5C1C1; | 300 | box-shadow: -4rpx 0 4rpx 2rpx #C5C1C1; |
| 302 | overflow: hidden; | 301 | overflow: hidden; |
| 302 | + padding: 30rpx 0 20rpx; | ||
| 303 | + height: 506rpx; | ||
| 304 | + box-sizing: border-box; | ||
| 303 | } | 305 | } |
| 304 | .seller-view.disabled{ | 306 | .seller-view.disabled{ |
| 305 | height: 410rpx; | 307 | height: 410rpx; |
| @@ -331,7 +333,6 @@ page{ | @@ -331,7 +333,6 @@ page{ | ||
| 331 | font-size: 24rpx; | 333 | font-size: 24rpx; |
| 332 | padding-left: 40rpx; | 334 | padding-left: 40rpx; |
| 333 | line-height: 90rpx; | 335 | line-height: 90rpx; |
| 334 | - padding-top: 58rpx; | ||
| 335 | } | 336 | } |
| 336 | .disabled .transverse-search{ | 337 | .disabled .transverse-search{ |
| 337 | padding-top: 0; | 338 | padding-top: 0; |
| @@ -364,3 +365,10 @@ page{ | @@ -364,3 +365,10 @@ page{ | ||
| 364 | border-radius:30rpx; | 365 | border-radius:30rpx; |
| 365 | opacity:0.64; | 366 | opacity:0.64; |
| 366 | } | 367 | } |
| 368 | +.transverse-view-search{ | ||
| 369 | + width:100%; | ||
| 370 | + height:66rpx; | ||
| 371 | + padding: 0 20rpx; | ||
| 372 | + background:rgba(254,254,254,1); | ||
| 373 | + box-sizing: border-box; | ||
| 374 | +} |
-
Please register or login to post a comment