Browse Source

出入校详情展示两张图片

RaoMeng 4 years ago
parent
commit
73a1605f8b

+ 2 - 2
frontend/wechat-web/src/modules/hiPages/accessnoticedetail/AccessNoticeDetail.css

@@ -87,5 +87,5 @@
 
 .access-notice-img {
     max-width: 100%;
-    max-height: 200px;
-}
+    /*max-height: 200px;*/
+}

+ 8 - 1
frontend/wechat-web/src/modules/hiPages/accessnoticedetail/AccessNoticeDetail.jsx

@@ -23,6 +23,7 @@ class AccessNoticeDetail extends Component {
             time: '',
             week: '',
             pic: '',
+            pic2: '',
         }
     }
 
@@ -38,7 +39,7 @@ class AccessNoticeDetail extends Component {
     }
 
     render() {
-        const {recordType, stuName, date, time, week, pic} = this.state
+        const {recordType, stuName, date, time, week, pic, pic2} = this.state
 
         return (
             <div className='common-flex-column' style={{background: 'white'}}>
@@ -61,6 +62,11 @@ class AccessNoticeDetail extends Component {
                     <img className='access-notice-img'
                          src={pic}/>
                 </div>
+
+                {pic2 && <div className='access-notice-img-layout'>
+                    <img className='access-notice-img'
+                         src={pic2}/>
+                </div>}
             </div>
         )
     }
@@ -86,6 +92,7 @@ class AccessNoticeDetail extends Component {
                         time: time,
                         week: data.weekDays,
                         pic: data.recordFile,
+                        pic2: data.recordFile2 || "",
                     })
                 }
             })