文档
测试

获取Tab项数据

POST
GetTabDataForOfflineShops

接口描述

获取Tab项数据

请求参数

参数名
类型
描述
必填
dataJson
object
数据参数
必填
member_id
number
会员ID 示例:100000 可不传或为空
可选
client_key
string
密钥 可不传或为空 示例:A5D22FF169993B30EFD2F2AE2A1875B572AA1835D2DBA51C588E601FA684CF4C
可选
tab_id
number
页码, 默认值1
必填
index
number
选项卡ID
可选
size
number
每页数量, 默认值20
可选
lat
number
纬度 , 默认值0
可选
lng
number
经度, 默认值0
可选
oc_member_id
number
线下商家平台会员ID 可不传或为空
可选
oc_client_key
string
线下商家平台会员Key 可不传或为空
可选

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
tab_id
number
选项ID(搜索条件) 示例:6
必填
member_id
number
线下商家平台会员ID(搜索条件) 示例:0 ,0表无会员ID
必填
index
number
页码 示例:1
必填
size
number
每页数量 示例:10
必填
lng
number
经度 示例:113.539771
必填
lat
number
纬度 示例:22.267469
必填
total
number
搜索结果总数量 示例:7
必填
list
array
搜索 数据列表
必填
activity_id
number
活动ID 示例:1001
必填
shop_id
number
店铺ID 示例:1
必填
merchant_id
number
门店ID 示例:4
必填
distance
number
距离 示例:0
必填
title
string
活动标题 示例:叫啥活动名
必填
goods_name
string
商品名 示例:叫啥商品
必填
price
number
商品价格 示例:100
必填
market_price
number
商品市场价 示例:0
必填
goods_icon
string
商品图片 示例:http://localhost:7031//Upload/Flie/1004/1004_20200212193127_82743.jpg
必填
merchant_name
string
门店名称 示例:9号店
必填
comment_count
number
活动评价数量 示例:0
必填
tabs
array
标签例表,如果无就不返回 数据列表
可选
id
number
选项ID 示例:9
必填
name
string
选项名 示例:最近热门
必填
sort
string
排序位置 示例:1
必填
first_order_str
string
首单返现,字符串 示例:首单返5.00元
必填
paid_to_share_str
string
分享赚,字符串 示例:分享赚12.50元
必填
first_order
number
首单返现 示例:5
必填
paid_to_share
number
分享赚 示例:12.5
必填
ret
number
示例:0
必填
err_code
number
示例:0
必填
msg
string
示例:ok
必填

说明 / 示例

