list.axml 2.2 KB

1
  1. <view class="list"><block a:if="{{showFrame}}"><view class="search"><view class="dist_search _div"><picker value="{{cityIndex}}" range="{{cityArr}}" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" onChange="__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}}" onInput="__e"/></view></view></block><block a:if="{{showFrame}}"><view class="postion"><view class="icon"></view><view data-event-opts="{{[['tap',[['reGetLocation',['$event']]]]]}}" class="current" onTap="__e">{{'当前位置:'+location+''}}</view><view data-event-opts="{{[['tap',[['refresh',['$event']]]]]}}" class="refresh" onTap="__e"></view></view></block><block a:if="{{moreDistanceTipShow}}"><view class="distance" style="margin-top:200rpx;text-align:center;">{{'您附近'+distanceShow+'公里内没有油站'}}</view></block><view class="collection"><view data-event-opts="{{[['tap',[['goBuy',['$event','$0'],[[['filterDistanceArr','',__i0__,'stationId']]]]]]]}}" class="station" onTap="__e" a:for="{{filterDistanceArr}}" a:for-item="ele" a:for-index="__i0__"><view class="content"><image src="{{ele.stationPic}}" mode></image><view class="detail"><view class="name">{{ele.stationName}}</view><view class="other"><block a:if="{{ele.distance!==undefined}}"><text>{{ele.distance+' '+'km |'}}</text></block>{{''+(' '+ele.stationAddress)+''}}</view></view></view><view class="footer"><view data-event-opts="{{[['tap',[['goThere',['$event','$0','$1','$2','$3'],[[['filterDistanceArr','',__i0__,'stationLatitude']],[['filterDistanceArr','',__i0__,'stationLongitude']],[['filterDistanceArr','',__i0__,'stationName']],[['filterDistanceArr','',__i0__,'stationAddress']]]]]]]}}" class="gothere" catchTap="__e">去这里</view><view class="separator">|</view><view data-event-opts="{{[['tap',[['goBuy',['$event','$0'],[[['filterDistanceArr','',__i0__,'stationId']]]]]]]}}" class="gobuy" catchTap="__e">去买单</view></view></view></view></view>