school.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--pages/school/school.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view class='search-container'>
  6. <view class='search-wrapper'>
  7. <image class='search-label' src='../../image/search.png'></image>
  8. <input type='text' class='search-input' placeholder='请输入学校' value='{{value}}' bindblur='inputCtl' placeholder-class='input-placeholder'></input>
  9. </view>
  10. </view>
  11. <view class='list' wx:if='{{list.length>0}}'>
  12. <view class='li' wx:for='{{list}}' wx:key='{{index}}' data-url="{{isWechat==1?'wechat_addchild':'kids_information'}}" data-method='{{({school: item.schoolname,vipId:vipId,isAddChild,type,childName,parentName,grade,isMain:1,derver,leagueName,libId})}}' bindtap='redirectCtl'>
  13. <view>
  14. <view class='li-title'>{{item.schoolname}}</view>
  15. <view class='li-text'>{{item.schooladd}}</view>
  16. </view>
  17. <view>
  18. <view class='li-text'>{{item.distance}}km</view>
  19. </view>
  20. </view>
  21. <!-- 新增学校 -->
  22. <!-- <view class='li' data-url="{{isWechat==1?'wechat_addchild':'kids_information'}}" data-method='{{({school:search,vipId:vipId,isAddChild,type,childName,parentName,grade,isMain:1,derver})}}' bindtap='redirectCtl' wx:if='{{list.length==0}}'>
  23. <view>
  24. <view class='li-title'>{{search}}</view>
  25. <view class='li-text'></view>
  26. </view>
  27. <view>
  28. <view class='li-text'></view>
  29. </view>
  30. </view> -->
  31. </view>
  32. <template wx:if='{{list.length==0}}' is='nodata-three'></template>
  33. </view>
  34. </view>