2023-08-02 01:13:41 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="user-login-other">
|
|
|
|
|
<span>其他登录方式</span>
|
2023-08-14 17:01:51 +08:00
|
|
|
|
<a href="https://www.baidu.com" title="github"><a-icon class="item-icon" type="github"></a-icon></a>
|
|
|
|
|
<a href="https://www.baidu.com" title="企业微信"> <icon-font class="item-icon" type="icon-qiyeweixin3"/></a>
|
|
|
|
|
<a href="https://www.baidu.com" title="钉钉"><a-icon class="item-icon" type="dingding"></a-icon></a>
|
|
|
|
|
<a href="https://www.bing.com" title="微信"><a-icon class="item-icon" type="wechat"></a-icon></a>
|
2023-08-02 01:13:41 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- 第三方登录绑定账号密码输入弹框 -->
|
2023-08-14 17:01:51 +08:00
|
|
|
|
<a-modal
|
|
|
|
|
title="请输入密码"
|
|
|
|
|
:visible="thirdPasswordShow"
|
|
|
|
|
@ok="thirdLoginCheckPassword"
|
|
|
|
|
@cancel="thirdLoginNoPassword"
|
|
|
|
|
>
|
2023-08-02 01:13:41 +08:00
|
|
|
|
<a-input-password placeholder="请输入密码" v-model="thirdLoginPassword" />
|
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
|
|
<!-- 第三方登录提示是否绑定账号弹框 -->
|
|
|
|
|
<a-modal :footer="null" :closable="false" :visible="thirdConfirmShow" :class="'ant-modal-confirm'">
|
|
|
|
|
<div class="ant-modal-confirm-body-wrapper">
|
|
|
|
|
<div class="ant-modal-confirm-body">
|
2023-08-14 17:01:51 +08:00
|
|
|
|
<a-icon type="question-circle" style="color:#faad14" />
|
2023-08-02 01:13:41 +08:00
|
|
|
|
<span class="ant-modal-confirm-title">提示</span>
|
|
|
|
|
<div class="ant-modal-confirm-content">
|
|
|
|
|
已有同名账号存在,请确认是否绑定该账号?
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ant-modal-confirm-btns">
|
|
|
|
|
<a-button @click="thirdLoginUserCreate" :loading="thirdCreateUserLoding">创建新账号</a-button>
|
|
|
|
|
<a-button @click="thirdLoginUserBind" type="primary">确认绑定</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
|
|
<!-- 第三方登录绑定手机号 -->
|
|
|
|
|
<a-modal :visible="bindingPhoneModal" :class="'ant-modal-confirm'">
|
|
|
|
|
<template slot="footer">
|
|
|
|
|
<a-button key="submit" type="primary" @click="thirdHandleOk">
|
|
|
|
|
确定
|
|
|
|
|
</a-button>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="ant-modal-confirm-body-wrapper">
|
|
|
|
|
<a-form-model-item>
|
|
|
|
|
<span>绑定手机号</span>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
<a-form-model-item>
|
2023-08-14 17:01:51 +08:00
|
|
|
|
<a-input size="large" type="text" placeholder="手机号" v-model="thirdPhone">
|
|
|
|
|
<a-icon slot="prefix" type="mobile" :style="{ color: 'rgba(0,0,0,.25)' }" />
|
2023-08-02 01:13:41 +08:00
|
|
|
|
</a-input>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
|
|
<a-row :gutter="16">
|
|
|
|
|
<a-col class="gutter-row" :span="16">
|
|
|
|
|
<a-form-model-item>
|
2023-08-14 17:01:51 +08:00
|
|
|
|
<a-input size="large" type="text" placeholder="请输入验证码" v-model="thirdCaptcha">
|
|
|
|
|
<a-icon slot="prefix" type="mail" :style="{ color: 'rgba(0,0,0,.25)' }" />
|
2023-08-02 01:13:41 +08:00
|
|
|
|
</a-input>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col class="gutter-row" :span="8">
|
|
|
|
|
<a-button
|
2023-08-14 17:01:51 +08:00
|
|
|
|
class="getCaptcha"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
:disabled="thirdState.smsSendBtn"
|
|
|
|
|
@click.stop.prevent="getThirdCaptcha"
|
|
|
|
|
v-text="(!thirdState.smsSendBtn && '获取验证码') || thirdState.time + ' s'"
|
|
|
|
|
></a-button>
|
2023-08-02 01:13:41 +08:00
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { JeecgThirdLoginMixin } from '@views/user/third/JeecgThirdLoginMixin'
|
2023-08-14 17:01:51 +08:00
|
|
|
|
import { Icon } from 'ant-design-vue'
|
2023-08-02 01:13:41 +08:00
|
|
|
|
|
|
|
|
|
const IconFont = Icon.createFromIconfontCN({
|
2023-08-14 17:01:51 +08:00
|
|
|
|
// scriptUrl: '//at.alicdn.com/t/font_2316098_umqusozousr.js',
|
|
|
|
|
scriptUrl: '/cdn/font-icon/font_2316098_umqusozousr.js'
|
|
|
|
|
})
|
2023-08-02 01:13:41 +08:00
|
|
|
|
export default {
|
|
|
|
|
name: 'thirdLogin',
|
|
|
|
|
mixins: [JeecgThirdLoginMixin],
|
|
|
|
|
components: {
|
2023-08-14 17:01:51 +08:00
|
|
|
|
IconFont
|
2023-08-02 01:13:41 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.user-login-other {
|
|
|
|
|
text-align: left;
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
2023-08-14 17:01:51 +08:00
|
|
|
|
.item-icon {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
color: rgba(0, 0, 0, 0.2);
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: color 0.3s;
|
2023-08-02 01:13:41 +08:00
|
|
|
|
|
2023-08-14 17:01:51 +08:00
|
|
|
|
& :hover {
|
|
|
|
|
color: #1890ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.register {
|
|
|
|
|
float: right;
|
|
|
|
|
}
|
2023-08-02 01:13:41 +08:00
|
|
|
|
}
|
2023-08-14 17:01:51 +08:00
|
|
|
|
</style>
|