简要描述:

  • 默认首页、装修页面的获取门店

请求域名:

  • http://xx.com

请求URL:

GET:plugin.store-cashier.frontend.store.store.get-store-list-to-page

参数:

参数名 是否必须 类型 说明
page string 当前页数
kwd string
lng string 经纬度
lat string 经纬度
city_name string 城市名称
pagesize string

返回示例:

正确时返回:

{
"result": 1,
"msg": "成功",
"data": {
	"total": 24,
	"last_page": 5,
	"is_sales_display":1,
	"data": [
		{
			"id": 9,
			"thumb": "https://dev5.yunzshop.com/attachment/images/2/2018/10/KD9765z96NDGd20QuG0I5G0D7i3NNu.jpg",
			"store_name": "12",
			"mobile": "13800138000",
			"longitude": "113.331306",
			"latitude": "23.294514",
			"specify_show": 0,
			"operating_state": 0,
			"distance": 2.7,
			"store_point": {
				"point_switch": 0,
				"point": 0,
				"point_deduct_switch": 0,
				"max_point_deduct": 0
			},
			"store_love": {
				"deduction": 0,
				"deduction_proportion": "爱心值123最高抵扣0%",
				"award": 0,
				"award_proportion": "赠送爱心值1230%"
			},
			"address": {
				"city": "广州市",
				"detailed_address": "广州市白云区江夏"
			},
			"unit": "km",
			"dispatch": "支持快递、自提、",
			"average_score": 0,
			"order_total": 0,
			"has_one_category": {
				"id": 1,
				"name": "分类0",
				"is_open": 1,
				"open_name": "开启"
			}
		},
	]
	}
}

错误时返回:

  {
    "result": 0,
    "msg": "获取失败"
  }

返回参数说明:

参数名 类型 说明
total number 总数量
last_page number 总页数
is_sales_display number 是否显示销量
data[......] Array 门店数据列表
...... id number ID
thumb Str 图片
store_name Str 门店名称
mobile Str 联系电话
longitude Str 经度
latitude Str 纬度
specify_show number
operating_state number 营业状态
distance number 距离
store_point{....} Object point_switch number 1:开启;0:关闭
...... point Str
point_deduct_switch number 1:开启;0:关闭
max_point_deduct Str
store_love{....} Object deduction number 1:开启;0:关闭
...... deduction_proportion Str
award number 1:开启;0:关闭
award_proportion Str
address{....} Object city Str 城市名称
...... detailed_address Str 地址详情说明
unit Str 距离单位
dispatch Str 支持的类型
average_score number
order_total number 月销量
has_one_category{....} Object id number id
...... name Str 名称
is_open number 是否开启
open_name number

备注:

  • 更多返回错误代码请看首页的错误代码描述