Quellcode durchsuchen

修改loading中的信息提示弹窗

zhangxc vor 5 Jahren
Ursprung
Commit
b1852cd6ae

+ 2 - 3
src/common/components/Loading/index.jsx

@@ -10,6 +10,7 @@ import React, {Component} from 'react';
 import style from './index.less';
  import wnIcon from '@common/images/wn.png';
 import icon from '@common/images/loading.gif';
+import Notify from '@commonComp/Notify';
 import ReactDom from 'react-dom';
 
 /*const propTypes = {
@@ -43,9 +44,7 @@ class Loading extends React.Component{
             <div className={style['loading']} style={{display: show ? 'block' : 'none'}}>
                 {/*{this.props.shadeIsShow?<div className={style['cover']}/>:null}*/}
                 <div className={style['cover']}/>
-              {type==='warning'?<div className={style['t-info']}>
-                <p><img src={wnIcon} alt=""/>{text}</p>
-              </div>:<div className={style['info']}>
+              {type==='warning'?Notify.info(text,0, false,false):<div className={style['info']}>
                     <img src={icon}/>
                     <p>{text}</p>
                 </div>}

+ 3 - 3
src/store/async-actions/pushMessage.js

@@ -183,7 +183,7 @@ export const getConceptDetail = (item,noTips,noDetails,noNotify) => {
                 }
             } else {
               if(!noNotify) {
-                Notify.info('提示信息未维护')
+                Notify.info('提示信息未维护',0)
               }
             }
             
@@ -214,7 +214,7 @@ export const getAllConceptDetail = (item) => {
                   type: SHOW_TIPS_DETAILS
                 })
               }else{
-                Notify.info('提示信息未维护');
+                Notify.info('提示信息未维护',0);
               }
               dispatch({
                 type: SET_TIPS_DETAILS,
@@ -222,7 +222,7 @@ export const getAllConceptDetail = (item) => {
                 showAllName: item.showName
               })
             } else {
-                Notify.info('提示信息未维护');
+                Notify.info('提示信息未维护',0);
             }
                
         }).catch((e) => {