<view class="friend-circle" wx:for="{{momentsList}}" wx:for-item="item" wx:for-index="index" wx:key="momentsList">
  <view class="friend-circle-box" wx:if="{{item.type === 'text'}}">
    <view class="avatar">
      <image src="{{usercenterUrl}}/app/user/downloadavatar/{{item.creator}}"></image>
    </view>
    <view class="content">
      <view class="name">{{item.creatorName}}</view>
      <view class="text">{{item.content}}</view>
      <view class="date">{{item.gmtCreate}}</view>
    </view>
  </view>
  <view class="friend-circle-box" wx:if="{{item.type === 'photo' && item.photoArray.length === 1}}">
    <view class="avatar">
      <image src="{{usercenterUrl}}/app/user/downloadavatar/{{item.creator}}"></image>
    </view>
    <view class="content">
      <view class="name">{{item.creatorName}}</view>
      <view class="text">{{item.content}}</view>
      <view class="photo-one">
        <image src="{{socialUrl}}/route/file/downloadfile/true/{{item.photoArray[0]}}"></image>
      </view>
      <view class="date">{{item.gmtCreate}}</view>
    </view>
  </view>
  <view class="friend-circle-box" wx:if="{{item.type === 'photo' && item.photoArray.length > 1}}">
    <view class="avatar">
      <image src="{{usercenterUrl}}/app/user/downloadavatar/{{item.creator}}"></image>
    </view>
    <view class="content">
      <view class="name">{{item.creatorName}}</view>
      <view class="text">{{item.content}}</view>
      <view class="photo-more">
        <image src="{{socialUrl}}/route/file/downloadfile/true/{{photo}}" wx:for="{{item.photoArray}}" wx:for-item="photo" wx:for-index="photoIndex" wx:key="photoArray"></image>
      </view>
      <view class="date">{{item.gmtCreate}}</view>
    </view>
  </view>
  <view class="friend-circle-box" wx:if="{{item.type === 'video'}}">
    <view class="avatar">
      <image src="{{usercenterUrl}}/app/user/downloadavatar/{{item.creator}}"></image>
    </view>
    <view class="content">
      <view class="name">{{item.creatorName}}</view>
      <view class="text">{{item.content}}</view>
      <view class="video">
        <video src="{{socialUrl}}/route/file/downloadfile/true/{{item.video}}"></video>
      </view>
      <view class="date">{{item.gmtCreate}}</view>
    </view>
  </view>
</view>
<view class="new-friend-circle">
  <view class="box new" bindtap="newFriendCircle">发布</view>
</view>