## 接口文件 ## 成功返回示例 ```language { "data": { "tab_id": 6, "member_id": 100005, "index": 1, "size": 10, "lng": 113.539771, "lat": 22.267469, "total": 7, "list": [{ "activity_id": 1001, "shop_id": 1, "merchant_id": 4, "distance": 0, "title": "叫啥活动名", "goods_name": "叫啥商品", "price": 100.0, "market_price": 0.0, "goods_icon": "http://localhost:7031//Upload/Flie/1004/1004_20200212193127_82743.jpg", "merchant_name": "9号店", "comment_count": 0, "first_order": 5, "paid_to_share": 12.5, "first_order_str": "首单返5.00元", "paid_to_share_str": "分享赚12.50元", }, { "activity_id": 1004, "shop_id": 7, "merchant_id": 4, "distance": 0, "title": "gdsdgdshg", "goods_name": "dghdshsh", "price": 55.0, "market_price": 100.0, "goods_icon": "http://localhost:7031//Upload/Flie/1004/1004_20200306170246_17926.jpg", "merchant_name": "9号店", "comment_count": 0, "first_order": 5, "paid_to_share": 12.5, "first_order_str": "首单返5.00元", "paid_to_share_str": "分享赚12.50元", "tabs": [{ "id": 9, "name": "最近热门", "sort": "1" }] }, { "activity_id": 1003, "shop_id": 1, "merchant_id": 1, "distance": 245, "title": "活动标题大", "goods_name": "墙上止", "price": 5.0, "market_price": 8.0, "goods_icon": "http://localhost:7031//Upload/Flie/1004/1004_20200213114300_21246.jpg", "merchant_name": "21号店", "comment_count": 0, "first_order": 0, "paid_to_share": 0, "first_order_str": "", "paid_to_share_str": "", "list": [{ "first_order": 5, "first_order_str": "首单返5.00元", "paid_to_share": 10.0, "paid_to_share_str": "分享赚10.00元", "activity_id": 1001, "shop_id": 1, "merchant_id": 4, "distance": 0, "title": "叫啥活动名", "goods_name": "叫啥商品", "price": 100.0, "market_price": 0.0, "goods_icon": "https://oss.qssmart.cn/test/Upload/Flie/1004/1004_20200212193127_82743.jpg", "merchant_name": "9号店", "comment_count": 0 }, { "first_order": 5, "first_order_str": "首单返5.00元", "paid_to_share": 1.65, "paid_to_share_str": "分享赚1.65元", "activity_id": 1004, "shop_id": 7, "merchant_id": 4, "distance": 0, "title": "gdsdgdshg", "goods_name": "dghdshsh", "price": 55.0, "market_price": 100.0, "goods_icon": "https://oss.qssmart.cn/test/Upload/Flie/1004/1004_20200306170246_17926.jpg", "merchant_name": "9号店", "comment_count": 0, "tabs": [{ "id": 9, "name": "最近热门", "sort": "1" }] }, { "first_order": 2, "first_order_str": "首单返2.00元", "paid_to_share": 0.049999997, "paid_to_share_str": "分享赚0.05元", "activity_id": 1003, "shop_id": 1, "merchant_id": 1, "distance": 245, "title": "活动标题大", "goods_name": "墙上止", "price": 5.0, "market_price": 8.0, "goods_icon": "https://oss.qssmart.cn/test/Upload/Flie/1004/1004_20200213114300_21246.jpg", "merchant_name": "21号店", "comment_count": 0, "tabs": [{ "id": 9, "name": "最近热门", "sort": "1" }, { "id": 10, "name": "宝妈推荐", "sort": "2" }] }, { "first_order": 5, "first_order_str": "首单返5.00元", "paid_to_share": 1.65, "paid_to_share_str": "分享赚1.65元", "activity_id": 1004, "shop_id": 7, "merchant_id": 1, "distance": 245, "title": "gdsdgdshg", "goods_name": "dghdshsh", "price": 55.0, "market_price": 100.0, "goods_icon": "https://oss.qssmart.cn/test/Upload/Flie/1004/1004_20200306170246_17926.jpg", "merchant_name": "21号店", "comment_count": 0, "tabs": [{ "id": 9, "name": "最近热门", "sort": "1" }] }, { "first_order": 5, "first_order_str": "首单返5.00元", "paid_to_share": 1.65, "paid_to_share_str": "分享赚1.65元", "activity_id": 1004, "shop_id": 7, "merchant_id": 3, "distance": 3164, "title": "gdsdgdshg", "goods_name": "dghdshsh", "price": 55.0, "market_price": 100.0, "goods_icon": "https://oss.qssmart.cn/test/Upload/Flie/1004/1004_20200306170246_17926.jpg", "merchant_name": "6号店", "comment_count": 0, "tabs": [{ "id": 9, "name": "最近热门", "sort": "1" }] }, { "first_order": 2, "first_order_str": "首单返2.00元", "paid_to_share": 0.049999997, "paid_to_share_str": "分享赚0.05元", "activity_id": 1003, "shop_id": 1, "merchant_id": 3, "distance": 3164, "title": "活动标题大", "goods_name": "墙上止", "price": 5.0, "market_price": 8.0, "goods_icon": "https://oss.qssmart.cn/test/Upload/Flie/1004/1004_20200213114300_21246.jpg", "merchant_name": "6号店", "comment_count": 0, "tabs": [{ "id": 9, "name": "最近热门", "sort": "1" }, { "id": 10, "name": "宝妈推荐", "sort": "2" }] }, { "first_order": 5, "first_order_str": "首单返5.00元", "paid_to_share": 10.0, "paid_to_share_str": "分享赚10.00元", "activity_id": 1001, "shop_id": 1, "merchant_id": 3, "distance": 3164, "title": "叫啥活动名", "goods_name": "叫啥商品", "price": 100.0, "market_price": 0.0, "goods_icon": "https://oss.qssmart.cn/test/Upload/Flie/1004/1004_20200212193127_82743.jpg", "merchant_name": "6号店", "comment_count": 0 }] }, "ret": 0, "err_code": 0, "msg": "ok" } ``` >i 注:ret = 0 为成功 ## 失败返回示例 ```language { "ret": 4, "msg": "参数不能为空", "err_code": 10008 } ``` >d 注:ret > 0 为失败 ## 错误编号(errCode):