<img :src="require(`@/assets/images/${computedTypeIcon}`)" class="icon-physical" alt="">
computed: {
computedTypeIcon(){
return this.itemType == 1 ? 'type1.png' : this.itemType == 3 ? 'type3.png' : this.itemType == 4 ? 'type4.png' : this.itemType == 5 ? 'type5.png' : this.itemType == 6 ? 'type6.png' : this.itemType == 7 ? 'type7.png' : this.itemType == 8 ? 'type8.png' : this.itemType == 9 ? 'type9.png' : this.itemType == 10 ? 'type10.png' : 'type1.png'
}
}
04-08
6105
09-16
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交