index.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  2. <view slot="info" class="main" style="height:{{infoHeight}}px;">
  3. <view class="one">
  4. <van-tabs active="{{ active }}">
  5. <van-tab title="全部团队">
  6. <view>
  7. <view class="list" wx:key="item" wx:for="{{teamlist}}" >
  8. <view class="two">
  9. <view class="left" bindtap='shens' data-id="{{item._id}}">
  10. <image class="head" src="{{item.logo[0].url}}"></image>
  11. <text class="group" bindtap="tiao">{{item.name}}</text>
  12. <text class="person">共{{item.members.length||0}}人</text>
  13. <view class="fou"><text>创建人:{{item.create_user}}</text></view>
  14. <view class="time">
  15. <text class="date">{{item.create_time}}创建</text>
  16. <text class="shenhe">{{item.status=='1'?'已通过':item.status=='0'?'待通过':'已驳回'}}</text>
  17. </view>
  18. </view>
  19. <view class="right">
  20. <button class="button_1" wx:if="{{item.status=='0'}}" data-id="{{item._id}}" data-status="1" bindtap="toCheck">通过</button>
  21. <button class="button_2" wx:if="{{item.status=='0'}}" data-id="{{item._id}}" data-status="-1" bindtap="toCheck">驳回</button>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </van-tab>
  27. <van-tab title="参赛团队">
  28. <view>
  29. <view class="list" wx:key="item" wx:for="{{compete}}">
  30. <view class="two">
  31. <view class="left">
  32. <image class="head" src="{{item.logo[0].url}}"></image>
  33. <text class="group" data-id="{{item._id}}" data-name="{{item._id}}" data-route="compete" bindtap='shen'>{{item.team_name}}</text>
  34. <text class="person">共{{item.match_num}}人</text>
  35. <view class="fou"><text>创建人:{{item.create_user}}</text></view>
  36. <view class="time"><text class="date">{{item.create_time}}创建</text></view>
  37. </view>
  38. <view class="right">
  39. <button class="button" wx:if="{{item.status=='0'}}" data-id="{{item._id}}" bindtap='cantong'>通过</button>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </van-tab>
  45. <van-tab title="解散团队">
  46. <view>
  47. <view class="list" wx:key="item" wx:for="{{dissolution}}">
  48. <view class="two">
  49. <view class="left">
  50. <text class="group" data-id="{{item._id}}" data-name="{{item.team_id}}" bindtap='shen' data-route="detail">{{item.team_name}}</text>
  51. <view class="fou"><text>创建人:{{item.create_user}}</text></view>
  52. <view class="time"><text class="date">申请时间:{{item.apply_time}}</text></view>
  53. <view class="time"><text class="date">解散团队原因:{{item.resaon}}</text></view>
  54. </view>
  55. <view class="right">
  56. <button class="buttons" wx:if="{{item.status=='0'}}" data-id="{{item._id}}" data-teamid="{{item.team_id}}" bindtap='out'>通过</button>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </van-tab>
  62. </van-tabs>
  63. </view>
  64. </view>
  65. </mobile-main>