简要描述:

-首页

请求域名:

  • http://xx.com

请求URL:

plugin.pc-terminal.api.home.index 原先的pc端首页接口,当用模板2时,返回数据就是下面的数据

请求参数说明:

参数名 类型 是否必需 说明

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"seo": {
			"title": "3523",
			"keywords": "24124",
			"description": "124214"
		},
		"advert": {
			"id": 1,
			"uniacid": 1,
			"advert1": "newimage/a1a0d29ac5c0312bfcf6d51a5e58584b.jpg",
			"advert1_url": "123",
			"advert2": "newimage/edcfb6600ea2282ee015c97229e02eb7.jpg",
			"advert2_url": "123",
			"advert3": "newimage/5d5feaadb110164c2aa168ec76c677a1.jpg",
			"advert3_url": "55",
			"created_at": "2021-09-14 10:26:16",
			"updated_at": "2021-09-14 10:26:16",
			"advert1_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/a1a0d29ac5c0312bfcf6d51a5e58584b.jpg",
			"advert2_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/edcfb6600ea2282ee015c97229e02eb7.jpg",
			"advert3_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg"
		},
		"module": {
			"limit_buy": {
				"name": "限时购区",
				"is_show": 0,
				"data": []
			},
			"video_demand": {
				"name": "课程学堂",
				"is_show": 1,
				"data": [
					{
						"id": 120,
						"title": "视频点播商品3",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/12/tU0YL3L690JulB6hJ3jGM331JLLOb9.jpg",
						"market_price": "0.00",
						"price": "6.66",
						"cost_price": "3.22",
						"stock": 99,
						"real_sales": 1,
						"show_sales": 1,
						"virtual_sales": 1,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "6.66",
						"next_level_price": "5.99",
						"has_many_goods_discount": [
							{
								"id": 1226,
								"goods_id": 120,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2020-03-16 14:21:06",
								"updated_at": "2020-03-16 14:21:06",
								"deleted_at": null
							},
							{
								"id": 1227,
								"goods_id": 120,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2020-03-16 14:21:06",
								"updated_at": "2020-03-16 14:21:06",
								"deleted_at": null
							},
							{
								"id": 1228,
								"goods_id": 120,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 2,
								"discount_value": "",
								"created_at": "2020-03-16 14:21:06",
								"updated_at": "2020-03-16 14:21:06",
								"deleted_at": null
							}
						]
					},
					{
						"id": 119,
						"title": "视频点播商品2",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/12/tU0YL3L690JulB6hJ3jGM331JLLOb9.jpg",
						"market_price": "0.00",
						"price": "6.66",
						"cost_price": "3.22",
						"stock": 99,
						"real_sales": 1,
						"show_sales": 1,
						"virtual_sales": 1,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "6.66",
						"next_level_price": "5.99",
						"has_many_goods_discount": [
							{
								"id": 1222,
								"goods_id": 119,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2020-03-16 14:20:00",
								"updated_at": "2020-03-16 14:20:00",
								"deleted_at": null
							},
							{
								"id": 1223,
								"goods_id": 119,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2020-03-16 14:20:00",
								"updated_at": "2020-03-16 14:20:00",
								"deleted_at": null
							},
							{
								"id": 1224,
								"goods_id": 119,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 2,
								"discount_value": "",
								"created_at": "2020-03-16 14:20:00",
								"updated_at": "2020-03-16 14:20:00",
								"deleted_at": null
							}
						]
					},
					{
						"id": 104,
						"title": "视频点播商品",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/12/tU0YL3L690JulB6hJ3jGM331JLLOb9.jpg",
						"market_price": "0.00",
						"price": "6.66",
						"cost_price": "3.22",
						"stock": 99,
						"real_sales": 1,
						"show_sales": 1,
						"virtual_sales": 1,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "6.66",
						"next_level_price": "5.99",
						"has_many_goods_discount": [
							{
								"id": 1054,
								"goods_id": 104,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-12-17 17:22:06",
								"updated_at": "2019-12-17 17:22:06",
								"deleted_at": null
							},
							{
								"id": 1055,
								"goods_id": 104,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-12-17 17:22:06",
								"updated_at": "2019-12-17 17:22:06",
								"deleted_at": null
							},
							{
								"id": 1056,
								"goods_id": 104,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 2,
								"discount_value": "",
								"created_at": "2019-12-17 17:22:06",
								"updated_at": "2019-12-17 17:22:06",
								"deleted_at": null
							}
						]
					},
					{
						"id": 22,
						"title": "测试3",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
						"market_price": "4000.00",
						"price": "0.01",
						"cost_price": "3.00",
						"stock": 17,
						"real_sales": 17,
						"show_sales": 17,
						"virtual_sales": 0,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "0.01",
						"next_level_price": "0.01",
						"has_many_goods_discount": [
							{
								"id": 479,
								"goods_id": 22,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-05-06 13:51:20",
								"updated_at": "2019-05-06 13:51:20",
								"deleted_at": null
							},
							{
								"id": 480,
								"goods_id": 22,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-05-06 13:51:20",
								"updated_at": "2019-05-06 13:51:20",
								"deleted_at": null
							}
						]
					}
				]
			},
			"promotion": {
				"name": "产品促销区",
				"is_show": 1,
				"data": [
					{
						"id": 4,
						"title": "卫目天下电子喷雾仪",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/01/Kb22YH4NYbh2uV2Be2BqVvCKHB4Bz2.png",
						"market_price": "198.00",
						"price": "59.00",
						"cost_price": "12.00",
						"stock": 999,
						"real_sales": 10875,
						"show_sales": 10875,
						"virtual_sales": 200,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "59.00",
						"next_level_price": "53.10",
						"has_many_goods_discount": [
							{
								"id": 364,
								"goods_id": 4,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-04-22 14:00:14",
								"updated_at": "2019-04-22 14:00:14",
								"deleted_at": null
							},
							{
								"id": 365,
								"goods_id": 4,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-04-22 14:00:14",
								"updated_at": "2019-04-22 14:00:14",
								"deleted_at": null
							}
						]
					},
					{
						"id": 3,
						"title": "卫目天下护眼喷雾董事豪华礼包",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/02/EL9z4T271ClTJO6LU9ol2tCc2lCt13.jpg",
						"market_price": "42000.00",
						"price": "30000.00",
						"cost_price": "10815.00",
						"stock": 999,
						"real_sales": 1617,
						"show_sales": 1617,
						"virtual_sales": 300,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "30000.00",
						"next_level_price": "27000.00",
						"has_many_goods_discount": [
							{
								"id": 290,
								"goods_id": 3,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-04-22 10:16:38",
								"updated_at": "2019-04-22 10:16:38",
								"deleted_at": null
							},
							{
								"id": 291,
								"goods_id": 3,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-04-22 10:16:38",
								"updated_at": "2019-04-22 10:16:38",
								"deleted_at": null
							}
						]
					},
					{
						"id": 2,
						"title": "卫目天下护眼喷雾总代礼包",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
						"market_price": "8000.00",
						"price": "6000.00",
						"cost_price": "2060.00",
						"stock": 999,
						"real_sales": 1100,
						"show_sales": 1100,
						"virtual_sales": 500,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "6000.00",
						"next_level_price": "5400.00",
						"has_many_goods_discount": [
							{
								"id": 485,
								"goods_id": 2,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-05-06 14:40:05",
								"updated_at": "2019-05-06 14:40:05",
								"deleted_at": null
							},
							{
								"id": 486,
								"goods_id": 2,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-05-06 14:40:05",
								"updated_at": "2019-05-06 14:40:05",
								"deleted_at": null
							}
						]
					},
					{
						"id": 1,
						"title": "卫目天下护眼喷雾创客礼包",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/02/IRH7r73628mhszr3fqiQvmQw6HQB3r.jpg",
						"market_price": "599.00",
						"price": "400.00",
						"cost_price": "103.00",
						"stock": 999,
						"real_sales": 48539,
						"show_sales": 48539,
						"virtual_sales": 1000,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "400.00",
						"next_level_price": "360.00",
						"has_many_goods_discount": [
							{
								"id": 512,
								"goods_id": 1,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-05-07 14:11:11",
								"updated_at": "2019-05-07 14:11:11",
								"deleted_at": null
							}
						]
					}
				]
			},
			"new_goods": {
				"name": "产品上新区",
				"is_show": 1,
				"data": [
					{
						"id": 26,
						"title": "鞋子",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/Dmw50KFIME0mMjKdxRbfwpZXw0dkS0.png",
						"market_price": "150.00",
						"price": "100.00",
						"cost_price": "80.00",
						"stock": 29,
						"real_sales": 1,
						"show_sales": 1,
						"virtual_sales": 30,
						"has_option": 0,
						"plugin_id": 92,
						"vip_price": "50.00",
						"next_level_price": "40.00",
						"has_many_goods_discount": [
							{
								"id": 515,
								"goods_id": 26,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "5.00",
								"created_at": "2019-05-07 14:41:51",
								"updated_at": "2019-05-07 14:41:51",
								"deleted_at": null
							},
							{
								"id": 516,
								"goods_id": 26,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "4.00",
								"created_at": "2019-05-07 14:41:51",
								"updated_at": "2019-05-07 14:41:51",
								"deleted_at": null
							}
						]
					},
					{
						"id": 22,
						"title": "测试3",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
						"market_price": "4000.00",
						"price": "0.01",
						"cost_price": "3.00",
						"stock": 17,
						"real_sales": 17,
						"show_sales": 17,
						"virtual_sales": 0,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "0.01",
						"next_level_price": "0.01",
						"has_many_goods_discount": [
							{
								"id": 479,
								"goods_id": 22,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-05-06 13:51:20",
								"updated_at": "2019-05-06 13:51:20",
								"deleted_at": null
							},
							{
								"id": 480,
								"goods_id": 22,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-05-06 13:51:20",
								"updated_at": "2019-05-06 13:51:20",
								"deleted_at": null
							}
						]
					},
					{
						"id": 21,
						"title": "测试2",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
						"market_price": "3000.00",
						"price": "1500.00",
						"cost_price": "3.00",
						"stock": 34,
						"real_sales": 0,
						"show_sales": 0,
						"virtual_sales": 0,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "1500.00",
						"next_level_price": "1350.00",
						"has_many_goods_discount": [
							{
								"id": 294,
								"goods_id": 21,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-04-22 10:17:48",
								"updated_at": "2019-04-22 10:17:48",
								"deleted_at": null
							},
							{
								"id": 295,
								"goods_id": 21,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-04-22 10:17:48",
								"updated_at": "2019-04-22 10:17:48",
								"deleted_at": null
							}
						]
					},
					{
						"id": 20,
						"title": "测试1",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
						"market_price": "2000.00",
						"price": "1000.00",
						"cost_price": "3.00",
						"stock": 34,
						"real_sales": 8,
						"show_sales": 8,
						"virtual_sales": 0,
						"has_option": 1,
						"plugin_id": 0,
						"vip_price": "1000.00",
						"next_level_price": "900.00",
						"has_many_goods_discount": [
							{
								"id": 296,
								"goods_id": 20,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-04-22 10:18:04",
								"updated_at": "2019-04-22 10:18:04",
								"deleted_at": null
							},
							{
								"id": 297,
								"goods_id": 20,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-04-22 10:18:04",
								"updated_at": "2019-04-22 10:18:04",
								"deleted_at": null
							}
						]
					},
					{
						"id": 17,
						"title": "供应商",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/CKMtkg18KgmGA4kKa3PEX6D603ekDA.jpg",
						"market_price": "360.00",
						"price": "100.00",
						"cost_price": "40.00",
						"stock": 449,
						"real_sales": 6,
						"show_sales": 6,
						"virtual_sales": 0,
						"has_option": 0,
						"plugin_id": 92,
						"vip_price": "100.00",
						"next_level_price": "90.00",
						"has_many_goods_discount": [
							{
								"id": 276,
								"goods_id": 17,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 0,
								"discount_value": "",
								"created_at": "2019-04-22 09:27:18",
								"updated_at": "2019-04-22 09:27:18",
								"deleted_at": null
							},
							{
								"id": 277,
								"goods_id": 17,
								"level_discount_type": 1,
								"discount_method": 1,
								"level_id": 1,
								"discount_value": "",
								"created_at": "2019-04-22 09:27:18",
								"updated_at": "2019-04-22 09:27:18",
								"deleted_at": null
							}
						]
					}
				]
			},
			"hot_goods": {
				"name": "热销产品区",
				"is_show": 0,
				"data": []
			},
			"recommend_goods": {
				"name": "为您推荐",
				"is_show": 0,
				"data": []
			},
			"customer_case": {
				"name": "客户案例",
				"is_show": 0,
				"data": []
			},
			"solution": {
				"name": "解决方案",
				"is_show": 0,
				"data": []
			},
			"article": {
				"name": "文章动态",
				"is_show": 1,
				"data": [
					{
						"category": "1",
						"img": null,
						"list": [
							{
								"id": 2,
								"title": "safawsdfasdf",
								"author": "编辑小芸      ",
								"thumb": "",
								"desc": "",
								"category_id": 1,
								"updated_at": "2021-02-18 15:35:08",
								"virtual_created_at": 1561305600,
								"type": 0,
								"liked": 0,
								"virtual_at": "2019-06-24"
							},
							{
								"id": 3,
								"title": "苦",
								"author": "编辑小芸   ",
								"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/09/lJjMBJjL5j3ej3xELK3Gjlj3eBGMjG.jpg",
								"desc": "",
								"category_id": 1,
								"updated_at": "2020-03-17 15:54:48",
								"virtual_created_at": 1576512000,
								"type": 0,
								"liked": 0,
								"virtual_at": "2019-12-17"
							},
							{
								"id": 4,
								"title": "付费测试付费测试付费测试付费测试付费测试付费测试付费测试付费测试",
								"author": "编辑小芸  ",
								"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
								"desc": "付费测试付费测试付费测试付费测试付费测试付费测试付费测试付费测试",
								"category_id": 1,
								"updated_at": "2020-03-17 15:18:45",
								"virtual_created_at": 1584374400,
								"type": 0,
								"liked": 0,
								"virtual_at": "2020-03-17"
							},
							{
								"id": 5,
								"title": "测试测试测试",
								"author": "编辑小芸 ",
								"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
								"desc": "2323232323",
								"category_id": 1,
								"updated_at": "2020-03-17 15:20:04",
								"virtual_created_at": 1584374400,
								"type": 0,
								"liked": null,
								"virtual_at": "2020-03-17"
							},
							{
								"id": 6,
								"title": "​付费测试",
								"author": "编辑小芸 ",
								"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
								"desc": "​付费测试​付费测试",
								"category_id": 1,
								"updated_at": "2020-03-17 15:54:39",
								"virtual_created_at": 1584374400,
								"type": 0,
								"liked": 0,
								"virtual_at": "2020-03-17"
							}
						]
					},
					{
						"category": "财经",
						"img": null,
						"list": []
					}
				]
			}
		}
	}
}

