template
<div
class="plus"
v-for="(item,index) in phonecase2"
:key="index"
:class="(index+1)%3===1?'addmargina':(index+1)%3===2?'addmarginb':''"
@click="juanindex(index,item)"
>
data
addmarginb: "addmarginb",
addmargina: "addmargina"
style
.addmargina {
margin: 0 14px 0 30px !important;
}
.addmarginb {
margin-right: 14px !important;
}
绑定style行内样式,适用于任何框架
:style="{'color': (platformReport[index].val ===customerReport[index].val ? '':'#02D483')}"