colleagues_2.wxml 3.6 KB

<view class='container'>
  <view class='item'>
    <view class='item_top'>{{detail.title}}</view>
    <view class='item_mid'>
      <view class='item_mid_text'>
        {{detail.content}}
        <span class='color_blue'>全部</span>
      </view>
      <!-- 图片盒子 -->
      <view class='item_mid_box' wx:if="{{detail.images}}">
        <view class='item_mid_box_pic' wx:for='{{detail.images}}' wx:key=''>
          <image src='{{item}}'></image>
        </view>
      </view>
    </view>
    <!-- 底部 -->
    <view class='item_bottom'>
      <view class='item_left'>
        <!-- 头像 -->
        <view class='item_left_pic'>
          <image src='{{detail.avatar}}'></image>
        </view>
        <view class='item_name'>
          {{detail.nickname}}
        </view>
        <!-- 时间 -->
        <view class='item_time'>
          {{detail.create_time_text}}
        </view>
        <!-- 删除 -->
        <view class='item_delete' hidden='{{detail.is_mine==0}}' bindtap='del'>
          删除
        </view>
      </view>

      <view class='item_right'>
        <!-- 图片 -->
        <view class='item_right_pic'>
          <image src='../../images/chakan@3x.png'></image>
        </view>
        <!-- 数量 -->
        <view class='item_right_number'>
          {{detail.browse_count}}
        </view>
        <!-- 图片 -->
        <view class='item_right_pic2'>
          <image src='../../images/pinglun@3x.png'></image>
        </view>
        <!-- 数量 -->
        <view class='item_right_number'>
          {{detail.comment_count}}
        </view>

      </view>
    </view>
  </view>


  <view class='item_box'>
    <!-- 回复内容1 -->
    <view class='item item_bottom' wx:for='{{comments}}' wx:key=''>
      <view class='item_list'>
        <view class='item_list_left'>
          <view class='item_list_left_pic'>
            <image src='{{item.avatar}}'></image>
          </view>
        </view>
        <!-- 右边 -->
        <view class='item_list_right'>
          <!-- 名字 -->
          <view class='item_list_right_name'>
            {{item.nickname}}
          </view>
          <!-- 评论 -->
          <view class='item_list_right_title' bindtap='parentSet' id='{{item.id}}'>
            {{item.content}}
          </view>
          <!-- 时间&点赞 -->
          <view class='time_bottom'>
            <view class='time_bottom_left'>
              {{item.create_time_text}}
            </view>
            <view class='time_bottom_left'>
              <view>{{item.likes}}</view>
              <view class='time_bottom_left_pic' bindtap='zan' id='{{item.id}}'>
                <image src='../../images/zan@3x.png' wx:if="{{item.is_like==0}}"></image>
                <image src='../../images/thumb-up-button@3x' wx:else></image>
              </view>
            </view>
          </view>
          <!-- 底部评论 -->
          <view class='sec_comments' wx:if="{{item.child.length>0}}">
            <view class='sec_comment' wx:for='{{item.child}}' wx:for-item='sec' wx:key=''>
              <view class='text_bottom' >
                <text class='color_blue'>{{sec.nickname}}:</text>{{sec.content}}
              </view>
            </view>
            <view class='underline'></view>
          </view>
        </view>
      </view>
    </view>
  </view>

  
  <!-- 底部发表按钮 -->
  <view class='bottom_box'>
    <view class='bottom_box_input'>
      <input placeholder='发表评论...' focus='{{startComment}}' bindtap='parentSet' bindinput='subComments' id=''></input>
    </view>
    <view class='bottom_box_text' bindtap='s'>
      发表
    </view>
  </view>
  
</view>