From 3ac279c9df7181c9f21d35a689a321b990b87b22 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 08 六月 2026 17:42:33 +0800
Subject: [PATCH] aaa
---
h5/pages/login/login.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/h5/pages/login/login.vue b/h5/pages/login/login.vue
index ac180e9..5fa4396 100644
--- a/h5/pages/login/login.vue
+++ b/h5/pages/login/login.vue
@@ -26,7 +26,7 @@
<script>
import { loginH5, getByLogin, getUserInfo } from '@/apis/index.js'
-
+ import { getAnchorHomePath, normalizeAnchorPageVersion } from '@/utils/anchorHome.js'
export default {
data() {
return {
@@ -49,9 +49,11 @@
let user = await getUserInfo()
this.$store.commit('setUser', user.data)
let result = await getByLogin()
- this.$store.commit('setConfig', result.data)
+ const config = result.data || result
+ this.$store.commit('setConfig', config)
uni.showToast({ title: '鐧诲綍鎴愬姛', icon: 'success', duration: 2000 });
- uni.redirectTo({ url: '/pages/index/index' });
+ const homePath = getAnchorHomePath(normalizeAnchorPageVersion(config.anchorPageVersion))
+ uni.redirectTo({ url: homePath });
})
}
}
@@ -65,7 +67,7 @@
display: flex;
justify-content: center;
align-items: center;
- background-image: url('@/static/bg.jpg');
+ background-image: url('@/static/mb.png');
background-repeat: no-repeat;
background-size: 100% 100%;
.box_login {
@@ -77,7 +79,7 @@
flex-direction: column;
justify-content: space-between;
box-sizing: border-box;
- background: linear-gradient(180deg, #518198 0%, #033B58 100%);
+ background: #0d1e41;
box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.19);
border-radius: 8px;
.box_login_head {
@@ -89,13 +91,13 @@
.box_login_item {
width: 100%;
height: 72px;
- background: rgba(0,224,255,0.18);
+ background: rgba(137,159,197,.16);
border-radius: 8px;
padding: 0 24px;
display: flex;
align-items: center;
box-sizing: border-box;
- border: 2px solid #3C8BAD;
+ border: 1px solid rgba(137,159,197,.6);
margin-top: 30px;
.box_login_item_icon {
flex-shrink: 0;
@@ -137,7 +139,7 @@
height: 72px;
line-height: 72px;
text-align: center;
- background: rgba(0,224,255,0.7) linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0.21) 100%);
+ background: #899fc5 linear-gradient(180deg,hsla(0,0%,100%,.35),rgba(0,0,0,.21));
border-radius: 8px;
margin-top: 30px;
font-size: 28px;
--
Gitblit v1.9.3