小程序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> {
&quot;msg&quot;: success,
&quot;status&quot;:200,
&quot;data&quot;: [
{
&quot;image_src&quot;: &quot;https://www.itnan.cc/api/xcxapi/images/banner1.jpg&quot;,
&quot;goods_id&quot;: 1,
&quot;navigator_url&quot;: &quot;/pages/goods_detail/goods_detail?goods_id=1&quot;
},
{
&quot;image_src&quot;: &quot;https://www.itnan.cc/api/xcxapi/images/banner2.jpg&quot;,
&quot;goods_id&quot;: 2,
&quot;navigator_url&quot;: &quot;/pages/goods_detail/goods_detail?goods_id=2&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>