点开工具、字典、anything


频道切换

<p><strong>简要描述:</strong> </p> <ul> <li>切换频道时随机获取一篇该频道下的视频</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>https://ydapidev.heywoodsminiprogram.com/api/template/tab_sel</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">tab_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>频道id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { "code": 0, "msg":"获取数据成功", "data": { "col_status":1,//1 已收藏,0 未收藏 "article_id": 16591, "title": "全高清444444", "publish_at": 1544605126, "article_type": 2, "author_id": 17, "link": "http://dev.heka4.site/mini-program-matrix/data/video/2018121216557203.mp4", "image_list": { "index_thumb": "http://dev.heka4.site/test/images/jpg/20181212165739242.jpg", "recommend_thumb": "http://dev.heka4.site/test/images/jpg/20181212165751508.jpg", "share_thumb": "http://dev.heka4.site/test/images/jpg/2018121216584879.jpg", "index_data_thumb": null, "background_thumb": null }, "is_music": 0, "author_info": { "author": "今天祝福贺卡", "logo": "http://dev.heka4.site/mini-program-matrix/data/images/author/17fe323ebbc867c5a88d3e6472cefa12.jpg" }, "pv": 10000, "is_commend": false, "commend_num": 0, "is_follow": false, "fans_num": 0, "share_num": 2000, "tab_info":{ 'tab_name' =&gt; '一个tab', //名称 'tab_id' =&gt; 0, //id 'trend' =&gt; '23w', //热度 } } }</code></pre>

页面列表

ITEM_HTML