Browse Source

uas手机版
首页图标+默认图标

RaoMeng 5 years ago
parent
commit
cb29a869f5

+ 7 - 2
uas-office-web/uas-mobile/src/components/common/func/FuncItem.jsx

@@ -64,8 +64,13 @@ class FuncItem extends Component {
         className={this.props.line ? 'func-func-root-line' : 'func-func-root'}
         onClick={this.onFuncClick.bind(this)}>
         <div className='func-func-layout'>
-          <img className='func-func-icon'
-               src={funcObj.img}/>
+          {
+            funcObj.img ? <img className='func-func-icon'
+                               src={funcObj.img}/> : <Icon
+              className='func-func-icon'
+              type={funcObj.icon || 'uas-func-default'}/>
+          }
+
           <span
             className={lineCount ? 'func-func-line-text' : 'func-func-text'}
             style={funcTextStyle}

+ 2 - 1
uas-office-web/uas-mobile/src/components/common/func/common-func.less

@@ -53,7 +53,7 @@
   width: 25%;
   position: relative;
   display: inline-block;
-  padding: 10px 4px 4px;
+  padding: 8px 4px 6px;
   background: white;
 }
 
@@ -108,6 +108,7 @@
   .func-func-icon {
     width: 28px;
     height: 28px;
+    font-size: 28px;
   }
 
   .func-func-text {

+ 17 - 4
uas-office-web/uas-mobile/src/components/common/mainHeader/MainHeader.jsx

@@ -18,10 +18,23 @@ class MainHeader extends Component {
 
     this.state = {
       homeHeaderIcon: [
-        { 'name': '我的日程', countUrl: API.APPCOMMON_COUNT + 'dailyTask.action' },
-        { 'name': '待审批', countUrl: API.APPCOMMON_COUNT + 'processToDo.action' },
-        { 'name': '我的待办', countUrl: API.APPCOMMON_COUNT + 'taskToDo.action' },
-        { 'name': '我的订阅', countUrl: API.APPCOMMON_COUNT + 'subscribe.action' },
+        {
+          'name': '我的日程',
+          countUrl: API.APPCOMMON_COUNT + 'dailyTask.action',
+          icon: 'uas-home-schedule',
+        },
+        {
+          'name': '待审批', countUrl: API.APPCOMMON_COUNT + 'processToDo.action',
+          icon: 'uas-home-approval',
+        },
+        {
+          'name': '我的待办', countUrl: API.APPCOMMON_COUNT + 'taskToDo.action',
+          icon: 'uas-home-task',
+        },
+        {
+          'name': '我的订阅', countUrl: API.APPCOMMON_COUNT + 'subscribe.action',
+          icon: 'uas-home-subscribe',
+        },
       ],
     }
   }

+ 3 - 3
uas-office-web/uas-mobile/src/configs/api.config.js

@@ -4,9 +4,9 @@
  */
 
 export const _host = window.location.origin
-  // && 'http://10.1.7.104:8090/ERP'//吴炳
-  // && 'http://10.1.7.44:8081/erp'//吴雨骁
-  // && 'http://usoft.f3322.net:10007/uas'
+  && 'http://10.1.7.104:8090/ERP'//吴炳
+  && 'http://10.1.7.44:8081/erp'//吴雨骁
+  && 'http://usoft.f3322.net:10007/uas'
 
 export const _baseURL = _host + (process.env.REACT_APP_ROUTER_BASE_NAME || '')
 

+ 1 - 1
uas-office-web/uas-mobile/src/configs/iconfont.conig.js

@@ -5,7 +5,7 @@ import { createFromIconfontCN } from '@ant-design/icons'
  * Desc: iconfont图标库
  */
 const UasIcon = createFromIconfontCN({
-  scriptUrl: '//at.alicdn.com/t/font_2183203_thktgjzq8r.js',
+  scriptUrl: '//at.alicdn.com/t/font_2183203_0ico7thsndhs.js',
 })
 
 export default UasIcon

+ 1 - 0
uas-office-web/uas-mobile/src/utils/private/services.util.js

@@ -57,6 +57,7 @@ export const analysisDocList = (response) => {
               name: childItem.name,
               caller: childItem.caller,
               img: childItem.icon && childItem.icon.exticon,
+              icon: childItem.icon && childItem.icon.deficon,
               often: childItem.often,
               url: childItem.url && childItem.url.skipurl,
               countUrl: childItem.url && childItem.url.counturl,