1234567891011121314151617181920212223242526272829303132333435 |
- <!--pages/teaching/teaching.wxml-->
- <import src="../../templates/nodata/nodata.wxml" />
- <view class='container'>
- <view class='wrapper'>
- <view class='list' wx:for='{{list}}' wx:key='index' wx:if='{{!isTeaching}}'>
- <view class='list-items'>
- <image class='list-items-img' src='{{item.imgUrl}}'></image>
- <view class='list-items-project'>{{item.subject}}</view>
- </view>
- <view class='list-btn'>
- <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}}'>
- <view class='list-btn-text'>{{vo.bookName}}</view>
- <image src='../../assets/shanchu.png' class='list-btn-close' data-index='{{index}}' data-key='{{key}}' data-index='{{index}}' bindtap='deleteBook'></image>
- </view>
- <view class='list-btn-add' data-method='{{({grade,subject:item.subject})}}' bindtap="selectTeach">+</view>
- </view>
- </view>
- <view wx:if='{{isTeaching}}'>
- <view class="position-input-container">
- <view class="position-input-search">
- <image src="../../assets/search.png"></image>
- <input type="text" placeholder="输入教辅名称" placeholder-class="position-input-placeholder" value="{{bookName}}" bindblur="inputCtl"></input>
- </view>
- </view>
- <view class='list' style='margin-top:100rpx;'>
- <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>
- </view>
- <template is='nodata' wx:if='{{teachList.length==0}}' data='{{...nodata.nodataObj}}'></template>
- <!-- <view class='list' wx:if='{{list.length==0}}'>
- <view class='list-items' data-url='teaching' data-method='{{({bookId:"",bookName,subject,grade,obj})}}' bindtap="redirectCtl">{{bookName}}</view>
- </view> -->
- </view>
- <!-- <view class='list-save' bindtap='save' wx:if='{{isAddChild!=1}}'>保存</view> -->
- </view>
- </view>
|