diff --git a/src/main/java/com/budwk/app/sys/services/impl/SysUserServiceImpl.java b/src/main/java/com/budwk/app/sys/services/impl/SysUserServiceImpl.java index 63a91406..4ffba70d 100644 --- a/src/main/java/com/budwk/app/sys/services/impl/SysUserServiceImpl.java +++ b/src/main/java/com/budwk/app/sys/services/impl/SysUserServiceImpl.java @@ -309,9 +309,9 @@ public class SysUserServiceImpl extends BaseServiceImpl implements Sys String decodePwd = Base64Decoder.decodeStr(passowrd); String hashedPassword = PwdUtil.getPassword(decodePwd, user.getSalt()); if (!Strings.sNull(hashedPassword).equalsIgnoreCase(user.getPassword())) { - if (Globals.sso) { - throw new BaseException("用户名或者密码不正确"); - } +// if (Globals.sso) { + throw new BaseException("用户名或者密码不正确"); +// } } user = this.fetchLinks(user, "unit"); if (Lang.isNotEmpty(user.getUnit()) && StrUtil.isNotBlank(user.getUnit().getUnionId())) { diff --git a/src/main/resources/views/layouts/v4/home/stats.js b/src/main/resources/views/layouts/v4/home/stats.js index 3b3499d5..f2e69671 100644 --- a/src/main/resources/views/layouts/v4/home/stats.js +++ b/src/main/resources/views/layouts/v4/home/stats.js @@ -9,64 +9,56 @@ const stats = {
-
- -
待办
{{ stats.todoCount }}
+
+ +
-
- -
已办
{{ stats.doneCount }}
+
+ +
-
- -
消息
{{ stats.notifications }}
+
+ +
-
- -
发起
{{ stats.startedCount }}
+
+ +
@@ -90,15 +82,6 @@ const stats = { } }, - onMouseEnter(event) { - event.target.style.transform = 'translateY(-2px)'; - event.target.style.boxShadow = '0 4px 12px rgba(0,0,0,0.15)'; - }, - onMouseLeave(event) { - event.target.style.transform = 'none'; - event.target.style.boxShadow = '0 2px 6px rgba(0,0,0,0.08)'; - }, - loadStats() { this.$axios.post("/flow/todoCenter/statistics").then(res => { if (res.code === 0) { @@ -146,75 +129,90 @@ const stats = { } .stat-item { - background: #f8f9fa; - color: #495057; - padding: 14px; - border-radius: 8px; + background: rgba(255, 255, 255, 0.4); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border: 1px solid rgba(255, 255, 255, 0.3); + color: #1f2937; + padding: 20px; + border-radius: 14px; display: flex; align-items: center; - gap: 10px; + justify-content: space-between; + gap: 16px; cursor: pointer; - transition: all 0.2s ease; - box-shadow: 0 2px 6px rgba(0,0,0,0.08); + transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; + box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); width: 100%; height: 90px; } + .stat-item:hover { + background: rgba(255, 255, 255, 0.62); + border-color: rgba(255, 255, 255, 0.55); + transform: translateY(-5px); + box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18); + } .stat-icon { - font-size: 30px; - width: 50px; - height: 50px; - background: #e6f7ff; - color: #1890ff; - border-radius: 50%; + font-size: 26px; + width: 44px; + height: 44px; + background: rgba(255, 255, 255, 0.42); + color: rgba(31, 41, 55, 0.72); + border: 1px solid rgba(255, 255, 255, 0.35); + border-radius: 14px; display: flex; align-items: center; justify-content: center; - } - - /* 临时屏蔽待办、已办、消息、发起四个统计图标 */ - .stat-icon-hidden { - display: none !important; + flex-shrink: 0; } .stat-item.pending .stat-icon, .stat-item.completed .stat-icon, .stat-item.messages .stat-icon, .stat-item.reminders .stat-icon { - background: #e6f7ff; - color: #1890ff; + background: rgba(255, 255, 255, 0.42); + } + + .stat-item.pending .stat-icon { + color: #2563eb; } .stat-item.completed .stat-icon { - color: #52c41a; + color: #16a34a; } .stat-item.messages .stat-icon { - color: #faad14; + color: #d97706; } .stat-item.reminders .stat-icon { - color: #13c2c2; + color: #0891b2; } .stat-content { display: flex; flex-direction: column; margin-left: 0; + min-width: 0; + text-align: left; } .stat-label { - font-size: 15px; - opacity: 0.7; + font-size: 14px; + color: rgba(31, 41, 55, 0.78); text-transform: uppercase; - letter-spacing: 0.5px; + letter-spacing: 1px; + line-height: 1.2; } .stat-number { - font-size: 18px; - font-weight: bold; - margin-top: 2px; + font-size: 28px; + font-weight: 700; + color: #111827; + margin-top: 6px; + line-height: 1; } .stats-family { diff --git a/src/main/resources/views/platform/sys/conf/index.html b/src/main/resources/views/platform/sys/conf/index.html index 0c7caf1b..bca250ff 100644 --- a/src/main/resources/views/platform/sys/conf/index.html +++ b/src/main/resources/views/platform/sys/conf/index.html @@ -111,6 +111,18 @@ layout("/layouts/platform.html"){ > 移动端首页轮播图,建议分辨率:750 x 386,最多可上传 5 张,首页按上传顺序轮播 +