Преглед изворни кода

5834 ios 老师学生 首页相册问题

liushengqiang пре 2 година
родитељ
комит
038abdf66d

+ 1 - 1
src/views/mine-orchestra/my-photo/index.module.less

@@ -1,5 +1,5 @@
 .phoneDetail {
-  height: calc(100vh - var(--header-height));
+  height: calc(100vh - var(--header-height) - var(--header-cellGroup));
   overflow: hidden;
   overflow-y: auto;
 }

+ 7 - 0
src/views/mine-orchestra/my-photo/index.tsx

@@ -127,6 +127,13 @@ export default defineComponent({
           }}
         >
           <OHeader />
+        </OSticky>
+        <OSticky
+          offsetTop={`var(--header-height)`}
+          onGetHeight={(height: number) => {
+            document.documentElement.style.setProperty('--header-cellGroup', height + 'px')
+          }}
+        >
           {data.schoolList.length > 0 && (
             <CellGroup inset class={styles.cellGroup}>
               <Cell class={styles.select} center isLink onClick={() => (data.schoolStatus = true)}>