address.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
  2. <view slot="info" class="container main">
  3. <view class="zero one">
  4. <view class="one_1">
  5. <input type="text" value="{{searchInfo.name}}" bindconfirm="search" placeholder="请输入场地名称" />
  6. </view>
  7. <view class="one_2">
  8. <button type="primary" bindtap="toAdd">添加</button>
  9. </view>
  10. </view>
  11. <view class="zero two">
  12. <scroll-view scroll-y="true" class="scroll-view">
  13. <view class="list-scroll-view">
  14. <view class="list" wx:for="{{list}}" wx:key="item">
  15. <view class="name"> {{item.name}}</view>
  16. <view class="other">
  17. <view class="other_1">
  18. <text>比赛场地名称:</text>
  19. <text>{{item.name||'暂无'}}</text>
  20. </view>
  21. <view class="other_1">
  22. <text>裁判:</text>
  23. <text>{{item.referee_name||'暂无'}}</text>
  24. </view>
  25. <view class="other_1">
  26. <text>是否使用:</text>
  27. <text>{{item.is_use=='0'?'启用':'禁用'}}</text>
  28. </view>
  29. </view>
  30. <view class="btn">
  31. <button type="primary" bindtap="toEdit" data-id="{{item._id}}" size="mini">信息维护</button>
  32. <button size="mini" type="warn" bindtap="toDel" data-id="{{item._id}}">信息删除</button>
  33. </view>
  34. </view>
  35. </view>
  36. </scroll-view>
  37. </view>
  38. </view>
  39. </mobile-main>