12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <import src="../../../templates/nodata/nodata.wxml" />
- <import src="../../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper' wx:else>
- <view class='li'>
- <block wx:if='{{isClass}}'>
- <view class='li-book'>
- <view class='li-book-title'>主题</view>
- <view class='li-book-items'>
- <view class='li-book-item' wx:for='{{themeList}}' wx:key='index' data-type='{{1}}' data-code='{{item.code}}' data-theme='{{item.name}}' wx:if='{{index!=0}}' bindtap='selectTheme'>{{item.name}}:{{item.total?item.total:0}}本</view>
- </view>
- </view>
- <view class='li-book'>
- <view class='li-book-title'>年段</view>
- <view class='li-book-items'>
- <view class='li-book-item' wx:for='{{gradeList}}' data-type='{{0}}' wx:if='{{index!=0}}' data-theme='{{item.grade}}' wx:key='index' bindtap='selectTheme'>{{item.grade}}:{{item.total?item.total:0}}本</view>
- </view>
- </view>
- </block>
- <block wx:if='{{!isClass}}'>
- <view class='li-book'>
- <view class='li-book-title'>{{theme}}</view>
-
- <scroll-view scroll-x="true" style='width:100%;'>
- <view class='li-theme'>
- <view wx:if='{{!isTheme}}' wx:for='{{themeList}}' wx:key='index' data-index='{{index}}' data-code='{{item.code}}' class='li-theme-item {{themeIdx==index?"li-theme-active":""}}' bindtap='selectOne'>{{item.name}}</view>
- <view wx:if='{{isTheme}}' wx:for='{{gradeList}}' wx:key='index' data-theme='{{item.gradeCode}}' data-index='{{index}}' class='li-theme-item {{themeIdx==index?"li-theme-active":""}}' bindtap='selectTwo'>{{item.grade}}</view>
- </view>
- </scroll-view>
- <view class='list-items'>
- <view class='list-item' wx:for='{{list}}' wx:key='index' data-url='parents/pages/book_detail/book_detail' data-zindex='3' data-paras='{{({bookInfoId: item.bookInfoId})}}' bindtap='navigateTo'>
- <view class='list-item-img'>
- <image src='{{item.localImage?baseImgUrl+item.localImage:"../../../assets/banner1.png"}}' class='list-item-img-items'></image>
- <view class="list-item-booksize" wx:if='{{item.bookSize}}'>共{{item.bookSize}}本</view>
- </view>
- <view class='list-item-content'>
- <view>{{item.title}}</view>
- <view class='list-item-content-tips'>{{item.summary}}</view>
- <view class='list-item-content-label'>
- <view class='list-item-content-label-one' wx:if='{{item.themeName}}'>{{item.themeName}}</view>
- <view class='list-item-content-label-two' wx:if='{{item.grade}}'>推荐{{item.grade}}</view>
- </view>
- <view>
- <image src='../../../assets/fire.png' class='list-item-content-fire' wx:for="{{item.heat}}" wx:key='index'></image>
- </view>
- <view class="list-item-infoList" wx:if='{{item.infoList.length>0}}'>
- <view class="list-item-infoLists"wx:for='{{item.infoList}}' wx:key='key' wx:for-item='val' wx:for-key='{{key}}'>{{val.childName}}正在借阅{{val.borrowNum}}本,{{val.borrowDay}}天</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </block>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{themeList.length==0&&gradeList.length==0}}'></template>
- <view class='footer-box'>
- <block>
- <view class='li-circles'>
- <text class='li-text-gray'>在馆书籍: {{booksSize?booksSize:0}}本</text>
- </view>
- <view class='footer-box-btn' data-url='president/pages/book_entry/book_entry' bindtap='navigateTo'>+图书录入</view>
- </block>
- </view>
- </view>
- </view>
- </view>
|