city.wxml 3.2 KB

1
  1. <view class="city data-v-1a911568"><view class="city-title xs data-v-1a911568">当前定位城市</view><view class="city-current bg-white flex row-between data-v-1a911568"><view class="data-v-1a911568"><u-icon vue-id="3792189e-1" name="map-fill" size="34" class="data-v-1a911568" bind:__l="__l"></u-icon><block wx:if="{{!isLoading}}"><text class="m-l-8 nr data-v-1a911568">{{cityInfo.name||'城市'}}</text></block><block wx:else><text class="m-l-8 nr data-v-1a911568">定位中...</text></block></view><view data-event-opts="{{[['tap',[['reLocationFunc',['$event']]]]]}}" class="reselect nr flex data-v-1a911568" bindtap="__e"><block wx:if="{{isLoading}}"><u-loading vue-id="3792189e-2" mode="flower" color="#528FFF" size="28" class="data-v-1a911568" bind:__l="__l"></u-loading></block><text class="m-l-8 data-v-1a911568">重新定位</text></view></view><block wx:if="{{$root.g0}}"><view class="city-title xs data-v-1a911568">历史浏览城市</view></block><view class="city-list bg-white data-v-1a911568"><block wx:for="{{historyList}}" wx:for-item="hisItem" wx:for-index="hisIndex" wx:key="hisIndex"><block class="data-v-1a911568"><view data-event-opts="{{[['tap',[['chooseCity',['$0'],[[['historyList','',hisIndex]]]]]]]}}" class="city-list-item line-1 nr data-v-1a911568" bindtap="__e">{{hisItem.name}}</view></block></block></view><view class="city-title xs data-v-1a911568">热门城市</view><view class="city-list bg-white data-v-1a911568"><block wx:for="{{hotList}}" wx:for-item="hotItem" wx:for-index="hotIndex" wx:key="hotIndex"><block class="data-v-1a911568"><view data-event-opts="{{[['tap',[['chooseCity',['$0'],[[['hotList','',hotIndex]]]]]]]}}" class="city-list-item line-1 nr data-v-1a911568" bindtap="__e">{{hotItem.name}}</view></block></block></view><block wx:for="{{cityList}}" wx:for-item="cityItem" wx:for-index="cityIndex" wx:key="cityIndex"><view class="data-v-1a911568"><view class="city-title anchor xs data-v-1a911568">{{cityIndex}}</view><view class="city-list bg-white data-v-1a911568"><block wx:for="{{cityItem}}" wx:for-item="cityItem2" wx:for-index="cityIndex2" wx:key="cityIndex2"><block class="data-v-1a911568"><view data-event-opts="{{[['tap',[['chooseCity',['$0'],[[['cityList','',cityIndex],['','',cityIndex2]]]]]]]}}" class="city-list-item line-1 nr data-v-1a911568" bindtap="__e">{{''+cityItem2.name+''}}</view></block></block></view></view></block><view data-event-opts="{{[['touchstart',[['onTouchMove',['$event']]]],['touchmove',[['onTouchMove',['$event']]]],['touchend',[['onTouchStop',['$event']]]],['touchcancel',[['onTouchStop',['$event']]]]]}}" class="city-bar__sidebar data-v-1a911568" catchtouchstart="__e" catchtouchmove="__e" catchtouchend="__e" catchtouchcancel="__e"><block wx:for="{{labelList}}" wx:for-item="barItem" wx:for-index="barIndex" wx:key="barIndex"><view class="city-bar__index data-v-1a911568" style="{{'color:'+(touchmoveIndex===barIndex?'#528FFF':'')+';'}}">{{''+barItem+''}}</view></block></view><block wx:if="{{touchmove&&labelList[touchmoveIndex+'']}}"><view class="city-list-alert data-v-1a911568"><text class="data-v-1a911568">{{labelList[touchmoveIndex]}}</text></view></block><block wx:if="{{isFirstLoading}}"><loading-view vue-id="3792189e-3" class="data-v-1a911568" bind:__l="__l"></loading-view></block></view>