学无先后,达者为师

网站首页 Vue 正文

vue状态判断。vue过滤器状态判断

作者:L、yan 更新时间: 2022-03-04 Vue
filters: {
			status(v) {
				switch (v) {
					case 1:
						return "待付款";
					case 2:
						return "待使用";
					case 3:
						return "已使用";
					case 4:
						return "已完成";
					case 5:
						return "退款中";
					case 6:
						return "已退款";
					case 7:
						return "退款失败";
				}
			}
		},

原文链接:https://blog.csdn.net/weixin_45966782/article/details/121612889

栏目分类
最近更新