index.wxml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
  2. <view slot="info" class="main" style="height:{{infoHeight}}px;">
  3. <view class="one">
  4. <image src="{{bg_1}}"></image>
  5. </view>
  6. <view class="two">
  7. <view class="two_1" bindtap="toCommon" data-route="addmatch">
  8. <image src="{{bg_2}}"></image>
  9. <view><text>创建比赛</text></view>
  10. </view>
  11. <view class="two_2">
  12. <view class="two_2_1" bindtap="toCommon" data-route="teamrank">
  13. <image class="image" src="{{bg_3}}"></image>
  14. <view class="txt">
  15. <text>团队排名</text>
  16. <image src="{{pm_1}}"></image>
  17. </view>
  18. </view>
  19. <view class="two_2_1" bindtap="toCommon" data-route="teamexam">
  20. <image class="image" src="{{bg_3}}"></image>
  21. <view class="txt">
  22. <text>团队审批</text>
  23. <image src="{{sp_1}}"></image>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="two_3">
  28. <view class="swiper-tab">
  29. <view class="swiper-tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab">进行中
  30. <view class="border" wx:if="{{currentTab=='0'}}">—</view>
  31. </view>
  32. <view class="swiper-tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab">未开始
  33. <view class="border" wx:if="{{currentTab=='1'}}">—</view>
  34. </view>
  35. <view class="swiper-tab-item {{currentTab==2?'active':''}}" data-current="2" bindtap="clickTab">已结束
  36. <view class="border" wx:if="{{currentTab=='2'}}">—</view>
  37. </view>
  38. </view>
  39. <swiper current="{{currentTab}}" class="swiper" style="height:{{infoHeight-312}}px;" bindchange="bindchange">
  40. <swiper-item class="swiper-items">
  41. <scroll-view scroll-x="false" scroll-y="true" class='scroll-views'>
  42. <view class="list" wx:for="{{list}}" wx:key="item">
  43. <view class="list_1 textOver" bindtap="toView" data-id="{{item._id}}">
  44. <text>{{item.name}}</text>
  45. <text class="color{{item.status}}">{{item.status=='0'?'未开始':item.status=='1'?'报名中':item.status=='2'?'待比赛':item.status=='3'?'进行中':'已结束'}}</text>
  46. </view>
  47. <view class="list_2 textOver">{{item.single_time}}</view>
  48. <view class="list_3 textOver">{{item.address}}</view>
  49. </view>
  50. </scroll-view>
  51. </swiper-item>
  52. <swiper-item class="swiper-items">
  53. <scroll-view scroll-x="false" scroll-y="true" class='scroll-views'>
  54. <view class="list" wx:for="{{list}}" wx:key="item">
  55. <view class="list_1 textOver" bindtap="toView" data-id="{{item._id}}">
  56. <text>{{item.name}}</text>
  57. <text class="color{{item.status}}">{{item.status=='0'?'未开始':item.status=='1'?'报名中':item.status=='2'?'待比赛':item.status=='3'?'进行中':'已结束'}}</text>
  58. </view>
  59. <view class="list_2 textOver">{{item.single_time}}</view>
  60. <view class="list_3 textOver">{{item.address}}</view>
  61. </view>
  62. </scroll-view>
  63. </swiper-item>
  64. <swiper-item class="swiper-items">
  65. <scroll-view scroll-x="false" scroll-y="true" class='scroll-views'>
  66. <view class="list" wx:for="{{list}}" wx:key="item">
  67. <view class="list_1 textOver" bindtap="toView" data-id="{{item._id}}">
  68. <text>{{item.name}}</text>
  69. <text class="color{{item.status}}">{{item.status=='0'?'未开始':item.status=='1'?'报名中':item.status=='2'?'待比赛':item.status=='3'?'进行中':'已结束'}}</text>
  70. </view>
  71. <view class="list_2 textOver">{{item.single_time}}</view>
  72. <view class="list_3 textOver">{{item.address}}</view>
  73. </view>
  74. </scroll-view>
  75. </swiper-item>
  76. </swiper>
  77. </view>
  78. </view>
  79. </view>
  80. </mobile-main>