city.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--pages/Components/city/city.wxml-->
  2. <my-logo>
  3. <navTop title="选择城市"></navTop>
  4. <view class="container">
  5. <view class="localView">
  6. <view class="localImg">
  7. <image src="{{src}}local-0121.png"></image>
  8. </view>
  9. <view>
  10. 当前位置
  11. </view>
  12. <view class="localName">
  13. {{city}}
  14. </view>
  15. </view>
  16. <view class="middle-title">
  17. 热门城市
  18. </view>
  19. <view class="hot-view">
  20. <view class="hot-list" wx:for="{{hot}}" wx:key="index" bindtap="getCity" data-name="{{item.name}}">
  21. {{item.name}}
  22. </view>
  23. </view>
  24. <view class="city-view">
  25. <view class="city-title" wx:for="{{cityArr}}" wx:for-item="item" wx:key="i" wx:for-index="index">
  26. <view class="city-title-view" wx:if="{{index > 0}}" id="{{item}}">{{item}}</view>
  27. <view class="city-name" wx:for="{{cityList}}" wx:for-item="citem" wx:key="j" wx:for-index="cindex">
  28. <view wx:if="{{item == cindex}}" wx:for="{{citem}}" wx:for-item="nitem" wx:key="k">
  29. <view class="city-name-view" bindtap="getCity" data-name="{{nitem.name}}">{{nitem.name}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="select-view">
  36. <view wx:for="{{cityArr}}" wx:for-item="item" wx:key="i" wx:for-index="index" bindtap="changeTitle" data-id="{{item}}">
  37. {{item}}
  38. </view>
  39. </view>
  40. <view class="tip-view {{tipHide == 1 ? 'tip-view-hide' : ''}}">{{tipText}}</view>
  41. </my-logo>