mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
feat(会员管理): 添加第三方账户绑定和会员等级功能
- 在登录API中新增获取第三方账户绑定列表、绑定和解绑功能 - 在会员API中新增获取当前会员等级、等级规则和等级列表的接口 - 在会员中心页面中添加第三方账户绑定的UI和逻辑 - 新增会员等级页面,展示当前等级、经验值和经验值记录
This commit is contained in:
@@ -127,6 +127,7 @@ import {
|
||||
import {
|
||||
promotionsStatusRender,
|
||||
promotionsScopeTypeRender,
|
||||
promotionsCouponActivityTimeRender,
|
||||
} from "@/utils/promotions";
|
||||
|
||||
export default {
|
||||
@@ -148,13 +149,14 @@ export default {
|
||||
// 表头
|
||||
{
|
||||
type: "selection",
|
||||
width: 100,
|
||||
width: 52,
|
||||
align: "center",
|
||||
fixed: "left",
|
||||
/* 不使用 fixed:左侧固定列与主体表格分开渲染,叠加全局 .ivu-table table{width:100%} 易在接缝处留白;勾选列无需横向钉住 */
|
||||
},
|
||||
{
|
||||
title: "优惠券名称",
|
||||
key: "couponName",
|
||||
minWidth: 140,
|
||||
width: 180,
|
||||
tooltip: true,
|
||||
},
|
||||
@@ -238,21 +240,7 @@ export default {
|
||||
{
|
||||
title: "活动时间",
|
||||
width: 200,
|
||||
render: (h, params) => {
|
||||
if (
|
||||
params?.row?.getType === "ACTIVITY" &&
|
||||
params?.row?.rangeDayType === "DYNAMICTIME"
|
||||
) {
|
||||
return h("div", "长期有效");
|
||||
} else if (params?.row?.startTime && params?.row?.endTime) {
|
||||
return h("div", {
|
||||
domProps: {
|
||||
innerHTML:
|
||||
params.row.startTime + "<br/>" + params.row.endTime,
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
render: promotionsCouponActivityTimeRender,
|
||||
},
|
||||
{
|
||||
title: "状态",
|
||||
|
||||
Reference in New Issue
Block a user