filters: {
filterData(data) {
if (data) {
return data;
} else {
return "—— ——";
}
},
money(data) {
if (data) {
return "¥" + data.toFixed(2);
} else {
if (data == 0) {
return "¥" + 0;
}
return "—— ——";
}
},
},
<span>{{arr.level_name | filterData}}</span>
<span>{{arr.original_price | money}}</span>