studyHouse.wxml 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!--pages/studyHouse/studyHouse.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view class="position-input-container" wx:if='{{leagueAuditStatus==0&&!id}}'>
  6. <view class="position-input-search">
  7. <image src="../../image/search.png"></image>
  8. <input type="text" placeholder="输入校区/地址名称" placeholder-class="position-input-placeholder" value="{{schoolName}}" bindblur="inputCtl"></input>
  9. </view>
  10. <!-- <view class="position-input-button" bindtap="cancelInputCtl">取消</view> -->
  11. </view>
  12. <view class="position-list">
  13. <view wx:if='{{id}}'>
  14. <view class="position-li-info">
  15. <image class="position-li-title-icon" src="../../image/jie_bang.png"></image>
  16. <view class="position-li-info-red">已绑定的校区</view>
  17. <image src="../../image/xiao_qu_shen_he_pass.png" class="position-li-title-img"></image>
  18. <view>{{leagueName}}</view>
  19. <view class="position-li-info-school">地址:{{leagueAddress}}</view>
  20. </view>
  21. <!-- <view class="position-li" >
  22. <view class="position-li-row">
  23. <view class="position-li-name">{{leagueName}}</view> -->
  24. <!-- <view class="position-li-btn" wx:if='{{schoolList.length>0}}' bindtap="selectShowModel">换学校</view> -->
  25. <!-- </view>
  26. <view class="position-li-text">地址:{{leagueAddress}}</view>
  27. </view> -->
  28. <view class="position-li-info-btn" data-method='{{({libId:id,unbindLeagueName:leagueName,isCut:1})}}' bindtap='unbind'>解绑</view>
  29. </view>
  30. <view class='refuse' wx:if='{{leagueAuditStatus!=0}}'>
  31. <image src='../../image/xiao_qu_shen_he.png' class='refuse-img' wx:if='{{leagueAuditStatus==1||leagueAuditStatus==2}}'></image>
  32. <view class='refuse-text'>{{leagueNameAudit}}</view>
  33. <view wx:if='{{leagueAuditStatus==1}}'>您已选择绑定此校区,等待校长审核</view>
  34. <view wx:if='{{leagueAuditStatus==2}}' style='color:#FF6465'>您所选择绑定的校区未通过校长的审核</view>
  35. <view class='refuse-btn' wx:if='{{leagueAuditStatus==2}}' bindtap='againChoose'>重新选择</view>
  36. </view>
  37. <view wx:if='{{list.length>0&&!id&&leagueAuditStatus==0}}'>
  38. <view class="position-li-title">
  39. <image class="position-li-title-icon-two" src="../../image/address_red.png"></image>
  40. <text>附近服务校区</text>
  41. </view>
  42. <view class="position-li" wx:for="{{list}}" wx:key="index" data-method='{{({libId: item.id,unbindLeagueName:item.leagueName,isCut:2,index})}}' bindtap='{{id?"":"unbind"}}'>
  43. <view class="position-li-row">
  44. <view class="position-li-name">{{item.leagueName}}</view>
  45. <view class="position-li-text" wx:if='{{item.distance!=-1}}'>距离{{item.distance}}km</view>
  46. </view>
  47. <view class="position-li-text">地址:{{item.leagueAddress}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 换绑提示 -->
  52. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  53. <view class='model' wx:if='{{hiddenModel}}'>
  54. <view wx:if='{{isCut==1}}' class='model-items'>
  55. <view wx:if='{{!isList}}'>是否要解绑此校区?</view>
  56. <view wx:if='{{isList}}'>
  57. <view>如果解绑此校区,您在此校区下的服务</view>
  58. <view wx:for='{{serviceList}}' wx:key='index' style='color:#6085EA;font-size:24rpx;'>
  59. <text wx:if='{{item.type!=5}}'>{{item.beginDate}}-{{item.endDate}}({{item.name}})</text>
  60. <text wx:if='{{item.type==5}}'>{{item.name}}</text>
  61. </view>
  62. <view>都将失效,是否还要解绑。</view>
  63. </view>
  64. <view class='model-list'>
  65. <view bindtap='unbindCtl'>是</view>
  66. <view class='model-list-sure' bindtap='allShowModel'>否</view>
  67. </view>
  68. </view>
  69. <view wx:if='{{isCut==2}}'>
  70. <view class='model-text' >
  71. <text>是否要绑定到</text>
  72. <view>{{unbindLeagueName}}</view>
  73. </view>
  74. <view class='model-list'>
  75. <view bindtap='bindVipLib'>是</view>
  76. <view class='model-list-sure' bindtap='allShowModel'>否</view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 选择学校列表 -->
  81. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{schoolModel}}'></view>
  82. <view class='school-model' wx:if='{{schoolModel}}'>
  83. <view class='school-items'>
  84. <view class='school-items-title'>
  85. <view>请选择学校</view>
  86. <view style='color:#FF6465;font-size:30rpx' bindtap='changeSchool'>确定</view>
  87. </view>
  88. <view class='school-items-name {{index==schoolIdx?"school-active":""}}' wx:for='{{schoolList}}' wx:key='index' data-idx='{{index}}' bindtap='selectSchool'>
  89. {{item.schoolName}}
  90. </view>
  91. </view>
  92. </view>
  93. <template wx:if='{{list.length==0&&leagueAuditStatus==0}}' is='nodata-three'></template>
  94. </view>
  95. </view>