uniapp采坑总结
<view class="uni-comment-list" :style="[{backgroundImage:'url(' + imgUrl + ')' }]">
imgUrl 只支持网络路径和base64图片,不支持相对路径和绝对路径
还可以根据条件去选择背景图
<view class="uni-comment-list" :style="[{backgroundImage:'url(' + (item==3?'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3744557892,211248692&fm=15&gp=0.jpg':'') + ')' }]">
item==3 为这个view添加背景图,否则不添加