### 獲取小程序配置信息
> 每個微信小程序對應的欄目信息可能不一樣,這個是例子
~~~[api]
get:/v1/wxapp/config.html
<<<
success
{
"status": 1,
"error_code": 0,
"data": {
//對照關系
"contrast": {
//普通欄目
"cat": {
"product": 12,
"news": 2,
"case": 13
},
//單頁欄目
"page": {
"about": 10,
"contact": 4
}
},
//站點信息
"site": {
//站點ID
"site_id": 1,
//站點狀態
"status": 1,
//站點名稱
"name": "測試站點33",
//站點logo
"logo": "",
//站點ico圖標
"ico": "",
//站點介紹
"info": "5測試站點12",
//站點備案號
"beian": "",
//聯系電話
"contact_people": "",
//聯系手機
"contact_address": "",
//聯系手機號
"contact_phone": "",
//聯系微信號
"contact_wx": "shuipf",
//頂部banners圖地址
"top_banners" => 'http://ffsm.d1xz.net/statics/ffsm/index/1/images/topbanner.gif'
},
//擴展字段
"extend": {
"banners1": "http://file.1lwl.cn/d/2017/08/59a508e53a7f4.png",
"banners2": "",
"banners3": ""
}
},
"msg": "",
"returns_time": 1502864734
}
<<<
error
~~~
~~~[api]
get:/v2/wxapp/config.html
<<<
success
{
"status": 1,
"error_code": 0,
"data": {
"contrast": {
"cat": {
"product": {
"catid": "1",
"catname": "國內新聞"
},
"news": {
"catid": "7",
"catname": "美國"
},
"case": {
"catid": "9",
"catname": "英國"
}
},
"page": {
"about": {
"catid": "4",
"catname": "聯系方式"
},
"contact": {
"catid": "10",
"catname": "我是單頁"
}
}
},
"site": {
"site_id": 1,
"status": 1,
"name": "",
"logo": "",
"info": "",
"beian": "",
"contact_people": "",
"contact_address": "",
"contact_phone": "1332258082715",
"contact_wx": "",
"top_banners": ""
},
"extend": {
"banners1": "http://file.1lwl.cn/d/2017/08/59a508e53a7f4.png",
"banners2": "",
"banners3": ""
}
},
"msg": "",
"returns_time": 1505027176
}
<<<
error
~~~
### banners圖獲取
~~~[api]
get:/v1/wxapp/banners.html
<<<
success
{
"status": 1,
"error_code": 0,
"data": [
{
"title": "banners1",
"picurl": "https://ffsm.d1xz.net/statics/ffsm/index/1/images/topbanner.gif",
"url": "http://www.baidu.com",
"description": "這是一個banners1"
},
{
"title": "banners2",
"picurl": "https://ffsm.d1xz.net/statics/ffsm/bazijingpi/3/images/bzzy_banner.jpg",
"url": "",
"description": "這是一個banners2"
},
{
"title": "banners3",
"picurl": "https://ffsm.d1xz.net/statics/ffsm/bazihehun/1/images/img_banner.jpg",
"url": "",
"description": "這是一個banners3"
}
],
"msg": "",
"returns_time": 1502780279
}
<<<
error
~~~
### 獲取站點信息
~~~[api]
get:/v1/wxapp/site.html
<<<
success
{
"status": 1,
"error_code": 0,
"data": {
"id": 1,
"uid": 1,
"status": 1,
"off_access": 0,
"name": "測試站點33",
"logo": "",
"ico": "",
"domain": "dev.shuipf.com|aaadd.com",
"seo_title": "",
"keywords": "測試",
"info": "5測試站點12",
"beian": "",
"contact_people": "",
"contact_address": "",
"contact_phone": "",
"theme_id": 1,
"index_template_id": 1,
"index_wap_template_id": 0,
"is_wap": 1,
"is_search": 1,
"is_guestbook": 0,
"is_links": 0,
"expire_time": 1530858641,
"admin_uid": 1,
"company_id": 1,
"total_fee": 4000,
"create_time": 0,
"update_time": 1496730641
},
"msg": "",
"returns_time": 1502780336
}
<<<
error
~~~
### 獲取欄目信息(普通欄目)
~~~[api]
get:/v1/wxapp/cat.html
*int:catid=0#欄目ID
<<<
success
{
"status": 1,
"error_code": 0,
"data": {
"catid": 1,
"bcatid": 1,
"siteid": 1,
"type": 0,
"modelid": 2,
"catname": "國內新聞",
"letter": "guoneixinwen",
"domain": "",
"parentid": 2,
"arrparentid": "0,2",
"child": 1,
"arrchildid": "1,8",
"image": "",
"description": "",
"parentdir": "",
"catdir": "china",
"url": "/cat/1.html",
"hits": 0,
"setting": {
"listoffmoving": "0",
"showoffmoving": "0",
"seturl": "",
"meta_title": "",
"meta_keywords": "",
"meta_description": "",
"template_channel": "3",
"template_list": "2",
"template_show": "4",
"template_wap_channel": "40",
"template_wap_list": "39",
"template_wap_show": "41"
},
"isshow": 1,
"listorder": 0,
"extend": []
},
"msg": "",
"returns_time": 1502780399
}
<<<
error
~~~
### 獲取欄目信息(單頁欄目)
~~~[api]
get:/v1/wxapp/cat.html
*int:catid=0#欄目ID
<<<
success
{
"status": 1,
"error_code": 0,
"data": {
//單頁內容
"page": {
"catid": 4,
"title": "啊啊啊333",
"style": "",
"keywords": "的",
"content": "<p>水電費的所發生的士大夫大師傅似的2222</p><p>sdfsdfsdfdsfs兒童熱帖333</p>",
"template": "",
"create_time": 1461314871,
"update_time": 1486539428
},
//欄目信息
"cat": {
"catid": 4,
"bcatid": 4,
"siteid": 1,
"type": 1,
"modelid": 0,
"catname": "聯系方式",
"letter": "lianxifangshi",
"domain": "",
"parentid": 3,
"arrparentid": "0,3",
"child": 0,
"arrchildid": "4",
"image": "",
"description": "",
"parentdir": "",
"catdir": "contact",
"url": "/cat/4.html",
"hits": 0,
"setting": {
"listoffmoving": "0",
"showoffmoving": "0",
"seturl": "",
"meta_title": "",
"meta_keywords": "",
"meta_description": "",
"template_list": "5",
"template_wap_list": "38",
"template_channel": 0,
"template_show": 0,
"template_wap_channel": 0,
"template_wap_show": 0
},
"isshow": 1,
"listorder": 0,
"extend": []
}
},
"msg": "",
"returns_time": 1502865332
}
<<<
error
~~~
### 獲取欄目列表
~~~[api]
get:/v1/wxapp/category.html
int:catid=0#父級欄目bcatid
int:limit=0#數量
int:page=1#分頁ID
<<<
success
{
"status": 1,
"error_code": 0,
"data": {
"total": 7,
"page": 1,
"size": "2",
"list": [
{
"catid": 4240,
"bcatid": 11,
"siteid": 41,
"type": 0,
"modelid": 2,
"catname": "阿特茲",
"letter": "atezi",
"domain": "",
"parentid": 4236,
"arrparentid": "0,4236",
"child": 0,
"arrchildid": "4240",
"image": "",
"description": "",
"parentdir": "",
"catdir": "b",
"url": "http://www.jxxsycd.com/cat/11.html",
"hits": 0,
"setting": {
"listoffmoving": "0",
"showoffmoving": "0",
"seturl": "",
"meta_title": "",
"meta_keywords": "",
"meta_description": "",
"template_channel": "792",
"template_list": "791",
"template_show": "793",
"template_wap_channel": "800",
"template_wap_list": "799",
"template_wap_show": "801"
},
"isshow": 1,
"listorder": 15
},
{
"catid": 4241,
"bcatid": 12,
"siteid": 41,
"type": 0,
"modelid": 2,
"catname": "野馬",
"letter": "yema",
"domain": "",
"parentid": 4236,
"arrparentid": "0,4236",
"child": 0,
"arrchildid": "4241",
"image": "",
"description": "",
"parentdir": "",
"catdir": "bz",
"url": "http://www.jxxsycd.com/cat/12.html",
"hits": 0,
"setting": {
"listoffmoving": "0",
"showoffmoving": "0",
"seturl": "",
"meta_title": "",
"meta_keywords": "",
"meta_description": "",
"template_channel": "792",
"template_list": "791",
"template_show": "793",
"template_wap_channel": "800",
"template_wap_list": "799",
"template_wap_show": "801"
},
"isshow": 1,
"listorder": 14
}
]
},
"msg": "",
"returns_time": 1503630853
}
<<<
error
~~~
### 獲取信息內容
~~~[api]
get:/v1/wxapp/show.html
*int:id=0#信息ID
*int:catid=0#欄目ID
int:page=1#分頁ID
<<<
success
{
"status": 1,
"error_code": 0,
"data": {
"seo": {
"title": "sdfdsf 333333_福建_Shuipf內容管理系統 V3",
"keywords": "",
"description": "fdsfds"
},
"info": {
"catid": 8,
"title": "sdfdsf 333333",
"style": "",
"thumb": "",
"keywords": "",
"tags": "",
"description": "fdsfds",
"content": "<p>fdsfdsfds</p>",
"relation": "",
"uid": 1,
"islink": 0,
"username": "水平凡",
"inputtime": "2016-07-08 17:02:51",
"updatetime": "2016-07-08 17:02:47",
"views": 7,
"listorder": 0,
"posid": 0,
"status": "審核通過",
"id": 1133,
"isthumb": 0,
"url": "/show/8-1133.html",
"sysadd": 1,
"yesterdayviews": 1,
"dayviews": 1,
"weekviews": 1,
"monthviews": 1,
"viewsupdatetime": 1477897263,
"_original": {
"catid": 8,
"title": "sdfdsf 333333",
"style": "",
"thumb": "",
"keywords": "",
"tags": "",
"description": "fdsfds",
"content": "<p>fdsfdsfds</p>",
"relation": "",
"uid": 1,
"islink": 0,
"username": "水平凡",
"inputtime": 1467968571,
"updatetime": 1467968567,
"views": 7,
"listorder": 0,
"posid": 0,
"status": 99,
"id": 1133,
"isthumb": 0,
"url": "/show/8-1133.html",
"sysadd": 1,
"yesterdayviews": 1,
"dayviews": 1,
"weekviews": 1,
"monthviews": 1,
"viewsupdatetime": 1477897263
}
}
},
"msg": "",
"returns_time": 1502780571
}
<<<
error
~~~
### 根據欄目ID獲取信息列表
~~~[api]
get:/v1/wxapp/catlist.html
*int:catid=0#欄目ID
int:limit=20#顯示數量
int:page=1#分頁ID
string:orderfield=updatetime#排序字段
<<<
{
"status": 1,
"error_code": 0,
"data": {
"list": [
{
"id": 1205,
"catid": 8,
"bcatid": 8,
"title": "dsfdsf",
"isthumb": 0,
"thumb": "",
"keywords": "",
"tags": "",
"description": "fdsf",
"url": "/show/8-1205.html",
"relation": "",
"inputtime": 1501207820,
"updatetime": 1501207817,
"wx_release_date":"2017-08-12 08:12",
"views": 0,
"yesterdayviews": 0,
"dayviews": 0,
"weekviews": 0,
"monthviews": 0,
"viewsupdatetime": 0
},
{
"id": 1204,
"catid": 8,
"bcatid": 8,
"title": "adasdsadsd",
"isthumb": 0,
"thumb": "",
"keywords": "",
"tags": "",
"description": "sdfdf",
"url": "https://www.baidu.com/?",
"relation": "",
"inputtime": 1496969816,
"updatetime": 1496969805,
"wx_release_date":"2017-08-12 08:12",
"views": 0,
"yesterdayviews": 0,
"dayviews": 0,
"weekviews": 0,
"monthviews": 0,
"viewsupdatetime": 0
}
],
"total": 36,
"page": 1,
"size": "2"
},
"msg": "",
"returns_time": 1502931671
}
<<<
error
~~~
### 根據推薦位ID獲取信息列表
~~~[api]
get:/v1/wxapp/position.html
*int:posid=0#推薦位ID
limit#返回數量
<<<
success
{
"status": 1,
"error_code": 0,
"data": [
{
"id": 81,
"posid": 1,
"aid": 1202,
"catid": 7,
"thumb": 1,
"data": {
"id": "1202",
"catid": 7,
"title": "事實上",
"url": "/show/7-1202.html",
"inputtime": 1494981884,
"description": "",
"thumb": "http://file.1lwl.cn/d/2017/05/591b9cfd39c44.png",
"views": 0,
"bcatid": 7
},
"synedit": 1,
"listorder": 0,
"bcatid": 7
}
],
"msg": "",
"returns_time": 1505898031
}
<<<
error
~~~
- 域名解析
- 內容模型
- 文章模型
- 圖片模型
- 步驟內容模型
- 商品模型(展示)
- 功能擴展
- 友情鏈接-links
- 留言板-messageboard
- 開放搜索-opensearch
- 微信小程序-wxapp
- 自定義表單-forms
- Banner圖管理-banner
- 模板制作
- 常用變量
- 常用函數
- 模板標簽
- page分頁導航標簽
- template模板引入標簽
- pre上一篇標簽
- next下一篇標簽
- navigate導航標簽
- position推薦位標簽
- catlist信息列表標簽
- relation相關文章標簽
- category欄目標簽
- company企業信息標簽
- 模板示例
- 首頁模板
- 頻道模板
- 欄目列表模板
- 內容頁模板
- 常見問題解決方式
- 小程序模版制作
- 開發流程
- 接口管理
- 微信基本API
- 百度基本API
- 留言板
- 常見問題
- 百度小程序