简要描述:

-门店独立模板--首页

请求域名:

  • http://xx.com

请求URL:

plugin.store-alone-temp.frontend.home.home-page

请求参数说明:

参数名 类型 是否必需 说明

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"photo": [
			{
				"id": 6,
				"data_type": 0,
				"store_id": 4,
				"label_id": 5,
				"image": "newimage/28e0c974f5c50a5302ca84f4344db99d.jpg",
				"video": null,
				"video_img": null,
				"show_home": 1,
				"created_at": "2021-08-17 10:28:17",
				"updated_at": "2021-08-17 10:28:17",
				"label_data_count": 4,
				"image_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/28e0c974f5c50a5302ca84f4344db99d.jpg",
				"video_img_src": "",
				"video_src": ""
			},
			{
				"id": 7,
				"data_type": 1,
				"store_id": 4,
				"label_id": 5,
				"image": null,
				"video": "videos/0/2021/08/343b5296d11edd1c491f29e1893e256a.mp4",
				"video_img": "newimage/5d5feaadb110164c2aa168ec76c677a1.jpg",
				"show_home": 1,
				"created_at": "2021-08-17 10:28:17",
				"updated_at": "2021-08-17 10:28:17",
				"label_data_count": 4,
				"image_src": "",
				"video_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg",
				"video_src": "http://yzmall.com/static/upload/videos/0/2021/08/343b5296d11edd1c491f29e1893e256a.mp4"
			},
			{
				"id": 8,
				"data_type": 1,
				"store_id": 4,
				"label_id": 5,
				"image": null,
				"video": "videos/0/2021/08/fc123b86ce09a588905b49021d9ac4b0.mp4",
				"video_img": "newimage/1158646471c09da5506594e7ba5c2e9c.jpg",
				"show_home": 1,
				"created_at": "2021-08-17 10:28:17",
				"updated_at": "2021-08-17 10:28:17",
				"label_data_count": 4,
				"image_src": "",
				"video_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/1158646471c09da5506594e7ba5c2e9c.jpg",
				"video_src": "http://yzmall.com/static/upload/videos/0/2021/08/fc123b86ce09a588905b49021d9ac4b0.mp4"
			}
		],
		"store_info": {
			"store_name": "18026357601",
			"store_thumb": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/12/Ta4Kkzhqbbk0z235k3Hkkw56c922u4.jpg",
			"longitude": "113.30656591564",
			"latitude": "23.256484077393",
			"hasOneMember": {
				"uid": 163781,
				"nickname": "卡卡",
				"avatar": "http://thirdwx.qlogo.cn/mmopen/cEM5JWyl9FekStW90tfVx0KaicTdGiaic8GaL9ibUAPEHB1ib5kbhM1INYua7NSibBF4hFJpdE3fpdr8kgqnRxm1RTc8nWRYe4CFoia/132",
				"avatar_image": "https://thirdwx.qlogo.cn/mmopen/cEM5JWyl9FekStW90tfVx0KaicTdGiaic8GaL9ibUAPEHB1ib5kbhM1INYua7NSibBF4hFJpdE3fpdr8kgqnRxm1RTc8nWRYe4CFoia/132",
				"username": "卡卡"
			},
			"affiche": "",
			"business_hours": "00:00-00:00",
			"dispatch": "快递 ",
			"mobile": "18026357601",
			"store_introduce": "232323",
			"information": "",
			"cservice": {
				"cservice": "123123",
				"customer_open": "1",
				"service_QRcode": "",
				"service_mobile": ""
			},
			"coupon": [],
			"comment": {
				"average_score": 5,
				"comment_total": 1,
				"new_comment": [
					{
						"id": 1,
						"order_id": 17,
						"goods_id": 2,
						"uid": 163778,
						"nick_name": " ゛",
						"head_img_url": "http://thirdwx.qlogo.cn/mmopen/PiajxSqBRaELMbapvbnic5Q2aEwvNTLVicOFPODQCqaeAHqNqwBicPmPI3oAfMKKCSvWIafwdWkiczg39EDxvwa6F8w/132",
						"content": "124345",
						"level": 5,
						"images": "a:1:{i:0;s:42:\"image/ce8353e8dcaff6d837202c81b047df65.png\";}",
						"created_at": "2019-04-16 16:44:32",
						"type": 1,
						"append": null,
						"type_name": "评论",
						"has_many_reply": [],
						"has_one_goods": {
							"id": 2,
							"thumb": "images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
							"real_sales": 1100,
							"show_sales": 1100,
							"status": 1,
							"stock": 999,
							"title": "卫目天下护眼喷雾总代礼包",
							"price": "6000.00",
							"status_name": "上架"
						}
					}
				]
			},
			"store_staff": [
				{
					"member_id": 163781,
					"realname": "",
					"avatar": "https://thirdwx.qlogo.cn/mmopen/cEM5JWyl9FekStW90tfVx0KaicTdGiaic8GaL9ibUAPEHB1ib5kbhM1INYua7NSibBF4hFJpdE3fpdr8kgqnRxm1RTc8nWRYe4CFoia/132",
					"phone": "18026357601",
					"wechat": "",
					"card_id": ""
				}
			],
			"store_discount": [],
			"store_address": "广东省 广州市 白云区 同德街道 18026357601"
		},
		"nav": {
			"nav": [
				{
					"name": "推荐商品",
					"code": "recommend_goods"
				}
			],
			"data": {
				"current_page": 1,
				"data": [
					{
						"id": 2,
						"title": "卫目天下护眼喷雾总代礼包",
						"thumb": "images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
						"market_price": "8000.00",
						"show_sales": 1100,
						"price": "6000.00",
						"stock": 999,
						"has_option": 0,
						"plugin_id": 0,
						"vip_price": "6000.00",
						"next_level_price": "5400.00",
						"name": "卫目天下护眼喷雾总代礼包",
						"img": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/02/In0DywOSf3FKWkF4nfkWSOyKm3iKRf.jpg",
						"stock_status": 0,
						"vip_next_price": "5400.00",
						"price_level": 1,
						"sales": 1100,
						"priceold": "8000.00",
						"pricenow": "6000.00"
					}
				],
				"first_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
				"from": 1,
				"last_page": 1,
				"last_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
				"next_page_url": null,
				"path": "http://yzmall.com/addons/yun_shop/api.php",
				"per_page": 20,
				"prev_page_url": null,
				"to": 1,
				"total": 1
			}
		}
	}
}

返回参数说明:photo(相册数据)

参数名 类型 说明
data_type int 相册数据类型,0图片,1视频
image string 图片地址
image_src string 图片绝对地址
video string 视频地址
video_src string 视频绝对地址
video_img string 视频封面图片地址
video_img_src string 视频封面图片绝对地址

返回参数说明:store_info(门店信息数据)

参数名 类型 说明
store_name string 门店名称
store_thumb string 门店图片
affiche string 门店公告
business_hours string 门店运营时间
dispatch string 门店开启的配送方式
mobile string 门店电话
store_introduce string 门店简介
information string 门店详情
cservice string 门店客服地址
coupon array 门店优惠券数据
comment.average_score int 综合评价
comment.comment_total int 评价数量
comment.new_comment array 评价数据
store_staff.member_id int 门店员工会员id
store_staff.realname string 员工姓名
store_staff.avatar string 员工头像
store_staff.phone string 员工手机号
store_staff.card_id int 员工名片id
store_discount array 门店优惠数据

返回参数说明:nav(导航数据)

参数名 类型 说明
nav.nav array 导航数据
nav.data array 第一个导航下数据

错误时返回:

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