school.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  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='../../assets/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="{{isDetail==1?'pages/change_information/change_information':'pages/kids_information/kids_information'}}" data-paras='{{({school: item.schoolname,classId,type,childName,parentName,grade,derver,leagueName,phone,className,vipId})}}' bindtap="redirectTo">
  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' 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 is='nodata' wx:if='{{list.length==0}}' data='{{...nodata[0]}}'></template>
  33. </view>
  34. </view>