<view class="modal" a:if="{{isAuthorization}}">
  <view class="modal-mask"></view>
  <view class="modal-container" style="top:{{isAuthorizationActiveText ? '12%' : '26%' }};">
    <view class="auth-avatar">
      <image class="auth-avatar-img" src="/assets/imgs/auth-avatar.png"></image>
    </view>
    <view class="auth-shop" a:if="{{isAuthorizationActiveText}}">
      <view class="auto-old">
        <span class="auto-old-num">1. </span>老会员无需领取新会员卡,即可在会员小程序享受全部会员权益。</view>
      <view class="auto-old">
        <span class="auto-old-num">2. </span>若在领取新会员卡过程中输入新手机号,会造成原会员及积分信息的更替。</view>
      <view class="auto-old">
        <span class="auto-old-num">3. </span>领取后的新会员卡,将存放在"微信-卡包"。</view>
    </view>
    <view class="auth-shop" a:else>广东7-Eleven申请获取授权，用于会员服务</view>
    <!-- <button
      type="primary"
      a:if="{{!isAuthorizationActiveText}}"
      onTap="handleGetAuthCode"
      class="agree"
      disabled="{{!checkAll}}"
    >同意</button>  -->

    <button 
      a:if="{{!isAuthorizationActiveText}}" 
      class="agree" 
      open-type="getAuthorize" 
      onGetAuthorize="onGetAuthorize" 
      onError="onAuthError" 
      scope='userInfo'>
          同意
      </button>

    <button
      type="primary"
      a:else
      class="agree"
      disabled="{{!checkAll}}"
      onTap="handleActiveAgree"
    >同意并领取新会员卡</button>
    <view class="rule-wrap">
      <view class="agree-rule">
        <view a:if="{{!isAuthorizationActiveText}}" class="agree-icon">
          <!-- WX2MY: {{checkAll ? 'success' : 'circle'}} 类型的 icon 不被支持， 请调整 -->
          <!--<icon size="18" type="{{checkAll ? 'success' : 'circle'}}" bindtap="checkAll"></icon>-->
        </view>
        <view a:if="{{!isAuthorizationActiveText}}">
          <text>我已阅读并同意</text>
          <text class="rule-text" onTap="handelToMemberRules">《会员规则》</text>
        </view>
        <!-- <view wx:else><text>我已阅读并同意</text><text class='rule-text' bindtap="handelToMemberRules">《激活领卡规则》</text></view>-->
      </view>
    </view>
    <view class="close" onTap="close">
      <image class="close-img" src="/assets/imgs/close.png"></image>
    </view>
  </view>
</view>