|
|
|
<!--pages/topics/common/goodIdea/cell/index.wxml-->
|
|
|
|
<view class="cell" id="cell" >
|
|
|
|
<view class="touch-item {{isTouchMove ? 'touch-move-active' : ''}}" data-index="{{itemIndex}}" data-name="{{itemData.commentName}}" bindtouchstart="touchstart" bindtouchmove="touchmove" >
|
|
|
|
<view class="content">
|
|
|
|
<view class="content-left">
|
|
|
|
<image src="{{itemData.commentIcon}}" style="width:20px;height:20px;"></image>
|
|
|
|
</view>
|
|
|
|
<view class="content-right">
|
|
|
|
<view class="userInfo">
|
|
|
|
<view class="userInfo-left">
|
|
|
|
<view class="userName">{{itemData.commentName}}</view>
|
|
|
|
<view class="comment-time">{{itemData.commentTime}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="userInfo-right" bindtap="onClickPraise" data-item="{{itemData}}" data-index='{{itemIndex}}'>
|
|
|
|
<view class="praiseNum">{{itemData.praiseNum}}</view>
|
|
|
|
<view class="praise-icon">
|
|
|
|
<image src="{{item.isPraise ? praise : unPraise}}" style="width:100%;"></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="color:#3B3B3B;font-size:14px;padding: 0 0 5px 0;">{{itemData.comment}}</view>
|
|
|
|
<view class="detail" bindtap="pushTopic">
|
|
|
|
<view class="detail-title">{{itemData.topicTtitle}}</view>
|
|
|
|
<view class="detail-userInfo">
|
|
|
|
<view class="detail-userInfo-left">
|
|
|
|
<view class="detail-user-icon">
|
|
|
|
<image src="{{itemData.topicGroupAvator || '/images/topic/avatar.png'}}"></image>
|
|
|
|
</view>
|
|
|
|
<view class="detail-userName">{{itemData.topicAuthor}}</view>
|
|
|
|
<view class="detail-time">{{itemData.topicGroupCreateTime}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="detail-userInfo-right">
|
|
|
|
<view class="detail-comments-icon">
|
|
|
|
<image src="/images/common/com_count.png"></image>
|
|
|
|
</view>
|
|
|
|
<view class="detail-commentNum">{{itemData.topicCommentNum}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="detail-text">{{itemData.topicDetail}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="del" data-index="{{itemIndex}}" data-id="{{itemData.commentId}}" catchtap="del">删除</view>
|
|
|
|
</view>
|
|
|
|
</view>
|