张旭辉

小程序接口


小程序banner接口

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>小程序banner接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://www.itnan.cc/api/xcxapi/swiper.php</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <h5>返回示例</h5> <pre><code> { &amp;quot;msg&amp;quot;: success, &amp;quot;status&amp;quot;:200, &amp;quot;data&amp;quot;: [ { &amp;quot;image_src&amp;quot;: &amp;quot;https://www.itnan.cc/api/xcxapi/images/banner1.jpg&amp;quot;, &amp;quot;goods_id&amp;quot;: 1, &amp;quot;navigator_url&amp;quot;: &amp;quot;/pages/goods_detail/goods_detail?goods_id=1&amp;quot; }, { &amp;quot;image_src&amp;quot;: &amp;quot;https://www.itnan.cc/api/xcxapi/images/banner2.jpg&amp;quot;, &amp;quot;goods_id&amp;quot;: 2, &amp;quot;navigator_url&amp;quot;: &amp;quot;/pages/goods_detail/goods_detail?goods_id=2&amp;quot; } ] }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">goods_id</td> <td style="text-align: left;">int</td> <td>banner图所对应的商品id</td> </tr> <tr> <td style="text-align: left;">image_src</td> <td style="text-align: left;">string</td> <td>图片地址</td> </tr> <tr> <td style="text-align: left;">navigator_url</td> <td style="text-align: left;">string</td> <td>跳转地址</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML