简要描述:

  • 获取所单个门店文章的概述

请求域名:

  • http://test.yunzshop.com

请求URL:

GET:route=plugin.store-article.frontend.store.article.get-store-articles

参数:

参数名 是否必须 类型 说明
store_id int 门店ID

返回示例:

正确时返回:

{
    "result": 1, 
    "msg": "获取文章和分类数据成功", 
    "data": {
        "title": "文章标题", 
        "banner": "http://test.yunzshop.com/attachment/images/2/2017/05/JTcT2aWa2na992NQfpP02J4HKZHYfc.png", 
        "template_type": "3",
        "articles": {
            "total": 4, 
            "per_page": "15", 
            "current_page": 1, 
            "last_page": 1, 
            "next_page_url": null, 
            "prev_page_url": null, 
            "from": 1, 
            "to": 4, 
            "data": [
                {
                    "id": 35, 
                    "title": "小程序从媳妇熬成婆,靠的是什么?", 
                    "thumb": "http://test.yunzshop.com/attachment/images/2/2017/04/HQW88VWWTA45JqNaANAn8D8QC4dvxn.png", 
                    "desc": "自1月9号微信小程序正式发布以来"
                }, 
                {
                    "id": 20, 
                    "title": "457857", 
                    "thumb": "http://test.yunzshop.com/attachment/images/2/2017/03/tFTw02YyQsZ442yWf42n7Y0O12zA2O.png", 
                    "desc": ""
                }, 
                {
                    "id": 17, 
                    "title": "saFedg", 
                    "thumb": "", 
                    "desc": ""
                }, 
                {
                    "id": 12, 
                    "title": "人物丨这个83岁老人仅一米五,却在街头用高难度舞蹈惊呆路人,征服了世界!", 
                    "thumb": "http://gjb.antbiz.cn/tutu/xibRC2eoiaqM6pA6usuVnb3RbBGdNOODuia17bNRJs6xtSkrjzuib3zRQbDzXuabCJKDNuzBvbotDnqCzariczic0iadA/640", 
                    "desc": "我们不过是尚待完善的残片,想要圆满,就去拼搏。"
                }
            ]
        }
    }
}

错误时返回:

如果"文章营销"的功能已经被关闭:

{
    "result": 0,
    "msg": "文章已经关闭!",
    "data": [ ]
}
{
    "result": 0,
    "msg": "没有文章!",
    "data": [ ]
}
{
    "result": 0,
    "msg": "对不起, 您所在的地理区域暂无阅读文章的权限!",
    "data": [ ]
}

返回参数说明:

参数名 类型 说明
title string 文章标题(主要显示字段)
desc string 封面描述 (主要显示字段)
thumb string 封面图片(主要显示字段)
created_at string 发布时间
is_top int 是否置顶 1置顶 0不置顶
total int 分类总条数
per_page int 每页条数
current_page int 当前页码
last_page int 最后一页的页码 URL
next_page_url string 下一页URL
prev_page_url string 上一页URL

备注:

  • 参数category_id不为0时,为选中分类下的文章列表,否则为全部文章列表
  • 显示的阅读数量 = 真实阅读数 + 虚拟阅读数
  • 显示的点赞数量 = 真实点赞数 + 虚拟点赞数