ecshop3

ecshop3


新品(more)

<p><strong>简要描述:</strong> </p> <ul> <li>新品接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/login.php</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST || 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;">action</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>&quot;new&quot;</td> </tr> <tr> <td style="text-align: left;">lang</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>zh_cn:中文;khmer:柬文;en_us:英语</td> </tr> <tr> <td style="text-align: left;">page_no</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>&quot;当前页&quot;</td> </tr> <tr> <td style="text-align: left;">pagenum</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>获取得商品的数量</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code></code></pre> <p>{ &quot;code&quot;: 0, &quot;msg&quot;: &quot;登陆成功!&quot;, &quot;data&quot;: { &quot;new_goods&quot;: [//新品 { &quot;promote_price&quot;: &quot;&quot;, &quot;id&quot;: &quot;146&quot;, &quot;name&quot;: &quot;BM00086&quot;,//名字 &quot;is_shipping&quot;:&quot;0&quot;,//是否包邮 &quot;shipping_price&quot;:&quot;1&quot;,//运费 &quot;free_return&quot;:&quot;0&quot;,//是否免费退货 &quot;height_per&quot;:1.00,//缩略图高宽比 &quot;is_fast&quot;:&quot;0&quot;,//闪电发货 &quot;brief&quot;: &quot;&quot;,//商品描述 &quot;is_shipping&quot;:&quot;0&quot;,//是否包邮 &quot;brand_name&quot;: &quot;&quot;, &quot;goods_style_name&quot;: &quot;BM00086&quot;, &quot;short_name&quot;: &quot;BM00086&quot;, &quot;short_style_name&quot;: &quot;BM00086&quot;, &quot;market_price&quot;: &quot;0.00&quot;,//原价 &quot;shop_price&quot;: &quot;0.00&quot;,//价格 &quot;final_price&quot;: &quot;0.00&quot;, &quot;is_exclusive&quot;: false, &quot;thumb&quot;: &quot;./../images/202002/1582052557942586017.jpg&quot;,//缩略图 &quot;goods_img&quot;: &quot;<a href="http://203.189.128.189:3333/img/Beauty_Health/Makeup/BM00086/CP-KH/main/1.400x400.jpg",//图片">http://203.189.128.189:3333/img/Beauty_Health/Makeup/BM00086/CP-KH/main/1.400x400.jpg",//图片</a> &quot;url&quot;: &quot;goods.php?id=146&quot;, &quot;sell_count&quot;: 7, &quot;pinglun&quot;: &quot;0&quot;, &quot;count&quot;: 7, &quot;click_count&quot;: &quot;251&quot; }, { &quot;promote_price&quot;: &quot;&quot;, &quot;id&quot;: &quot;145&quot;, &quot;name&quot;: &quot;BM00044测试&quot;, &quot;brief&quot;: &quot;&quot;, &quot;brand_name&quot;: &quot;&quot;, &quot;goods_style_name&quot;: &quot;BM00044测试&quot;, &quot;short_name&quot;: &quot;BM00044测试&quot;, &quot;short_style_name&quot;: &quot;BM00044测试&quot;, &quot;market_price&quot;: &quot;2.40&quot;, &quot;shop_price&quot;: &quot;2.00&quot;, &quot;final_price&quot;: &quot;2.00&quot;, &quot;is_exclusive&quot;: false, &quot;thumb&quot;: &quot;./../images/202001/1578683358324393597.jpg&quot;, &quot;goods_img&quot;: &quot;<a href="http://203.189.128.189:3333/img/Beauty_Health/Makeup/BM00044/CP-KH/main/1.400x400.jpg">http://203.189.128.189:3333/img/Beauty_Health/Makeup/BM00044/CP-KH/main/1.400x400.jpg</a>&quot;, &quot;url&quot;: &quot;goods.php?id=145&quot;, &quot;sell_count&quot;: 0, &quot;pinglun&quot;: &quot;0&quot;, &quot;count&quot;: 0, &quot;click_count&quot;: &quot;79&quot; }, { &quot;promote_price&quot;: &quot;220.00&quot;, &quot;id&quot;: &quot;111&quot;, &quot;name&quot;: &quot;622白色陶瓷落地高花瓶装饰 客厅现代简约干枝插花欧式家居摆件大&quot;, &quot;brief&quot;: &quot;&quot;, &quot;brand_name&quot;: &quot;&quot;, &quot;goods_style_name&quot;: &quot;622白色陶瓷落地高花瓶装饰 客厅现代简约干枝插花欧式家居摆件大&quot;, &quot;short_name&quot;: &quot;622白色陶瓷落地高花瓶装饰 客厅现代简约干枝插...&quot;, &quot;short_style_name&quot;: &quot;622白色陶瓷落地高花瓶装饰 客厅现代简约干枝插...&quot;, &quot;market_price&quot;: &quot;237.60&quot;, &quot;shop_price&quot;: &quot;198.00&quot;, &quot;final_price&quot;: &quot;198.00&quot;, &quot;is_exclusive&quot;: false, &quot;thumb&quot;: &quot;./../images/201708/thumb_img/_thumb_P_1502143511445.jpg&quot;, &quot;goods_img&quot;: &quot;./../images/201708/goods_img/_P_1502143511629.jpg&quot;, &quot;url&quot;: &quot;goods.php?id=111&quot;, &quot;sell_count&quot;: 39, &quot;pinglun&quot;: &quot;0&quot;, &quot;count&quot;: 39, &quot;click_count&quot;: &quot;107&quot; } ],</p> <p>} } </p> <pre><code></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;">code</td> <td style="text-align: left;">int</td> <td>0:成功,非0:失败</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">int</td> <td>错误信息</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">数组</td> <td>返回数据</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML