<view class="commentArea"> <view class="{{index === 0? class1 : classNormal}}" wx:for="{{comment}}" wx:key="{{index}}"> <image class="avatar" src="{{item.avatar}}" /> <view class="commentCore"> <text class="nickName">{{item.name}}</text> <text class="time">{{item.time}}</text> <text class="gut">{{item.text}}</text> </view> <view class="btnWrapper"> <image class="commentBtn" src="../../../static/image/comment.png" wx:if="{{index===0}}" bindtap="setSBId" /> <text class="commentText" wx:if="{{index===0}}">评论</text> <!-- <image class="likeBtn" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" src="../../../static/image/like.png" bindtap="likeCommend" /> --> <!-- <text class="likeText" >{{item.likes}}</text> --> </view> </view> <!-- 评论框 --> <view class="replySection" wx:if="{{replyModal}}"> <input bindblur="bindTextAreaBlur" bindconfirm="replySB" confirm-type="send" placeholder="回复" bindinput="inputSBValue" auto-focus auto-height /> </view> <view class='reply-msg'> <!-- <input name='reply' class='reply-input' placeholder='回复@{{ comment[0].name }}' confirm-type="send" bindinput='saveValue' auto-focus auto-height></input> --> <input name='reply' class='reply-input' placeholder='回复@{{ comment[0].name }}' bindinput='saveValue'> </input> <text class='reply-btn' bindtap='replyDone'>回复</text> </view> </view>