市北人才赋能平台 --小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

56 lines
1.6 KiB

<!--pages/user/common/myFavorite/index.wxml-->
<view class="title">
<view class="option" bindtap="refresh" data-type="1">
<block wx:if="{{type == '1'}}">
<text style="color:#1989fa;">宣传栏</text>
</block>
<block wx:else>
宣传栏
</block>
</view>
<view class="option" bindtap="refresh" data-type="2">
<block wx:if="{{type == '2'}}">
<text style="color:#1989fa;">通知公告</text>
</block>
<block wx:else>
通知公告
</block>
</view>
<view class="option" bindtap="refresh" data-type="3">
<block wx:if="{{type == '3'}}">
<text style="color:#1989fa;">赋能中心</text>
</block>
<block wx:else>
赋能中心
</block>
</view>
</view>
<view class="content">
<block wx:for="{{list}}" wx:key="{{index}}">
<block wx:if="{{item.type === '1' || item.type ==='3' || item.type ==='4'}}">
<artice-cell
cId="{{item.topicId}}"
title="{{item.title}}"
image="{{item.topicImg}}"
time="{{item.time}}"
type="{{item.type}}"
bind:clickListItem="clickListItem"/>
</block>
<block wx:else>
<cell
topicId="{{item.topicId}}"
title="{{item.title}}"
topicImg="{{item.topicImg}}"
userName="{{item.userName}}"
time="{{item.time}}"
commentNum="{{item.commentNum}}"
type="{{item.type}}"
userIcon="{{item.userIcon || '/images/topic/avatar.png'}}"
bind:clickListItem="clickListItem"/>
</block>
</block>
<e-empty empty="{{list.length <= 0}}" message="暂无内容"/>
</view>