feat(会员管理): 添加第三方账户绑定和会员等级功能

- 在登录API中新增获取第三方账户绑定列表、绑定和解绑功能
- 在会员API中新增获取当前会员等级、等级规则和等级列表的接口
- 在会员中心页面中添加第三方账户绑定的UI和逻辑
- 新增会员等级页面,展示当前等级、经验值和经验值记录
This commit is contained in:
pikachu1995@126.com
2026-05-13 18:53:33 +08:00
parent fe4e0ce75c
commit aa4bc81da4
22 changed files with 3262 additions and 386 deletions

View File

@@ -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: "状态",