<!--packageE/others/case_library/mycomponents/share.wxml-->
<view class="idshare">
    <view class="share" catchtap="openShare">
      <view class="service">
        <view>
          <icon class="iconfont icon-zb_all_share" style="font-size:40rpx"></icon>
        </view>
      </view>
    </view>
    <van-popup show="{{share_show}}" lock-scroll="true" position="bottom" round custom-style="height: 372rpx;">
      <view class="pop-con">
        <view class="title">立即分享给好友</view>
        <view class="buttons">
          <!-- <view class="button" catchtap="link" v-clipboard:success="onCopy">
            <view class="img">
              <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/case-link.png" alt="" />
            </view>
            <view class="text">复制链接</view>
          </view> -->
          <view class="button" catchtap="creatPoster">
            <view class="img">
              <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/case-image.png" alt="" />
            </view>
            <view class="text">分享海报</view>
          </view>
          <view class="button" catchtap="shareWeixin">
            <view class="img">
              <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/case-wechat.png" alt="" />
            </view>
            <view class="text">微信</view>
            <button open-type="share" class="shareButton"></button>
          </view>
        </view>
        <view class="cancel" catchtap="closeShare">取消</view>
      </view>
    </van-popup>
    <van-popup
      show="{{posterShow}}"
      custom-style="width:570rpx;height:1104rpx;padding:0;background:none;"
    >
      <view style="width:100%;height:100%;overflow:hidden;" class="code_box">
        <image wx:if="{{img_url}}" src="{{img_url}}" style="width:98%;height:70%;border-radius:12rpx;" />
        <view class="icon_close" catchtap="tapPosterShow">
          <icon class="iconfont icon-close11"></icon>
        </view>
      </view>
    </van-popup>
  </view>
