city.wxml 1.6 KB

12345678910111213141516171819202122232425262728
  1. <swiper class="screen-swiper round-dot" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500">
  2. <swiper-item wx:for="{{advertises}}" wx:key wx:for-item="advertise" bindtap="NavigetClick" data-navigate="{{advertise.navigate}}">
  3. <image src="{{advertise.url}}" mode='aspectFill'></image>
  4. </swiper-item>
  5. </swiper>
  6. <view class="VerticalBox">
  7. <scroll-view class="VerticalNav nav" scroll-y scroll-with-animation scroll-top="{{VerticalNavTop}}" style="height:calc(100vh - 375rpx)">
  8. <view class="cu-item {{index==TabCur?'text-green cur':''}}" wx:for="{{list}}" wx:key bindtap='tabSelect' data-id="{{index}}">
  9. {{item.name}}
  10. </view>
  11. </scroll-view>
  12. <scroll-view class="VerticalMain" scroll-y scroll-with-animation style="height:calc(100vh - 375rpx)" scroll-into-view="main-{{MainCur}}" bindscroll="VerticalMain">
  13. <view class="padding-top padding-left" wx:for="{{list}}" wx:key id="main-{{index}}" wx:for-item="province">
  14. <view class='cu-bar solid-bottom bg-white'>
  15. <view class='action'>
  16. <text class='cuIcon-title text-green'></text> {{province.name}} </view>
  17. </view>
  18. <view class="action bg-white"
  19. bindtap="CityClick"
  20. data-province="{{province.name}}"
  21. data-city-name="{{item}}"
  22. wx:key
  23. wx:for="{{base['0,'+province.code]}}">
  24. <view class="city-list solid-bottom">{{item}}</view>
  25. </view>
  26. </view>
  27. </scroll-view>
  28. </view>