소스 검색

慢病提送模板样式修改及逻辑处理

liucf 6 년 전
부모
커밋
0bec308d8e

BIN
src/common/images/add-result.png


BIN
src/common/images/加入@3x.png


BIN
src/common/images/已加入@2x.png


BIN
src/common/images/已加入@3x.png


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 150 - 74
src/components/ChronicInfo/index.jsx


+ 20 - 4
src/components/ChronicInfo/index.less

@@ -71,12 +71,18 @@
         }
         .listResult{
           float: right;
-          color: #000012;
-          i{
-            color: #F98F24;
-          }
+          display: inline-block;
+          width: 99px;
+          height: 26px;
+          line-height: 26px;
+          text-align: center;
+          border: 1px solid #EAEDF1;
+          border-radius: 4px;
+          font-size: 12px;
           img{
             vertical-align: middle;
+            width: 12px;
+            margin:-3px 3px 0 0;
           }
         }
         .infoBox{
@@ -106,6 +112,16 @@
           }
         }
       }
+      .marTop{
+        margin-top: 10px;
+        position: relative;
+        img{
+          vertical-align: middle;
+        }
+      }
+      .blue{
+        color:#3B9ED0;
+      }
       .mainList{
         .listBtn{
           display: inline-block;

+ 2 - 2
src/components/PushItems/index.jsx

@@ -160,7 +160,7 @@ class PushItems extends Component {
       tips,
       tmpFlg,
     } = this.props.pushMessage;
-    const { tipsDiscalimer} = this.props;
+    const { tipsDiscalimer,chronicPushItems} = this.props;
     const { moreAssay, moreCheck ,show} = this.state;
     const {
       showMore,
@@ -422,7 +422,7 @@ class PushItems extends Component {
                 )}
               </div>
             </div>
-            {show?<ChronicInfo></ChronicInfo>:''}
+            {chronicPushItems&&chronicPushItems.length>0?<ChronicInfo data={chronicPushItems}></ChronicInfo>:''}
             <div className={style["tips"]}>
               <h1>
                 <img src={tipsImg} />

+ 1 - 0
src/containers/PushItemsContainer.js

@@ -14,6 +14,7 @@ function mapStateToProps(state) {
         questionId: state.diagnosticList.clickDiag,
         tableList: state.pushMessage.tableList,
         showList: state.pushMessage.showList,
+        chronicPushItems: state.pushMessage.chronicPushItems,
     }
 }