ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 列表 ~~~[api] get:/index/stores/index string:search#搜索关键词 number:cateId#分类ID number:type#门店类型,1=>B2C,2=>O2O,3=>O2O(支持预约配送) number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-06-12 10:22:43", "data": [ { "id": 14, "dealer_id": 1, "cate_id": 2, "auditd_id": 1, "type": 2, "name": "门店14", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "notice": "欢迎光临,很高兴为您服务", "mobile": "18666868868", "province": 100000, "city": 110000, "district": 111000, "twon": 111100, "address": "详细地址", "longitude": "112.000001", "latitude": "30.000001", "business_hours_start": "7", "business_hours_end": "24", "template_style": 1, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "delivery_goods_min_price": "0.00", "delivery_price": "0.00", "sort": 0, "is_support_two": 0, "is_support_express": 0, "is_support_self_pickup": 0, "is_support_delivery": 0, "is_support_make_delivery": 0, "is_self_delivery": 0, "is_audit": 1, "is_trash": 0, "status": 1, "created_at": "2018-06-11 16:47:59", "updated_at": "2018-06-11 16:47:59", "auditd_at": "2016-01-01 00:00:00", "is_audit_text": "审核通过", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 附近门店 > https://lbs.amap.com/api/yuntu/reference/cloudsearch/#t2 请参考门店模型 ~~~[api] get:/index/stores/mapAroundSearch *string:center#经纬度,例:'113.761352,22.985013' string:keyword#搜索关键词,搜索范围包含店名与地址。2. 支持关键字模糊检索,即对建立【文本索引字段】对应列内容进行模糊检索;如keywords=工商银行,检索返回已建立文本索引列值中包含“工商”或者“银行”或者“工商银行”关键字的POI结果集。3. 支持关键字“或”精准检索,即对建立【文本索引字段】对应列内容进行多关键字检索;如keywords=招商银行|华夏银行|工商银行,检索返回已建立索引列值中包含“招商银行”或者“华夏银行”或者“工商银行”的POI结果集,不会返回检索词切分后,如仅包含“招商”或者“银行”的POI集。4. 可赋值为空值,用空格表示空值;5. keywords= (空格)或者是关键字,将返回对应关键字的数据;6. 一次请求最多返回2000条数据。 int:radius=3000#查询半径,单位米,默认3000 string:filter#过滤条件 status:1+is_support_delivery:1 string:sortrule#排序规则_distance:1 *number:p=1#当前页数 *number:ps=20#每页的条数,最大为100,默认20 <<< success { "code": 1, "msg": "", "time": "2018-08-09 14:59:22", "data": { "count": "1", "info": "OK", "infocode": "10000", "status": 1, "datas": [ { "_id": "2", "_location": "113.761352,22.985013", "_name": "地图商家", "_address": "广东省东莞市东城街道新莞悦大厦", "store_id": 21, "_createtime": "2018-08-09 14:38:34", "_updatetime": "2018-08-09 14:38:34", "_province": "广东省", "_city": "东莞市", "_district": "", "_distance": "0", "_image": [] } ] } } ~~~ #### 详情 ~~~[api] get:/index/stores/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-28 07:51:51", "data": { "id": 1, "dealer_id": 1, "cate_id": 1, "auditd_id": 1, "type": 1, "name": "门店1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "notice": "欢迎光临,很高兴为您服务", "mobile": "18666868868", "province": 100000, "city": 110000, "district": 111000, "twon": 111100, "address": "详细地址", "longitude": "112.000001", "latitude": "30.000001", "business_hours_start": "7", "business_hours_end": "24", "template_style": 2, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "delivery_goods_min_price": "0.00", "delivery_price": "0.00", "sort": 0, "is_support_two": 0, "is_support_express": 1, "is_support_self_pickup": 0, "is_support_delivery": 0, "is_support_make_delivery": 0, "is_self_delivery": 0, "is_audit": 1, "status": 1, "created_at": "2018-06-10 23:47:31", "updated_at": "2018-06-20 15:35:58", "auditd_at": "2018-06-11 01:08:50", "promotionOrderFullSubtract": { "id": 1, "dealer_id": 2, "stores_id": 1, "value": [], "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2018-08-13 15:16:22", "status_text": "正常" }, "is_audit_text": "审核通过", "status_text": "正常" } } ~~~ #### 分类 ~~~[api] get:/index/stores/category *number:type#门店类型,1=>B2C门店,2=>O2O门店 number:parentId#父ID <<< success { "code": 1, "msg": "", "time": "2018-09-11 17:14:51", "data": [ { "id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "type": 1, "name": "B2C", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "template_style": 2, "delivery_scope": 1, "delivery_setting": "", "delivery_time": 0, "sort": 0, "is_support_two": 1, "is_support_express": 1, "is_support_self_pickup": 0, "is_support_delivery": 0, "is_support_make_delivery": 0, "is_self_delivery": 0, "status": 1, "created_at": "2018-06-10 22:26:52", "updated_at": "2018-06-20 15:39:07", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 1000 } } ~~~ #### 商品 ~~~[api] get:/index/stores/goods/id/:id string:orderBy#排序,''=>最新,view=>人气,sale=>销量,price=>价格 number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-06-12 10:41:34", "data": [ { "id": 1, "cate_id": 1, "brands_id": 0, "dealer_id": 1, "stores_id": 1, "express_id": 0, "template_id": null, "sn": "1234567890", "name": "测试商品", "weight": 0, "volume": 0, "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "商品摘要", "price": "10.00", "market_price": "20.00", "inventory": 100, "view_count": 0, "sale_count": 0, "sort": 0, "is_free_shipping": 0, "is_hot": 0, "is_new": 0, "is_real": 1, "is_sale": 1, "is_trash": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2016-01-01 00:00:00", "saled_at": "2016-01-01 00:00:00", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 轮播图 ~~~[api] get:/index/stores/banner <<< success { "code": 1, "msg": "", "time": "2018-06-12 12:49:25", "data": [ { "image": "http://image.suning.cn/uimg/aps/material/152673480125402454.jpg", "type": "goods", "value": 1 }, { "image": "http://image4.suning.cn/uimg/cms/img/152671545167872835.jpg", "type": "article", "value": 1 }, { "image": "http://image4.suning.cn/uimg/cms/img/152671545167872835.jpg", "type": "url", "value": "http://www.baidu.com" } ] } ~~~