简要描述:

  • pc端/app端 默认首页数据

请求action:

POST: route=home-page.get-params

参数:

参数名 是否必须 类型 说明
url string 当前页面链接地址

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "home": {
			"mailInfo": {
				"close": "0",
				"name": "芸众商城",
				"logo": "https://dev3.yunzshop.com/attachment/images/2/2019/02/r199939Gi915aAOQ94m99ahp3G1A0G.png",
				"cservice": "",
				"credit1": "积分",
				"agent": true,
				"diycode": "",
				"is_bind_mobile": 0
			},
			"memberinfo": {
				"is_open_delivery_station": '1'
			},
			"designer": {
				"love_name": "爱心值"
			},
			"item": {
				"pageinfo": {
					"id": "M0000000000000",
					"temp": "topbar",
					"params": {
						"title": "",
						"floatico": "0",
						"floatstyle": "right",
						"floatwidth": "40px",
						"floattop": "100px",
						"floatimg": "",
						"floathref": ""
					}
				},
				"data": [
					{
						"id": "M1540967248431",
						"temp": "location",
						"params": {
							/* 样式  */
						},
						"data": [
							{
								"id": "P0000000000001",
								"imgurl": "/addons/yun_shop/plugins/designer/assets/images/init-data/init-image-4.jpg",
								"hrefurl": "",
								"style": "style1",
								"color": "",
								"bgcolor": "#ccc",
								"bordercolor": "",
								"option": "0"
							}
						],
						"content": "",
						"Identification": 0,
						"total": 0
					},
				],
				"menus": [
					{
						"id": 1,
						"title": "首页",
						"icon": "fa fa-home",
						"url": "/addons/yun_shop/?#/home?i=2&mid=0&type=5",
						"name": "home",
						"subMenus": [],
						"textcolor": "#70c10b",
						"bgcolor": "#24d7e6",
						"bordercolor": "#bfbfbf",
						"iconcolor": "#666666"
						 .....
					},
				],
				"params": null,
				"topmenu": {
					"menus": [......],
					"params": [......],
					"isshow": false
				},
				"menustyle": {
					"previewbg": "#ef372e",
					"height": "49px",
					"textcolor": "#666666",
					"textcolorhigh": "#ff4949",
					"iconcolor": "#666666",
					"iconcolorhigh": "#ff4949",
					"bgcolor": "#FFF",
					"bgcolorhigh": "#FFF",
					"bordercolor": "#010101",
					"bordercolorhigh": "#bfbfbf",
					"showtext": 1,
					"showborder": "0",
					"showicon": 2,
					"textcolor2": "#666666",
					"bgcolor2": "#fafafa",
					"bordercolor2": "#1856f8",
					"showborder2": 1,
					"bgalpha": ".5"
				}
				},
				"captcha": {
					"sensitive": false,
					"key": "$2y$10$BTM4.bRdcZKbNYfmliha5ubjeBzEuB9hf1U55JhOu.GjlQvFrlHpa",
					"img": "....",
					"status": "1"
				}
			},
		},
		"page": {
			"is_bind_mobile": 0,
			"invite_page": 0,
			"is_invite": 0,
			"is_login": 0,
			 ......
		},
		"balance": {
			"balance": "钱钱",
			 ......
		},
		"lang": {
			"commission": {
				"title": "",
				"commission": "",
				"agent": "",
				"level_name": "",
				"commission_order": "",
				"commission_amount": ""
			},
			"single_return": {
				"title": "",
				"single_return": "",
				"return_name": "",
				"return_queue": "",
				"return_log": "",
				"return_detail": "",
				"return_amount": ""
			},
			"team_return": {
				"title": "",
				"team_return": "",
				"return_name": "",
				"team_level": "",
				"return_log": "",
				"return_detail": "",
				"return_amount": "",
				"return_rate": "",
			},
			"full_return": {
				"title": "",
				"full_return": "",
				"return_name": "",
				"full_return_log": "",
				"return_detail": "",
				"return_amount": ""
			},
			"team_dividend": {
				"title": "",
				"team_agent_centre": "",
				"dividend": "",
				"team_dividend": "",
				"flat_prize": "",
				"award_gratitude": "",
				"dividend_amount": ""
			},
			"area_dividend": {
				"area_dividend_center": "",
				"dividend_amount": ""
			},
			"income": {
				"income_name": "自收入",
				"special_service_tax": "定义税"
			}
		},
		"config": {
			"config": {......},
			"shop": {
				"shop": {
					"name": "芸众商城",
				},
				"icon": "",
				"name": ""
			},
			"info": {
				"uid": 21,
			},
			"share": {
				"title": "芸众商城",
				"icon": "https://dev3.yunzshop.com/attachment/images/2/2018/08/XZtELEeaKiEzgMpAlpaAG7VU8Ppan9.jpg",
				"desc": "",
				"url": ""
			}
		}
    }
}

