uniapp Wechat applet image dynamic echo: src

<view class="user-img">
	//如果返回的数据有图片则显示,否则则显示默认图片
	<image :src="infos.pic? infos.pic : '/static/images/icon/head04.png'"></image>
</view>

Guess you like

Origin blog.csdn.net/maoge_666/article/details/131982666