所有商品
<p>[TOC]</p>
<p>微信小程序电子商城接口</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>商品列表接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://www.qiujixiang.cn:21111/index.php/api/index/get_shop</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </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;">num</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">number</td>
<td>查询条数</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> [
{
&quot;id&quot;: 1,
&quot;title&quot;: &quot;Redmi K40 旗舰骁龙870 三星AMOLED 120Hz高刷直屏 4800万高清三摄相机 33W快充 游戏电竞智能5G手机 小米 红米&quot;,
&quot;desc&quot;: &quot;价保618】旗舰骁龙870,120Hz高刷AMOLED屏,轻薄设计《点击购买K40》&quot;,
&quot;main_image&quot;: &quot;http://img14.360buyimg.com/n7/jfs/t1/167614/8/7689/43553/60378beeE8cd19580/31f676065e72b1bf.jpg&quot;,
&quot;sub_image&quot;: &quot;http://img14.360buyimg.com/n1/s450x450_jfs/t1/168220/34/7790/32531/60378beeE9bcc488b/574d0bf3e85afb00.jpg`http://img14.360buyimg.com/n1/s450x450_jfs/t1/159245/37/8632/21029/60378beeEb6d6656d/8118e7fed7bce51e.jpg`http://img14.360buyimg.com/n5/s54x54_jfs/t1/151562/15/20008/17499/60378beeE93affce9/a30a885137ef6445.jpg&quot;,
&quot;attr_list&quot;: &quot;{\&quot;版本\&quot;:[\&quot;6GB+128GB\&quot;,\&quot;8GB+128GB\&quot;,\&quot;12GB+256GB\&quot;],\&quot;颜色\&quot;:[\&quot;亮黑\&quot;,\&quot;环境\&quot;,\&quot;晴雪\&quot;,\&quot;墨羽\&quot;]}&quot;,
&quot;cid&quot;: &quot;2&quot;,
&quot;money&quot;: &quot;1999.01&quot;
}
]</code></pre>
<p><strong>返回参数说明</strong> </p>
<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;">id</td>
<td style="text-align: left;">int</td>
<td>商品id</td>
</tr>
<tr>
<td style="text-align: left;">title</td>
<td style="text-align: left;">string</td>
<td>商品标题</td>
</tr>
<tr>
<td style="text-align: left;">desc</td>
<td style="text-align: left;">int</td>
<td>商品描述</td>
</tr>
<tr>
<td style="text-align: left;">main_image</td>
<td style="text-align: left;">string</td>
<td>商品主图</td>
</tr>
<tr>
<td style="text-align: left;">sub_image</td>
<td style="text-align: left;">string</td>
<td>商品轮播图</td>
</tr>
<tr>
<td style="text-align: left;">attr_list</td>
<td style="text-align: left;">string</td>
<td>商品规格属性列表</td>
</tr>
<tr>
<td style="text-align: left;">cid</td>
<td style="text-align: left;">string</td>
<td>分类id</td>
</tr>
<tr>
<td style="text-align: left;">money</td>
<td style="text-align: left;">string</td>
<td>商品最低价</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>