阅读( 1 ) 我要纠错

简要描述:

-首页

请求域名:

  • http://xx.com

请求URL:

plugin.pc-terminal.api.set.get-set 原先的pc端全局设置接口,当用模板2时,返回数据会多一个pc_temp2_set数据

请求参数说明:

参数名 类型 是否必需 说明

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"set": {
			"pc_temp": 2,
			"is_open": 0,
			"logo": "",
			"theme_color": "#44be95",
			"banner_bg": "",
			"nav_bottom": "",
			"login_advert": "newimage/12faf451347155a3e86ea12facedb544.jpg",
			"advert_top_img": "newimage/71dd0c4850e7e9e2a8daa3300103516a.jpg",
			"advert_words": "",
			"search_title": "商品名称/规格/型号",
			"bind_mobile": 0,
			"slide_style": 1,
			"set_top": 1,
			"category_show": 1,
			"logo_src": "",
			"banner_bg_src": "",
			"login_advert_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/12faf451347155a3e86ea12facedb544.jpg",
			"advert_top_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/71dd0c4850e7e9e2a8daa3300103516a.jpg"
		},
		"shop_name": "芸信商城11",
		"nav_top": [
			{
				"id": 49,
				"uniacid": 1,
				"nav_name": "123",
				"pid": 0,
				"level": 1,
				"style": 0,
				"url": null,
				"img": "newimage/5de29eb8a5fdceef7a172a68709478a7.jpg",
				"sort": 1,
				"is_show": 1,
				"created_at": "2021-02-18 17:19:56",
				"updated_at": "2021-02-18 17:19:56",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5de29eb8a5fdceef7a172a68709478a7.jpg",
				"sub_nav": [
					{
						"id": 53,
						"uniacid": 1,
						"nav_name": "首页子导航",
						"pid": 49,
						"level": 2,
						"style": 0,
						"url": null,
						"img": "",
						"sort": 1,
						"is_show": 1,
						"created_at": "2021-02-18 17:19:56",
						"updated_at": null,
						"img_src": ""
					},
					{
						"id": 52,
						"uniacid": 1,
						"nav_name": "12321",
						"pid": 49,
						"level": 2,
						"style": 0,
						"url": "",
						"img": "",
						"sort": 1,
						"is_show": 1,
						"created_at": "2021-02-18 17:19:56",
						"updated_at": null,
						"img_src": ""
					}
				]
			},
			{
				"id": 51,
				"uniacid": 1,
				"nav_name": "13",
				"pid": 0,
				"level": 1,
				"style": 0,
				"url": "",
				"img": "newimage/4863b19849a289c6b7676cff8fb5a7d7.jpg",
				"sort": 0,
				"is_show": 1,
				"created_at": "2021-02-18 17:19:56",
				"updated_at": "2021-02-18 17:19:56",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/4863b19849a289c6b7676cff8fb5a7d7.jpg",
				"sub_nav": []
			}
		],
		"slide": [
			{
				"title": "1",
				"img": "newimage/07ef3a96007a7873cafef09c80e14896.jpg",
				"url": "12",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/07ef3a96007a7873cafef09c80e14896.jpg"
			},
			{
				"title": "1",
				"img": "newimage/07ef3a96007a7873cafef09c80e14896.jpg",
				"url": "12",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/07ef3a96007a7873cafef09c80e14896.jpg"
			},
			{
				"title": "1",
				"img": "newimage/07ef3a96007a7873cafef09c80e14896.jpg",
				"url": "12",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/07ef3a96007a7873cafef09c80e14896.jpg"
			},
			{
				"title": "1",
				"img": "newimage/07ef3a96007a7873cafef09c80e14896.jpg",
				"url": "12",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/07ef3a96007a7873cafef09c80e14896.jpg"
			},
			{
				"title": "幻灯片1",
				"img": "newimage/5de29eb8a5fdceef7a172a68709478a7.jpg",
				"url": "12321",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5de29eb8a5fdceef7a172a68709478a7.jpg"
			}
		],
		"is_login": false,
		"qr_code": "http://yzmall.com/storage/app/public/pc_terminal/qr_code/1-home-width-250.png",
		"seo": {
			"title": "3523",
			"keywords": "24124",
			"description": "124214"
		},
		"pc_temp2_set": {
			"id": 1,
			"uniacid": 1,
			"right_advert": "newimage/22076e64c3baaa51ce41ea85aa58c327.jpg",
			"advert_link": "",
			"notice": "",
			"module_show": [
				"limit_buy",
				"video_demand",
				"promotion",
				"new_goods",
				"article",
				"solution"
			],
			"logo": "",
			"nav_bottom": null,
			"module_diy_name": null,
			"created_at": "2021-09-13 09:53:19",
			"updated_at": "2021-09-14 14:03:43",
			"right_advert_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/22076e64c3baaa51ce41ea85aa58c327.jpg",
			"logo_src": ""
		}
	}
}

返回参数说明:pc_temp2_set(广告位数据)

参数名 类型 说明
right_advert_src string 顶部右侧广告
advert_link string 顶部右侧广告跳转链接
notice string 平台公告
logo_src string 左侧logo图片
nav_bottom string 底部导航

错误时返回:

{
    "result": 0,
    "msg": "请登录",
    "data": []
}
×