简要描述:

  • 新海报商品海报接口(前端生成)

请求域名:

  • http://yunzshop.com

请求URL:

GET/app/index.php?i=1&c=entry&do=shop&m=yun_shop&route=goods.goods-poster.new-goods-poster

参数:

参数名 是否必须 类型 说明
id int 商品id
storeid int 门店id
shop_id int 微店id
type int 前端类型

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "poster_data": [
            {
                "src": "newimage/f823883a10317c330cacb3210c4db178.jpg",
                "src_url": "http://www.wfshop.com/static/upload/newimage/f823883a10317c330cacb3210c4db178.jpg",
                "logo_type": 1,
                "width": "100px",
                "height": "100px",
                "top": "0px",
                "left": "218px",
                "type": "logo",
                "logo": "http://www.wfshop.com/static/upload/newimage/f823883a10317c330cacb3210c4db178.jpg"
            },
            {
                "width": "100px",
                "height": "100px",
                "top": "402px",
                "left": "0px",
                "type": "img",
                "img": "http://www.wfshop.com/static/upload/images/5/2020/09/s6CDhXXKa98d6Hl3lxDdWDDbaW8i7A.jpg"
            },
            {
                "color": "#000",
                "size": "14px",
                "bold": 0,
                "italic": 0,
                "slide": 0,
                "under": 0,
                "width": "200px",
                "height": "40px",
                "top": "0px",
                "left": "0px",
                "type": "title",
                "title": "测试11"
            },
            {
                "src": "images/5/2020/11/vVMdjlKE1r7DmVnp1cJMAkgJgdKd66.jpg",
                "src_url": "http://www.wfshop.com/static/upload/images/5/2020/11/vVMdjlKE1r7DmVnp1cJMAkgJgdKd66.jpg",
                "width": "100px",
                "height": "100px",
                "top": "52px",
                "left": "0px",
                "type": "other_img",
                "other_img": "http://www.wfshop.com/static/upload/images/5/2020/11/vVMdjlKE1r7DmVnp1cJMAkgJgdKd66.jpg"
            },
            {
                "color": "#000",
                "size": "14px",
                "bold": 0,
                "italic": 0,
                "slide": 0,
                "under": 0,
                "width": "200px",
                "height": "40px",
                "top": "168px",
                "left": "7px",
                "type": "member_price",
                "member_price": "0.00"
            },
            {
                "color": "#000",
                "size": "14px",
                "bold": 0,
                "italic": 0,
                "slide": 0,
                "under": 0,
                "width": "200px",
                "height": "40px",
                "top": "215px",
                "left": "5px",
                "type": "market_price",
                "market_price": "0.00"
            },
            {
                "color": "#000",
                "size": "14px",
                "bold": 0,
                "italic": 0,
                "slide": 0,
                "under": 0,
                "width": "200px",
                "height": "40px",
                "top": "260px",
                "left": "5px",
                "type": "price",
                "price": "0.00"
            },
            {
                "width": "100px",
                "height": "100px",
                "top": "402px",
                "left": "218px",
                "type": "qr",
                "qr": "http://www.wfshop.com/storage/app/public/goods/qrcode/5/shop-mid-684649-goods-769.png"
            },
            {
                "width": "100px",
                "height": "100px",
                "top": "118px",
                "left": "218px",
                "type": "head",
                "head": "https://wx.qlogo.cn/mmopen/vi_32/LBkOyvAJAJ6VzD0cQUPctcxMyI1bNp8FRNcmiarNVe6OdGvYCORzxxuxicTyIia9eEgnhhfbscdAPwIUZaiavIgpaw/132"
            },
            {
                "color": "#f00",
                "size": "20px",
                "width": "100px",
                "height": "40px",
                "top": "314px",
                "left": "218px",
                "type": "nickname",
                "nickname": "一生有你"
            }
        ]
    }
}

错误时返回:

{
    "result":0,
    "msg":"错误信息",
    "data":[

    ]
}

返回参数说明:

参数名 类型 说明
参数名 类型 说明
logo string logo地址
img string 商城主图
title string 商品名称
other_img string 其它图片
price int 现价
market_price int 原价
member_price int 会员价
head string 头像
nickname string 会员昵称
qr string 二维码地址

备注:

  • 更多返回错误代码请看首页的错误代码描述