background-image设置
:style="{backgroundImage: 'url(' + item.coverPic + ')'}"
<div class="cardLeft" :style="{'background-color':item.color}"></div>
class动态拼接
需要的效果class="status status1"
:class="'star star'+Math.round(item.courseScore)"
class条件判断
:class="{active:page==item}"
多个class的条件判断
:class="{active:page==item,done:status==0}"