index.wxml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  2. <view slot="info" class="container main">
  3. <view class="zero one">
  4. <e-tabs tabs="{{tabs}}" bind:tabsChange="tabsChange"></e-tabs>
  5. </view>
  6. <view class="zero two">
  7. <scroll-view scroll-y="true" class="scroll-view">
  8. <view class="list-scroll-view">
  9. <view wx:if="{{tabs.active=='a'}}" class="a">
  10. <view class="list" wx:for="{{list}}" wx:key="item">
  11. <view class="name">{{item.match_time}}</view>
  12. <view class="other">
  13. <view class="other_1">
  14. <text>赛事名称:</text>
  15. <text>{{item.match_name}}</text>
  16. </view>
  17. <view class="other_1">
  18. <text>赛事组别:</text>
  19. <text>{{item.grouping_name}}</text>
  20. </view>
  21. <view class="other_1">
  22. <text>组内项目:</text>
  23. <text>{{item.project_name}}</text>
  24. </view>
  25. <view class="other_1">
  26. <text>赛事场地:</text>
  27. <text>{{item.ground_name}}</text>
  28. </view>
  29. <view class="other_1">
  30. <text>比赛状态:</text>
  31. <text>{{item.status=='0'?'已安排':item.status=='1'?'待开赛':item.status=='2'?'已开赛':item.status=='3'?'已结束':'暂无'}}</text>
  32. </view>
  33. </view>
  34. <view class="btn">
  35. <button type="primary" size="mini" bindtap="toView" data-item="{{item}}">详细信息</button>
  36. </view>
  37. </view>
  38. </view>
  39. <view wx:elif="{{tabs.active=='b'}}" class="a b">
  40. <view class="list" wx:for="{{list}}" wx:key="item">
  41. <view class="name">{{item.match_time}}</view>
  42. <view class="other">
  43. <view class="other_1">
  44. <text>赛事名称:</text>
  45. <text>{{item.match_name}}</text>
  46. </view>
  47. <view class="other_1">
  48. <text>赛事组别:</text>
  49. <text>{{item.grouping_name}}</text>
  50. </view>
  51. <view class="other_1">
  52. <text>组内项目:</text>
  53. <text>{{item.project_name}}</text>
  54. </view>
  55. <view class="other_1">
  56. <text>赛事场地:</text>
  57. <text>{{item.ground_name}}</text>
  58. </view>
  59. <view class="other_1">
  60. <text>比赛状态:</text>
  61. <text>{{item.status=='0'?'已安排':item.status=='1'?'待开赛':item.status=='2'?'已开赛':item.status=='3'?'已结束':'暂无'}}</text>
  62. </view>
  63. </view>
  64. <view class="btn">
  65. <button type="primary" size="mini" bindtap="toView" data-item="{{item}}">详细信息</button>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </scroll-view>
  71. </view>
  72. </view>
  73. </mobile-main>
  74. <e-dialog dialog="{{dialog}}" bind:toClose="toClose">
  75. <view slot="info">
  76. <view class="dialog_one" wx:if="{{dialog.type=='1'}}">
  77. <view class="name">{{item.match_time}}</view>
  78. <view class="one_1">
  79. <text class="text">赛事名称:</text>
  80. <text class="text1">{{info.match_name||'暂无'}}</text>
  81. </view>
  82. <view class="one_1">
  83. <text class="text">比赛时间:</text>
  84. <text class="text1">{{info.match_time||'暂无'}}</text>
  85. </view>
  86. <view class="one_1">
  87. <text class="text">赛事组别:</text>
  88. <text class="text1">{{info.grouping_name||'暂无'}}</text>
  89. </view>
  90. <view class="one_1">
  91. <text class="text">组内项目:</text>
  92. <text class="text1">{{info.project_name||'暂无'}}</text>
  93. </view>
  94. <view class="one_1">
  95. <text class="text">赛事场地:</text>
  96. <text class="text1">{{info.ground_name||'暂无'}}</text>
  97. </view>
  98. <view class="one_1">
  99. <text class="text">比赛状态:</text>
  100. <text class="text1">{{info.status=='0'?'已安排':info.status=='1'?'待开赛':info.status=='2'?'已开赛':info.status=='3'?'已结束':'暂无'}}</text>
  101. </view>
  102. </view>
  103. </view>
  104. </e-dialog>