简要描述:

  • 获取门店列表

请求URL:

GET/plugin.store-cashier.frontend.store.store.get-store-list

参数:

参数名 是否必须 类型 说明
lng float 经度
lat float 纬度
city_id int 城市id
kwd string 门店名称搜索

返回示例:

正确时返回:

{
	result: 1,
	msg: "成功",
	data: {
	store_list: [
		{
			id: 3,
			thumb: "http://dev-yangyang.yunzshop.com/attachment/images/3/2017/08/Ewh4QhPzHqtTbybtHbSiytaZhWq7Ta.jpg",
			store_name: "美宜佳",
			dispatch_type: {
				1: "1",
				2: "2"
			},
			specify_show: 0,
			longitude: "118.734559",
			latitude: "40.103958",
			dispatch: "支持快递、自提、",
			dispatchs: "支持快递、自提、人脸支付",
			average_score: 0,
			order_total: 0,
			unit: "km",
			distance: 63.5,
			mobile: 15220038141,
			has_one_category:{
				id: 2,
				name: "默认分类",
				is_open: 1,
				open_name: "开启",
			},
			"store_point":{
				"max_ponit_switch":1,
				"max_point_deduct":"积分最高抵扣10%",
				"point_switch":1,
				"point":"赠送积分10%"
			},
			"store_love":{
				"deduction":1,
				"deduction_proportion":"爱心值最高抵扣10%",
				"award":1,
				"award_proportion":"赠送爱心值10%"
			},
		},
		"has_many_coupon":[
			{
				"id":35,
				"name":"减1"
			},
			{
				"id":34,
				"name":"减1"
			},
			{
				"id":33,
				"name":"减1"
			}
        ],
		"recommend_goods":[
                    {
                        "goods_id":7537,
                        "thumb":"https://dev4.yunzmall.com/attachment/images/9/2019/09/L4cIzgq8SB74WNOG2Cin42nC5SIS4q.png",
                        "title":"门店商品",
                        "price":"100.00",
                        "market_price":"0.00"
                    },
                    {
                        "goods_id":7723,
                        "thumb":"https://dev4.yunzmall.com/attachment/images/9/2020/02/pbpSK89BSM9V82S2bp1kS2P10s4Yzz.jpg",
                        "title":"视频点播商品5",
                        "price":"100.00",
                        "market_price":"200.00"
                    },
                    {
                        "goods_id":7727,
                        "thumb":"https://dev4.yunzmall.com/attachment/images/9/2020/02/pbpSK89BSM9V82S2bp1kS2P10s4Yzz.jpg",
                        "title":"视频点播商品视频点播商品4视频点播商品4视频点播商品44",
                        "price":"1.00",
                        "market_price":"200.00"
                    },
                    {
                        "goods_id":7728,
                        "thumb":"https://dev4.yunzmall.com/addons/yun_shop/static/yunshop/goods/images/Y3qzJNh33V868BnGr3b63ub2H93c58.jpg",
                        "title":"双肩包",
                        "price":"369.00",
                        "market_price":"658.00"
                    },
                    {
                        "goods_id":7732,
                        "thumb":"https://dev4.yunzmall.com/attachment/images/9/2019/09/lpdUPyxD9uXyR2r39rY2Q3D06r2eDZ.jpg",
                        "title":"课程商品测试22",
                        "price":"100.00",
                        "market_price":"0.00"
                    }
                ],
		"face_pay":1,
	]
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
distance float 距离
unit string 距离单位m/km
order_total int 上个月订单数
average_score float 平均评分
dispatch string 支持的配送方式
store_name string 门店名称
thumb string 门店头像
id int 门店ID
specify_show int 0:门店首页1:门店商品页
参数名 类型 说明
store_point obj 收银台营销积分
max_point_switch int 积分最高抵扣开关 0否 1时候
max_point_deduct string 积分最高抵扣%
point_switch int 赠送积分开关 0否 1是
point string 赠送积分%
store_love obj 收银台营销爱心值
deduction int 是否开启爱心值抵扣 0否 1是
deduction_proportion string 爱心值最高抵扣%
award int 是否开启爱心值赠送 0否 1是
award_proportion string 赠送爱心值%
mobile int 门店电话
has_one_category obj 门店所属分类
id int 分类id
name string 分类名称
参数名 类型 说明
has_many_coupon obj 优惠券
id int 优惠券id
name string 优惠券名称
参数名 类型 说明
recommend_goods obj 推荐商品
goods_id int 商品id
title string 商品名称
price string 商品价格
market_price string 商品原价
change_thumb string 商品图片
参数名 类型 说明
dispatchs string 原先的dispatch字段改为dispatchs

备注:

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