简要描述:

  • 获取装修的数据

请求URL:

POST/wapapi/custom

参数:

参数名 是否必须 类型 说明
type string 页面类型 9-积分商城首页
id int 页面id,type=6(自定义页面)时需要id
shop_id int 店铺首页,商品详情(店铺端的页面)的装修数据,需要shop_id
is_mini int 1 (小程序调用)

返回示例:

正确时返回:

{
    "code": 1,
    "message": "成功获取",
    "data": {
        "template_data": {
            "page": {
                "type": "1",
                "title": "请输入页面标题",
                "background": "#ffffff"
            },
            "items": {
                "M1533694053141": {
                    "data": {
                        "C1533694053141": {
                            "imgurl": "/public/platform_new/images/custom/default/banner-1.jpg",
                            "linkurl": ""
                        },
                        "C1533694053142": {
                            "imgurl": "/public/platform_new/images/custom/default/banner-2.jpg",
                            "linkurl": "[object Object]"
                        }
                    },
                    "id": "banner"
                },
                "M1533695211187": {
                    "params": {
                        "text": "这个一条公告内容。"
                    },
                    "style": {
                        "background": "#fff7cc",
                        "color": "#f60"
                    },
                    "id": "notice"
                },
                "M1533695212340": {
                    "params": {
                        "title": "精选店铺",
                        "recommendtype": "0",
                        "recommendcondi": "0",
                        "recommendnum": "6"
                    },
                    "id": "shop"
                },
                "M1533695213460": {
                    "style": {
                        "height": "2",
                        "background": "#ffffff",
                        "border": "#000000",
                        "padding": "10",
                        "linestyle": "solid"
                    },
                    "id": "line"
                },
                "M1533695214787": {
                    "params": {
                        "title": ""
                    },
                    "style": {
                        "background": "#ffffff",
                        "color": "#666666",
                        "textalign": "center",
                        "fontsize": "14",
                        "paddingtop": "5",
                        "paddingleft": "5"
                    },
                    "id": "title"
                },
                "M1533695223908": {
                    "params": {
                        "recommendtype": "0",
                        "goodstype": "0",
                        "goodssort": "0",
                        "recommendnum": "4"
                    },
                    "style": {
                        "background": "#f3f3f3"
                    },
                    "id": "goods"
                }
            }
        },
        "tab_bar": {
            "data": {
                "C0123456789101": {
                    "text": "首页",
                    "path": "/mall/index",
                    "normal": "/public/platform_new/images/custom/default/home-normal.png",
                    "active": "/public/platform_new/images/custom/default/home-active.png"
                },
                "C0123456789102": {
                    "text": "分类",
                    "path": "/goods/category",
                    "normal": "/public/platform_new/images/custom/default/category-normal.png",
                    "active": "/public/platform_new/images/custom/default/category-active.png"
                },
                "C0123456789103": {
                    "text": "店铺街",
                    "path": "/shop/index",
                    "normal": "/public/platform_new/images/custom/default/shop-normal.png",
                    "active": "/public/platform_new/images/custom/default/shop-active.png"
                },
                "C0123456789104": {
                    "text": "购物车",
                    "path": "/mall/cart",
                    "normal": "/public/platform_new/images/custom/default/cart-normal.png",
                    "active": "/public/platform_new/images/custom/default/cart-active.png"
                },
                "C0123456789105": {
                    "text": "会员中心",
                    "path": "/member/centre",
                    "normal": "/public/platform_new/images/custom/default/member-normal.png",
                    "active": "/public/platform_new/images/custom/default/member-active.png"
                }
            }
        },
        "copyright": {
            "style": {
                "showtype": "0"
            },
            "params": {
                "showlogo": "1",
                "text": "请填写版权说明",
                "src": "/public/platform_new/images/custom/default/copyright.png",
                "linkurl": ""
            }
        }
    }
}

错误时返回:

{
    "code": -1,
    "message": "错误信息"
}