阅读( 1 ) 我要纠错

简要描述:

获取设置信息(导航、logo、主题等全局设置信息)

请求域名:

  • http://xx.com

请求URL:

POST/plugin.pc-terminal.api.set.get-set

返回参数说明:

参数名 类型 说明
set array 设置信息
set.is_open int PC端插件是否开启1开启
set.logo_src string logo图片
set.theme_color string 主题颜色
set.nav_bottom string 底部导航
set.login_advert_src string 登录页广告图
set.advert_top_img_src string 登录页顶部广告图
set.advert_words string 广告语
set.banner_bg_src string 幻灯片背景
set.search_title string 搜索框标语
set.bind_mobile int 下单绑定手机号,0不需要绑定,1需要绑定
set.slide_style int 幻灯片样式,1样式一,2样式二
set.set_top int 下滑置顶模块,0:logo/搜索框模块,1:导航栏模块
set.category_show int 全部分类展示,0折叠,1展开
shop_name string 商城名
nav_top array 顶部导航(为空的时候显示一个首页即可)
nav_top.nav_name string 顶部导航名
nav_top.img_src string 顶部导航图标
nav_top.url string 顶部导航跳转链接
nav_top.style string 二级导航样式,1菜单样式2横排样式
nav_top.sub_nav array 二级导航信息(字段与一级一致)
slide array 幻灯片信息
slide.title string 幻灯片标题
slide.img_src string 幻灯片图片地址
slide.url string 幻灯片跳转链接
is_login bool true已登录,false未登录
set.search_module_config.name string 模块中文名
set.search_module_config.key string 模块英文名
set.search_module_config.diy_text string 模块自定义名称
set.search_module_config.is_default string 是否默认 true 是 false 不是
set.search_module_close.name string 模块中文名
set.search_module_close.key string 模块英文名
set.search_module_close.value string 是否关闭独立搜索框 true 关闭 false 不关闭

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"set": {
			"is_open": 1,
			"logo": "newimage/5de29eb8a5fdceef7a172a68709478a7.jpg",
			"theme_color": "#604949",
			"nav_bottom": "
", "logo_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5de29eb8a5fdceef7a172a68709478a7.jpg", "banner_bg_src": "", "login_advert_src": "", "banner1_src": "", "banner2_src": "", "search_module_config": [ { "name": "商品", "key": "goods", "diy_text": "商品1", "is_default": "false" }, { "name": "文章", "key": "article", "diy_text": "文章2", "is_default": "false" }, { "name": "知识库", "key": "knowledge", "diy_text": "知识库3", "is_default": "true" }, { "name": "微贴", "key": "post", "diy_text": "微贴4", "is_default": "false" }, { "name": "短视频", "key": "video", "diy_text": "短视频5", "is_default": "false" } ], "search_module_close": [ { "name": "知识库", "key": "knowledge", "value": "true" }, { "name": "微社区", "key": "community", "value": "true" } ], }, "shop_name": "芸信商城11", "nav_top": [ { "id": 1, "uniacid": 1, "nav_name": "首页", "pid": 0, "level": 1, "style": 1, "url": null, "img": null, "sort": 0, "is_show": 1, "created_at": "2020-12-21 16:06:29", "updated_at": "2020-12-21 16:06:29", "img_src": "", "sub_nav": [ { "id": 2, "uniacid": 1, "nav_name": "首页子导航", "pid": 1, "level": 2, "style": 0, "url": null, "img": null, "sort": 0, "is_show": 1, "created_at": "2020-12-21 16:06:29", "updated_at": "2020-12-21 16:06:29", "img_src": "" } ] } ] } }

错误时返回:

{
	"result": 0,
	"msg": "",
	"data": []
}

备注:

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