没有说明的参数 即在前端代码有调用到但提取不到文字说明参数用途:

home 参数名 类型 说明
参数名 类型 说明
mailInfo string 商城信息
designer string 用到
item string 首页以及导航栏等公共数据
captcha string 验证码
home.mailInfo{参数名 类型 说明
close string 用到?
diycode string 用到
is_bind_mobile Number 是否需要绑定手机 0:否,1:是
agent Boolean 代理人
credit1 string 积分自定义字段
cservice string 客服链接
logo string 商城logo
name string 商城名称
home.memberinfo{参数名 类型 说明
is_open_delivery_station Number 是否开启订单配送站, 0:关闭,1:开启
home.designer{参数名 类型 说明
love_name string 爱心值自定义字段
home.item{参数名 类型 说明
data Array [......]
pageinfo Array [......]
menus Array 底部导航栏列表数据与样式
topmenu object {......}
menustyle object {......}
captcha object 验证码
home.item.pageinfo{参数名 类型 说明
id string ID
temp string "topbar":开启
params string {title:标题, floatico:"0", floatstyle:"right", floatwidth:"40px", "floattop":"100px", floatimg: "", floathref:""}
home.item.data[] 参数名 类型 说明
id string ID
temp string 前端渲染组件
params string 样式
data Array 商品数组
Identification string 开关
home.item.menus[] 参数名 类型 说明
home.item.menus[] Array 底部导航栏列表数据与样式
home.item.topmenu{参数名 类型 说明
menus Array [......]
params Array [......]
isshow Boolean 是否开启装修相关
home.item.menustyle{参数名 类型 说明
home.item.menustyle{ string 底部样式
home.captcha 参数名 类型 说明
key string 验证码key值
img string 验证码图片base64
status string 验证码状态
page 参数名 类型 说明
参数名 类型 说明
is_bind_mobile Number 是否需要绑定手机
invite_page Number 是否开启邀请页面
is_invite Number 是否第一次进来
is_login Number 是否需要登录
balance 参数名 类型 说明
参数名 类型 说明
balance string 自定义语言
lang 参数名 类型 说明
参数名 类型 说明
commission{ object title 分销标题
...... commission
agent 分销商
level_name 分销等级
commission_order 分销订单
commission_amount
single_return{ object title 消费赠送标题
...... single_return 消费赠送
return_name 赠送
return_queue 消费队列
return_log 消费记录
return_detail 消费详情
return_amount 已赠送金额
team_return{ object title 经销商奖励标题
...... team_return 团队赠送
return_name 赠送
team_level 经销商等级
return_log 赠送记录
return_detail 赠送详情
return_amount 赠送金额
return_rate 赠送比例
full_return{ object title 满额返现
...... full_return 消费满额赠送
return_name 赠送
full_return_log 满额返现记录
return_detail 赠送详情
return_amount 已赠送金额
team_dividend{ object title 经销商管理
...... team_agent_centre 经销商管理中心
dividend 提成
team_dividend 00000
flat_prize 平级奖
award_gratitude 感恩奖
dividend_amount 佣金
area_dividend{ object
...... area_dividend_center 区域代理中心
dividend_amount 佣金
income{ object
...... income_name 自定义语言收入
special_service_tax 自定义语言 劳务税
config 参数名 类型 说明
参数名 类型 说明
config object 微信分享配置参数
shop object 分享
share object 自定义语言
info object {......}
config.shop 参数名 类型 说明
参数名 类型 说明
shop string 商城信息 return => shop:{ "name": 商城设置标题}
icon string 商城设置图标
name string 商城设置描述
config.share 参数名 类型 说明
参数名 类型 说明
title string 分享标题
icon string 分享图标
desc string 分享描述
config.info 参数名 类型 说明
参数名 类型 说明
uid Number mid

错误时返回:

  {
    "result": 0,
    "msg":"错误提示",
    "data": ""
  }

备注:

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