1.3 商品列表(带排序筛选)
1.3 商品列表(带排序筛选)
HTTP请求方式:POST
METHOD:b2c.gallery.index
完整的HTTP请求参数(由下边各个参数的值自动生成,可直接复制至剪切板): 复制至剪切板
详解HTTP请求参数:添加参数 查看参数说明....
返回结果(JSON) 格式化json
数据说明:
{
//当前选中筛选条件
"filter": {
"search_keywords": [
"鞋"
]
},
//数据分页
"pager": {
"current": 1,
"total": 1,
"dataCount": 2,
"pageLimit": "20"
},
//页面设置
"setting": {
"login": true,//已登录
"commentListListnum": "true",//是否显示评分
"showtype": "list",//列表显示
"dispaly_stock_goods":"true"//商品列表是否展示缺货商品
},
//商品数据
"goodsData": [
{
"products": {
"product_id": "7745",
"store": 9987,//货品真是库存
"store_title": 9987,//显示库存
"store_status": "库存紧张",//库存显示状态,''不显示
"price_list": {
"price": {
"name": "销售价",
"price": "1719.00",
"format": "¥1719.00"
},
"the_mlv_price": {
"name": "超级vip",
"price": "1203.00",
"format": "¥1203.00"
},
"memberprice": [
{
"name": "普通会员",
"price": "1719.00",
"format": "¥1719.00"
},
{
"name": "高级会员",
"price": "1547.00",
"format": "¥1547.00"
},
{
"name": "VIP会员",
"price": "1375.00",
"format": "¥1375.00"
},
{
"name": "超级vip",
"price": "1203.00",
"format": "¥1203.00"
}
],
"show": {
"price": "1183.00",
"name": "促销价",
"format": "¥1183.00"
},
"mktprice": {
"name": "超级vip",
"price": "1203.00",
"format": "¥1203.00"
}
},
"price": "1183.00"
},
"goods_id": "1815",
"store": 29974,//商品真是库存
"has_spec": "true",//是否有规格
"is_fav": false,//是否收藏
"type_id": "21",//商品类型id
"name": "COLUMBUS增高垫 女士专用隐形内增高鞋垫",
"comments_count": "0",//评论数量
"promotion_type_id":1,//团购id
"promotion_type_name":'团购',//团购活动名
"promotion_type_id":1,//团购id
"prepare":{
"status":'团购',//团购活动名
"message":'团购',//团购活动名
"limit_store":1,//限购
}
"image_default_id": "http://zj.qianseit.com/public/images/6b/1f/32/389272d648b33b8da72c931aa93aa1602d791308.jpg?1432433377#w",//图片
"goods_point": {//评分
"avg": "0.0"
},
"tags": [
{
"params": {
"tag_showOnIndex": "on",
"tag_image": "http://zj.qianseit.com/public/images/f5/3d/ad/1b4179ff51367d72a353ed4daa260d4bce7a16f7.png?1466233547#h",
"tag_opacity": "100",
"pic_loc": "tl"//tl:左上,tr:右上,bl:左下,br:右下
},
"tag_name": "流行热卖",
"tag_bgcolor": "#cccccc",//背景颜色
"tag_fgcolor": "#ce2119"//字体颜色
},
"promotion_tags": [//促销标签(预售没有促销)
{
"tag_name": "减价",
"rule_name": "全场商品优惠20员",
"rule_id": "4"
}
]
},
],
//筛选信息
"screen": {
"cat_id": "",//当前分类
"search_cat": [//搜索时关联的分类
{
"active": true,
"cat_id": "212",
"cat_name": "✿日常用品"
},
{
"active": false,
"cat_id": "154",
"cat_name": "✿足部护理"
}
],
"cat": [//子类
{
"cat_id": "49",
"cat_name": "✿入浴剂"
}
],
"filter_entries": [//筛选条目
{
"screen_name": "品牌",
"screen_field": "brand_id",
"screen_single": true,
"options": [
{
"val": "20",
"name": "24h cosme"
}
]
},
{
"screen_name": "颜色",
"screen_field": "s_11",
"screen_single": true,
"options": [
{
"val": 91,
"name": "糖果粉色"
}
]
},
],
//排序列表
"orderBy": [
{
"label": "默认"
},
{
"label": "按发布时间 新->旧",
"sql": "last_modify desc"
},
{
"label": "按发布时间 旧->新",
"sql": "last_modify asc"
},
{
"label": "按价格 从高到低",
"sql": "price desc"
},
{
"label": "按价格 从低到高",
"sql": "price asc"
},
{
"label": "访问周次数",
"sql": "view_w_count desc"
},
{
"label": "总访问次数",
"sql": "view_count desc"
},
{
"label": "周购买次数",
"sql": "buy_count desc"
},
{
"label": "总购买次数",
"sql": "buy_w_count desc"
},
{
"label": "评论次数",
"sql": "comments_count desc"
}
]
},
"orderby_sql": "view_count desc"//排序
}
//当前选中筛选条件
"filter": {
"search_keywords": [
"鞋"
]
},
//数据分页
"pager": {
"current": 1,
"total": 1,
"dataCount": 2,
"pageLimit": "20"
},
//页面设置
"setting": {
"login": true,//已登录
"commentListListnum": "true",//是否显示评分
"showtype": "list",//列表显示
"dispaly_stock_goods":"true"//商品列表是否展示缺货商品
},
//商品数据
"goodsData": [
{
"products": {
"product_id": "7745",
"store": 9987,//货品真是库存
"store_title": 9987,//显示库存
"store_status": "库存紧张",//库存显示状态,''不显示
"price_list": {
"price": {
"name": "销售价",
"price": "1719.00",
"format": "¥1719.00"
},
"the_mlv_price": {
"name": "超级vip",
"price": "1203.00",
"format": "¥1203.00"
},
"memberprice": [
{
"name": "普通会员",
"price": "1719.00",
"format": "¥1719.00"
},
{
"name": "高级会员",
"price": "1547.00",
"format": "¥1547.00"
},
{
"name": "VIP会员",
"price": "1375.00",
"format": "¥1375.00"
},
{
"name": "超级vip",
"price": "1203.00",
"format": "¥1203.00"
}
],
"show": {
"price": "1183.00",
"name": "促销价",
"format": "¥1183.00"
},
"mktprice": {
"name": "超级vip",
"price": "1203.00",
"format": "¥1203.00"
}
},
"price": "1183.00"
},
"goods_id": "1815",
"store": 29974,//商品真是库存
"has_spec": "true",//是否有规格
"is_fav": false,//是否收藏
"type_id": "21",//商品类型id
"name": "COLUMBUS增高垫 女士专用隐形内增高鞋垫",
"comments_count": "0",//评论数量
"promotion_type_id":1,//团购id
"promotion_type_name":'团购',//团购活动名
"promotion_type_id":1,//团购id
"prepare":{
"status":'团购',//团购活动名
"message":'团购',//团购活动名
"limit_store":1,//限购
}
"image_default_id": "http://zj.qianseit.com/public/images/6b/1f/32/389272d648b33b8da72c931aa93aa1602d791308.jpg?1432433377#w",//图片
"goods_point": {//评分
"avg": "0.0"
},
"tags": [
{
"params": {
"tag_showOnIndex": "on",
"tag_image": "http://zj.qianseit.com/public/images/f5/3d/ad/1b4179ff51367d72a353ed4daa260d4bce7a16f7.png?1466233547#h",
"tag_opacity": "100",
"pic_loc": "tl"//tl:左上,tr:右上,bl:左下,br:右下
},
"tag_name": "流行热卖",
"tag_bgcolor": "#cccccc",//背景颜色
"tag_fgcolor": "#ce2119"//字体颜色
},
"promotion_tags": [//促销标签(预售没有促销)
{
"tag_name": "减价",
"rule_name": "全场商品优惠20员",
"rule_id": "4"
}
]
},
],
//筛选信息
"screen": {
"cat_id": "",//当前分类
"search_cat": [//搜索时关联的分类
{
"active": true,
"cat_id": "212",
"cat_name": "✿日常用品"
},
{
"active": false,
"cat_id": "154",
"cat_name": "✿足部护理"
}
],
"cat": [//子类
{
"cat_id": "49",
"cat_name": "✿入浴剂"
}
],
"filter_entries": [//筛选条目
{
"screen_name": "品牌",
"screen_field": "brand_id",
"screen_single": true,
"options": [
{
"val": "20",
"name": "24h cosme"
}
]
},
{
"screen_name": "颜色",
"screen_field": "s_11",
"screen_single": true,
"options": [
{
"val": 91,
"name": "糖果粉色"
}
]
},
],
//排序列表
"orderBy": [
{
"label": "默认"
},
{
"label": "按发布时间 新->旧",
"sql": "last_modify desc"
},
{
"label": "按发布时间 旧->新",
"sql": "last_modify asc"
},
{
"label": "按价格 从高到低",
"sql": "price desc"
},
{
"label": "按价格 从低到高",
"sql": "price asc"
},
{
"label": "访问周次数",
"sql": "view_w_count desc"
},
{
"label": "总访问次数",
"sql": "view_count desc"
},
{
"label": "周购买次数",
"sql": "buy_count desc"
},
{
"label": "总购买次数",
"sql": "buy_w_count desc"
},
{
"label": "评论次数",
"sql": "comments_count desc"
}
]
},
"orderby_sql": "view_count desc"//排序
}