**简要描述:** - 会员中心 **请求URL:** - ` api/userlevel/lists` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | **返回示例** ``` { "code": 1, "msg": "获取成功", "data": { "user": { "nickname": "九三。", "avatar": "http://www.likeshop.localhost/uploads/user/202103031456418167b1324.jpg", "level_name": "铂金会员", "user_growth": 4561 }, "level_list": [ { "name": "普通会员", "current_level_status": 0, "current_growth_tips": "", "image": "http://www.likeshop.localhost/images/user_level/icon_grade1.png", "background_image": "http://www.likeshop.localhost/images/user_level/bg_grade1.png", "diff_growth_tips": "", "level_privilege": [ { "id": 1, "name": "购物折扣", "image": "http://www.likeshop.localhost/images/user_privilege/icon_discount.png" } ], "diff_growth_percent": 0 }, { "name": "黄金会员", "current_level_status": 0, "current_growth_tips": "", "image": "http://www.likeshop.localhost/images/user_level/icon_grade2.png", "background_image": "http://www.likeshop.localhost/images/user_level/bg_grade2.png", "diff_growth_tips": "", "level_privilege": [ { "id": 1, "name": "购物折扣", "image": "http://www.likeshop.localhost/images/user_privilege/icon_discount.png" } ], "diff_growth_percent": 0 }, { "name": "铂金会员", "current_level_status": 1, "current_growth_tips": "当前成长值 4561", "image": "http://www.likeshop.localhost/images/user_level/icon_grade3.png", "background_image": "http://www.likeshop.localhost/images/user_level/bg_grade3.png", "diff_growth_tips": "", "level_privilege": [ { "id": 4, "name": "专属客服", "image": "http://www.likeshop.localhost/images/user_privilege/icon_customer.png" } ], "diff_growth_percent": 0.91 }, { "name": "钻石会员", "current_level_status": -1, "current_growth_tips": "当前成长值 4561", "image": "http://www.likeshop.localhost/images/user_level/icon_grade4.png", "background_image": "http://www.likeshop.localhost/images/user_level/bg_grade4.png", "diff_growth_tips": "还需439可升级", "level_privilege": [ { "id": 1, "name": "购物折扣", "image": "http://www.likeshop.localhost/images/user_privilege/icon_discount.png" }, { "id": 2, "name": "全场免邮费", "image": "http://www.likeshop.localhost/images/user_privilege/icon_freight.png" }, { "id": 3, "name": "会员优惠券", "image": "http://www.likeshop.localhost/images/user_privilege/icon_coupon.png" }, { "id": 4, "name": "专属客服", "image": "http://www.likeshop.localhost/images/user_privilege/icon_customer.png" } ], "diff_growth_percent": 0 } ], "growth_rule": "1.使用余额充值,每元赠送2成长值。\n2.会员连续签到1天,赠送10成长值;会员连续签到1天,赠送5成长值;会员连续签到2天,赠送20成长值;会员连续签到3天,赠送40成长值;会员连续签到4天,赠送90成长值;会员连续签到5天,赠送120成长值;会员连续签到6天,赠送140成长值;会员连续签到7天,赠送160成长值;\n" }, "show": 0, "time": "1.127858" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |user|array|用户信息| |----nickname|string|昵称| |----avatar|string|会员头像| |----level_name|string|会员等级| |level_list|array|等级列表| |----id|int|等级id| |----name|stringj|等级名称| |----growth_value|int|达到该等级所需要的成长值| |----image|string|会员图标| |----background_image|string|会员背景图| |----current_level_status|int|等级状态:-1-未解锁;0-已解锁;1-当前等级| |----current_growth_tips|string|当前成长值提示语| |----diff_growth_tips|float|距离下个等级的提示| |----diff_growth_percent|float|距离下个等级的提示| |----level_privilege|array|会员权益| |--------id|int|权益id| |--------name|string|会员权益名称| |--------image|string|权益图标| |growth_rule|string|成长值规则| **备注** -