简要描述:

-连锁店选购页

请求域名:

  • http://xx.com

请求URL:

plugin.chain-store.frontend.controller.index.index

请求参数说明:

参数名 类型 是否必需 说明
get_type int 选购页进入方式:1门店自提,2门店配送,3快递
store_id int 门店ID(门店自提方式时必填)
lng float 定位经度(门店自提方式时必填)
lat float 定位纬度(门店自提方式时必填)
address_id int 地址ID(门店配送,快递方式时必填)

返回示例:

正确时返回:

{
	result: 1,
	msg: "success",
	data: {
		store_info: {
			store_id: 41,
			store_thumb: "https://dev4.yunzmall.com/attachment/images/9/2019/09/L4cIzgq8SB74WNOG2Cin42nC5SIS4q.png",
			store_name: "卡卡-门店3",
			delivery_information: 1,
			affiche: "1212121哒哒哒哒哒哒多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多多哒哒哒哒哒哒多多多多",
			business_hours: "07:06-20:06",
			store_mobile: "131",
			store_introduce: "门店介绍门店介绍门店介绍门店介绍门店介绍 门店介绍门店介绍 门店介绍门店介绍门店介绍门店介绍门店介绍门店介绍门店介绍 门店介绍门店介绍 门店介绍门店介绍门店介绍门店介绍门店介绍 门店介绍门店介绍门店介绍",
			lng: "113.263513",
			lat: "23.179542",
			specify_show: 0,
			store_delivery: {
				delivery_status: 1,
				delivery_note: "",
				delivery_area: [
					{
						Q: "23.216881",
						R: "113.276949"
					},
					{
						Q: "23.194535782363",
						R: "113.29016692602"
					},
					{
						Q: "23.162039697105",
						R: "113.2789604975"
					},
					{
						Q: "23.156685426758",
						R: "113.23994492591"
					},
					{
						Q: "23.195812804941",
						R: "113.22996747077"
					},
					{
						Q: "23.229881",
						R: "113.252949"
					}
				],
				locations: {
					longitude: "113.263513",
					latitude: "23.179542"
				},
				delivery_amount: "50"
			},
			need_lat: 0,
			lat_data: [ ],
			logo_style: 1,
			dispatch: "快递 上门自提 门店配送 门店自提点提货 ",
			store_address: "广东省 广州市 白云区 三元里街道 机场路1600号汇创意产业园C2,广州市芸众信息科技有限公司",
			distance: 69.6,
			unit: "km"
		},
		carousel: [
			{
				id: 1,
				title: "测试",
				thumb: "image/ca3eed227c6fec0c2a4edc6edc6b7a66.png",
				url: "https://dev4.yunzmall.com/addons/yun_shop/?menu#/home?i=9",
				mini_url: "/pages/index/index",
				thumb_src: "https://dev4.yunzmall.com/attachment/image/ca3eed227c6fec0c2a4edc6edc6b7a66.png"
			}
		],
		notice: [
			{
				id: 1,
				title: "测试",
				url: "https://dev4.yunzmall.com/addons/yun_shop/?menu#/category?i=9",
				mini_url: "/packageC/member/searchAll/searchAll"
			}
		],
		category: [
			{
				id: 84651,
				name: "门店商品分类一",
				has_many_children: [
					{
						id: 84652,
						name: "商品分类二",
						parent_id: 84651,
						enabled: 1,
						is_home: 0,
						level: 2
					}
				]
			},
			{
				id: 84723,
				name: "门店分类三",
				has_many_children: [
					{
						id: 84726,
						name: "2",
						parent_id: 84723,
						enabled: 1,
						is_home: 0,
						level: 2
					}
				]
			},
		],
		member_cart: {
			status: 1,
			variable: null,
			json: [
				{
					id: 1661,
					store_id: 41,
					goods_id: 7537,
					total: 1,
					option_id: 745,
					created_at: "2021-10-19 17:59:22",
					goods: {
						id: 7537,
						thumb: "https://dev4.yunzmall.com/attachment/images/9/2019/09/L4cIzgq8SB74WNOG2Cin42nC5SIS4q.png",
						price: "100.00",
						market_price: "100.00",
						title: "门店商品",
						deleted_at: null,
						plugin_id: 32,
						stock: 1860,
						status: 0,
						has_option: 1,
						vip_price: 100,
						next_level_price: 90,
						has_many_goods_discount: [
							{
								id: 51642,
								goods_id: 7537,
								level_discount_type: 1,
								discount_method: 1,
								level_id: 0,
								discount_value: "",
								created_at: "2021-09-08 16:42:29",
								updated_at: "2021-09-08 16:42:29",
								deleted_at: null
							},
							{
								id: 51643,
								goods_id: 7537,
								level_discount_type: 1,
								discount_method: 1,
								level_id: 11,
								discount_value: "",
								created_at: "2021-09-08 16:42:29",
								updated_at: "2021-09-08 16:42:29",
								deleted_at: null
							},
						],
						stock_status: 2
					},
					goods_option: {
						id: 745,
						goods_id: 7537,
						title: "水电费+1+1+1",
						thumb: null,
						product_price: "100.00",
						market_price: "100.00",
						stock: 90
					},
					has_many_address: [
						{
							id: 170,
							uniacid: 9,
							uid: 1252,
							username: "1231",
							mobile: "13226666666",
							zipcode: "",
							province: "",
							city: "",
							district: "",
							address: "123213213",
							isdefault: 1,
							longitude: "",
							latitude: "",
							country_code: ""
						}
					],
					has_many_member_address: [
						{
							id: 395,
							uniacid: 9,
							uid: 1252,
							username: "vvv",
							mobile: "13226666666",
							zipcode: "",
							province: "广东省",
							city: "广州市",
							district: "天河区",
							street: "五山街道",
							address: "----",
							isdefault: 1,
							longitude: "",
							latitude: "",
							country_code: ""
						}
					],
					option_str: "水电费+1+1+1"
				}
			]
		}
	}
}

