简要描述:

  • 获取门店自提点列表

请求域名:

plugin.package-deliver.frontend.store.deliver.getList

参数 :

参数名 是否必须 类型 说明
store_id int 门店id
kwd str 关键字
lng str 经度
lat str 纬度
city_name str 城市名称
goods array 下单商品集合

参数例:

i:6
type:5
route:plugin.package-deliver.frontend.deliver.get-list
lng:35.21
lat:159.01
city_name:广州
goods:[{"goods_id":"164","total":"2","option_id":"0"},{"goods_id":"196","total":"1","option_id":"0"}]

返回示例:

正确时返回:

{
    result: 1,
    msg: "成功",
    data: {
		list: {
		total: 2,
		per_page: 15,
		current_page: 1,
		last_page: 1,
		next_page_url: null,
		prev_page_url: null,
		from: 1,
		to: 2,
		data: [
			{
				id: 3,
				thumb: "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/07/C8lBix3fl933hv9XHvbxIHVMbXL8Ll.jpg",
				deliver_name: "vui2",
				deliver_mobile: "15945596368",
				province_id: 120000,
				city_id: 120100,
				district_id: 120101,
				street_id: 120101001,
				address: "vui2",
				lng: "115.953117",
				lat: "40.102927",
				distance: 4.3,
				unit: "km",
				full_address: "天津 天津市 和平区 劝业场街道 vui2"
			},
			{
				id: 1,
				thumb: "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/07/QhiNmQCqfGSRui3cFc0H3Snsu3Ysr3.jpg",
				deliver_name: "vuivui",
				deliver_mobile: "vuivui",
				province_id: 0,
				city_id: 0,
				district_id: 0,
				street_id: 0,
				address: "vuivui",
				lng: "116.764323",
				lat: "40.102927",
				distance: 69.1,
				unit: "km",
				full_address: " vuivui"
			}
			]
		}
    }
}

错误时返回:

{
	result: 0,
	msg: "未找到城市信息",
	data: [ ]
}
{
	result: 0,
	msg: "经纬度信息为空",
	data: [ ]
}

返回参数说明:

参数名 类型 说明
id int 自提点id
thumb str 自提点图片
deliver_name str 自提点名称
deliver_mobile str 自提点电话
full_address str 自提点地址
unit str 距离单位(m 或 km)
distance str 距离