mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 08:55:52 +08:00
feat: 增加优惠券领取详情和优化pc端跳转使用优惠券页面
This commit is contained in:
@@ -57,4 +57,31 @@ export function promotionsScopeTypeRender(h, params) {
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
export function memberPromotionsStatusRender(h, status) {
|
||||
let text = "未知",
|
||||
color = "red";
|
||||
if (status == "NEW") {
|
||||
text = "已领取";
|
||||
color = "geekblue";
|
||||
} else if (status == "USED") {
|
||||
text = "已使用";
|
||||
color = "green";
|
||||
} else if (status == "EXPIRE") {
|
||||
text = "已过期";
|
||||
color = "red";
|
||||
} else if (status == "CLOSED") {
|
||||
text = "已作废";
|
||||
color = "red";
|
||||
}
|
||||
return h("div", [
|
||||
h(
|
||||
"Tag",
|
||||
{
|
||||
props: {
|
||||
color: color,
|
||||
},
|
||||
},
|
||||
text
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user