index.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <view class=" content main">
  2. <view class="one">
  3. <view class="one_1 {{user.type=='0'?'type':''}}">
  4. <input class="input" type="text" bindconfirm="toSearch" confirm-type="search" placeholder-style=' text-align: center;' placeholder="搜索" />
  5. </view>
  6. <view class="one_2" wx:if="{{user.type=='1'}}">
  7. <button class="button" type="primary" size="mini" bindtap="toAdd">添加</button>
  8. </view>
  9. </view>
  10. <view class="two">
  11. <scroll-view class="scroll-view" scroll-y="true" bindscrolltolower="toLower" bindscroll="toScroll">
  12. <view class="list" wx:for="{{list}}" wx:key="index" wx:for-item="item">
  13. <view class="list_1">
  14. <view class="name textOver"> {{item.name||"暂无比赛名称"}} </view>
  15. <view class="color{{item.status}}"> {{item.status_name||'暂无状态'}} </view>
  16. </view>
  17. <view class="other">
  18. <view class="other_1">
  19. 手机号:{{item.phone||'暂无手机号'}}
  20. </view>
  21. <view class="other_1">
  22. 成立时间:{{item.create_time||'暂无成立时间'}}
  23. </view>
  24. <view class="other_1">
  25. 团队人数:{{item.number||'0'}}人
  26. </view>
  27. <view class="other_1 textOver">
  28. 单位地址:{{item.address||'暂无单位地址'}}
  29. </view>
  30. </view>
  31. <view class="button">
  32. <button class="color btn_1" type="primary" size="mini" data-item="{{item}}" bindtap="toView">
  33. 查看详情
  34. </button>
  35. <button wx:if="{{user.type=='1'&&item.status=='1'}}" class="color btn_2" type="primary" size="mini" data-item="{{item}}" bindtap="toExam">
  36. 审核成员
  37. </button>
  38. <button wx:if="{{user.type=='1'&&item.status=='0'}}" class="color btn_3" type="primary" size="mini" data-item="{{item}}" bindtap="toEdit">
  39. 修改
  40. </button>
  41. </view>
  42. </view>
  43. </scroll-view>
  44. </view>
  45. </view>