index.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
  2. <view slot="info" class="container main">
  3. <view class="one">
  4. <van-search value="{{ searchInfo.name }}" placeholder="请输入搜索关键词" show-action bind:search="onSearch" bind:cancel="onCancel" />
  5. </view>
  6. <view class="two">
  7. <view bindtap="btnChange" data-value="0">
  8. <text wx:if="{{ searchInfo.type=='' }}">运动类型</text>
  9. <text wx:if="{{ searchInfo.type=='0' }}">{{searchInfo.type_name||"运动类型"}}</text>
  10. <van-icon bind:click="showPopup" name="arrow-down" />
  11. <van-popup wx:if="{{btntype=='0'}}" position="bottom" custom-style="height: 46%;" show="{{ show }}" bind:close="onClose">
  12. <van-picker show-toolbar title="运动类型" value-key="value" columns="{{ typeList }}" bind:cancel="onCancel" bind:confirm="ontypeConfirm" />
  13. </van-popup>
  14. </view>
  15. <view bindtap="btnChange" data-value="1">
  16. <text wx:if="{{ searchInfo.city_type=='' }}">城市</text>
  17. <text wx:if="{{ searchInfo.city_type=='1' }}">{{searchInfo.city_name||"城市"}}</text>
  18. <van-icon bind:click="showPopup" name="arrow-down" />
  19. <van-popup wx:if="{{btntype=='1'}}" position="bottom" custom-style="height: 46%;" show="{{ show }}" bind:close="onClose">
  20. <van-picker show-toolbar title="城市" value-key="value" columns="{{ cityList }}" bind:cancel="onCancel" bind:confirm="oncityConfirm" />
  21. </van-popup>
  22. </view>
  23. <view bindtap="btnChange" data-value="2">
  24. <text wx:if="{{ searchInfo.match_type=='' }}">比赛状态</text>
  25. <text wx:if="{{ searchInfo.match_type=='2' }}">{{searchInfo.match_name||"比赛状态"}}</text>
  26. <van-icon bind:click="showPopup" name="arrow-down" />
  27. <van-popup wx:if="{{btntype=='2'}}" position="bottom" custom-style="height: 46%;" show="{{ show }}" bind:close="onClose">
  28. <van-picker show-toolbar title="比赛状态" value-key="value" columns="{{ matchList }}" bind:cancel="onCancel" bind:confirm="onmatchConfirm" />
  29. </van-popup>
  30. </view>
  31. </view>
  32. <view class="thr">
  33. <scroll-view scroll-y="true" class="scroll-view">
  34. <view class="list-scroll-view">
  35. <view class="list" wx:for="{{list}}" wx:key="item">
  36. <view class="image">
  37. <image src="{{item.src}}"></image>
  38. </view>
  39. <view class="content">
  40. <view class="name"><text class="color{{item.status}}">{{item.status=='0'?'报名中':item.status=='1'?'报名截止':item.status=='2'?'报名结束':item.status=='3'?'发布秩序册':item.status=='4'?'比赛中':item.status=='5'?'比赛结束':'全部'}}</text>{{item.name}}</view>
  41. <view class="title">报名时间:{{item.time}}</view>
  42. <view class="title">比赛时间:{{item.match_time}}</view>
  43. <view class="title">比赛地址:{{item.address}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. </scroll-view>
  48. </view>
  49. </view>
  50. </mobile-main>