锦水居民端小程序
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.
 

91 lines
4.3 KiB

<view class="func-top">
<text>话题指南</text>
<button hover-class="hover-class" class="top-right" bindtap="navToForumGuide" plain='true'><image src="../../images/next.png"/></button>
</view>
<view class="item-list" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{topiclist}}">
<view class="user-info">
<image src="{{item.userFace}}"></image>
<view class="name-date">
<view class="name">{{item.nickname}}
<image class="community-logo" wx:if="{{item.thisCommunity == '1'}}" src="../../images/resident@2x.png"></image></view>
<view class="date">{{item.createdTime}}</view>
</view>
</view>
<view class="details-info">{{item.topicContent}}</view>
<view wx:if="{{item.images.length > 0 && topicType == '0'}}" class="image-list"
style="height: {{item.images.length === 3 ? '160rpx' : item.images.length === 2 ? '205rpx' : item.images.length === 1 ? '350rpx' : '' }}">
<image mode="aspectFill" catchtap="previewImage" data-src="{{_item}}" data-imgArry="{{item.images}}"
class="image-item" wx:for="{{item.images}}" wx:key="index" wx:for-index="index" wx:for-item="_item"
src="{{_item}}" />
</view>
<view class="attitude">
<view class="all" data-id="{{item.id}}" bindtap="clicklike" data-likeFlag="{{item.likeFlag}}"
data-index="{{index}}">
<!-- 用户是否已点赞 0否;1是 -->
<!-- -->
<image src="{{item.likeFlag == '0' ? '../../images/give.png' : '../../images/give_2.png'}}"></image>
<view class="give-data-n {{item.likeFlag == '1' ? 'color' : ''}}">{{item.supportNum}}</view>
</view>
<view class="all">
<image src="../../images/comment.png"></image>
<view class="give-data-n">{{item.commentNum}}</view>
</view>
<view class="all" data-id="{{item.id}}" bindtap="shieldTopic" wx:if="{{currentUserIdentity=='0'||currentUserIdentity=='1'}}">
<image src="../../images/shield.png"></image>
<view class="give-data-m">屏蔽</view>
</view>
<view class="all" data-id="{{item.id}}" data-index="{{index}}" bindtap="clickTextarea">
<!-- <image class="wcomment" src="../../images/wcomment@2x.png"></image> -->
<view class="give-data-s">
<image class="comment_ic" src="../../images/comment_ic.png" ></image>
{{commentViewContent}}
</view>
</view>
</view>
<view wx:if="{{item.likes.length > 0}}" class="likes">
<image src="../../images/give.png"></image>
<block wx:for="{{item.likes}}" wx:key="index" wx:for-index="index" wx:for-item="likesItem">
<text>{{likesItem.nickname}}</text><text wx:if="{{index < item.likes.length - 1}}">,</text>
</block>
</view>
<view wx:if="{{item.likes.length > 0 && item.comments.length > 0}}" class="line"></view>
<view wx:if="{{item.comments.length > 0}}" class="comment">
<view wx:for="{{item.comments}}" wx:key="index" wx:for-index="index" wx:for-item="item_"
class="comment-list"><text>{{item_.username}}:</text>{{item_.content}}</view>
</view>
</view>
<view class="release" wx:if="{{ifcomment}}">
<view class="replyinfo2">
<textarea placeholder-class="input_null" fixed="true" maxlength="-1" show-confirm-bar="false"
cursor-spacing="15" auto-height="true" placeholder="请输入回复" value="{{commentContent}}" focus='{{focus}}'
bindblur="bindAddressInput" bindinput="bindIdentity"></textarea>
<button bindtap="commentSubmit" form-type="submit" class="submit">发送</button>
</view>
</view>
<!--加载更多提示-->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<no-data isShow="{{nodata}}"></no-data>
<!-- 是否禁言 0:否 1:是 -->
<movable-area class="movable-area">
<movable-view class="movable-view" direction="all" inertia="true" friction="10">
<view wx:if="{{bannedFlag == '0'}}" class="addIssue" bindtap="navigateToAddTopic">
<image wx:if="{{topicType == '0'}}" src="../../images/new_topic.png" />
<image wx:else src="../../images/new_topic.png" />
</view>
</movable-view>
</movable-area>
<completeInfo-dialog completeInfoDialogVisible="{{completeInfoDialogVisible}}">
</completeInfo-dialog>
<notice-verify
noticeVerifyVisible="{{showModal}}"
bind:close="modalCancel"
bind:confirm="modalConfirm"
title="屏蔽原因"
tipVisible="{{true}}"
cancelText="取消"
confirmText="屏蔽">
</notice-verify>