position.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--templates/position/position.wxml-->
  2. <template name='position'>
  3. <view class="position-list">
  4. <view class="position-li-title">
  5. <image class="position-li-title-icon" src="../../image/position_red.png"></image>
  6. <text>定位地址</text>
  7. </view>
  8. <view class="position-li" data-index="0" bindtap="hidePositionModel">
  9. <view class="position-li-row">
  10. <view class="position-li-name">{{list[0].league_name}}</view>
  11. <view class="position-li-text">距离{{list[0].juli}}km</view>
  12. </view>
  13. <view class="position-li-text">地址:{{list[0].league_address}}</view>
  14. </view>
  15. <view class="position-li-title">
  16. <image class="position-li-title-icon-two" src="../../image/address_red.png"></image>
  17. <text>附近地址</text>
  18. </view>
  19. <view class="position-li" wx:for="{{list}}" wx:key="{{index}}" data-index="{{index}}" bindtap="hidePositionModel">
  20. <view class="position-li-row">
  21. <view class="position-li-name">{{item.league_name}}</view>
  22. <view class="position-li-text">距离{{item.juli}}km</view>
  23. </view>
  24. <view class="position-li-text">地址:{{item.league_address}}</view>
  25. </view>
  26. </view>
  27. </template>
  28. <template name='position_school'>
  29. <view class="position-input-container">
  30. <view class="position-input-search">
  31. <image src="../../image/search.png"></image>
  32. <input type="text" placeholder="输入学校名称" placeholder-class="position-input-placeholder" value="{{schoolName}}" bindinput="inputCtl" bindblur="inputBlurCtl"></input>
  33. </view>
  34. <view class="position-input-button" bindtap="cancelInputCtl">取消</view>
  35. </view>
  36. <view class="position-list-nodata" wx:if="{{list.length == 0}}">
  37. <image src="../../image/nores.png"></image>
  38. <text>搜索无结果</text>
  39. </view>
  40. <view class="position-list">
  41. <view class="position-li-title">
  42. <image class="position-li-title-icon" src="../../image/position.png"></image>
  43. <text>定位地址</text>
  44. </view>
  45. <view class="position-li" data-index="0" bindtap="hideSchoolPositionModel">
  46. <view class="position-li-row">
  47. <view class="position-li-name">{{list[0].name}}</view>
  48. <view class="position-li-text">距离{{list[0].juli}}km</view>
  49. </view>
  50. <view class="position-li-text">地址:{{list[0].school_address}}</view>
  51. </view>
  52. <view class="position-li-title">
  53. <image class="position-li-title-icon-two" src="../../image/address.png"></image>
  54. <text>附近地址</text>
  55. </view>
  56. <view class="position-li" wx:for="{{list}}" wx:key="{{index}}" data-index="{{index}}" bindtap="hideSchoolPositionModel">
  57. <view class="position-li-row">
  58. <view class="position-li-name">{{item.name}}</view>
  59. <view class="position-li-text">距离{{item.juli}}km</view>
  60. </view>
  61. <view class="position-li-text">地址:{{item.school_address}}</view>
  62. </view>
  63. </view>
  64. </template>