19 changed files with 630 additions and 199 deletions
After Width: | Height: | Size: 77 KiB |
@ -1,48 +1,84 @@ |
|||||||
<view class="page"> |
<view class="page"> |
||||||
<view class="nav"> |
<view class="nav"> |
||||||
<view class="nav-item active">全部</view> |
<view class="nav-item {{!CateId && 'active'}}" bind:tap="handleCate">全部</view> |
||||||
<view class="nav-item">引用指南与专家共识</view> |
<view |
||||||
<view class="nav-item">引用指南与专家共识</view> |
class="nav-item {{CateId=== item.Id &&'active'}}" |
||||||
<view class="nav-item">引用指南与专家共识</view> |
wx:for="{{cateList}}" |
||||||
<view class="nav-item">引用指南与专家共识</view> |
wx:key="Id" |
||||||
<view class="nav-item">引用指南与专家共识</view> |
bind:tap="handleCate" |
||||||
<view class="nav-item">引用指南与专家共识</view> |
data-index="{{index}}" |
||||||
<view class="nav-item">引用指南与专家共识</view> |
> |
||||||
</view> |
{{item.CateName}} |
||||||
<view class="types"> |
</view> |
||||||
<view class="type active">全部</view> |
</view> |
||||||
<view class="type">口腔</view> |
<view class="types" wx:if="{{CateId && cateSecondList.length}}"> |
||||||
<view class="type">口腔</view> |
<view class="type {{!CateSecondId && 'active'}}" bind:tap="handleSecondCate">全部</view> |
||||||
<view class="type">口腔</view> |
<view |
||||||
<view class="type">口腔</view> |
class="type {{CateSecondId=== item.Id && 'active'}}" |
||||||
<view class="type">口腔</view> |
wx:for="{{cateSecondList}}" |
||||||
<view class="type">口腔</view> |
wx:key="Id" |
||||||
<view class="type">口腔</view> |
bind:tap="handleSecondCate" |
||||||
<view class="type">口腔</view> |
data-index="{{index}}" |
||||||
<view class="type">口腔</view> |
> |
||||||
<view class="type">口腔</view> |
{{item.CateName}} |
||||||
<view class="type">口腔</view> |
</view> |
||||||
</view> |
</view> |
||||||
<view class="card" bind:tap="handleDetail"> |
<view class="card" wx:for="{{list}}" wx:key="Id" data-id="{{item.Id}}" bind:tap="handleDetail"> |
||||||
<image class="photo" mode="aspectFill" src="/images/place.png"></image> |
<image class="photo" mode="aspectFill" src="{{item.CoverUrl}}"></image> |
||||||
<view class="c-container"> |
<view class="c-container"> |
||||||
<view class="title">骨密度是骨健康的关键指标,我们检查对吗?</view> |
<view class="title">{{item.BookName}}</view> |
||||||
<view class="type">健康管理/口腔</view> |
<view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view> |
||||||
<view class="stat"> |
<view class="stat"> |
||||||
<view class="s-item"> |
<view class="s-item"> |
||||||
<image class="icon" src="/images/icon-eye.png"></image> |
<image class="icon" src="/images/icon-eye.png"></image> |
||||||
123 |
{{item.BrowseNum}} |
||||||
</view> |
</view> |
||||||
<view class="s-item active"> |
<view |
||||||
|
class="s-item active" |
||||||
|
wx:if="{{item.IsCollect === '1'}}" |
||||||
|
catch:tap="handleUnCollect" |
||||||
|
data-index="{{index}}" |
||||||
|
data-list="list" |
||||||
|
> |
||||||
<image class="icon" src="/images/icon-collection-active.png"></image> |
<image class="icon" src="/images/icon-collection-active.png"></image> |
||||||
已收藏 |
已收藏 |
||||||
</view> |
</view> |
||||||
|
<view class="s-item" wx:else catch:tap="handleCollect" data-index="{{index}}" data-list="list"> |
||||||
|
<image class="icon" src="/images/icon-collection.png"></image> |
||||||
|
收藏 |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<pagination wx:if="{{!CateId && !CateSecondId}}" pagination="{{pagination}}"></pagination> |
||||||
|
<block wx:elif="{{pagination.page >= pagination.pages}}"> |
||||||
|
<view class="card" wx:for="{{recommendList}}" wx:key="Id" bind:tap="handleDetail" data-id="{{item.Id}}"> |
||||||
|
<image class="photo" mode="aspectFill" src="{{item.CoverUrl}}"></image> |
||||||
|
<view class="c-container"> |
||||||
|
<view class="title">{{item.BookName}}</view> |
||||||
|
<view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view> |
||||||
|
<view class="stat"> |
||||||
<view class="s-item"> |
<view class="s-item"> |
||||||
|
<image class="icon" src="/images/icon-eye.png"></image> |
||||||
|
{{item.BrowseNum}} |
||||||
|
</view> |
||||||
|
<view |
||||||
|
class="s-item active" |
||||||
|
wx:if="{{item.IsCollect === '1'}}" |
||||||
|
catch:tap="handleUnCollect" |
||||||
|
data-index="{{index}}" |
||||||
|
data-list="recommendList" |
||||||
|
> |
||||||
|
<image class="icon" src="/images/icon-collection-active.png"></image> |
||||||
|
已收藏 |
||||||
|
</view> |
||||||
|
<view class="s-item" wx:else catch:tap="handleCollect" data-index="{{index}}" data-list="recommendList"> |
||||||
<image class="icon" src="/images/icon-collection.png"></image> |
<image class="icon" src="/images/icon-collection.png"></image> |
||||||
收藏 |
收藏 |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<pagination pagination="{{pagination}}"></pagination> |
<pagination pagination="{{recommendPagination}}"></pagination> |
||||||
|
</block> |
||||||
</view> |
</view> |
||||||
|
Loading…
Reference in new issue