Commit 2cb5f77a authored by liudong1993's avatar liudong1993

小程序用户中心 会员等级

parent 3fa0d471
......@@ -4066,6 +4066,17 @@ namespace Mall.Module.User
//获取会员优惠券信息 2020-06-15 add by :W
var couponList = memberCouponRepository.GetAllMemberCouponPageList(new RB_Member_DiscountCoupon_Extend { TenantId = umodel.TenantId, MallBaseId = umodel.MallBaseId, UseState = 0, UserId = umodel.Id });
var MemberGrade = "普通用户";
string MemberGradeIcon = "";
if (umodel.MemberGrade > 0) {
var mgModel = member_GradeRepository.GetEntity(umodel.MemberGrade);
if (mgModel != null) {
MemberGrade = mgModel.Name;
if (mgModel.Icon > 0) {
MemberGradeIcon = material_InfoRepository.GetEntity(mgModel.Icon)?.Path ?? "";
}
}
}
objData = new
{
//昵称
......@@ -4093,7 +4104,8 @@ namespace Mall.Module.User
{
parent_name,
member_level = umodel.MemberGrade,
level_name = umodel.MemberGradeName,
level_name = MemberGrade,
level_icon = MemberGradeIcon,
is_admin = 0,
},
MyOrder = new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment