简要描述:
请求action:
POST: route=home-page.index
参数:
参数名 |
是否必须 |
类型 |
说明 |
page_id |
是 |
string |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"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": "爱心值"
},
"plugin": {
"new_member_prize": [],
"goods_show": {
"goods_group": [
"point_deduct",
"collect",
"share"
],
"around_goods": [
"point_deduct"
]
}
},
"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"
}
},
}
}
没有说明的参数 即在前端代码有调用到但提取不到文字说明参数用途:
data 参数名 |
类型 |
说明 |
参数名 |
类型 |
说明 |
balance |
object |
自定义字段 |
mailInfo |
object |
商城信息 |
designer |
object |
|
item |
object |
首页以及导航栏等公共数据 |
captcha |
object |
验证码 |
mailInfo{参数名 |
类型 |
说明 |
close |
string |
diycode |
string |
is_bind_mobile |
Number |
是否需要绑定手机 0:否,1:是 |
agent |
Boolean |
代理人 |
credit1 |
string |
积分自定义字段 |
cservice |
string |
客服链接 |
logo |
string |
商城logo |
name |
string |
商城名称 |
plugin{参数名 |
类型 |
说明 |
new_member_prize |
|
goods_show |
array |
商品展示插件 |
plugin.goods_show{参数名 |
类型 |
说明 |
goods_group |
array |
point_deduct=积分抵扣,first_commission=一级分销返现,collect收藏,share分享 |
around_goods |
array |
point_deduct=积分抵扣,first_commission=一级分销返现 |
memberinfo{参数名 |
类型 |
说明 |
is_open_delivery_station |
Number |
是否开启订单配送站, 0:关闭,1:开启 |
designer{参数名 |
类型 |
说明 |
love_name |
string |
爱心值自定义字段 |
item{参数名 |
类型 |
说明 |
data |
Array |
[......] |
pageinfo |
Array |
[......] |
menus |
Array |
底部导航栏列表数据与样式 |
topmenu |
object |
{......} |
menustyle |
object |
{......} |
captcha |
object |
验证码 |
item.pageinfo{参数名 |
类型 |
说明 |
id |
string |
ID |
temp |
string |
"topbar":开启 |
params |
string |
{title:标题, floatico:"0", floatstyle:"right", floatwidth:"40px", "floattop":"100px", floatimg: "", floathref:""} |
item.data[] 参数名 |
类型 |
说明 |
id |
string |
ID |
temp |
string |
前端渲染组件 |
params |
string |
样式 |
data |
Array |
商品数组 |
Identification |
string |
开关 |
item.menus[] 参数名 |
类型 |
说明 |
home.item.menus[] |
Array |
底部导航栏列表数据与样式 |
item.topmenu{参数名 |
类型 |
说明 |
menus |
Array |
[......] |
params |
Array |
[......] |
isshow |
Boolean |
是否开启装修相关 |
item.menustyle{参数名 |
类型 |
说明 |
home.item.menustyle{ |
string |
底部样式 |
captcha 参数名 |
类型 |
说明 |
key |
string |
验证码key值 |
img |
string |
验证码图片base64 |
status |
string |
验证码状态 |
错误时返回:
{
"result": 0,
"msg":"错误提示",
"data": ""
}
备注: