1.图片是线上地址
v-bind:style="{ 'background-image': 'url(' + item.imgUrl+ ')', }"
2.图片是本地地址
<div class="general_rate_ico"
:style="{backgroundImage: 'url(' + coverImgUrl() + ')' }"
></div>
//图标
coverImgUrl(state){
return require('../../../assets/v2.3/quicklook/箭头@2x.png')
}
本地地址要加个require 后面再跟图片地址