Browse Source

更换logo,调整首页筛选项

lwei 1 year ago
parent
commit
0f374307bf

+ 11 - 3
src/NewPageHeader.tsx

@@ -6,7 +6,7 @@ import { Avatar, Button, Col, Row, message } from 'antd'
 import QrcodeIcon from 'assets/qrcode-icon.svg'
 import AppletImg from 'assets/applet.png'
 import OfficialImg from 'assets/official.png'
-import LogoImg from 'assets/logo.png'
+// import LogoImg from 'assets/logo.png'
 
 import { useLogin2p } from './Login2p/Login2pContext'
 import { useMedia } from 'Context/Media/MediaContext'
@@ -149,7 +149,11 @@ const NewPage: React.FC = props => {
       {isShowMobileMenu ? (
         <div className={styles['newpage-mobile-header']}>
           <div className="newpage-mobile-menu-wrapper">
-            <img src={LogoImg} className={styles.headerLogo} alt="logo" />
+            <img
+              src='"https://hzstatic.hzinsights.com/cygx_web/ico/logo_inedx.png"'
+              className={styles.headerLogo}
+              alt="logo"
+            />
 
             {login2p.jwt ? (
               <img
@@ -236,7 +240,11 @@ const NewPage: React.FC = props => {
         <Row wrap={false} justify="space-around" align="middle">
           <Col className={styles['reset-padding']}>
             <Link to="/" className={styles['logo-wrapper']}>
-              <img src={LogoImg} className={styles.headerLogo} alt="logo" />
+              <img
+                src="https://hzstatic.hzinsights.com/cygx_web/ico/logo_inedx.png"
+                className={styles.headerLogo}
+                alt="logo"
+              />
               {/* <span className={styles['header-text']}>查研观向</span> */}
             </Link>
           </Col>

+ 5 - 1
src/Newest/components/NewestLibrary.tsx

@@ -277,13 +277,17 @@ const NewestLibrary: React.FC = props => {
           ))}
         </div>
       )} */}
-      {tagData && (tagData?.List1?.length > 0 || tagData?.List2?.length > 0) && (
+      {tagData && tagData?.List1?.length > 0 && (
         <div className={styles['newestindex-label-wrapper']}>
           {tagData?.List1?.map((item: string, index: number) => (
             <div className={handleIncludeIds(item)} key={index} onClick={handleClickTag.bind(this, item, 'activity')}>
               {item}
             </div>
           ))}
+        </div>
+      )}
+      {tagData && tagData?.List2?.length > 0 && (
+        <div className={styles['newestindex-label-wrapper']}>
           {tagData?.List2?.map((item: string, index: number) => (
             <div className={handleIncludeIds(item)} key={index} onClick={handleClickTag.bind(this, item, 'activity')}>
               {item}

BIN
src/assets/logo.png


+ 2 - 2
src/styles/NewPage.module.scss

@@ -162,8 +162,8 @@
   margin-right: 60px;
 }
 .headerLogo {
-  width: 32px;
-  height: 32px;
+  width: auto;
+  height: 40px;
 }
 .header-text {
   color: #ffffff;