|
|
|
@ -65,7 +65,8 @@
|
|
|
|
|
<van-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="handleWxLogin"
|
|
|
|
|
style="left: 50%; transform: translateX(-50%)"
|
|
|
|
|
:class="{ mtop: !firstLogin }"
|
|
|
|
|
style="left: 50%; transform: translateX(-50%); width: 90%"
|
|
|
|
|
>企业微信登录</van-button
|
|
|
|
|
>
|
|
|
|
|
<!-- 图形验证码 -->
|
|
|
|
@ -113,8 +114,8 @@ export default {
|
|
|
|
|
...mapGetters(['devSystemList', 'devUserList']),
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
// 是否禁止账号密码登录
|
|
|
|
|
isProhibited().then((res) => {
|
|
|
|
|
// 是否禁止网页登录
|
|
|
|
|
/* isProhibited().then((res) => {
|
|
|
|
|
if (res.data) {
|
|
|
|
|
console.log(res.data, 'isProhibited')
|
|
|
|
|
if (/wxwork/i.test(navigator.userAgent)) {
|
|
|
|
@ -128,7 +129,7 @@ export default {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}) */
|
|
|
|
|
// 租户开关
|
|
|
|
|
// this.tenantEnable = getTenantEnable();
|
|
|
|
|
// if (this.tenantEnable) {
|
|
|
|
@ -202,13 +203,6 @@ export default {
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
// 构造重定向的 URL
|
|
|
|
|
window.location.href = res.data
|
|
|
|
|
/* this.$nextTick(() => {
|
|
|
|
|
Toast.loading({
|
|
|
|
|
duration: 3, // 持续展示 toast
|
|
|
|
|
forbidClick: true,
|
|
|
|
|
message: res.data + ,
|
|
|
|
|
})
|
|
|
|
|
}) */
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 跳转登录
|
|
|
|
@ -290,6 +284,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
window.localStorage.setItem('loginInfo', JSON.stringify(obj))
|
|
|
|
|
}
|
|
|
|
|
this.firstLogin = false
|
|
|
|
|
// 首次企微登录绑定账号
|
|
|
|
|
if (window.location.href.includes('code')) {
|
|
|
|
|
userBind({ code: this.code, state: this.state, type: 40 })
|
|
|
|
@ -326,4 +321,7 @@ export default {
|
|
|
|
|
.oo {
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
.mtop {
|
|
|
|
|
margin-top: 15vh;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|