3 changed files with 36 additions and 60 deletions
@ -1,15 +1,25 @@ |
|||||
<!--pages/user/common/myFavorite/index.wxml--> |
<!--pages/user/common/myFavorite/index.wxml--> |
||||
<view class="container"> |
<view class="container"> |
||||
<block wx:for="{{list}}" wx:key="{{index}}"> |
<block wx:for="{{list}}" wx:key="{{index}}"> |
||||
<cell |
<block wx:if="{{item.type === '1'}}"> |
||||
topicId="{{item.topicId}}" |
<artice-cell |
||||
title="{{item.title}}" |
cId="{{item.topicId}}" |
||||
topicImg="{{item.topicImg}}" |
title="{{item.title}}" |
||||
userName="{{item.userName}}" |
time="{{item.time}}" |
||||
time="{{item.time}}" |
bind:clickListItem="clickListItem"/> |
||||
commentNum="{{item.commentNum}}" |
</block> |
||||
type="{{item.type}}" |
<block wx:else> |
||||
userIcon="{{item.userIcon}}" |
<cell |
||||
bind:clickListItem="clickListItem"/> |
topicId="{{item.topicId}}" |
||||
|
title="{{item.title}}" |
||||
|
topicImg="{{item.topicImg}}" |
||||
|
userName="{{item.userName}}" |
||||
|
time="{{item.time}}" |
||||
|
commentNum="{{item.commentNum}}" |
||||
|
type="{{item.type}}" |
||||
|
userIcon="{{item.userIcon}}" |
||||
|
bind:clickListItem="clickListItem"/> |
||||
|
</block> |
||||
|
|
||||
</block> |
</block> |
||||
</view> |
</view> |
||||
|
Loading…
Reference in new issue