简要描述:
-门店独立模板--会员中心
请求域名:
- http://xx.com
请求URL:
plugin.store-alone-temp.frontend.member.index
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"member": {
"uid": 164934,
"uniacid": 1,
"credit1": "50.00",
"credit2": "12.00",
"credit3": "0.00",
"createtime": 1609999800,
"nickname": "13226204088",
"realname": "",
"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
"mobile": "13226204088",
"birthyear": 0,
"birthmonth": 0,
"birthday": 0,
"gender": 0,
"alipay": "",
"avatar_image": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
"username": "13226204088",
"yz_member": {
"member_id": 164934,
"uniacid": 1,
"parent_id": 0,
"group_id": 0,
"level_id": 0,
"inviter": 1,
"is_black": 0,
"province_name": "",
"city_name": "",
"area_name": "",
"province": 0,
"city": 0,
"area": 0,
"address": null,
"referralsn": "0",
"is_agent": 1,
"alipayname": null,
"alipay": null,
"content": null,
"status": 2,
"child_time": 1613976777,
"agent_time": 1613976777,
"apply_time": 0,
"relation": "",
"created_at": "2021-01-07 14:10:00",
"updated_at": "2021-02-22 14:52:57",
"deleted_at": null,
"custom_value": null,
"validity": null,
"member_form": null,
"pay_password": null,
"salt": null,
"withdraw_mobile": "",
"wechat": null,
"yz_openid": "0",
"invite_code": "UQJA7S8M",
"upgrade_at": null,
"downgrade_at": null,
"access_token_1": "0",
"access_expires_in_1": 0,
"refresh_token_1": "0",
"refresh_expires_in_1": 0,
"access_token_2": "0",
"access_expires_in_2": 0,
"refresh_token_2": "0",
"refresh_expires_in_2": 0,
"is_old": 0,
"mark_member_id": 0,
"system_type": "",
"last_login_time": 0,
"group": null,
"level": null,
"agent": null
},
"has_one_fans": null,
"inviteCode": 0,
"level_id": 0,
"level_name": "普通会员1",
"coupon": {
"is_show": 1,
"text": "优惠券",
"data": 0
},
"credit": {
"is_show": 0,
"text": "门店余额",
"data": 0
}
},
"order": [
{
"key": "order",
"title": "商品订单",
"order": [
{
"status": 0,
"status_name": "待支付",
"class": "icon-fontclass-daifukuan",
"total": 0
},
{
"status": 1,
"status_name": "待发货",
"class": "icon-fontclass-daifahuo",
"total": 0
},
{
"status": 2,
"status_name": "待收货",
"class": "icon-fontclass-daishouhuo1",
"total": 0
},
{
"status": 11,
"status_name": "售后列表",
"class": "icon-fontclass-shouhouliebiao",
"total": 11
}
]
},
{
"key": "fight_groups_order",
"title": "拼团订单",
"order": [
{
"status": 11,
"status_name": "售后列表",
"class": "icon-fontclass-shouhou",
"total": 0
},
{
"status": 0,
"status_name": "待付款",
"class": "icon-fontclass-daifukuan1",
"total": 0
},
{
"status": 1,
"status_name": "待发货",
"class": "icon-fontclass-daifahuo1",
"total": 0
},
{
"status": 2,
"status_name": "待收货",
"class": "icon-fontclass-daishouhuo",
"total": 0
},
{
"status": 3,
"status_name": "已完成",
"class": "icon-fontclass-daishouhuo",
"total": 0
}
]
}
],
"plugin": [
{
"class": "icon-fontclass-erweima",
"image": "/static/yunshop/designer/images/tool_a(2).png",
"is_open": true,
"name": "m-erweima",
"mini_url": "m-erweima",
"title": "二维码"
},
{
"class": "icon-fontclass-pinglun",
"image": "/static/yunshop/designer/images/tool_a(4).png",
"is_open": true,
"mini_url": "/packageD/member/myEvaluation/myEvaluation",
"name": "m-pinglun",
"title": "评论"
},
{
"class": "icon-fontclass-dizhi",
"image": "/static/yunshop/designer/images/tool_a(1).png",
"is_open": true,
"mini_url": "/packageD/member/addressList/addressList",
"name": "m-address",
"title": "地址管理"
},
{
"name": "findpwd",
"title": "忘记密码",
"class": "icon-fontclass-wangjimima2",
"image": "member_a(124).png",
"mini_url": "/packageE/findpwd/findpwd"
}
],
"plugin_head": [
{
"title": "商品收藏",
"class": "icon-fontclass-shoucang",
"value": 0,
"mini_url": "/packageD/member/collection/collection",
"url": "collection"
},
{
"title": "浏览记录",
"class": "icon-fontclass-liulan",
"value": 8,
"mini_url": "/packageD/member/footprint/footprint",
"url": "footprint"
}
],
"plugins_data": {
"nav": [
{
"name": "推荐商品",
"code": "recommend_goods"
},
{
"name": "微社区",
"code": "micro_communities"
}
],
"data": {
"current_page": 1,
"data": [
{
"id": 218,
"title": "测试",
"thumb": "newimage/5a70447348e3e38d0b2c75f7bf07ee71.jpg",
"market_price": "1.00",
"show_sales": 0,
"price": "1.00",
"stock": 2,
"has_option": 0,
"plugin_id": 32,
"vip_price": "1.00",
"next_level_price": "0.90",
"name": "测试",
"img": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5a70447348e3e38d0b2c75f7bf07ee71.jpg",
"stock_status": 0,
"vip_next_price": "0.90",
"price_level": 1,
"sales": 0,
"priceold": "1.00",
"pricenow": "1.00"
}
],
"first_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://yzmall.com/addons/yun_shop/api.php",
"per_page": 20,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
}
}
返回参数说明:member(会员数据)
参数名 | 类型 | 说明 | |
---|---|---|---|
uid | int | 会员id | |
nickname | string | 昵称 | |
avatar | string | 头像 | |
inviteCode | string | 邀请码 | |
level_name | string | 等级名称 | |
coupon | array | 用户优惠券数据(is_show是否显示,text数据类型,data数量) | |
credit | array | 用户门店余额数据(is_show是否显示,text数据类型,data数量) |
返回参数说明:order(订单数据)
参数名 | 类型 | 说明 | |
---|---|---|---|
key | string | 订单类型key | |
title | string | 订单类型名称 | |
order | array | 订单信息数据 |
返回参数说明:剩下数据都跟之前会员中心一致
错误时返回:
{
"result": 0,
"msg": "请登录",
"data": []
}