返回参数说明:seo(首页SEO)

参数名 类型 说明
title string 标题
keywords string 关键词
description string 描述

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

参数名 类型 说明
advert1 string 广告位1图片
advert1_src string 广告位1图片(绝对地址)
advert1_url string 广告位1图片跳转链接
advert2 string 广告位2图片
advert2_src string 广告位2图片(绝对地址)
advert2_url string 广告位2图片跳转链接
advert3 string 广告位3图片
advert3_src string 广告位3图片(绝对地址)
advert3_url string 广告位3图片跳转链接

返回参数说明:module.limit_buy(限时购区模块)

返回参数说明:module.video_demand(课程学堂模块)

返回参数说明:module.promotion(产品促销区模块)

返回参数说明:module.new_goods(产品上新区模块)

返回参数说明:module.hot_goods(热销产品模块)

返回参数说明:module.recommend_goods(为您推荐模块)

参数名 类型 说明
name string 模块名称
is_show int 模块是否显示,1显示,0不显示
data array 模块数据
data.id int 商品id
data.title string 商品名
data.thumb string 商品图片
data.market_price float 原价
data.price float 现价
data.stock float 库存
data.vip_price float 会员价
data.next_level_price float 下一级会员价

返回参数说明:module.article(文章动态模块)

参数名 类型 说明
name string 模块名称
data array 模块数据
data.category string 分类名
data.img string 分类背景图片
data.list array 分类下的文章数据
data.list.id int 文章id
data.list.title int 文章标题

返回参数说明:module.solution(解决方案模块)

参数名 类型 说明
name string 模块名称
data array 模块数据
data.category string 分类名
data.img string 分类背景图片
data.list array 分类下的文章数据
data.list.id int 文章id
data.list.title int 文章标题

返回参数说明:module.customer_case(客户案例模块)

参数名 类型 说明
name string 模块名称
data array 模块数据
data.pc_temp_img_src string banner图
data.case_name string 案例名称
data.img_src string 案例图标
data.id int 案例id

错误时返回:

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