index.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!--pages/yuezhan/search/index.wxml-->
  2. <view class='container'>
  3. <view class='top-nav'>
  4. <!-- <view class='search-con'>
  5. <view class='search-bar'>
  6. <text class='iconfont icon-search fix-icon-search'></text>
  7. <input placeholder="输入关键词" class='search-input' focus="{{focus}}" />
  8. </view>
  9. </view> -->
  10. <view class='yuezhan-con'>
  11. <view class='yuezhan-nav'>
  12. <view class="yuezhan-navbar">
  13. <block wx:for="{{tabs}}" wx:key="index">
  14. <view id="{{index}}" class="nav-item {{index==activeIndex?'nav-item_on':''}}" bindtap='tabClick'>
  15. <view class="nav-item_txt">
  16. {{item}}
  17. </view>
  18. </view>
  19. <view class="navbar__slider" style="width:{{100/tabs.length}}%; left: {{activeIndex * (100/tabs.length)}}%; ">
  20. <view class='navbar_slider-item'></view>
  21. </view>
  22. </block>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view hidden="{{activeIndex!=0}}">
  28. <view class="weui-tab__panel">
  29. <view wx:if="{{locationName}}" class='fdkk-cells'>
  30. <view class='weui-cell'>
  31. <view class='weui-cell__bd'>当前城市</view>
  32. </view>
  33. </view>
  34. <view class='city_box_con'>
  35. <view class='city_box {{cityAction == locationName ? "current_box" : "" }}' bindtap='clickItem' data-name='{{locationName}}'>
  36. <view>{{locationName||"北京"}}</view>
  37. <view class='city_box_dec'>
  38. <text class='city_box_dec_num' >{{exhibitionNum||0}}</text>个展览</view>
  39. </view>
  40. </view>
  41. <view class='fdkk-cells'>
  42. <view class='weui-cell'>
  43. <view class='weui-cell__bd'>在展城市</view>
  44. </view>
  45. </view>
  46. <view class='city_box_con'>
  47. <view class='city_box {{cityAction == item[0] ? "current_box" : "" }} ' wx:for="{{domesticCityList}}" bindtap='clickItem' data-name='{{item[0]}}' wx:key="index">
  48. <view>{{item[0]}}</view>
  49. <view class='city_box_dec'>
  50. <text class='city_box_dec_num'>{{item[1]}}</text>个展览</view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view hidden="{{activeIndex!=1}}">
  56. <view class="weui-tab__panel">
  57. <view class='fdkk-cells'>
  58. <view class='weui-cell'>
  59. <view class='weui-cell__bd'>在展城市</view>
  60. </view>
  61. </view>
  62. <view class='city_box_con'>
  63. <view class='city_box {{cityAction == item[0] ? "current_box" : "" }} 'wx:for="{{internationalCity}}" bindtap='clickItem' data-name='{{item[0]}}' wx:key="index">
  64. <view>{{item[0]}}</view>
  65. <view class='city_box_dec'>
  66. <text class='city_box_dec_num'>{{item[1]}}</text>个展览</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>