list.wxml 1.8 KB

1
  1. <view class="list"><view class="search"><view class="dist_search _div"><picker value="{{cityIndex}}" range="{{cityArr}}" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" bindchange="__e"><view class="district">{{cityArr[cityIndex]}}</view></picker><view class="icon"></view></view><view class="separate"></view><view class="inp"><view class="icon"></view><input type="text" placeholder="请输入油站名称" data-event-opts="{{[['input',[['__set_model',['','filterCityText','$event',[]]]]]]}}" value="{{filterCityText}}" bindinput="__e"/></view></view><view class="postion"><view class="icon"></view><view data-event-opts="{{[['tap',[['reGetLocation',['$event']]]]]}}" class="current" bindtap="__e">{{'当前位置:'+location+''}}</view><view data-event-opts="{{[['tap',[['refresh',['$event']]]]]}}" class="refresh" bindtap="__e"></view></view><view class="collection"><block wx:for="{{filterCityArr}}" wx:for-item="ele" wx:for-index="__i0__"><view data-event-opts="{{[['tap',[['goBuy',['$event','$0'],[[['filterCityArr','',__i0__,'stationId']]]]]]]}}" class="station" bindtap="__e"><view class="content"><image src="{{ele.stationPic}}" mode></image><view class="detail"><view class="name">{{ele.stationName}}</view><view class="other"><text hidden="{{!(ele.distance!==undefined)}}">{{ele.distance+' '+'km |'}}</text>{{''+(' '+ele.stationAddress)+''}}</view></view></view><view class="footer"><view data-event-opts="{{[['tap',[['goThere',['$event','$0','$1'],[[['filterCityArr','',__i0__,'stationLatitude']],[['filterCityArr','',__i0__,'stationLongitude']]]]]]]}}" class="gothere" catchtap="__e">去这里</view><view class="separator">|</view><view data-event-opts="{{[['tap',[['goBuy',['$event','$0'],[[['filterCityArr','',__i0__,'stationId']]]]]]]}}" class="gobuy" catchtap="__e">去买单</view></view></view></block></view></view>