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