teaching.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--pages/teaching/teaching.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view class='list' wx:for='{{list}}' wx:key='index' wx:if='{{!isTeaching}}'>
  6. <view class='list-items'>
  7. <image class='list-items-img' src='{{item.imgUrl}}'></image>
  8. <view class='list-items-project'>{{item.subject}}</view>
  9. </view>
  10. <view class='list-btn'>
  11. <view class='list-btn-items' wx:for='{{item.bookList}}' wx:for-item='vo' wx:for-index='key' wx:key='key' wx:if='{{item.bookList.length>0}}'>
  12. <view class='list-btn-text'>{{vo.bookName}}</view>
  13. <image src='../../assets/shanchu.png' class='list-btn-close' data-index='{{index}}' data-key='{{key}}' data-index='{{index}}' bindtap='deleteBook'></image>
  14. </view>
  15. <view class='list-btn-add' data-method='{{({grade,subject:item.subject})}}' bindtap="selectTeach">+</view>
  16. </view>
  17. </view>
  18. <view wx:if='{{isTeaching}}'>
  19. <view class="position-input-container">
  20. <view class="position-input-search">
  21. <image src="../../assets/search.png"></image>
  22. <input type="text" placeholder="输入教辅名称" placeholder-class="position-input-placeholder" value="{{bookName}}" bindblur="inputCtl"></input>
  23. </view>
  24. </view>
  25. <view class='list' style='margin-top:100rpx;'>
  26. <view class='list-items' wx:for='{{teachList}}' wx:key='index' data-method='{{({bookId:item.bookId,bookName:item.bookName,subject:item.subject,grade})}}' bindtap="getTeaching" wx:if='{{teachList.length>0}}'>{{item.bookName}}</view>
  27. </view>
  28. <template is='nodata' wx:if='{{teachList.length==0}}' data='{{...nodata.nodataObj}}'></template>
  29. <!-- <view class='list' wx:if='{{list.length==0}}'>
  30. <view class='list-items' data-url='teaching' data-method='{{({bookId:"",bookName,subject,grade,obj})}}' bindtap="redirectCtl">{{bookName}}</view>
  31. </view> -->
  32. </view>
  33. <!-- <view class='list-save' bindtap='save' wx:if='{{isAddChild!=1}}'>保存</view> -->
  34. </view>
  35. </view>