myComments.wxml 3.0 KB
<!-- 企话吧 -->
<view>
  <view class='mid'>
    <!-- 条目 -->
    <view class='mid_item' wx:for="{{commentsList}}" wx:key="index">
      <view class='mid_item_top'>
        <view class='mid_item_top_left'>
          <!-- 图片 -->
          <view class='mid_item_top_left_pic'>
            <image src='{{item.my_avatar}}'></image>
          </view>
          <!-- 文字 -->
          <view class='mid_item_top_left_text color_blue'>
            {{item.my_nickname}}
          </view>
        </view>
        <view class='mid_item_top_right '>
          {{item.create_time_text}}
        </view>
      </view>
      <!-- 文字内容 -->
      <view class='mid_item_text'>
        {{item.comment_content}}
      </view>
      <!-- 文本内容 -->
      <view class='mid_item_content' bindtap='navdetail' id='{{item.object_id}}'>
        <!-- 条目 -->
        <view class='mid_item content'>
          <view class='mid_item_top'>
            <view class='mid_item_top_left'>
              <!-- 图片 -->
              <view class='mid_item_top_left_pic'>
                <image src='{{item.avatar}}'></image>
              </view>
              <!-- 文字 -->
              <view class='mid_item_top_left_text'>
                {{item.nickname}}
                <!-- <view class='icon_tm'>
                  <image src='../../images/guangfang@2x.png'></image>
                </view> -->
              </view>
            </view>
            <view class='mid_item_top_right'>
              {{item.create_time_text}}
            </view>
          </view>
          <!-- 文字内容 -->
          <view class='mid_item_text'>
            {{item.content}}
          </view>
          <!-- 图片内容 -->
          <view class='mid_pic_box'>
            <view class='mid_pic_item' wx:for="{{item.images}}" wx:key="index">
              <image src='{{item}}' mode='widthFix'></image>
            </view>
          </view>
        </view>
      </view>
      <!-- 底部 -->
      <view class='mid_item_like'>
        <view class='mid_item_like_left' bindtap='delCom' id='{{item.id}}' data-indx='{{index}}'>
          删除
        </view>
        <view class='mid_item_like_right'>
          <!-- 点赞 -->
          <view class='mid_like color_blue' bindtap='zan' id='{{item.id}}' data-idx='{{index}}' data-type='{{item.is_like}}'>
            <image src='../../images/thumb-up-button@3x.png' class='zan' wx:if='{{item.is_like==1}}'></image>
            <image src='../../images/dainzan@3x.png' class='zan' wx:else></image>
          </view>
          <view class='mid_number color_blue'>
            {{item.likes}}
          </view>
          <!-- 评论 -->
          <view class='mid_like' bindtap='navdetail' id='{{item.id}}'>
            <image src='../../images/pinglun@3x.png'></image>
          </view>
          <view class='mid_number commentCount'>
            {{item.comment_count}}
          </view>
        </view>
      </view>

    </view>
  </view>
</view>
<view class="none-box" hidden="{{ifData}}">
  <view>暂无相关评论</view>
</view>