FANGLH 7 лет назад
Родитель
Сommit
74474ab2ee

+ 1 - 1
frontend/wechat-web/src/modules/hiPages/field-trip/FieldTrip.css

@@ -3,6 +3,6 @@
 .item_sty{padding:10px 15px; display: flex;fontSize:12px;}
 .comBtn_sty{width:302px;height:36px;margin-top: 40px;font-size:15px}
 .textarea_sty{border:none;fontSize:15px; color:#333333;padding:10px 20px;}
-.nextarr_sty{height:15px;width:8px;margin-left:5px;}
+.nextarr_sty{height:15px;width:8px;}
 
 

+ 7 - 1
frontend/wechat-web/src/modules/leave/LeaveAddPage.js

@@ -62,7 +62,13 @@ class LeaveAddPage extends Component{
             <div ref={node => this.node = node} style={{fontFamily:"PingFangSC-Regular",letterSpacing:2.5}} className="common-column-layout">
                 <div id="padding10">
                     <img class="img-circle" id="margin_top_bottom_15"
-                         src={"http://img5.imgtn.bdimg.com/it/u=1494163297,265276102&fm=26&gp=0.jpg"} width={60}
+                         src={ (
+                             this.props.userInfo.parent.student.avatar  == '' ||
+                             this.props.userInfo.parent.student.avatar == null ||
+                             this.props.userInfo.parent.student.avatar == undefined ||
+                             this.props.userInfo.parent.student.avatar.length == 0
+                         ) ?  "http://img5.imgtn.bdimg.com/it/u=1494163297,265276102&fm=26&gp=0.jpg"
+                             : this.props.userInfo.parent.student.avatar} width={60}
                          height={60}/>
                     <span class="span_17 text_bold " id="row_margin">{this.props.userInfo.user.student.stuName}的请假条</span>
                 </div>