<!--packageE/groupCode/groupCodeShow/groupCodeShow.wxml-->
<view class="showBox">
  <view class="title">
    <icon class="iconfont icon-ht_btn_news"></icon>
    <view class="titlis">{{group_code.code_guide}}</view>
  </view>
  <view class="contenBox">
    <view class="boximg" catchtap="taplong">
      <image mode="aspectFill" src="{{info.code_url_img}}"></image>
    </view>
    <text wx:if="{{info.code_type == 1 && info.is_can_join == 0}}" style="color: #E87D75;margin-bottom:23rpx;">所有群已经满员，请联系客服！</text>
    <text wx:if="{{info.code_type == 0}}" style="margin-bottom:23rpx;">该二维码{{info.expire}}前有效</text>
    <text style="margin-bottom:62rpx;">点击图片长按保存二维码</text>
    <view class="line"></view>
    <view class="btnlist">
      <view class="btnbox" catchtap="shareBox">
        <view class="btnTop">
          <icon class="iconfont icon-share"></icon>
        </view>
        <view style="font-size: 28rpx;line-height: 48rpx;color: #666666;">分享</view>
      </view>
      <view class="btnbox" catchtap="service">
        <view class="btnTop">
          <icon class="iconfont icon-qhm_service" style="color:#00b075;"></icon>
        </view>
        <view style="font-size: 28rpx;line-height: 48rpx;color: #666666;">客服</view>
      </view>
      <view class="btnbox" wx:if="{{group_code.explain}}" catchtap="explain">
        <view class="btnTop">
          <icon class="iconfont icon-qhm_shuoming" style="color:#838383;"></icon>
        </view>
        <view style="font-size: 28rpx;line-height: 48rpx;color: #666666;">说明</view>
      </view>
    </view>
  </view>
  <text style="margin-left:25rpx;font-size: 24rpx;color: #666666;">注：若二维码无法进入，请联系客服</text>

  <shopfoot ></shopfoot>
</view>

<van-popup custom-style="background-color:transparent;" show="{{shareBox}}" bind:close="CloseBtn">
  <view class="shareBoxs" catchtap="tapSave">
    <image src="{{minImga}}"></image>
    <!-- catchlongtap="saveImg" -->
    <view class="posbox">
      <icon class="iconfont icon-guanbi" catchtap="CloseBtn"></icon>
    </view>
  </view>
</van-popup>
<van-popup custom-style="border-radius: 49rpx;" show="{{showOne}}" bind:close="CloseBtn">
  <view class="serviceBox">
    <view class="top">
      <view>客服</view>
      <icon class="iconfont icon-guanbi" catchtap="CloseBtn"></icon>
    </view>
    <view class="serviceImg" catchlongtap="saveImg">
      <image mode="aspectFill" src="{{group_code.customer_service_img}}"></image>
    </view>
    <view class="service_guide">{{group_code.customer_service_guide}}</view>
  </view>
</van-popup>
<van-popup custom-style="width: 680rpx;overflow:auto; border-radius: 49rpx;" show="{{showTwo}}" bind:close="CloseBtn">
  <view class="explainBox">
    <view style="line-height: 70rpx;font-size:14px;">说明</view>
		<icon class="iconfont icon-guanbi" catchtap="CloseBtn"></icon>
    <view class="a_content">
      <rich-text nodes="{{group_code.explain_content}}"></rich-text>
    </view>
  </view>
</van-popup>

<!-- 进群权限不足 -->
<van-popup 
  custom-class="auth-dialog"
  round show="{{showAuthDialog}}" bind:click-overlay="CloseAuthDialog"
>
  <wxs module="listFn">
    var index = 1;
    module.exports = {
      listIndex: function () {
        return index++;
      }
    }
  </wxs>
  <view class="auth-tip">您不满足进群条件，加入当前的群需要满足一下条件：</view>
  <view wx:if="{{openAuthData}}" class="ol">
    <view wx:if="{{openAuthData.pay.is_open}}" class="li">
      <text>{{listFn.listIndex()}}、累计消费金额满{{openAuthData.pay.data}}元！</text>
      <text class="link-text" catchtap="toHome">去消费</text>
    </view>
    <view wx:if="{{openAuthData.member_level.is_open}}" class="li">
      <text>{{listFn.listIndex()}}、升级到</text>
      <text wx:for="{{openAuthData.member_level.data}}" wx:for-item="levelItem" wx:for-index="levelIndex"
        :key="index">[{{levelItem.level_name}}] {{levelIndex < openAuthData.member_level.data.length -1 ? '、' : ''}}</text>
      <text class="link-text" catchtap="toMemberGradeList">查看会员级别</text>
    </view>
    <view wx:if="{{openAuthData.member_tags.is_open}}" class="li">
      <text>{{listFn.listIndex()}}、获得以下标签身份：</text>
      <view>
        <van-tag plain type="primary"
          wx:for="{{openAuthData.member_tags.data}}" :key="index"
        >{{item.title}}</van-tag>
      </view>
    </view>
    <view wx:if="openAuthData.goods.is_open" class="li">
      <text>{{listFn.listIndex()}}、购买指定商品</text>
      <text class="link-text" catchtap="toGroupCodeGoodsList">查看商品</text>
    </view>
  </view>
</van-popup>
