简要描述:
- pc端/app端 店铺装修页面接口
请求action:
plugin.designer.home.index.page
正确时返回:
{
"result": 1,
"msg": "获取装修页面成功",
"data": {
"page": {},
"pageinfo": [
{
"id": "M0000000000000",
"temp": "topbar",
"params": {
"allowauth":1,
"checkitem":"[1,2,3]",
"title": "",
"desc": "",
"img": "",
"kw": "",
"footer": "1",
"footermenu": "",
"floatico": "0",
"floatstyle": "right",
"floatwidth": "40px",
"floattop": "100px",
"floatimg": "",
"floatlink": ""
}
}
],
"data": [
{
"id": "M1492773338695",
"temp": "search",
"params": {
"placeholder": "搜索:输入关键字在店内搜索",
"style": "style1",
"color": "",
"bgcolor": "",
"bordercolor": "",
"searchurl": "/web/index.php?c=site&a=entry&m=yun_shop&do=9156&route=plugin.designer.admin.list.searchGoods",
"uniacid": "8"
},
"data": "",
"other": "",
"content": ""
},
{
"id": "M1492773339202",
"temp": "title",
"params": {
"title1": "",
"title2": "",
"showtitle2": "1",
"fontsize1": "18px",
"fontsize2": "14px",
"align": "left",
"color": "#000"
},
"data": "",
"other": "",
"content": ""
},
{
"id": "M1492773340473",
"temp": "blank",
"params": {
"height": "100px",
"bgcolor": ""
},
"data": "",
"other": "",
"content": ""
},
{
"id": "M1492773342364",
"temp": "goods",
"params": {
"style": "50%",
"showtitle": "0",
"titlecolor": "",
"bgcolor": "",
"showname": "1",
"title": "",
"option": "sale-rx",
"buysub": "buy-3",
"price": "1",
"goodhref": "/addons/yun_shop/#/goods?i=8"
},
"data": [],
"other": "",
"content": ""
},
{
"id": "M1492773343098",
"temp": "shop",
"params": {
"style": "1",
"bgimg": "http://restructure.mamp.com/addons/yun_shop/plugins/designer/assets/images/init-data/init-image-1.jpg",
"logo": "1",
"name": "1",
"menu": "1",
"navcolor": ""
},
"data": [
"/addons/yun_shop/#/home?i=8",
"{php echo $this->createMobileUrl(\"shop/list\")}",
"{php echo $this->createMobileUrl(\"shop/list\",array(\"isdiscount\"=>\"1\"))}",
"{php echo $this->createMobileUrl(\"shop/notice\")}"
],
"other": "",
"content": ""
},
{
"id": "M1492773343623",
"temp": "menu",
"params": {
"num": "20%",
"style": "0",
"bgcolor": "#fff"
},
"data": [
{
"id": "F0000000000001",
"imgurl": "",
"text": "",
"hrefurl": "",
"color": ""
},
{
"id": "F0000000000002",
"imgurl": "",
"text": "",
"hrefurl": "",
"color": ""
},
{
"id": "F0000000000003",
"imgurl": "",
"text": "",
"hrefurl": "",
"color": ""
},
{
"id": "F0000000000004",
"imgurl": "",
"text": "",
"hrefurl": "",
"color": ""
},
{
"id": "F0000000000005",
"imgurl": "",
"text": "",
"hrefurl": "",
"color": ""
}
],
"other": "",
"content": ""
}
],
"footertype": 1,
"footermenu": 0,
"system": "{\"name\":\"\",\"logo\":\"\",\"img\":\"\",\"signimg\":\"\",\"cservice\":\"\",\"diycode\":\"\",\"copyright\":\"\",\"credit\":\"\",\"credit1\":\"\",\"shop\":null}",
"menus": null,
"params": null,
"share": {
"title": null,
"desc": null,
"imgUrl": null
}
}
}
错误时返回:
{
"result": 0,
"msg":"错误提示",
"data":{}
}
返回参数:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 主键 |
page | 数据库储存信息 | |
pageinfo | 页面装修信息 | |
data | 页面数据 | |
footertype | 底部导航类型,0不显示,1系统默认,2自定义菜单 | |
footermenu | 自定义菜单ID | |
system | 商城设置信息 | |
menus | 底部导航信息 | |
params | 底部导航数据 | |
share | 主键 | |
id | 主键 | |
id | 主键 | |
allowauth | int | 返回0或1, 0代表该会员不能访问该页面,1代表可以访问 |
checkitem | string | 返回可以访问该页面的会员等级 |
返回示例:
备注:
- 其中 type字段代确定输出值类型,