接口域名
数据接口域名: https://marcopolo.wowdg.com
图片CDN 域名: http://att.marco.rethk.com
产品列表接口:
https://marcopolo.wowdg.com/catalogue/product/list
请求方式:POST
传参 | 类型 | 说明 | 是否必填 | 示例 |
---|---|---|---|---|
option | object | 产品筛选 | 选填 | {class: 2, space: 13} |
page | int | 页数 | 必填 | 1 |
返回数据:
{
"code": 1, // 1为成功,0为失败
"msg": "success", // 请求结果说明
"time": "1607410004",
"data": { // 返回数据
"option": [ // 产品分类选项(只有在 page=1时才有)
{
"name": "品类",
"code": "class",
"options": [
{
"id": 1,
"option": "马可波罗1295"
},
{
"id": 2,
"option": "E石代 亚光砖"
},
{
"id": 3,
"option": "地理石 抛釉砖"
}
]
},
{
"name": "风格",
"code": "style",
"options": [
{
"id": 1,
"option": "现代简约"
},
{
"id": 2,
"option": "欧式"
},
{
"id": 3,
"option": "新中式"
}
]
}
],
"list": [ // 产品列表
{
"id": 594, // 产品 ID
"title": "维也纳灰", // 产品名
"slug": "wei-ye-na-hui", // 产品拼音
"attribute_value_list": { // 产品副标题
"class": {
"id": 3,
"option": "地理石 抛釉砖"
},
"price": { // 价格
"id": 13,
"option": "¥399/m²以上"
},
"element_thumbnail": "/uploads/20191120/Fq5YzuLHv_LTJJLRF6t6E5-FKWyq.jpg", // 元素图集
"effect_thumbnail": "/uploads/20191120/Fn_B-7Yx7Rq_Xfg-tCkZyM7IIJlg.jpg", // 效果图集
"banner_image": "/uploads/20191120/Fu5Pv1HyFxgb8gR1m4HqR71kJr-9.JPG" // banner广告图
}
},
{
"id": 593,
"title": "希腊灰",
"slug": "xi-la-hui",
"attribute_value_list": {
"class": {
"id": 8,
"option": "内墙砖"
},
"price": {
"id": 13,
"option": "¥399/m²以上"
},
"element_thumbnail": "/uploads/20191123/FvdAecX1lPLk798CY1Gp3te61qJj.png",
"effect_thumbnail": "/uploads/20191120/FiMDNmaCiBDq1NT9v1H1dKTpY3S6.jpg",
"banner_image": "/uploads/20191120/FrBO59cHsZ5WYjMiingpaXY54BNv.jpg"
}
}
]
}
}
产品详情接口
https://marcopolo.wowdg.com/catalogue/product/detail
传参 | 类型 | 说明 | 是否必填 | 示例 |
---|---|---|---|---|
id | int | 产品id | 必填 | 364 |
request_from | string | 访问来源 | 必填 | huanai |
{
"code": 1, // 1为成功,0为失败
"msg": "success", // 请求结果说明
"time": "1607410655",
"data": { // 返回数据
"detail": { // 产品详情
"id": 365, // 产品 ID
"title": "曼彻斯特", // 产品名
"description": "", // 产品描述
"up_count": 49, // 点赞数
"en_title": "Manchester", // 英文名
"author": "product", // 发布者
"is_published": "t", // 是否发布
"guidance_price": null, // 指导价格
"story": null, // 产品故事
"effect_image": [ // 效果图集
{
"product_id": 365,
"image": "/media/images/products/2018/09/CH6288织棉石餐厅-1.jpg",
"description": ""
},
{
"product_id": 365,
"image": "/media/images/products/2018/09/CH6288织棉石卧室-1.jpg",
"description": ""
},
{
"product_id": 365,
"image": "/media/images/products/2018/09/特工品客厅效果图1_a2xgprq.jpg",
"description": ""
},
{
"product_id": 365,
"image": "/media/images/products/2018/09/曼彻斯特厨房-1.jpg",
"description": ""
}
],
"element_image": [ // 元素图集
{
"product_id": 365,
"image": "/media/images/products/2018/09/CH6288___600X600___CH8288___800X800.jpg",
"description": "CH6288 600X600 CH8288 800X800"
}
],
"attribute_value": { // 标签
"class": {
"id": 2,
"option": "E石代 亚光砖"
},
"grain": [
{
"attributemultioption_id": 82,
"attribute_multi_option": {
"id": 82,
"option": "布纹",
"color": null
}
}
],
"short_desc": "曼彻斯特",
"style": [
{
"attributemultioption_id": 1,
"attribute_multi_option": {
"id": 1,
"option": "现代简约",
"color": null
}
},
{
"attributemultioption_id": 2,
"attribute_multi_option": {
"id": 2,
"option": "欧式",
"color": null
}
},
{
"attributemultioption_id": 66,
"attribute_multi_option": {
"id": 66,
"option": "时尚",
"color": null
}
},
{
"attributemultioption_id": 73,
"attribute_multi_option": {
"id": 73,
"option": "工业风",
"color": null
}
}
],
"space": [
{
"attributemultioption_id": 13,
"attribute_multi_option": {
"id": 13,
"option": "客厅",
"color": null
}
},
{
"attributemultioption_id": 14,
"attribute_multi_option": {
"id": 14,
"option": "卧室",
"color": null
}
},
{
"attributemultioption_id": 15,
"attribute_multi_option": {
"id": 15,
"option": "餐厨",
"color": null
}
},
{
"attributemultioption_id": 16,
"attribute_multi_option": {
"id": 16,
"option": "卫浴",
"color": null
}
},
{
"attributemultioption_id": 18,
"attribute_multi_option": {
"id": 18,
"option": "地面",
"color": null
}
},
{
"attributemultioption_id": 19,
"attribute_multi_option": {
"id": 19,
"option": "墙面",
"color": null
}
}
],
"spec": [
{
"attributemultioption_id": 20,
"attribute_multi_option": {
"id": 20,
"option": "800x800",
"color": null
}
},
{
"attributemultioption_id": 21,
"attribute_multi_option": {
"id": 21,
"option": "600x600",
"color": null
}
}
],
"color": [
{
"attributemultioption_id": 26,
"attribute_multi_option": {
"id": 26,
"option": "杏色",
"color": ""
}
}
],
"price": {
"id": 13,
"option": "¥399/m²以上"
},
"display_price": "待定",
"hotspot": [
{
"attributemultioption_id": 45,
"attribute_multi_option": {
"id": 45,
"option": "设计师喜爱",
"color": null
}
}
],
"element_thumbnail": "/media/images/products/2018/09/元素缩略图_MWrXSHp.jpg",
"effect_thumbnail": "/media/images/products/2018/09/效果缩略图_uxu9fq5.jpg",
"banner_image": "/media/images/products/2018/09/顶部图_vJZj5Xe.jpg"
},
"richtext": null,
"attribute_text": [ // 属性
{
"id": 10,
"name": "品类",
"code": "class",
"type": "option",
"required": "t",
"option_group_id": 1,
"multi_option_group_id": null
},
{
"id": 3,
"name": "广告语(少于20字)",
"code": "short_desc",
"type": "text",
"required": "f",
"option_group_id": null,
"multi_option_group_id": null
},
{
"id": 4,
"name": "风格",
"code": "style",
"type": "multi_option",
"required": "t",
"option_group_id": null,
"multi_option_group_id": 1
},
{
"id": 6,
"name": "空间",
"code": "space",
"type": "multi_option",
"required": "t",
"option_group_id": null,
"multi_option_group_id": 3
},
{
"id": 7,
"name": "规格",
"code": "spec",
"type": "multi_option",
"required": "t",
"option_group_id": null,
"multi_option_group_id": 4
},
{
"id": 8,
"name": "颜色",
"code": "color",
"type": "multi_option",
"required": "t",
"option_group_id": null,
"multi_option_group_id": 5
},
{
"id": 16,
"name": "显示价格(¥m²,复制用)",
"code": "display_price",
"type": "text",
"required": "t",
"option_group_id": null,
"multi_option_group_id": null
},
{
"id": 11,
"name": "元素缩略图(400x400)",
"code": "element_thumbnail",
"type": "image",
"required": "t",
"option_group_id": null,
"multi_option_group_id": null
},
{
"id": 12,
"name": "效果缩略图(400x400)",
"code": "effect_thumbnail",
"type": "image",
"required": "t",
"option_group_id": null,
"multi_option_group_id": null
},
{
"id": 13,
"name": "顶部图片(1600x500)",
"code": "banner_image",
"type": "image",
"required": "t",
"option_group_id": null,
"multi_option_group_id": null
},
{
"id": 17,
"name": "纹理",
"code": "grain",
"type": "multi_option",
"required": "t",
"option_group_id": null,
"multi_option_group_id": 2
},
{
"id": 19,
"name": "填缝剂光泽",
"code": "luster",
"type": "multi_option",
"required": "f",
"option_group_id": null,
"multi_option_group_id": 8
},
{
"id": 18,
"name": "填缝剂颜色",
"code": "caulk",
"type": "multi_option",
"required": "f",
"option_group_id": null,
"multi_option_group_id": 7
},
{
"id": 20,
"name": "瓷砖胶",
"code": "adhesive",
"type": "multi_option",
"required": "f",
"option_group_id": null,
"multi_option_group_id": 9
},
{
"id": 15,
"name": "优酷视频地址",
"code": "youku_address",
"type": "text",
"required": "f",
"option_group_id": null,
"multi_option_group_id": null
}
],
"roll_page": "", //(可忽略)
"url": [ //(可忽略)
{
"title": "铺贴工具",
"url": "https://mp.weixin.qq.com/s/i3YhnRmWke9qBWqnY6nlbQ"
},
{
"title": "铺贴辅材",
"url": "https://mp.weixin.qq.com/s/a-sWZE4nIlTkXXIHaR2Kqw"
},
{
"title": "施工步骤",
"url": "https://mp.weixin.qq.com/s/jddc8kyk3-k36R27iKvWbQ"
}
]
}
}
}
(具体字段使用可参考马可波罗官网或小程序产品版块,此文档不一一列举)
网友评论