<view class="file-picker__box jsz" @tap="jszxszUpload('jsz')">view>
.jsz {
background-image: url('../../static/example_drive.png');
}
<view class="file-picker__box jsz" :style="{ 'background-image': 'url('+example_drive+')' }" @tap="jszxszUpload('jsz')">view>
data(){
return {
example_drive: '../../static/example_drive.png'
}
}
<view class="file-picker__box jsz" @tap="jszxszUpload('jsz')">view>
.jsz {
background-image: url('使用base64格式');
}