订单列表接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>订单列表接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://api.magicalday.cn/order/list</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<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;">type</td>
<td style="text-align: left;">string</td>
<td>订单状态 0全部、 1:待支付、2:待收货、3:待评价、4:退款/售后</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;:0,
&quot;msg&quot;:&quot;&quot;,
&quot;count&quot;:0,
&quot;data&quot;:{
&quot;list&quot;:[
{
&quot;order_id&quot;:&quot;202211081837000001&quot;,
&quot;uid&quot;:&quot;3&quot;,
&quot;total_amount&quot;:&quot;9.90&quot;,
&quot;pay_amount&quot;:&quot;9.90&quot;,
&quot;payment_deadline&quot;:&quot;1667904736&quot;,
&quot;order_type&quot;:&quot;1&quot;,
&quot;goods_list&quot;:[
],
&quot;create_date&quot;:&quot;2022/11/08&quot;,
&quot;action&quot;:[
],
&quot;title&quot;:&quot;已完成&quot;
},
{
&quot;order_id&quot;:&quot;202211081545000001&quot;,
&quot;uid&quot;:&quot;3&quot;,
&quot;total_amount&quot;:&quot;125.52&quot;,
&quot;pay_amount&quot;:&quot;125.52&quot;,
&quot;payment_deadline&quot;:&quot;1667894420&quot;,
&quot;order_type&quot;:&quot;2&quot;,
&quot;goods_list&quot;:[
{
&quot;goods_id&quot;:&quot;67&quot;,
&quot;img&quot;:&quot;https://img.meituan.net/groceryimages/99ae963338f726592db365097280bb38168961.jpg&quot;,
&quot;short_title&quot;:&quot;正宗滇式&quot;,
&quot;specifications&quot;:{
&quot;name&quot;:&quot;规格&quot;,
&quot;text&quot;:&quot;80g&quot;
},
&quot;number&quot;:2,
&quot;selling_price&quot;:&quot;3.99&quot;,
&quot;pay_amount&quot;:&quot;3.99&quot;,
&quot;refund_number&quot;:1,
&quot;refund_status_text&quot;:&quot;&quot;
},
{
&quot;goods_id&quot;:&quot;69&quot;,
&quot;img&quot;:&quot;https://img.meituan.net/750.750/groceryimages/4066e1e3a69d165ae225609f489bbd5f1278936.png&quot;,
&quot;short_title&quot;:&quot;(张一山代言)金磨坊&quot;,
&quot;specifications&quot;:{
&quot;name&quot;:&quot;规格&quot;,
&quot;text&quot;:&quot;270&quot;
},
&quot;number&quot;:2,
&quot;selling_price&quot;:&quot;9.99&quot;,
&quot;pay_amount&quot;:&quot;9.99&quot;,
&quot;refund_number&quot;:0,
&quot;refund_status_text&quot;:&quot;&quot;
},
{
&quot;goods_id&quot;:&quot;70&quot;,
&quot;img&quot;:&quot;https://img.meituan.net/groceryimages/d12883cc12aca342753e9639b653831192549.jpg&quot;,
&quot;short_title&quot;:&quot;发范德萨范德萨&quot;,
&quot;specifications&quot;:{
&quot;name&quot;:&quot;规格&quot;,
&quot;text&quot;:&quot;245g&quot;
},
&quot;number&quot;:2,
&quot;selling_price&quot;:&quot;6.98&quot;,
&quot;pay_amount&quot;:&quot;6.98&quot;,
&quot;refund_number&quot;:0,
&quot;refund_status_text&quot;:&quot;&quot;
}
],
&quot;create_date&quot;:&quot;2022/11/08&quot;,
&quot;action&quot;:[
&quot;refund&quot;
],
&quot;title&quot;:&quot;已部分退款&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;">order_id</td>
<td style="text-align: left;">string</td>
<td>订单ID</td>
</tr>
<tr>
<td style="text-align: left;">uid</td>
<td style="text-align: left;">string</td>
<td>用户uid</td>
</tr>
<tr>
<td style="text-align: left;">total_amount</td>
<td style="text-align: left;">string</td>
<td>订单金额</td>
</tr>
<tr>
<td style="text-align: left;">pay_amount</td>
<td style="text-align: left;">string</td>
<td>支付金额</td>
</tr>
<tr>
<td style="text-align: left;">payment_deadline</td>
<td style="text-align: left;">int</td>
<td>支付截至时间戳</td>
</tr>
<tr>
<td style="text-align: left;">goods_list</td>
<td style="text-align: left;">array</td>
<td>商品列表:goods_id、img、short_title、number、selling_price</td>
</tr>
<tr>
<td style="text-align: left;">action</td>
<td style="text-align: left;">array</td>
<td>订单可操作行为数组:refund可退款、payment立即支付</td>
</tr>
<tr>
<td style="text-align: left;">title</td>
<td style="text-align: left;">string</td>
<td>订单显示状态:未支付时需要前端自已拼接到计时、其他状态使用此字段</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>