<!--packageH/liveAuthorization/liveAuthorization_collection/liveAuthorization_collection.wxml-->
<view id="liveAuthorization_collection">
  <view class="list" wx:for="{{info}}" wx:key="index">
    <view class="lis">
      <view class="left">
        <view class="name">
          <view class="status" wx:if="{{item.is_sold == 1}}">未售出</view>
          <view class="statusT" wx:if="{{item.is_sold == 2}}">售出</view>
          {{item.level_name}}
        </view>
        <view style="font-size: 24rpx; color: #666666">{{item.created_at}}</view>
      </view>
      <view class="right">
        <view class="righrTop">￥{{item.price}}</view>
        <view class="rightBottom" catchtap="tapCatch" data-item="{{item}}" data-key="{{index}}">
          <view class="span">{{ item.is_sold == '2' ? "查看"
            : "分享" }}</view>
          <icon class="iconfont icon-advertise-next" style="margin-right: -9.6rpx"></icon>
        </view>
      </view>
    </view>
    <view class="tapSelectShow" wx:if="{{item.show}}">
      <view class="selectLeft">
        <view>购买会员：</view>
        <view class="user">
          <view class="img">
            <image src="{{item.buy_avatar}}"></image>
          </view>
          <view class="userName">{{item.buy_name}}</view>
        </view>
      </view>
      <view class="selectRight">{{item.buy_time}}</view>
    </view>
  </view>

<!-- 海报 -->
  <van-popup show="{{canShow}}" bind:close="onClose">
    <view class="canvasBox">
      <canvas style="width:600rpx;height:850rpx;" canvas-id="canvas" class="mycanvas" wx:if="{{!saveShow}}">
      </canvas>
      <image bindlongtap="saveImge" style="width:600rpx;height:850rpx" src="{{saveImg}}" wx:if="{{saveShow}}" ></image>
    </view>
  </van-popup>
  <!-- 弹窗 -->
  <van-popup show="{{popShow}}" position="bottom" round>
    <view class="btnTop">
      <view class="boxBtn shareBox">
        <icon class="iconfont icon-all_wechat" style="color: #46bb36"></icon>
        <view class="span" style="font-size: 0.81rem; color: #333333">微信好友</view>
        <button open-type="share" class="shareBoxP"></button>
      </view>
      <view class="boxBtn" catchtap="getPoster">
        <icon class="iconfont icon-jk_haibao" style="color: #ea6f1c"></icon>
        <view class="span" style="font-size: 0.81rem; color: #333333">海报</view>
      </view>
    </view>
    <view style="width: 100%; height: 0.28rem; background: #797979"></view>
    <view class="cancel" catchtap="cancelPopshow">取消</view>
  </van-popup>
</view>
