city.wxml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!-- <view> -->
  2. <view class="storeContent">
  3. <view class="storeSearch">
  4. <image src="../../static/images/icon/search@2x.png"></image>
  5. <input type="text" bindinput="inputChange" placeholder="请输入城市名称" placeholder-class="placeholderStyle" />
  6. </view>
  7. <view class="searchBtn" bindtap="search">搜索</view>
  8. </view>
  9. <view style="height: 90rpx;"></view>
  10. <view class="scrollBox" wx:if="{{searchCityList.length==0}}">
  11. <scroll-view class="jump_list" bindscroll="onPageScroll" scroll-into-view="{{toView}}" scroll-y="true"
  12. scroll-with-animation="true">
  13. <view class='city_box'>
  14. <view wx:for="{{citys}}" wx:key="{{item}}" id="item{{index}}">
  15. <view class="cityTitle">{{item.title}}</view>
  16. <view data-city="{{item}}" bindtap="changeCity" wx:for="{{item.lists}}" class="cityItem">
  17. {{item}}
  18. </view>
  19. </view>
  20. </view>
  21. </scroll-view>
  22. <view class="btn_jump">
  23. <view class="btn_item {{apl_index ==index ?'active':''}}" wx:for="{{citys}}" data-index="{{index}}" bindtap='jumpTo'
  24. data-opt="item{{index}}">{{item.title}}</view>
  25. </view>
  26. </view>
  27. <view wx:else>
  28. <view wx:for="{{searchCityList}}" data-city="{{item}}" bindtap="changeCity" class="cityItem">
  29. {{item}}
  30. </view>
  31. </view>
  32. <!-- </view> -->