尝试修复闪动问题
This commit is contained in:
@@ -18,6 +18,6 @@
|
|||||||
"compileHotReLoad": true,
|
"compileHotReLoad": true,
|
||||||
"checkInvalidKey": true,
|
"checkInvalidKey": true,
|
||||||
"ignoreDevUnusedFiles": true,
|
"ignoreDevUnusedFiles": true,
|
||||||
"bigPackageSizeSupport": false
|
"bigPackageSizeSupport": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -80,6 +80,7 @@
|
|||||||
.listPage {
|
.listPage {
|
||||||
background-color: #FAFAFA;
|
background-color: #FAFAFA;
|
||||||
font-family: "PingFang SC";
|
font-family: "PingFang SC";
|
||||||
|
transition: padding-top 0.3s ease-in-out; // 添加过渡动画,让布局变化更平滑
|
||||||
|
|
||||||
.listTopSearchWrapper {
|
.listTopSearchWrapper {
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const ListPage = () => {
|
|||||||
const { statusNavbarHeightInfo, getCurrentLocationInfo } =
|
const { statusNavbarHeightInfo, getCurrentLocationInfo } =
|
||||||
useGlobalState() || {};
|
useGlobalState() || {};
|
||||||
|
|
||||||
const { totalHeight } = statusNavbarHeightInfo || {};
|
const { totalHeight = 98 } = statusNavbarHeightInfo || {}; // 设置默认值,避免从0跳到实际值
|
||||||
const {
|
const {
|
||||||
listPageState,
|
listPageState,
|
||||||
loading,
|
loading,
|
||||||
@@ -323,7 +323,7 @@ const ListPage = () => {
|
|||||||
// })
|
// })
|
||||||
// }, [])
|
// }, [])
|
||||||
|
|
||||||
const area_city = area.at(-2);
|
const area_city = area?.at(-2) || "上海"; // 设置默认值,避免条件渲染的突然切换
|
||||||
|
|
||||||
function renderCityQrcode() {
|
function renderCityQrcode() {
|
||||||
let item = cityQrCode.find((item) => item.city_name === area_city);
|
let item = cityQrCode.find((item) => item.city_name === area_city);
|
||||||
|
|||||||
@@ -16,9 +16,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 主要内容区域
|
// 背景渐变过渡动画
|
||||||
.main_content {
|
@keyframes backgroundGradient {
|
||||||
// position: relative;
|
0% {
|
||||||
|
background: #FFFFFF;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
background: radial-gradient(
|
background: radial-gradient(
|
||||||
circle at 50% 0,
|
circle at 50% 0,
|
||||||
/* 光晕圆心在顶部中间 */ rgba(191, 255, 239, 0.9) 0px,
|
/* 光晕圆心在顶部中间 */ rgba(191, 255, 239, 0.9) 0px,
|
||||||
@@ -26,6 +29,14 @@
|
|||||||
/* 100px 处开始淡化 */ #fafafa 300px,
|
/* 100px 处开始淡化 */ #fafafa 300px,
|
||||||
/* 到 200px 变成白色 */ #fafafa 100% /* 200px 以下全白 */
|
/* 到 200px 变成白色 */ #fafafa 100% /* 200px 以下全白 */
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 主要内容区域
|
||||||
|
.main_content {
|
||||||
|
// position: relative;
|
||||||
|
background: #FFFFFF;
|
||||||
|
animation: backgroundGradient 0.6s ease-in-out forwards;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user