index.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
  2. <view slot="info" class="container main">
  3. <view class="zero one">
  4. <view class="one_1">
  5. <input type="text" value="{{searchInfo.name}}" bindconfirm="search" placeholder="请输入关键词" />
  6. </view>
  7. <view class="one_2">
  8. <view class="btn">
  9. <button type="primary" bindtap="toCommon" data-route="race/auto">自动编排</button>
  10. </view>
  11. <view class="btn">
  12. <button type="primary" bindtap="toCommon" data-route="race/add">手动编排</button>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="zero two">
  17. <scroll-view scroll-y="true" class="scroll-view">
  18. <view class="list-scroll-view">
  19. <view class="list" wx:for="{{raceList}}" wx:key="item">
  20. <view class="name">{{item.player_one_name}}<text>pk</text>{{item.player_two_name}}</view>
  21. <view class="other">
  22. <view class="other_1"><text>赛事名称:</text><text>{{item.match_name||'暂无'}}</text></view>
  23. <view class="other_1"><text>比赛场地:</text><text>{{item.ground_name||'暂无'}}</text></view>
  24. <view class="other_1"><text>比赛时间:</text><text>{{item.match_time||'暂无'}}</text></view>
  25. <view class="other_1"><text>比赛状态:</text><text>{{item.status=='0'?'已安排':item.status=='1'?'待开赛':item.status=='2'?'已开赛':item.status=='3'?'已结束':'暂无'}}</text></view>
  26. </view>
  27. <view class="btn">
  28. <button type="primary" size="mini" bindtap="toEdit" data-item="{{item}}">信息维护</button>
  29. <button type="warn" size="mini" bindtap="toDel" data-item="{{item}}">信息删除</button>
  30. </view>
  31. </view>
  32. </view>
  33. </scroll-view>
  34. </view>
  35. </view>
  36. </mobile-main>