<!--packageA/mycomponent/invitation/invitation.wxml-->
<view class="invitation" wx:if="{{boxShow}}">
  <view class="title">
    <view class="titleLeft">关联的微贴</view>
    <view class="titleRight" catchtap="tapShow">
      查看更多({{ micro_communities.num }})
      <icon class="fa fa-angle-right"></icon>
    </view>
  </view>
  <view class="boxConten">
    <block wx:for="{{min_micr}}" wx:key="index">
      <view class="leftbox" catchtap="goMicro" data-id="{{item.id}}">
        <view class="img" wx:if="{{item.has_many_image[0]}}">
          <image src="{{item.has_many_image[0].url}}" alt=""></image>
        </view>
        <view class="leftTitle">
          {{ item.title }}
        </view>
        <view class="member">
          <view class="userimg" wx:if="{{item.has_one_stick_user}}">
            <image src="{{item.has_one_stick_user.avatar}}" alt=""></image>
          </view>
          <view class="userName" wx:if="{{item.has_one_stick_user}}">{{ item.has_one_stick_user.nickname }}</view>
        </view>
        <view class="likeComment">
          <view class="like">
            <icon class="iconfont icon-fontclass-dianzan colorMr"></icon>
            {{ item.praise_num }}
          </view>

          <view class="comment">
            <icon class="iconfont icon-fontclass-pinglun1 colorMr"></icon>
            {{ item.comment_num }}
          </view>
        </view>
      </view>
    </block>
  </view>
  <van-popup get-container="#app" show="{{show}}" position="right" custom-style="height: 100%;width:100%;z-index:9999;">
    <van-nav-bar title="更多微贴" left-arrow bind:click-left="closeShow"/>
    <view class="listBox">
      <view class="leftbox" wx:for="{{micro_communities.list}}" wx:key="index" catchtap="goMicro" data-id="{{item.id}}">
        <view class="img" wx:if="{{item.has_many_image[0]}}">
          <image src="{{item.has_many_image[0].url}}" alt="" binderror="errorImg" data-item="{{item}}"></image>
        </view>
        <view class="leftTitle">
          {{ item.title }}
        </view>
        <view class="member">
          <view class="userimg" wx:if="{{item.has_one_stick_user}}">
            <image src="{{item.has_one_stick_user.avatar}}" alt=""></image>
          </view>
          <view class="userName" wx:if="{{item.has_one_stick_user}}">{{ item.has_one_stick_user.nickname }}</view>
        </view>
        <view class="likeComment">
          <view class="like">
            <icon class="iconfont icon-fontclass-dianzan colorMr"></icon>
            {{ item.praise_num }}
          </view>

          <view class="comment">
            <icon class="iconfont icon-fontclass-pinglun1 colorMr"></icon>
            {{ item.comment_num }}
          </view>
        </view>
      </view>
      <text wx:if="{{page < last_page}}" catchtap="getMore" class="moreText">点击加载更多</text>
      <text  wx:if="{{page >= last_page}}" class="moreText">暂无更多</text>
    </view>
  </van-popup>
</view>