12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!--president/pages/good_books/good_books.wxml-->
- <import src="../../../templates/nodata/nodata.wxml" />
- <import src="../../../templates/footer/footer.wxml" />
- <import src="../../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper pb' wx:else>
- <view class='nav nav-two'>
- <view class='nav-item nav-item2' wx:for='{{navList}}' wx:key='index' data-index='{{index}}' bindtap='selectNavCtl'>
- <view class='nav-item-row {{navIndex == index ? "nav-item-row-active2" : ""}}'>
- <view class='nav-item-text {{navIndex == index ? "nav-item-text-active2" : ""}}'>{{item.text}}</view>
- </view>
- </view>
- </view>
- <view class='header {{navList[navIndex].title.length > 0 ? "header-active" : ""}}'>
- <view class='search-container'>
- <view class='search-wrapper'>
- <image class='search-icon' src='../../../assets/search.png'></image>
- <input class='search-input' type='text' value='{{navList[navIndex].title}}' placeholder='如:夏洛特的烦恼' placeholder-class='search-placeholder' bindinput='inputSearchCtl'></input>
- <image class='search-icon' wx:if='{{navList[navIndex].title.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
- </view>
- <view class='search-button {{navList[navIndex].title.length > 0 ? "search-button-active" : ""}}' bindtap='submitSearchCtl'>搜索</view>
- </view>
- </view>
- <view class='items'>
- <view class='item' bindtap='toggleItemCtl'>
- <text class='item-text'>{{navList[navIndex].items[navList[navIndex].itemIndex]}}</text>
- <image class='item-icon {{isShow ? "item-icon-active" : ""}}' src='../../../assets/arrow_blue.png'></image>
- </view>
- <view class='items-modal' wx:if='{{navList[navIndex].isShow}}' catchtouchmove='true'>
- <view class='items-modal-list'>
- <view class='items-modal-li' wx:for='{{navList[navIndex].items}}' wx:key='index' data-index='{{index}}' bindtap='selectItemCtl'>
- <view class='items-modal-text'>{{item}}</view>
- <image class='items-modal-icon' wx:if='{{navList[navIndex].itemIndex == index}}' src='../../../assets/true_blue.png'></image>
- </view>
- </view>
- </view>
- </view>
- <view class='list'>
- <view class='li' wx:for='{{navList[navIndex].list}}' wx:key='index' wx:if='{{navList[navIndex].list.length>0}}'>
- <view class='book-container'>
- <view class='book-wrapper'>
- <view class='book-images'>
- <image class='book-image' lazy-load='true' style="left:{{ key * 15 }}rpx; z-index:{{ key * 30 }}" mode='aspectFill' src='{{item.imagesList ? baseImgUrl + val + thumbnail : "../../../assets/default_headicon.png"}}' wx:if='{{navIndex == 0}}' wx:for="{{item.imagesList}}" wx:key='key' wx:for-item='val' wx:for-index='key' data-images='{{item.imagesList}}' data-baseurl='{{baseImgUrl}}' bindtap='viewImage'></image>
- <image class='book-image' lazy-load='true' mode='aspectFill' wx:if='{{navIndex==1}}' src='{{item.local_image ? baseImgUrl + item.local_image + thumbnail : "../../../assets/default_headicon.png"}}' data-images='{{([item.local_image])}}' data-baseurl='{{baseImgUrl}}' bindtap='viewImage'></image>
- </view>
- <view class='book-content'>
- <view class='book-title'>{{navIndex == 1 ? item.title : item.theme}}</view>
- <view class='book-text'>{{navIndex == 1 ? '归类:' + item.theme : '共计:' + item.total + '本'}}</view>
- <view class='book-text'>
- <text>热度:</text>
- <image class='book-icon-two' wx:for='{{3}}' wx:key='index' wx:for-item='val' wx:for-index='index' src="{{item.heat - 1 >= val ? '../../../assets/heart_red.png' : '../../../assets/heart2_gray.png' }}"></image>
- </view>
- </view>
- <view class='book-footer-two' wx:if='{{navIndex == 1}}'>
- <view class='book-footer-item' data-index='{{index}}' bindtap='getBooksCtl'>
- <text class='book-button-fill-blue'>调入</text>
- </view>
- </view>
- <view class='book-footer-two' wx:else>
- <view class='book-footer-item-two' data-url='president/pages/part_call_in/part_call_in' data-paras='{{({status: 1, theme: item.theme, childTheme: item.child_theme})}}' data-zindex='3' bindtap='navigateTo'>
- <text class='book-button-fill-blue'>全部调入</text>
- </view>
- <view class='book-footer-item-two' data-url='president/pages/part_call_in/part_call_in' data-paras='{{({status: 2, theme: item.theme, childTheme: item.child_theme})}}' data-zindex='3' bindtap='navigateTo'>
- <text class='book-button-blue'>部分调入</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{navList[navIndex].list.length==0}}'></template>
- </view>
- </view>
- <template is='footer' data='{{...footerData}}'></template>
- </view>
|