Commit 26294e0f by sunchao

头像没有取默认值

parent 47cbd293
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div>执业证书</div> <div>执业证书</div>
</div> </div>
<div class="right cerPhoto"> <div class="right cerPhoto">
<img src="{{userPractitionerInfo?.headFilePath}}" alt="" class="img-responsive "> <img src="{{getDefaultHeadImg(userPractitionerInfo?.headFilePath)}}" alt="" class="img-responsive ">
</div> </div>
</div> </div>
<div class="wrapper"> <div class="wrapper">
......
...@@ -89,4 +89,12 @@ export class BrokerDetailComponent implements OnInit { ...@@ -89,4 +89,12 @@ export class BrokerDetailComponent implements OnInit {
} }
return deviceType; return deviceType;
} }
getDefaultHeadImg(str){
if(!str){
return 'https://mdev.zuihuibi.cn/ydLife/assets/images/icons/meng.png';
}else{
return str;
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment