filters:{
text(key){
var keyObj ={
allowRefund: '认证',
buyout:'上市',
cityCardTag: "城市名片",
deal: "政策",
endorse:"促销",
hallTypeVOList: "人气",
sell: "销量",
snack: "小吃",
vipTag: "折扣卡"
}
return keyObj[key]
},
color(key){
var colorObj = {
llowRefund: 'or',
buyout:'or',
cityCardTag: "or",
deal: "or",
endorse:"bl",
hallTypeVOList: "bl",
sell: "bl",
snack: "bl",
vipTag: "bl"
}
return colorObj[key]
}
}
VUE过滤
最新推荐文章于 2024-07-04 10:07:27 发布