<!--pages/user/my_comment/index.wxml-->
<view class='container'>
  <view class='comment_body'>
    <view class="weui-tab__panel">
      <view class='weui-tab__content_item'>
        <view class="fdkk-cells" style='padding:0'>
          <view class="weui-panel__bd">
            <view class="weui-media-box weui-media-box_appmsg">
              <view class="weui-media-box__hd weui-media-box__hd_in-appmsg" style='width:140rpx;height:140rpx;'>
                <image class="weui-media-box__thumb" style='border-radius:0;' mode='aspectFill' src="{{imgServer + exhibition.imageUrl||defaultImg}}">
                </image>
              </view>
              <view class="weui-media-box__bd weui-media-box__bd_in-appmsg" style='flex:2.4'>
                <view class="weui-media-box__title weui-flex">
                  <text class="title-txt">{{exhibition.name}}</text>
                </view>
                <view style='color:#ccc;font-size:26rpx;'>
                  {{exhibition.pavilionName}}
                </view>

              </view>
              <view class="weui-media-box__bd weui-media-box__bd_in-appmsg" style='float:right;text-align:center;border-left:2rpx solid #eee;padding-left:10rpx;'>
                <text style='font-size:34rpx;'>{{score}}</text>
                <view>
                  <image wx:for="{{score_img}}" wx:key="index" class="comment-img__item" mode='aspectFill' src="{{item.img}}"></image>
                </view>
                <text bindtap='tapToComment' style='font-size:24rpx;color:#e02f2f;font-weight:normal;text-decoration:underline;'>点评</text>
                <!-- <text style='font-size:24rpx;color:#999;font-weight:normal'>{{exhibition.commentCount}}评论</text> -->
                
              </view>
              <view>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view>
      <view class='tapNavClass'  >
        <text wx:for="{{tapNav}}" data-type='{{item.sortType}}' bindtap='changeNav' wx:key="index">
        <text  class="{{item.sortType == sortType?'tapNavActive':''}}">{{item.name}}</text>
        <text style='padding:5rpx;'>{{index !== tapNav.length-1?"|":''}}</text>
        </text>
      </view>
      <view wx:for="{{myComment}}" wx:key="index" class='comment_con'>

        <view class="weui-cell" style='align-items: flex-start;padding-bottom:30rpx;'>
          <view class="weui-cell__hd">
            <view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
              <image class="weui-media-box__thumb" mode='aspectFill' src="{{ item.avatarUrl||defaultImg}}" />
            </view>
          </view>
          <view class="weui-cell__bd">
            <view class="comment-username">
              <text style='font-size:30rpx;'>{{item.nickName}}</text>

            </view>
            <view>
              <image wx:for="{{item.imgObj}}" wx:key="index" class="comment-img__item" mode='aspectFill' src="{{item.img}}"></image>
            </view>
            <view class="comment-detail">
              <text style='font-size:28rpx;'>{{item.comment}}</text>
              <!-- <template is="wxParse" data="{{wxParseData:content.nodes}}" /> -->

            </view>
            <view class="comment-dec " bindtap='addCommentLike' data-idx="{{index}}" data-type="{{item.hasLike}}" data-id="{{item.id}}">
              <text>{{item.dateTimeDeatil}}</text>
              <text class="iconfont icon-zan {{item.hasLike?'icon-zan_active':''}}"><text style='margin-left:10rpx;'>{{item.likeCount}}</text></text>
            </view>
            <!-- <view class="comment-img" wx:if="{{evaluate[0].imgs.length>0}}">
              <image wx:for="{{evaluate[0].imgs}}" wx:key="{{index}}" class="comment-img__item" mode='aspectFill' src="{{item}}"></image>
            </view> -->
          </view>
        </view>
      </view>
    </view>

  </view>
  <view class="weui-loadmore" wx:if="{{loading}}">
    <view class="weui-loading"></view>
    <view class="weui-loadmore__tips">正在加载</view>
  </view>
</view>