资源一体化-用户端

资源一体化-用户端


创建订单接口

<p><strong>接口说明 </strong></p> <pre><code>请求接口: /kmall/app/order/create 请求方式: POST 接口说明: 创建订单接口(需登录)</code></pre> <p><strong>请求参数 </strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>mallId</td> <td>是</td> <td>Integer(20)</td> <td>商圈id</td> </tr> <tr> <td>userPhone</td> <td>是</td> <td>String(20)</td> <td>预留手机号</td> </tr> <tr> <td>sendMethod</td> <td>是</td> <td>Integer(20)</td> <td>就餐方式(2堂食,11自提,12配送)</td> </tr> <tr> <td>sendTime</td> <td>否</td> <td>String(20)</td> <td>配送时间(现在取餐传空),格式:14:00</td> </tr> <tr> <td>receiveAddressId</td> <td>否</td> <td>Integer(20)</td> <td>配送地址id,配送必填,无传0</td> </tr> <tr> <td>tableNo</td> <td>否</td> <td>Integer(4)</td> <td>桌号,可为空</td> </tr> <tr> <td>usedCredit</td> <td>否</td> <td>Integer(8)</td> <td>抵扣的积分数量</td> </tr> <tr> <td>couponCode</td> <td>否</td> <td>String(20)</td> <td>抵扣优惠券编号</td> </tr> <tr> <td>remark</td> <td>否</td> <td>Json(500)</td> <td>用户备注数组,格式:{&quot;店铺id&quot;:&quot;备注信息&quot;}</td> </tr> </tbody> </table> <p><strong>返回参数</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>string</td> <td>状态值</td> </tr> <tr> <td>msg</td> <td>string</td> <td>返回消息</td> </tr> <tr> <td>data</td> <td>object</td> <td>返回结果</td> </tr> <tr> <td>serialNo</td> <td>string</td> <td>流水号</td> </tr> <tr> <td>orderNo</td> <td>string</td> <td>订单编号</td> </tr> <tr> <td>status</td> <td>string</td> <td>状态:10待付款;15支付待确认;20已付款;22订单已分配;30已发货;40已收货;50已评价;70已完成;500已取消(已关闭);110已退款;</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code": "0000", "msg":"succcess", "data": { "serialNo":1, "orderNo":"111", "status":20 } }</code></pre> <p><strong>接口说明</strong></p> <ul> <li>返回结果当且仅当订单状态为10待付款时,调用支付接口</li> </ul>

页面列表

ITEM_HTML