lex-xin 3 months ago
parent
commit
a3a71f86f7
2 changed files with 6 additions and 4 deletions
  1. 3 1
      src/components/m-sticky/index.tsx
  2. 3 3
      src/views/activation-code/index.module.less

+ 3 - 1
src/components/m-sticky/index.tsx

@@ -145,7 +145,9 @@ export default defineComponent({
           ref={divRef}
           class={[
             'van-sticky',
-            props.mode === 'fixed' ? 'van-sticky--fixed' : ''
+            forms.heightV > 0 && props.mode === 'fixed'
+              ? 'van-sticky--fixed'
+              : ''
           ]}
           style={[forms.divStyle, forms.sectionStyle]}>
           <div ref={div2Ref}>{slots.default && slots.default()}</div>

+ 3 - 3
src/views/activation-code/index.module.less

@@ -61,8 +61,8 @@
 
   .title2 {
     i {
-      width: 79px;
-      height: 20px;
+      width: 71px;
+      height: 18px;
       background: url('./images/title2.png') no-repeat center;
       background-size: contain;
     }
@@ -93,7 +93,7 @@
 }
 
 .activationContainer {
-  min-height: calc(100vh - var(--header-height) - 90px);
+  min-height: calc(100vh - var(--header-height, 0) - 90px);
   margin-top: 90px;
   // overflow: hidden;
   position: relative;