select_library.wxml 1.7 KB

1234567891011121314151617181920212223242526272829
  1. <!--pages/select_library/select_library.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view >
  6. <view class='li-search'>
  7. <view class='li-search-left'>
  8. <image src='../../assets/search.png' class='li-search-left-img'></image>
  9. <input placeholder='搜索场馆' class='li-search-left-input' placeholder-style='li-search-left-input-pla' bindinput='inputCtl'></input>
  10. </view>
  11. <view class='li-search-right' bindtap='blurCtl'>搜索</view>
  12. </view>
  13. <template is='nodata' wx:if='{{cityList.length==0}}' data='{{...nodata.nodataObj}}'></template>
  14. <view class='model-list' wx:if='{{cityList.length>0}}'>
  15. <view class='model-list-left'>
  16. <view class="model-list-left-items {{index==areaIndex?'area-active':''}}" wx:for="{{cityList}}" wx:key="index" bindtap='selectCity' data-index='{{index}}'>{{item.city}}</view>
  17. </view>
  18. <view class='model-list-right'>
  19. <scroll-view scroll-y="true" style="height: 95vh;overflow: scroll;">
  20. <view class='model-list-right-items' wx:for="{{cityList[areaIndex].libList}}" wx:key="index">
  21. <view bindtap='setLibName' data-item='{{item}}' data-idx='{{index}}'>{{item.libName}}</view>
  22. <image src='../../assets/zheng_que.png' class='model-list-right-items-img' wx:if="{{item.status=='active'}}"></image>
  23. </view>
  24. </scroll-view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>