From c84cf055ef60a5afa18522264390564093f42a44 Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Fri, 24 Apr 2026 11:22:01 +0800 Subject: [PATCH 1/7] updata --- f/web-kboss/src/views/login/indexNew.vue | 555 +++++++++-------------- 1 file changed, 206 insertions(+), 349 deletions(-) diff --git a/f/web-kboss/src/views/login/indexNew.vue b/f/web-kboss/src/views/login/indexNew.vue index 0686721..7bb2e5d 100644 --- a/f/web-kboss/src/views/login/indexNew.vue +++ b/f/web-kboss/src/views/login/indexNew.vue @@ -42,103 +42,83 @@
- 开元数智 + NCMatch + 开元云 您身边的AI管家
-- 2.34.1 From 89fed5a6ea997a6e2882a8f06547ef6502eafa87 Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Mon, 27 Apr 2026 10:07:38 +0800 Subject: [PATCH 3/7] updata --- f/web-kboss/src/views/login/indexNew.vue | 36 ++++++------------------ 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/f/web-kboss/src/views/login/indexNew.vue b/f/web-kboss/src/views/login/indexNew.vue index c7dde2c..9f961ed 100644 --- a/f/web-kboss/src/views/login/indexNew.vue +++ b/f/web-kboss/src/views/login/indexNew.vue @@ -699,14 +699,14 @@ export default { // 获取手机登录验证码 getCode() { // 验证手机号格式 - if (!this.loginForm.username || !/^1[3-9]\d{9}$/.test(this.loginForm.username)) { + if (!this.loginForm.mobile || !/^1[3-9]\d{9}$/.test(this.loginForm.mobile)) { this.$message.error('请输入正确的手机号'); return; } // 使用新的API参数:mobile和action_type getCodeAPI({ - mobile: this.loginForm.username, + mobile: this.loginForm.mobile, action_type: 'login' }).then((res) => { console.log(res); @@ -815,45 +815,25 @@ export default { this.capsTooltip = key && key.length === 1 && key >= "A" && key <= "Z"; }, - // 处理登录 - 账号登录保持原逻辑不变 + // 处理登录 handleLogin(formName) { this.$refs[formName].validate((valid) => { if (valid) { - // 根据登录类型构建不同的API参数 - let apiOneIphone = { + const loginParams = { username: this.loginForm.username, domain_name: this.photosUrl?.domain_name ? this.photosUrl.domain_name : '', + password: this.passwordEncryption(this.loginForm.password), + mobile: this.loginForm.mobile, vcode: this.loginForm.vcode, codeid: this.loginForm.codeid, wechat_openid: this.wechat_openid } - let apiOne = { - username: this.loginForm.username, - domain_name: this.photosUrl?.domain_name ? this.photosUrl.domain_name : '', - password: this.passwordEncryption(this.loginForm.password), - wechat_openid: this.wechat_openid - } - - let apiTwoIphone = { - username: this.loginForm.username, - vcode: this.loginForm.vcode, - codeid: this.loginForm.codeid, - wechat_openid: this.wechat_openid - } - - let apiTwo = { - username: this.loginForm.username, - password: this.passwordEncryption(this.loginForm.password), - } - - // 根据登录类型调用不同的API - logintypeAPI(this.loginType === '0' ? apiOne : apiOneIphone).then(res => { + logintypeAPI(loginParams).then(res => { if (res.status == true) { this.loading = true; - // 执行登录 this.$store - .dispatch("user/login", this.loginType === '0' ? apiTwo : apiTwoIphone) + .dispatch("user/login", loginParams) .then((res) => { this.loading = false; -- 2.34.1 From f31a47f56cef8531908c917ca6b30620b468e96e Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Mon, 27 Apr 2026 10:16:16 +0800 Subject: [PATCH 4/7] updata --- f/web-kboss/src/views/login/indexNew.vue | 243 +++++++++++------------ 1 file changed, 114 insertions(+), 129 deletions(-) diff --git a/f/web-kboss/src/views/login/indexNew.vue b/f/web-kboss/src/views/login/indexNew.vue index 9f961ed..2b94cc9 100644 --- a/f/web-kboss/src/views/login/indexNew.vue +++ b/f/web-kboss/src/views/login/indexNew.vue @@ -121,7 +121,8 @@