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.
 
 
 

66 lines
2.8 KiB

<navbar fixed custom-style="background:{{background}}" back>
<view class="page-title" slot="left" bind:tap="handleBack">
<van-icon name="arrow-left" />
我的帖子
</view>
</navbar>
<view
class="page"
style="background: url('{{imageUrl}}bg6.png?t={{Timestamp}}') no-repeat top center/100% 478rpx;padding-top: {{pageTop}}px;"
>
<!-- <view class="type-navbar"> -->
<!-- <view -->
<!-- class="type {{filterStatus === item.value ? 'active' : ''}}" -->
<!-- wx:for="{{filters}}" -->
<!-- wx:key="label" -->
<!-- data-value="{{item.value}}" -->
<!-- bind:tap="handleFilterTap" -->
<!-- >{{item.label}}</view> -->
<!-- </view> -->
<view class="list">
<view
class="list-card"
wx:for="{{postList}}"
wx:key="id"
bind:tap="handleDetail"
data-id="{{item.id}}"
>
<!-- 草稿:status1; 待审核 status2; 已驳回 status3; 已通过 status4 -->
<view class="status {{item.statusClass}}">{{item.statusText}}</view>
<view class="c-title" wx:if="{{item.title}}">{{item.title}}</view>
<view class="content">
<view class="c-topic" wx:for="{{item.topics}}" wx:key="topicId" wx:for-item="topic">#{{topic.topicName}}</view>
{{item.content}}
</view>
<view class="tags" wx:if="{{item.categories && item.categories.length > 0}}">
<view class="tag" wx:for="{{item.categories}}" wx:key="categoryId" wx:for-item="cat">{{cat.categoryName}}</view>
</view>
<!-- 单图 -->
<image wx:if="{{item.imageList.length === 1}}" class="photo1" mode="heightFix" src="{{item.imageList[0].attachmentUrl}}"></image>
<!-- 多图 -->
<view wx:if="{{item.imageList.length > 1}}" class="photo9">
<view class="p-item" wx:for="{{item.imageList}}" wx:key="id" wx:for-item="att">
<image class="p-img" mode="aspectFill" src="{{att.attachmentUrl}}"></image>
</view>
</view>
<view class="date">{{item.dateText}}</view>
<view class="rejected" wx:if="{{item.postStatus === 3 && item.rejectReason}}">
<image class="icon" src="{{imageUrl}}icon39.png?t={{Timestamp}}"></image>
<view class="blod">驳回原因:</view>
{{item.rejectReason}}
</view>
<view class="footer">
<view class="public">
<image class="icon" mode="widthFix" src="{{imageUrl}}{{item.visibility == 1 ? 'icon21' : 'icon22'}}.png?t={{Timestamp}}"></image>
{{item.visibility == 1 ? '公开可见' : '仅自己可见'}}
</view>
<view class="btn-wrap">
<view class="btn1" catch:tap="handleDelete" data-id="{{item.id}}" data-index="{{index}}">删除</view>
<view class="btn2" catch:tap="handleEdit" data-id="{{item.id}}">编辑</view>
</view>
</view>
</view>
</view>
<pagination pagination="{{postPagination}}" />
</view>