[TOC]
# 獲取輪播圖
~~~[api]
post:/api/articles/getBanners
*intger:type=2#移動端2還是pc端1
<<<
success
{
"code": 1,
"msg": "獲取成功",
"data": [
{
"slide_id": 8,
"goods_id": 13,
"type": 2,
"image": "images/osc1/slide/4.jpg",
"url": "",
"title": "品質好貨",
"status": 0,
"create_time": 0
},
],
"url": "/api/Articles/getbanners",
"wait": 3
}
<<<
error
無
~~~
# 獲取首頁推薦文章列表
~~~[api]
post:/api/articles/getTuijianArticles
<<<
success
{
"code": 1,
"msg": "獲取成功",
"data": [
{
"id": 3,
"cid": 2,
"create_time": 1479363186,
"title": "購物流程",
"view": 0,
"image": null,
"catname": "新手幫助",
"catimage": "",
"content":""
"created_time_text":''
}
],
"url": "/api/Articles/gettuijianarticles",
"wait": 3
}
<<<
error
無
~~~
# 獲取最新文章列表
~~~[api]
post:/api/articles/getLatesArticles
<<<
success
{
"code": 1,
"msg": "獲取成功",
"data": [
{
"id": 3,
"cid": 2,
"create_time": 1479363186,
"title": "購物流程",
"view": 0,
"image": null,
"catname": "新手幫助",
"catimage": ""
"content":""
"created_time_text":''
}
],
"url": "/api/Articles/gettuijianarticles",
"wait": 3
}
<<<
error
無
~~~
# 獲取某個分類下的文章列表
~~~[api]
post:/api/articles/getArticlesByCatgoryId
*integer:id=1#分類ID
<<<
success
{
"code": 1,
"msg": "獲取成功",
"data": [
{
"id": 3,
"cid": 2,
"create_time": 1479363186,
"title": "購物流程",
"view": 0,
"image": null,
"catname": "新手幫助",
"catimage": ""
"content":""
"created_time_text":''
}
],
"url": "/api/Articles/getarticlesbycatgoryid",
"wait": 3
}
<<<
error
無
~~~
# 獲取文章詳情(含接種必讀)
~~~[api]
post:/api/articles/detail
*string:id=1#說明文字
name#說明文字
<<<
success
{
"code": 1,
"msg": "獲取成功",
"data": {
"id": 1,
"title": "關于雙11配送延遲 ",
"uid": 0,
"author": "admin",
"cid": 1,
"view": 0,
"create_time": 1526953345,
"update_time": 0,
"status": 1,
"top": 0,
"sort_order": 0,
"image": "",
"seo_keywords": "關于雙11配送延遲 ",
"seo_description": "關于雙11配送延遲 ",
"content": "<p>尊貴的會員:</p><p> 由于雙11當天訂單量較多,可能造成配送延遲,給您帶來不便,望請諒解。</p><p><br/></p>",
"article_id": 1,
"catname": "平臺公告",
"catimg": "",
"created_time_text":‘‘’’
},
"url": "/api/Articles/detail",
"wait": 3
}
<<<
error
{
"code": 0,
"msg": "文章不存在!",
"data": "",
"url": "",
"wait": 3
}
~~~