错误时返回:

该错误返回会在门店配送方式进入时可能返回,产品说地址未有经纬度就让会员设置,看需不需要自动跳转设置经纬度
{
    "result": 0,
    "msg": "该地址未设置经纬度位置",
    "data": {
		"address_status":1
	}
}
{
    "result": 0,
    "msg": "请登录",
    "data": []
}

返回参数说明:

参数名 类型 说明
store_info obj 门店信息
carousel array 轮播图
notice array 公告
category array 分类
member_cart obj 购物车信息(与接口plugin.store-cashier.frontend.store.get-store-info.get-stores-details中的member_cart信息一致,不再做字段解释)

store_info返回参数说明:

参数名 类型 说明
store_id int 门店ID
store_thumb string 门店图片
store_name string 门店名称
affiche string 公告
business_hours string 营业时间
store_mobile string 门店电话
store_introduce string 门店介绍
lng string 门店经度
lat string 门店纬度
store_delivery obj 好像是用来显示配送范围的,与接口plugin.store-cashier.frontend.store.get-store-info.get-stores-details中store_info里的store_delivery一致
logo_style int 门店LOGO样式:1则门店LOGO样式则显示“正方形”的头像
dispatch string 门店适用配送方式
store_address string 门店地址
distance float 门店与会员的定位距离
unit string 门店与会员的定位距离单位
aptitude_imgs array 门店资质图片

carousel返回参数说明:

参数名 类型 说明
id int ID
title string 标题
thumb_src string 图片地址
url string H5跳转链接
mini_url string 小程序跳转链接

notice返回参数说明:

参数名 类型 说明
id int ID
title string 标题
url string H5跳转链接
mini_url string 小程序跳转链接

category返回参数说明:

参数名 类型 说明
id int 分类ID
name string 分类名称
has_many_children array 二级子分类数据,字段与一级分类一致