多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**简要描述:** - 设置页面 **请求URL:** - `/adminapi/theme.PcDecorateThemePage/setpage` **请求方式:** - POST **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |id|是|int |首页id | |name|是|string |名称 | |type|是|int |类型:1-首页;2-登录页;3-限时秒杀;4-领券中心;5-商城资讯;6-帮助中心| |content|是|srting|内容| |common|是|srting|公告配置| **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "id": 1, "name": "首页", "type": 1, "content": [ { "name": "banner", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/banner-icon.png", "title": "轮播图", "content": [ { "url": "HESHOP_URL_STRING/static/images/template/a10756074b56634da47d413465031b8b.png", "link": [] }, { "url": "", "link": [] } ], "facade": { "chamfer_style": 2, "indicator_style": 1, "indicator_align": "right", "indicator_color": "#f5212d" } }, { "name": "navigation", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/navigation-icon.png", "title": "图文导航", "content": { "style": 1, "data": [ { "url": "HESHOP_URL_STRING/static/images/template/70d949b83c78c77cd5af558345ba79a7.png", "title": "彩妆", "link": { "name": "购物车", "path": "/pages/cart/index", "param": [], "index": 4, "extend": false } }, { "url": "HESHOP_URL_STRING/static/images/template/54ec56b72951d3eca3aabc0dcc40f769.png", "title": "面膜", "link": { "name": "全部商品", "path": "/pages/goods/list", "param": [], "index": 1, "extend": false } }, { "url": "HESHOP_URL_STRING/static/images/template/d5603eee479a407c9b7e4518d56854be.png", "title": "电器", "link": { "name": "微页面", "path": "/pages/page/index", "param": { "id": 51, "title": "世平测试专用", "name": "首页", "status": 0 }, "index": 7, "extend": true } }, { "url": "HESHOP_URL_STRING/static/images/template/a0385b5f5b863ee26f6bb37eca52e872.png", "title": "护理", "link": [] } ] }, "facade": { "nav_style": 1, "nav_line": 2, "nav_line_mun": 4, "active_color": "#f5212d", "indicator_style": 1, "background_color": "#FFFFFF", "text_color": "#333333" } }, { "name": "rubik", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/rubik-icon.png", "title": "图片魔方", "content": { "style": 4, "density": 4, "data": [ { "url": "HESHOP_URL_STRING/static/images/template/34e8694117ac342d348ad7b084b5779d.png", "link": "" }, { "title": "", "url": "HESHOP_URL_STRING/static/images/template/eae6e01e25dcbdc07648106571f10a3d.png", "link": { "name": "全部商品", "path": "/pages/goods/list", "param": [], "index": 1, "extend": false } }, { "title": "", "url": "HESHOP_URL_STRING/static/images/template/758aee7474e05fb4f8a691548240c6ee.png", "link": "" } ] }, "facade": [] }, { "name": "title", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/title-icon.png", "title": "标题栏", "content": { "style": 1, "title": "为您推荐", "subtitle": "子标题", "is_more": true, "moretitle": "查看更多", "morelink": [] }, "facade": { "title_color": "#333333", "title_font_size": 14, "subtitle_color": "#999999", "subtitle_font_size": 12, "more_color": "#999999", "margin": 20 } }, { "name": "goods", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/goods-icon.png", "title": "商品", "content": { "type": 1, "goods": [], "group": { "id": 0, "name": "", "limit": 20 }, "is_title": true, "is_price": true, "is_button": true }, "facade": { "list_style": 2, "card_style": 2, "chamfer_style": 1, "margin": 16, "padding": 20 } }, { "name": "wechat", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/wechat-icon.png", "title": "微信公众号", "content": [], "facade": { "line_style": "", "line_color": "", "high_style": 20 } } ], "common": [ { "name": "banner", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/banner-icon.png", "title": "轮播图", "content": [ { "url": "HESHOP_URL_STRING/static/images/template/a10756074b56634da47d413465031b8b.png", "link": [] }, { "url": "", "link": [] } ], "facade": { "chamfer_style": 2, "indicator_style": 1, "indicator_align": "right", "indicator_color": "#f5212d" } }, { "name": "navigation", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/navigation-icon.png", "title": "图文导航", "content": { "style": 1, "data": [ { "url": "HESHOP_URL_STRING/static/images/template/70d949b83c78c77cd5af558345ba79a7.png", "title": "彩妆", "link": { "name": "购物车", "path": "/pages/cart/index", "param": [], "index": 4, "extend": false } }, { "url": "HESHOP_URL_STRING/static/images/template/54ec56b72951d3eca3aabc0dcc40f769.png", "title": "面膜", "link": { "name": "全部商品", "path": "/pages/goods/list", "param": [], "index": 1, "extend": false } }, { "url": "HESHOP_URL_STRING/static/images/template/d5603eee479a407c9b7e4518d56854be.png", "title": "电器", "link": { "name": "微页面", "path": "/pages/page/index", "param": { "id": 51, "title": "世平测试专用", "name": "首页", "status": 0 }, "index": 7, "extend": true } }, { "url": "HESHOP_URL_STRING/static/images/template/a0385b5f5b863ee26f6bb37eca52e872.png", "title": "护理", "link": [] } ] }, "facade": { "nav_style": 1, "nav_line": 2, "nav_line_mun": 4, "active_color": "#f5212d", "indicator_style": 1, "background_color": "#FFFFFF", "text_color": "#333333" } }, { "name": "rubik", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/rubik-icon.png", "title": "图片魔方", "content": { "style": 4, "density": 4, "data": [ { "url": "HESHOP_URL_STRING/static/images/template/34e8694117ac342d348ad7b084b5779d.png", "link": "" }, { "title": "", "url": "HESHOP_URL_STRING/static/images/template/eae6e01e25dcbdc07648106571f10a3d.png", "link": { "name": "全部商品", "path": "/pages/goods/list", "param": [], "index": 1, "extend": false } }, { "title": "", "url": "HESHOP_URL_STRING/static/images/template/758aee7474e05fb4f8a691548240c6ee.png", "link": "" } ] }, "facade": [] }, { "name": "title", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/title-icon.png", "title": "标题栏", "content": { "style": 1, "title": "为您推荐", "subtitle": "子标题", "is_more": true, "moretitle": "查看更多", "morelink": [] }, "facade": { "title_color": "#333333", "title_font_size": 14, "subtitle_color": "#999999", "subtitle_font_size": 12, "more_color": "#999999", "margin": 20 } }, { "name": "goods", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/goods-icon.png", "title": "商品", "content": { "type": 1, "goods": [], "group": { "id": 0, "name": "", "limit": 20 }, "is_title": true, "is_price": true, "is_button": true }, "facade": { "list_style": 2, "card_style": 2, "chamfer_style": 1, "margin": 16, "padding": 20 } }, { "name": "wechat", "icon": "http://qmxq.oss-cn-hangzhou.aliyuncs.com/pageicon/wechat-icon.png", "title": "微信公众号", "content": [], "facade": { "line_style": "", "line_color": "", "high_style": 20 } } ] } } ``` **返回参数说明:** |参数名 |类型 |说明 | |:--| |--id|int |首页id | |--name|string |名称 | |--type|int |类型:1-首页;2-登录页;3-限时秒杀;4-领券中心;5-商城资讯;6-帮助中心| |--content|srting|内容| |--common|srting|公告配置|