修复摸大红移动端分类栏主题色与固定滚动
选中态改为主题橙,左侧分类固定仅右侧商品列表滚动。
This commit is contained in:
@@ -270,15 +270,18 @@ async function handleSupportClick() {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.mohong-shell {
|
.mohong-shell {
|
||||||
min-height: 100vh;
|
/* 固定视口高度:仅右侧列表滚动,左侧分类栏不随页面滚走 */
|
||||||
|
height: 100dvh;
|
||||||
|
max-height: 100dvh;
|
||||||
|
overflow: hidden;
|
||||||
background: #f5f7fb;
|
background: #f5f7fb;
|
||||||
padding-bottom: calc(64px + env(safe-area-inset-bottom));
|
padding-bottom: calc(52px + env(safe-area-inset-bottom));
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.page-header {
|
.page-header {
|
||||||
position: sticky;
|
flex-shrink: 0;
|
||||||
top: 0;
|
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -325,11 +328,17 @@ async function handleSupportClick() {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 88px minmax(0, 1fr);
|
grid-template-columns: 88px minmax(0, 1fr);
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.cat-sidebar {
|
.cat-sidebar {
|
||||||
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
background: #f7f8fa;
|
background: #f7f8fa;
|
||||||
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
padding: 8px 0 16px;
|
padding: 8px 0 16px;
|
||||||
|
overscroll-behavior: contain;
|
||||||
}
|
}
|
||||||
.cat-item {
|
.cat-item {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -345,15 +354,19 @@ async function handleSupportClick() {
|
|||||||
}
|
}
|
||||||
.cat-item.active {
|
.cat-item.active {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-left-color: #ff4d4f;
|
border-left-color: #ff6a00;
|
||||||
color: #ff4d4f;
|
color: #ff6a00;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
.list-panel {
|
.list-panel {
|
||||||
background: #fff;
|
height: 100%;
|
||||||
overflow-y: auto;
|
|
||||||
padding: 0 0 12px;
|
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
background: #fff;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
padding: 0 0 12px;
|
||||||
|
overscroll-behavior: contain;
|
||||||
}
|
}
|
||||||
.state-loading {
|
.state-loading {
|
||||||
padding: 40px 0;
|
padding: 40px 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user