|
@@ -76,7 +76,6 @@
|
|
|
import { onLoad, onShow, onHide, onLaunch } from "@dcloudio/uni-app";
|
|
|
import { reactive, getCurrentInstance, toRefs, inject, watchEffect } from "vue";
|
|
|
import { getToken, setToken, removeToken } from "@/utils/auth";
|
|
|
-import { Lock, User, Cellphone } from "@element-plus/icons-vue";
|
|
|
import { getCodeImg, getMobileTenantConfig } from "@/api/login";
|
|
|
|
|
|
import publicStore from "@/store/modules/public.js";
|
|
@@ -221,6 +220,13 @@ function submitRes() {
|
|
|
}
|
|
|
//#endif
|
|
|
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ if (userChecked.value) {
|
|
|
+ proxy.$modal.msg("请在阅读并同意 用户协议和隐私协议后登录");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //#endif
|
|
|
+
|
|
|
if (switchText.value == "账号密码登录") {
|
|
|
if (!phone.value) {
|
|
|
proxy.$modal.msg("请输入手机号码");
|
|
@@ -234,6 +240,11 @@ function submitRes() {
|
|
|
proxy.$modal.msg("请输入验证码");
|
|
|
return;
|
|
|
}
|
|
|
+ login({
|
|
|
+ phone: phone.value,
|
|
|
+ verify: verify.value,
|
|
|
+ tenantId: tenantId.value,
|
|
|
+ });
|
|
|
} else {
|
|
|
if (!username.value) {
|
|
|
proxy.$modal.msg("请输入账户");
|
|
@@ -243,20 +254,13 @@ function submitRes() {
|
|
|
proxy.$modal.msg("请输入密码");
|
|
|
return;
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- //#ifdef APP-PLUS
|
|
|
- if (userChecked.value) {
|
|
|
- proxy.$modal.msg("请在阅读并同意 用户协议和隐私协议后登录");
|
|
|
- return;
|
|
|
+ login({
|
|
|
+ username: username.value,
|
|
|
+ password: password.value,
|
|
|
+ tenantId: tenantId.value,
|
|
|
+ });
|
|
|
}
|
|
|
- //#endif
|
|
|
-
|
|
|
- login({
|
|
|
- username: username.value,
|
|
|
- password: password.value,
|
|
|
- tenantId: tenantId.value,
|
|
|
- });
|
|
|
}
|
|
|
|
|
|
/** 获取登录数据 */
|