index.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
  2. <view slot="info" class="container main">
  3. <view class="zero one">
  4. <input type="text" value="{{searchInfo.name}}" bindconfirm="search" placeholder="请输入比赛名称" />
  5. <button bindtap="test">测试</button>
  6. </view>
  7. <view class="zero two">
  8. <scroll-view scroll-y="true" class="scroll-view">
  9. <view class="list-scroll-view">
  10. <view class="list" wx:for="{{list}}" wx:key="item" bindtap="toView" data-item="{{item}}">
  11. <view class="list_1">
  12. <image class="image" src="{{item.logo&&item.logo.length>0?item.logo[0].url:''}}"></image>
  13. </view>
  14. <view class="list_2">
  15. <view class="name">
  16. <text class="status">{{item.status=='0'?'报名中':'暂无'}}</text>
  17. <text>{{item.name}}</text>
  18. </view>
  19. <view class="other">
  20. <view class="other_1">
  21. <text>报名时间:</text>
  22. <text>{{item.sign_end_time}}</text>
  23. </view>
  24. <view class="other_1">
  25. <text>比赛时间:</text>
  26. <text>{{item.start_time}}-{{item.end_time}}</text>
  27. </view>
  28. <view class="other_1">
  29. <text>比赛地点:</text>
  30. <text>{{item.address}}</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </scroll-view>
  37. </view>
  38. <view class="suspension" wx:if="{{user.type=='0'}}">
  39. <text class="mymatch" bindtap="toCommon" data-route="/pages/usermysign/index">我的报名</text>
  40. </view>
  41. </view>
  42. </mobile-main>