1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <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}}</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}}' wx:key='index' bindtap='selectTheme'>{{item}}</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}}' data-index='{{index}}' class='li-theme-item {{themeIdx==index?"li-theme-active":""}}' bindtap='selectTwo'>{{item}}</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>
- <view class='list-item-content'>
- <view class='list-item-content-title'>{{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>
- </view>
- </view>
- </view>
- </block>
- <template is='nodata' data='{{...navList[navIndex]["nodataArray"]}}' wx:if='{{list.length==0}}'></template>
- </view>
- </view>
- </view>
|