Explorar o código

头部 提醒的图片修改

zhaojijng %!s(int64=2) %!d(string=hai) anos
pai
achega
3bc5f50683

+ 8 - 0
src/assets/icons/iconfont.css

@@ -12,6 +12,14 @@
   -moz-osx-font-smoothing: grayscale;
   -moz-osx-font-smoothing: grayscale;
 }
 }
 
 
+.icon-manageperson:before {
+  content: '\e62d';
+}
+
+.icon-manageintroduce:before {
+  content: '\e62b';
+}
+
 .icon-managecloth:before {
 .icon-managecloth:before {
   content: '\e62a';
   content: '\e62a';
 }
 }

+ 14 - 0
src/assets/icons/iconfont.json

@@ -6,6 +6,20 @@
   "description": "行政管理所用图片",
   "description": "行政管理所用图片",
   "glyphs": [
   "glyphs": [
     {
     {
+      "icon_id": "29802519",
+      "name": "person",
+      "font_class": "person",
+      "unicode": "e62d",
+      "unicode_decimal": 58925
+    },
+    {
+      "icon_id": "29802295",
+      "name": "introduce",
+      "font_class": "introduce",
+      "unicode": "e62b",
+      "unicode_decimal": 58923
+    },
+    {
       "icon_id": "28976686",
       "icon_id": "28976686",
       "name": "cloth",
       "name": "cloth",
       "font_class": "cloth",
       "font_class": "cloth",

BIN=BIN
src/assets/icons/iconfont.ttf


BIN=BIN
src/assets/icons/iconfont.woff


BIN=BIN
src/assets/icons/iconfont.woff2


+ 7 - 2
src/layouts/index.jsx

@@ -17,6 +17,7 @@ export default (props) => {
       content: '具体介绍管理员权限下的管理功能及相关操作说明。',
       content: '具体介绍管理员权限下的管理功能及相关操作说明。',
       name: '行政端操作指南.pdf',
       name: '行政端操作指南.pdf',
       url: 'http://10.100.28.79/image-service/common/file_get?systemId=dataPlatform&key=%E8%A1%8C%E6%94%BF%E7%AB%AF%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C20220419.pdf',
       url: 'http://10.100.28.79/image-service/common/file_get?systemId=dataPlatform&key=%E8%A1%8C%E6%94%BF%E7%AB%AF%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C20220419.pdf',
+      iconName: 'book',
     },
     },
     {
     {
       title: 'sagacare介绍',
       title: 'sagacare介绍',
@@ -24,6 +25,7 @@ export default (props) => {
       content: '环境健康主动管理服务',
       content: '环境健康主动管理服务',
       name: 'saga销售手册.pdf',
       name: 'saga销售手册.pdf',
       url: 'http://10.100.28.79/image-service/common/file_get?systemId=dataPlatform&key=sagacare%E4%BB%8B%E7%BB%8D.pdf',
       url: 'http://10.100.28.79/image-service/common/file_get?systemId=dataPlatform&key=sagacare%E4%BB%8B%E7%BB%8D.pdf',
+      iconName: 'introduce',
     },
     },
   ]);
   ]);
   const showMenuClick = () => {
   const showMenuClick = () => {
@@ -38,6 +40,7 @@ export default (props) => {
         message: item.title,
         message: item.title,
         description: item.content,
         description: item.content,
         duration: 0,
         duration: 0,
+        className: 'custom-class',
         onClick: () => {
         onClick: () => {
           console.log('Notification Clicked!', item);
           console.log('Notification Clicked!', item);
           // 下载pdf 需产品给出
           // 下载pdf 需产品给出
@@ -48,7 +51,7 @@ export default (props) => {
           a.download = item.name;
           a.download = item.name;
           a.click();
           a.click();
         },
         },
-        icon: <SmileOutlined style={{ color: '#108ee9', fontSize: 32 }} />,
+        icon: <Icon type={item.iconName} style={{ fontSize: 32, color: '#108ee9' }}></Icon>,
         style: {
         style: {
           width: 400,
           width: 400,
           borderRadius: 30,
           borderRadius: 30,
@@ -92,7 +95,9 @@ export default (props) => {
       <div className={styles.header}>
       <div className={styles.header}>
         <div className={styles.title}>之江项目</div>
         <div className={styles.title}>之江项目</div>
         <div className={styles.right}>
         <div className={styles.right}>
-          <div className={styles.picture}></div>
+          <div className={styles.picture}>
+            <Icon type="person" style={{ fontSize: 28 }}></Icon>
+          </div>
           <div
           <div
             className={styles.notify}
             className={styles.notify}
             onClick={(event) => {
             onClick={(event) => {

+ 5 - 2
src/layouts/index.less

@@ -16,6 +16,9 @@
   .ant-drawer-content-wrapper {
   .ant-drawer-content-wrapper {
     // border-radius: 10px;
     // border-radius: 10px;
   }
   }
+  .ant-notification-notice-icon {
+    top: 30px;
+  }
 }
 }
 
 
 .header {
 .header {
@@ -37,8 +40,8 @@
       width: 40px;
       width: 40px;
       height: 40px;
       height: 40px;
       margin-right: 24px;
       margin-right: 24px;
-      background-color: #4f4f4f;
-      border-radius: 40px;
+      //   background-color: #4f4f4f;
+      //   border-radius: 40px;
     }
     }
     .notify {
     .notify {
       margin-right: 24px;
       margin-right: 24px;