index.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class=" content main">
  2. <view class="one">
  3. <input class="input" type="text" bindconfirm="toSearch" confirm-type="search" placeholder-style=' text-align: center;' placeholder="搜索" />
  4. </view>
  5. <view class="two">
  6. <scroll-view class="scroll-view" scroll-y="true" bindscrolltolower="toLower" bindscroll="toScroll">
  7. <view class="list" wx:for="{{list}}" wx:key="index" wx:for-item="item">
  8. <view class="list_1">
  9. <view class="name textOver"> {{item.match_name||"暂无比赛名称"}} </view>
  10. <view class="color{{item.status}}"> {{item.status_name||'暂无状态'}} </view>
  11. </view>
  12. <view class="other">
  13. <view class="other_1">
  14. 团队名称:{{item.team_name||'暂无团队名称'}}
  15. </view>
  16. <view class="other_1">
  17. 报名时间:{{item.apply_time||'暂无报名时间'}}
  18. </view>
  19. <view class="other_1">
  20. 参赛人数:{{item.num||'0'}}人
  21. </view>
  22. <view class="other_1 textOver">
  23. 分数:{{item.score||'暂无分数'}}
  24. </view>
  25. </view>
  26. <view class="button">
  27. <button wx:if="{{item.status=='1'&&item.match_status=='1'||item.match_status=='2'||item.match_status=='-1'}}" class="color btn_1" type="primary" size="mini" data-item="{{item}}" bindtap="toCourse">
  28. 赛程信息
  29. </button>
  30. <button wx:if="{{item.status=='1'&&item.match_status=='-1'}}" class="color btn_2" type="primary" size="mini" data-item="{{item}}" bindtap="toRank">
  31. 排名
  32. </button>
  33. <button wx:if="{{user.type=='1'}}" class="color btn_3" type="primary" size="mini" data-item="{{item}}" bindtap="toEdit">
  34. {{item.status === '-1' ? '修改' : '查看'}}
  35. </button>
  36. </view>
  37. </view>
  38. </scroll-view>
  39. </view>
  40. </view>