简要描述:

  • 会员中心首页数据接口

请求域名:

  • http://xx.com

请求URL:

GET/获取会员中心首页数据:member.member.member-data

返回示例:

正确时返回:

  {
    "result": 1,
    "data": {
	"order":[
		{
		"status":0
		"total":256
		}
	]
	"hotel_order":[
		{
		"has_one_hotel_order":null
		"hotel_name": null
		"plugin_bonus": 0
		"status": 0
		"total": 9
		}
	]
	"relation": {
		"switch":1
		}
	"isStore": {
		"status":1
		}
	"level": {
		"is_open":1
		"level_type":"2"
		}
	"custom":{
		"custom_title": "个性签名"
		"is_custom":"0"
		"is_validity":true
		"term":"1"
		}
	"yz_member":{
		"custom_value": ""
		"validity":0
		}
	"plugins": {
		"asset_equity":[
				{
				"name": "asset"
				"class":"icon-member-credit01"
				"title":"资产数字化"
				"url":"TransHome"
			 	}
			]
		"merchant":[
				{
				"name": "supplier"
				"class":"icon-member-supplier"
				"title":"供应商管理"
				"url":"SupplierCenter"
			 	}
			]
		"market":[
				{
				"name": "conference"
				"class":"icon-member-act-signup1"
				"title":"会务活动"
				"url":"conferenceList"
			 	}
			]
		}
	"member": {
			"uid":1
			"relation_switch":1
			"income":"8,972,914.76"
			"is_agent":true	
			"nickname":"卡卡"
			"copyright":"芸众"
			"level_name":"合伙人"
			"mobile":"18026357601"
			"is_open_net_car":1
			"is_open_hotel":1
			"withdraw_status":1
			"avatar":"https://thirdwx.qlogo.cn/mmopen/yFAViaTLylmuuqIib1SE3tZDXiaeZ7H93tdHI5icm7zONiasUFd1AZQ3ug0hWDC1J6ibvfoFABibicXCH4K6cuPwyEXBlib3MZF7Qzx0I/132"
			"poster":"https://dev5.yunzshop.com/addons/yun_shop/storage/app/public/poster/2/cb158aadfacd3894c28d3ae243b99743.png"
			"cashier":{
					"api": "plugin.store-cashier.frontend.cashier.center.index"
					"button_name": "收银台"
				}
			"credit":{
					"data":"990440.69"
					"is_show":1
					"text":"余额啊"
				}
			"elive":{
					"button_name": "生活缴费"
					"status":true
				}
			"froze":{
					"froze_name": "冻结币"
					"status":true
				}
			"love_show":{
					"data":"1743.40"
					"is_show":0
					"text":"爱心值123"
				}
			"integral":{
					"data": "2334.22"
					"text": "积分"
				}
			"sign":{
					"plugin_name": "签到"
					"status": true
				}
			"help_center":{
					"button_name": "帮助中心"
					"status": true
				}
			"love":{
					"love_name": "爱心值123"
					"status": true
				}
			"supplier":{
					"api": "plugin.supplier.supplier.controllers.apply.supplier-apply.apply"
					"value": "供应商申请"
				}
			"inviteCode":{
					"code":"VU0SKJQ0"
					"status":0
				}
			"coin":{
					"coin_name":"华侨币"
					"status":true
				}
			"micro":{
					"status": 1
				}
		}
    }
	"msg":'获取成功'
  }

错误时返回:

  {
    "result": 0,
    "msg": "获取失败"
  }

返回参数说明:

relation参数名 类型 说明
switch int 是否开启资产权益中的推广中心,1为开启
yz_member参数名 类型 说明
custom_value str
validity str 会员等级限制时间
isStore参数名 类型 说明
status int 是否开启商家管理中的门店管理,1为开启
level参数名 类型 说明
is_open int 会员权益是否开启,1为开启
level_type str 会员权益跳转
custom参数名 类型 说明
custom_title str 会员等级标题
is_custom str 会员等级开关
is_validity boolean 会员等级时间限制开关 true为开启
term str 会员等级时间限制开关
order(我的订单数量)参数名 类型 说明
status int 订单代付款
total int 表示不同订单状态下订单的总数
hotel_order(酒店订单数量)参数名 类型 说明
status int 订单代付款
total int 表示不同订单状态下订单的总数
plugins下(asset_equity)参数名 类型 说明
name str 插件名称
class str 插件的类名
title str 插件的标题
url str 插件的跳转链接
plugins下(merchant)参数名 类型 说明
name str 插件名称
class str 插件的类名
title str 插件的标题
url str 插件的跳转链接
plugins下(market)参数名 类型 说明
name str 插件名称
class str 插件的类名
title str 插件的标题
url str 插件的跳转链接
member参数名 类型 说明
uid int
relation_switch int 是否开启二维码
income str 可提现金额
is_agent boolean 邀请码开关
nickname str 用户名称
copyright str 商城名称
level_name str 会员等级
mobile str 用户手机号码
is_open_net_car int 是否开启网约车
is_open_hotel int 是否开启酒店
withdraw_status int 是否显示提现
avatar str 用户头像
poster str 我的推广二维码
member下(cashier)参数名 类型 说明
api str 接口名称
button_name str 按钮名称
member下(supplier)参数名 类型 说明
api str 接口名称
button_name str 按钮名称
member下(credit)参数名 类型 说明
text str 用户信息模块(余额)名称
data str 用户信息模块(余额)数目
is_show str 用户信息模块(余额)开关 1为开启
member下(elive)参数名 类型 说明
button_name str 按钮名称
status boolean 按钮开关 true为开启
member下(froze)参数名 类型 说明
button_name str 按钮名称
status boolean 按钮开关 true为开启
member下(love_show)参数名 类型 说明
text str 用户信息模块(爱心值)名称
data str 用户信息模块(爱心值)数目
is_show str 用户信息模块(爱心值)开关 1为开启
member下(integral)参数名 类型 说明
text str 用户信息模块(积分)名称
data str 用户信息模块(积分)数目
member下(sign)参数名 类型 说明
plugin_name str 按钮名称
status boolean 按钮开关 true为开启
member下(help_center)参数名 类型 说明
button_name str 按钮名称
status boolean 按钮开关 true为开启
member下(love)参数名 类型 说明
love_name str 按钮名称
status boolean 按钮开关 true为开启
member下(inviteCode)参数名 类型 说明
code str 邀请码
status int 邀请码开关 1为开启
member下(coin)参数名 类型 说明
coin_name str 按钮名称
status boolean 按钮开关 true为开启
member下(micro)参数名 类型 说明
status boolean 是否开启微店 1为开启

更换后的数据格式:

数组/对象 新数组/对象
custom setting[custom]
level setting[level]
member[order] order[order]
member[hotel_order] order[hotel_order]
member[yop] plugin[is_open][yop]
member[is_open_hotel] plugin[is_open][is_open_hotel]
member[is_open_net_car] plugin[is_open][is_open_net_car]
member[is_open_converge_pay] plugin[is_open][is_open_converge_pay]
isStore[status] plugin[is_open][is_store]
member[cashier] plugin[merchant][cashier]
member[coin] plugin[asset_equity][coin]
member[courier] plugin[market][courier]
member[elive] plugin[tool][elive]
member[froze] plugin[asset_equity][froze]
member[love] plugin[asset_equity][love]
member[micro] plugin[merchant][micro]
member[market] plugin[tool][market]
member[supplier] plugin[merchant][supplier]
member[help-center] plugin[market][help-center]

备注:

  • 更多返回错误代码请看首页的错误代码描述