<view class="login-modal" a:if="{{showLoginModal}}">
  <form onSubmit="onSubmit" report-submit="{{true}}">
    <modal
      className="modal"
      show="{{showLoginModal}}"
      hover-class="none"
    >
      <view slot="header">登录</view>
      前往获取专属优惠券
      <view slot="footer" class="modal-footer">
        <view class="btn left" hover-class="btn-hover-active" onTap="onCancel">取消</view>
        <button 
          class="btn clear-button" 
          open-type="getAuthorize" 
          onGetAuthorize="onGetAuthorize" 
          onError="onAuthError" 
          formType="submit"
          hover-class="none"
          scope="{{scopes}}">确定</button>
      </view>
    </modal>
  </form>
</view>
