123456789101112131415161718192021222324252627282930 |
- <!--components/newCell/newCell.wxml-->
- <!-- type = 1 文章 type = 2 视频 type = 2 帖子 -->
- <view class="post-cell" bind:tap="handleCellAction">
- <user-card author-info="{{data.authorInfo}}" is-author="{{data.isAuthor}}" time="{{data.createTimeText}}"
- is-show-more="{{true}}" is-show-like="{{false}}" bind:del="tapDeleteAction" catch:action="handleCellAction">
- </user-card>
- <text class="content">{{ data.content }}</text>
- <block wx:if="{{ data.type == 3 && data.imgsUrl.length}}">
- <view wx:if="{{ data.imgsUrl.length == 1}}" class="imgs-wrap">
- <image class="img-one" lazy-load="{{true}}" wx:for="{{ data.imgsUrl }}" wx:key="index" mode="aspectFill"
- src="{{ item }}">
- </image>
- </view>
- <view wx:elif="{{data.imgsUrl.length == 4}}" class="imgs-wrap">
- <image class="img-four" lazy-load="{{true}}" wx:for="{{ data.imgsUrl }}" wx:key="index" mode="aspectFill"
- src="{{ item }}">
- </image>
- </view>
- <view wx:else class="imgs-wrap">
- <image class="img" lazy-load="{{true}}" wx:for="{{ data.imgsUrl }}" wx:key="index" mode="aspectFill"
- src="{{ item }}"></image>
- </view>
- </block>
- <view wx:if="{{ data.type == 2 }}" class="video-wrap">
- <image class="video-img" lazy-load="{{true}}" mode="aspectFill"
- src="{{ data.videoCoverImgUrl || data.coverImgUrl }}"></image>
- <image class="video-icon" src="../../images/play.png"></image>
- </view>
- <tags-card tag-list="{{data.tagList}}"></tags-card>
- </view>
|