shaogen1995 9 months ago
parent
commit
1af02acbfa
3 changed files with 27 additions and 1 deletions
  1. BIN
      src/assets/img/toHome.png
  2. 21 1
      src/pages/A1home/index.module.scss
  3. 6 0
      src/pages/A1home/index.tsx

BIN
src/assets/img/toHome.png


+ 21 - 1
src/pages/A1home/index.module.scss

@@ -77,6 +77,16 @@
             font-size: 28px;
             cursor: pointer;
           }
+          .toHome {
+            width: 28px;
+            height: 44px;
+            display: flex;
+            justify-content: center;
+            align-items: center;
+            & > img {
+              width: 28px;
+            }
+          }
         }
       }
     }
@@ -191,6 +201,16 @@
               font-size: 20px;
               cursor: pointer;
             }
+            .toHome {
+              width: 20px;
+              height: 32px;
+              display: flex;
+              justify-content: center;
+              align-items: center;
+              & > img {
+                width: 20px;
+              }
+            }
           }
         }
       }
@@ -199,7 +219,7 @@
           transform: rotate(-180deg);
         }
         & > ul {
-          max-height: 130px;
+          max-height: 140px;
         }
       }
 

+ 6 - 0
src/pages/A1home/index.tsx

@@ -6,6 +6,7 @@ import classNames from 'classnames'
 import '@/assets/styles/iconfont/iconfont.css'
 
 import logoImg from '@/assets/img/logo.png'
+import toHomeImg from '@/assets/img/toHome.png'
 import top4Img from '@/assets/img/top4.png'
 import bgmMp3 from '@/assets/img/bgm.mp3'
 import Share from './Share'
@@ -114,6 +115,11 @@ function A1home() {
           <li onClick={() => setSonPageShow('分享')}>
             <i className='iconfont icon-fenxiang'></i>
           </li>
+          <li onClick={() => window.location.reload()}>
+            <div className='toHome'>
+              <img src={toHomeImg} alt='' />
+            </div>
+          </li>
         </ul>
       </div>
       {/* 分享页面 */}