2.1 商品介绍主页
2.1 商品介绍主页
HTTP请求方式:POST
METHOD:b2c.product.index
完整的HTTP请求参数(由下边各个参数的值自动生成,可直接复制至剪切板): 复制至剪切板
详解HTTP请求参数:添加参数 查看参数说明....
返回结果(JSON) 格式化json
数据说明:
{
"member_info": {//用户信息
"member_id": "4",
"member_lv_id": "1",//用户等级id
"uname": "y2kkao"//用户名
},
"setting": {//配置信息
"acomment": {
"switch": {
"ask": "on",//on开启商品咨询否则关闭
"discuss": "on"//on开启商品评论否则关闭
},
"point_status": "on"//on商品开启否则关闭
},
"recommend": "true",//true商品开启推荐否则关闭推荐
"selllog": "true",//true开启商品销售记录否则关闭销售记录
"buytarget": "3"//加入购物车按钮跳转方式:1.跳转到购物车页面 2.不跳转,不提示 3.不跳转,弹出购物车提示
},
"goods_point": {//商品评分(后台关闭评分)
"avg": 5,//5个星 最高5 最低0
"total": "25.0",//总评分
"avg_num": "5.0",//平均评分值
"best_avg": "97%"
},
"total_point_nums": 5,//共评论人数
"btn_page_list": [//按钮列表(预售商品只有立即购买)(商品库存不足显示缺货按钮)(后台可关闭)
{
"name": "立即购买按钮",
"value": "fastbuy"
},
{
"name": "加入购物车按钮",
"value": "buy"
},
{
"name": "缺货登记按钮",
"value": "notify"
}
],
"async_request_list": [//自定义tab
{
"name": "售后保障",
"is_call": "",
"content": "
"//html格式,
"id": "type_tab_1"
}
],
"page_product_basic": {//商品基本信息
"is_gift": true,//是否赠品
"gift": {//是赠品的数据
"from_time": "1438358400",
"to_time": "1504108800",
"brief": "",
"max": "1",
"consume_score": "1111",
"permission": "true",
"member_lv_data": [
{
"member_lv_id": "1",
"name": "普通会员",
"lv_logo": ""
},
{
"member_lv_id": "2",
"name": "高级会员",
"lv_logo": ""
},
{
"member_lv_id": "3",
"name": "VIP会员",
"lv_logo": ""
},
{
"member_lv_id": "5",
"name": "超级vip",
"lv_logo": ""
}
]
},
"goods_id": "1212",
"share_url": "http://zj.qianseit.com/index.php/wap/product-2712.html",//分享链接
"product_id": "2712",
"goods_bn": "G540003F0EDCBB",
"product_bn": "G540003F0EDCBB",
"qrcode_image_id": "",//二维码id
"price": "1.00",
"intro": " ",//商品详情
"unit": "盒",//数量单位
"title": "北海道ROYCE提拉米苏巧克力威化饼干12枚装",
"brief": "",//短描述
"product_marketable": "true",//是否上架
"params": [//商品详细参数tab
{
"group_name": "呵呵",//参数组名
"group_param": [
{
"name": 111,
"value": "参数1值"
},
{
"name": 33,
"value": "参数2值"
},
{
"name": 5454,
"value": "参数3值"
}
]
}
],
"type_name": "食品",//商品类型
"cat_name": "✿饼干",//商品分类
"brand": {//商品品牌
"brand_name": "royce | ロイズ",
"brand_id": "206"
},
"props": [//商品扩展属性
{
"name": "适合性别",
"value": "男"
},
{
"name": "油炸",
"value": "否"
},
{
"name": "尺寸",
"value": "中毫升"
}
],
"spec": [//商品规格
{//可选货品规格
"group_name": "颜色",
"group_spec": [
{//可选货品规格
"select": "false",
"product_id": "3805",//可选货品规格才有id
"spec_image": "http://zj.qianseit.com/public/images/34/f6/fa/9be52ed7be5c444405208c9b6c9e49cdf40c17be.bmp?1412026805#h",
"spec_value": "01明亮肤色"
},
{//当前货品规格
"select": "true",//选中状态
"spec_image": "http://zj.qianseit.com/public/images/2d/dc/cf/3129b0d4ba18d494f6f3b3251e78ccae66afc43b.png?1463825098#h",
"spec_value": "02自然肤色"
}
]
}
],
"images": [//货品图片轮播
{
"image_id": "http://zj.qianseit.com/public/images/c9/7b/a6/33c97954ec9b01b4bd055e5438b233a67c61c455.jpg?1415266541#h"
},
{
"image_id": "http://zj.qianseit.com/public/images/54/88/66/a228b32982c7fde23936389d5dc844684c5671f3.png?1463748274#w"
},
{
"image_id": "http://zj.qianseit.com/public/images/02/9e/e2/20dd18c5f2066ee3ff818659378a387326bd88e1.jpg?1463748274#w"
},
{
"image_id": "http://zj.qianseit.com/public/images/36/75/07/afda3bca38c5bd716e737831f2ca0e7007f19b85.jpg?1463748274#h"
}
],
"image_default_id": "http://pic.shopex.cn/pictures/eimages/6e3e1e0ed4b3ad74130fd8acd7bcce985e95b2f346.gif?1412026895#h",//货品主图
"promotion": {//促销信息
"goods": [//商品促销
{
"name": "庆圣诞迎新年,全商城3倍积分,包关税",
"tag": "送积分",
"use": "true",
"tag_id": "1"//pTag[] = tag_id@列表筛选
}
],
"order": [//订单促销
{
"name": "订单总价大于20000,减免20%",
"tag": "打折"
}
],
"gift": [//赠品促销
{
"goods_id": "1196",
"product_id": "4355",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9976,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4356",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9999,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4357",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9991,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4358",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9991,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4359",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9999,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "8815",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9995,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
}
]
},
"prepare": {//预售商品有该字段
"prepare_id": "1",
"id": "1",
"product_id": "4914",
"preparesell_price": "1.000",//预售商品定金
"promotion_price": "499.000",//预售商品价格
"preparename": "dsdsd",//预售规则名
"promotion_type": "prepare",//预售类型
"description": "asdsdf",//预售规则描述
"begin_time": "1462550400",//订金开始时间
"end_time": "1464624000",//订金结束时间
"begin_time_final": "1494345600",//尾金开始时间
"end_time_final": "1495555200",//尾金结束时间
"initial_num": "9995",//预售库存
"status": 1,//预售状态状态分别为(1,2,3,4,5,6)
"message": ""//预售状态对应的描述
},
"price_list": {//价格列表
"price": {//销售价
"name": "销售价",
"price": "1522.00"
},
"mktprice": {//与销售价对比价
"name": "销售价",
"price": "1522.00",
"format": "¥1522.00"
},
"the_mlv_price": {
"name": "会员价",
"price": "1.00"
},
"minprice": {//会员最低价(后台可关闭)
"name": "最低",
"price": "1.00",
"format": "¥1.00"
},
"memberprice": [//会员价列表(后台可关闭)
{
"name": "普通会员",
"price": "1.00",
"format": "¥1.00"
},
{
"name": "注册会员",
"price": "1.00",
"format": "¥1.00"
},
{
"name": "高级会员",
"price": "11.00",
"format": "¥11.00"
},
{
"name": "VIP会员",
"price": "1.00",
"format": "¥1.00"
}
],
"special_goods": {//团购商品不参加任何优惠活动
"name": "团购价",
"price": "2300.000",
},
"prepare_price": {//预售商品不参加任何促销活动
"name": "预售订金",
"price": "1.000"
},
"show": {//商品主价
"name": "预售订金",
"price": "1.000",
"format": "¥1.00"
},
"saveprice": {//节省金额//后台可关闭和设置
"name": "优惠",
"unit": "%",
"price": "超过99"
}
},
"store": 9336,//库存
"store_title": 9336//前台显示库存
},
"page_goods_adjunct": [//商品配件
{
"name": "配件",
"type": "goods",
"min_num": 0,
"max_num": "1",
"set_price": "discount",//折扣,minus:减固定价格
"max_num": "0.9",//优惠的折扣:(9折)小于1为折扣,大于1固定价格(-1元)
"items": [
{
"product_id": "10781",
"goods_id": "3181",
"name": "15年新版 KOJI Dolly Wink 睫毛膏 纤长/浓密 防水防晕好卸妆H",
"spec_info": "颜色:蓝色",
"store": "100000",
"price": "1374.000",
"marketable": "true",
"adjprice": 1236.6
},
{
"product_id": "10782",
"goods_id": "3181",
"name": "15年新版 KOJI Dolly Wink 睫毛膏 纤长/浓密 防水防晕好卸妆H",
"spec_info": "颜色:粉色",
"store": "100000",
"price": "1374.000",
"marketable": "true",
"adjprice": 1236.6
}
]
}
],
"adjunct_images": {//配件图片key对于配件goods_id
"3181": "http://zj.qianseit.com/public/images/c8/79/99/ff5ea16795d6a4d0b9859bbcc366588e462ae9ea.png?1440905036#w"
}
}
"member_info": {//用户信息
"member_id": "4",
"member_lv_id": "1",//用户等级id
"uname": "y2kkao"//用户名
},
"setting": {//配置信息
"acomment": {
"switch": {
"ask": "on",//on开启商品咨询否则关闭
"discuss": "on"//on开启商品评论否则关闭
},
"point_status": "on"//on商品开启否则关闭
},
"recommend": "true",//true商品开启推荐否则关闭推荐
"selllog": "true",//true开启商品销售记录否则关闭销售记录
"buytarget": "3"//加入购物车按钮跳转方式:1.跳转到购物车页面 2.不跳转,不提示 3.不跳转,弹出购物车提示
},
"goods_point": {//商品评分(后台关闭评分)
"avg": 5,//5个星 最高5 最低0
"total": "25.0",//总评分
"avg_num": "5.0",//平均评分值
"best_avg": "97%"
},
"total_point_nums": 5,//共评论人数
"btn_page_list": [//按钮列表(预售商品只有立即购买)(商品库存不足显示缺货按钮)(后台可关闭)
{
"name": "立即购买按钮",
"value": "fastbuy"
},
{
"name": "加入购物车按钮",
"value": "buy"
},
{
"name": "缺货登记按钮",
"value": "notify"
}
],
"async_request_list": [//自定义tab
{
"name": "售后保障",
"is_call": "",
"content": "
"//html格式,
"id": "type_tab_1"
}
],
"page_product_basic": {//商品基本信息
"is_gift": true,//是否赠品
"gift": {//是赠品的数据
"from_time": "1438358400",
"to_time": "1504108800",
"brief": "",
"max": "1",
"consume_score": "1111",
"permission": "true",
"member_lv_data": [
{
"member_lv_id": "1",
"name": "普通会员",
"lv_logo": ""
},
{
"member_lv_id": "2",
"name": "高级会员",
"lv_logo": ""
},
{
"member_lv_id": "3",
"name": "VIP会员",
"lv_logo": ""
},
{
"member_lv_id": "5",
"name": "超级vip",
"lv_logo": ""
}
]
},
"goods_id": "1212",
"share_url": "http://zj.qianseit.com/index.php/wap/product-2712.html",//分享链接
"product_id": "2712",
"goods_bn": "G540003F0EDCBB",
"product_bn": "G540003F0EDCBB",
"qrcode_image_id": "",//二维码id
"price": "1.00",
"intro": " ",//商品详情
"unit": "盒",//数量单位
"title": "北海道ROYCE提拉米苏巧克力威化饼干12枚装",
"brief": "",//短描述
"product_marketable": "true",//是否上架
"params": [//商品详细参数tab
{
"group_name": "呵呵",//参数组名
"group_param": [
{
"name": 111,
"value": "参数1值"
},
{
"name": 33,
"value": "参数2值"
},
{
"name": 5454,
"value": "参数3值"
}
]
}
],
"type_name": "食品",//商品类型
"cat_name": "✿饼干",//商品分类
"brand": {//商品品牌
"brand_name": "royce | ロイズ",
"brand_id": "206"
},
"props": [//商品扩展属性
{
"name": "适合性别",
"value": "男"
},
{
"name": "油炸",
"value": "否"
},
{
"name": "尺寸",
"value": "中毫升"
}
],
"spec": [//商品规格
{//可选货品规格
"group_name": "颜色",
"group_spec": [
{//可选货品规格
"select": "false",
"product_id": "3805",//可选货品规格才有id
"spec_image": "http://zj.qianseit.com/public/images/34/f6/fa/9be52ed7be5c444405208c9b6c9e49cdf40c17be.bmp?1412026805#h",
"spec_value": "01明亮肤色"
},
{//当前货品规格
"select": "true",//选中状态
"spec_image": "http://zj.qianseit.com/public/images/2d/dc/cf/3129b0d4ba18d494f6f3b3251e78ccae66afc43b.png?1463825098#h",
"spec_value": "02自然肤色"
}
]
}
],
"images": [//货品图片轮播
{
"image_id": "http://zj.qianseit.com/public/images/c9/7b/a6/33c97954ec9b01b4bd055e5438b233a67c61c455.jpg?1415266541#h"
},
{
"image_id": "http://zj.qianseit.com/public/images/54/88/66/a228b32982c7fde23936389d5dc844684c5671f3.png?1463748274#w"
},
{
"image_id": "http://zj.qianseit.com/public/images/02/9e/e2/20dd18c5f2066ee3ff818659378a387326bd88e1.jpg?1463748274#w"
},
{
"image_id": "http://zj.qianseit.com/public/images/36/75/07/afda3bca38c5bd716e737831f2ca0e7007f19b85.jpg?1463748274#h"
}
],
"image_default_id": "http://pic.shopex.cn/pictures/eimages/6e3e1e0ed4b3ad74130fd8acd7bcce985e95b2f346.gif?1412026895#h",//货品主图
"promotion": {//促销信息
"goods": [//商品促销
{
"name": "庆圣诞迎新年,全商城3倍积分,包关税",
"tag": "送积分",
"use": "true",
"tag_id": "1"//pTag[] = tag_id@列表筛选
}
],
"order": [//订单促销
{
"name": "订单总价大于20000,减免20%",
"tag": "打折"
}
],
"gift": [//赠品促销
{
"goods_id": "1196",
"product_id": "4355",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9976,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4356",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9999,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4357",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9991,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4358",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9991,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "4359",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9999,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
},
{
"goods_id": "1196",
"product_id": "8815",
"name": "ELEGANCE极致欢颜蜜粉饼",
"store": 9995,
"image_default_id": "http://zj.qianseit.com/public/images/5d/41/22/9d49462c5f0910855b481f8db5659224a488a04c.jpg?1415129944#w"
}
]
},
"prepare": {//预售商品有该字段
"prepare_id": "1",
"id": "1",
"product_id": "4914",
"preparesell_price": "1.000",//预售商品定金
"promotion_price": "499.000",//预售商品价格
"preparename": "dsdsd",//预售规则名
"promotion_type": "prepare",//预售类型
"description": "asdsdf",//预售规则描述
"begin_time": "1462550400",//订金开始时间
"end_time": "1464624000",//订金结束时间
"begin_time_final": "1494345600",//尾金开始时间
"end_time_final": "1495555200",//尾金结束时间
"initial_num": "9995",//预售库存
"status": 1,//预售状态状态分别为(1,2,3,4,5,6)
"message": ""//预售状态对应的描述
},
"price_list": {//价格列表
"price": {//销售价
"name": "销售价",
"price": "1522.00"
},
"mktprice": {//与销售价对比价
"name": "销售价",
"price": "1522.00",
"format": "¥1522.00"
},
"the_mlv_price": {
"name": "会员价",
"price": "1.00"
},
"minprice": {//会员最低价(后台可关闭)
"name": "最低",
"price": "1.00",
"format": "¥1.00"
},
"memberprice": [//会员价列表(后台可关闭)
{
"name": "普通会员",
"price": "1.00",
"format": "¥1.00"
},
{
"name": "注册会员",
"price": "1.00",
"format": "¥1.00"
},
{
"name": "高级会员",
"price": "11.00",
"format": "¥11.00"
},
{
"name": "VIP会员",
"price": "1.00",
"format": "¥1.00"
}
],
"special_goods": {//团购商品不参加任何优惠活动
"name": "团购价",
"price": "2300.000",
},
"prepare_price": {//预售商品不参加任何促销活动
"name": "预售订金",
"price": "1.000"
},
"show": {//商品主价
"name": "预售订金",
"price": "1.000",
"format": "¥1.00"
},
"saveprice": {//节省金额//后台可关闭和设置
"name": "优惠",
"unit": "%",
"price": "超过99"
}
},
"store": 9336,//库存
"store_title": 9336//前台显示库存
},
"page_goods_adjunct": [//商品配件
{
"name": "配件",
"type": "goods",
"min_num": 0,
"max_num": "1",
"set_price": "discount",//折扣,minus:减固定价格
"max_num": "0.9",//优惠的折扣:(9折)小于1为折扣,大于1固定价格(-1元)
"items": [
{
"product_id": "10781",
"goods_id": "3181",
"name": "15年新版 KOJI Dolly Wink 睫毛膏 纤长/浓密 防水防晕好卸妆H",
"spec_info": "颜色:蓝色",
"store": "100000",
"price": "1374.000",
"marketable": "true",
"adjprice": 1236.6
},
{
"product_id": "10782",
"goods_id": "3181",
"name": "15年新版 KOJI Dolly Wink 睫毛膏 纤长/浓密 防水防晕好卸妆H",
"spec_info": "颜色:粉色",
"store": "100000",
"price": "1374.000",
"marketable": "true",
"adjprice": 1236.6
}
]
}
],
"adjunct_images": {//配件图片key对于配件goods_id
"3181": "http://zj.qianseit.com/public/images/c8/79/99/ff5ea16795d6a4d0b9859bbcc366588e462ae9ea.png?1440905036#w"
}
}