<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #### 列表 > 狀態,0=>已取消,1=>待付款,2=>待發貨,3=>待收貨,4=>待評價,5=>已評價 ~~~[api] get:/index/order/index number:status=0#狀態,0=>全部,1=>待付款,2=>待發貨,3=>待收貨,4=>待評價 number:p=1#當前頁數 number:ps=10#分頁大小 <<< success { "code": 1, "msg": "", "time": "2018-06-25 12:12:51", "data": [ { "id": 11, "dealer_id": 1, "stores_id": 1, "member_id": 5, "referrer_id": 0, "sn": "20180625105227612375", "buyer_ip": "127.0.0.1", "buyer_terminal": 3, "consignee": "收貨人", "mobile": "18666864521", "email": "", "country": "86", "province": "100000", "city": "110000", "district": "111000", "twon": "0", "address": "詳細地址", "zipcode": "", "longitude": "1", "latitude": "1", "delivery_type": 1, "delivery_price": "0.00", "express_name": "", "express_shipper_code": "", "express_code": "", "express_price": "0.00", "express_remark": "", "other_price": "0.00", "other_price_remark": "", "redpacket_deduction": "0.00", "coupon_deduction": "0.00", "balance_deduction": "0.00", "actual_price": "0.00", "price": "10.00", "member_remark": "", "remark": "", "pay_type": 0, "pay_code": "", "sort": 0, "is_cancel": 0, "is_payment": 0, "is_deliver": 0, "is_receiving": 0, "is_complete": 0, "is_evaluate": 0, "status": 1, "created_at": "2018-06-25 10:52:27", "updated_at": "2018-06-25 10:52:27", "cancel_at": "2016-01-01 00:00:00", "payment_at": "2016-01-01 00:00:00", "deliver_at": "2016-01-01 00:00:00", "receiving_at": "2016-01-01 00:00:00", "complete_at": "2016-01-01 00:00:00", "evaluate_at": "2016-01-01 00:00:00", "stores": { "id": 1, "name": "門店1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png" }, "order_goods": [ { "id": 7, "order_id": 11, "name": "商品1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "price": "10.00", "market_price": "20.00", "number": 1 } ], "status_text": "待付款" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 1 } } ~~~ #### 詳情 > 狀態,0=>已取消,1=>待付款,2=>待發貨,3=>待收貨,4=>待評價,5=>已評價 ~~~[api] get:/index/order/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-26 16:34:28", "data": { "id": 4, "dealer_id": 1, "stores_id": 1, "member_id": 5, "referrer_id": 0, "sn": "20180625020315722836", "buyer_ip": "127.0.0.1", "buyer_terminal": 3, "consignee": "收貨人", "mobile": "18666864521", "email": "", "country": "86", "province": "100000", "city": "110000", "district": "111000", "twon": "0", "address": "詳細地址", "zipcode": "", "longitude": "1", "latitude": "1", "delivery_type": 1, "delivery_price": "0.00", "express_name": "", "express_shipper_code": "", "express_code": "", "express_price": "0.00", "express_remark": "", "other_price": "0.00", "other_price_remark": "", "redpacket_deduction": "0.00", "coupon_deduction": "0.00", "balance_deduction": "0.00", "actual_price": "0.00", "price": "10.00", "member_remark": "", "remark": "", "pay_type": 0, "pay_code": "", "sort": 0, "is_cancel": 1, "is_payment": 0, "is_deliver": 0, "is_receiving": 0, "is_complete": 0, "is_evaluate": 0, "status": 1, "created_at": "2018-06-25 02:03:15", "updated_at": "2018-06-25 11:24:27", "cancel_at": "2018-06-25 11:24:27", "payment_at": "2016-01-01 00:00:00", "deliver_at": "2016-01-01 00:00:00", "receiving_at": "2016-01-01 00:00:00", "complete_at": "2016-01-01 00:00:00", "evaluate_at": "2016-01-01 00:00:00", "stores": { "id": 1, "name": "門店1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png" }, "order_goods": [ { "id": 1, "order_id": 4, "name": "商品1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "price": "10.00", "market_price": "20.00", "number": 1 } ], "status_text": "待付款" } } ~~~ #### 購買 > 流程 > 獲取門店和商品數據(返回商品總價和門店優惠、訂單總價) > 獲取收貨地址并選擇 > 選擇配送方式,快遞、配送、自取(返回快遞費或配送費或不在配送范圍、訂單總價) > 選擇優惠券(返回優惠券抵扣、訂單總價) > 選擇紅包(返回紅包抵扣、訂單總價) ~~~[api] post:/index/order/buy *number:stores_id#門店ID *array:goods#商品 *number:goods_id#商品ID *string:sku_key#商品存放SKU庫存量項目ID *number:number#商品數量 number:seckill_id#秒殺ID number:address_id#收貨地址ID number:delivery_type#配送方式,1=>快遞,2=>配送員送貨,3=>自取 number:redpacket_id#紅包記錄ID number:coupon_id#優惠券記錄ID <<< success { "code": 1, "msg": "", "time": "2018-08-21 16:23:31", "data": { "stores": { "id": 17, "dealer_id": 1, "cate_id": 2, "auditd_id": 1, "type": 2, "name": "門店17", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/pbcl71A8szLJ3k4SOypb8NizkkeIVH70.png", "banner": [ "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/07/uEj1cSh3qgDCjopNMVPWEL2ojRoiJz6O.jpg" ], "notice": "歡迎光臨,很高興為您服務", "mobile": "13380855430", "province": 440000, "city": 441900, "district": 441903, "twon": 0, "address": "匯景上層", "longitude": "113.742674", "latitude": "23.00368", "business_hours_start": "1", "business_hours_end": "24", "template_style": 1, "delivery_scope": 1, "delivery_setting": "1292", "delivery_time": 1, "delivery_goods_min_price": "10.00", "delivery_price": "2.00", "sort": 0, "sales": 0, "is_support_two": 1, "is_support_express": 0, "is_support_self_pickup": 0, "is_support_delivery": 1, "is_support_make_delivery": 0, "is_self_delivery": 1, "is_audit": 1, "is_trash": 0, "status": 1, "created_at": "2018-07-17 18:58:21", "updated_at": "2018-08-14 16:35:38", "auditd_at": "2018-07-20 16:17:08", "is_audit_text": "審核通過", "status_text": "正常" }, "goods": [ { "id": 39, "dealer_id": 1, "stores_id": 17, "cate_id": 31, "brands_id": 31, "express_id": 0, "template_id": 4, "sn": "20180820121258476076", "name": "商品四", "weight": 0, "volume": 0, "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/WeJqEtDugxl1bKY5bHwFEQvtqwdiySNL.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "商品四", "price": "4.00", "market_price": "4.00", "inventory": 400, "view_count": 0, "sale_count": 0, "sort": 0, "is_free_shipping": 1, "is_hot": 0, "is_new": 0, "is_real": 1, "is_sale": 1, "is_trash": 0, "status": 1, "created_at": "2018-08-11 11:48:46", "updated_at": "2018-08-11 11:48:46", "saled_at": "2016-01-01 00:00:00", "status_text": "正常", "sku_key": null, "number": 10 } ], "price": { "goods": 40, "express": 0, "delivery": 2, "total": 35 }, "sales": { "full_subtract": 1, "redpacket": 2, "coupon": 4 } } } <<< success秒殺 { "code": 1, "msg": "", "time": "2018-08-22 18:08:12", "data": { "stores": { "id": 17, "dealer_id": 1, "cate_id": 2, "auditd_id": 1, "type": 2, "name": "門店17", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/pbcl71A8szLJ3k4SOypb8NizkkeIVH70.png", "banner": [ "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/07/uEj1cSh3qgDCjopNMVPWEL2ojRoiJz6O.jpg" ], "notice": "歡迎光臨,很高興為您服務", "mobile": "13380855430", "province": 440000, "city": 441900, "district": 441903, "twon": 0, "address": "匯景上層", "longitude": "113.742674", "latitude": "23.00368", "business_hours_start": "1", "business_hours_end": "24", "template_style": 1, "delivery_scope": 1, "delivery_setting": "1292", "delivery_time": 1, "delivery_goods_min_price": "10.00", "delivery_price": "2.00", "sort": 0, "sales": 0, "is_support_two": 1, "is_support_express": 0, "is_support_self_pickup": 0, "is_support_delivery": 1, "is_support_make_delivery": 0, "is_self_delivery": 1, "is_audit": 1, "is_trash": 0, "status": 1, "created_at": "2018-07-17 18:58:21", "updated_at": "2018-08-14 16:35:38", "auditd_at": "2018-07-20 16:17:08", "is_audit_text": "審核通過", "status_text": "正常" }, "goods": [ { "id": 39, "dealer_id": 1, "stores_id": 17, "cate_id": 31, "brands_id": 31, "express_id": 0, "template_id": 4, "sn": "20180820121258476076", "name": "商品四", "weight": 0, "volume": 0, "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/08/WeJqEtDugxl1bKY5bHwFEQvtqwdiySNL.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "商品四", "price": "4.00", "market_price": "4.00", "inventory": 390, "view_count": 0, "sale_count": 10, "sort": 0, "is_free_shipping": 1, "is_hot": 0, "is_new": 0, "is_real": 1, "is_sale": 1, "is_trash": 0, "status": 1, "created_at": "2018-08-11 11:48:46", "updated_at": "2018-08-21 17:38:47", "saled_at": "2016-01-01 00:00:00", "status_text": "正常", "sku_key": "", "number": 1, "seckill_id": 6, "seckill": { "id": 6, "dealer_id": 1, "stores_id": 17, "goods_id": 39, "price": "2.00", "inventory": 10, "max_buy_number": 1, "status": 1, "created_at": "2018-08-22 00:12:36", "updated_at": "2018-08-22 00:12:36", "start_at": "2018-08-22 00:00:00", "end_at": "2018-08-23 00:00:00", "status_text": "正常" } } ], "price": { "goods": 2, "express": 0, "delivery": 2, "total": 4 }, "sales": { "full_subtract": 0, "redpacket": 0, "coupon": 0 } } } <<< example { "stores_id": 17, "goods": [ { "goods_id": 39, "sku_key": "", "number": 10 } ], "address_id": 10, "delivery_type": 2, "redpacket_id": 4, "coupon_id": 5 } <<< example秒殺 { "stores_id": 17, "goods": [ { "goods_id": 39, "sku_key": "", "number": 1, "seckill_id": 6 } ], "address_id": 10, "delivery_type": 2 } ~~~ #### 創建 ~~~[api] post:/index/order/create *number:stores_id#門店ID *array:goods#商品 *number:goods_id#商品ID *string:sku_key#商品存放SKU庫存量項目ID *number:number#商品數量 *number:address_id#收貨地址ID *number:delivery_type#配送方式,1=>快遞,2=>配送員送貨,3=>自取 *number:buyer_terminal#購買者終端,1=>PC,2=>WAP,3=>微信,4=>安卓,5=>IOS number:redpacket_id#紅包記錄ID number:coupon_id#優惠券記錄ID string:member_remark#會員備注 <<< success { "code": 1, "msg": "", "time": "2018-08-21 17:38:47", "data": { "member_remark": "", "member_id": 4, "dealer_id": 1, "stores_id": 17, "sn": "20180821173847516462", "buyer_ip": "127.0.0.1", "buyer_terminal": 3, "consignee": "謝謝謝", "mobile": "18583898946", "email": "", "country": 86, "province": 330000, "city": 330100, "district": 330102, "twon": 0, "address": "呵呵噠", "zipcode": "", "longitude": 111, "latitude": 222, "delivery_type": 2, "delivery_price": 2, "express_name": "", "express_shipper_code": "", "express_code": "", "express_price": 0, "express_remark": "", "other_price": 0, "other_price_remark": "", "full_subtract_deduction": 1, "redpacket_deduction": 2, "coupon_deduction": 4, "price": 35, "created_at": "2018-08-21 17:38:47", "updated_at": "2018-08-21 17:38:47", "id": "22" } } <<< example { "stores_id": 17, "goods": [ { "goods_id": 39, "number": 10 } ], "address_id": 10, "delivery_type": 2, "redpacket_id": 4, "coupon_id": 5, "buyer_terminal": 3, "longitude": 1, "latitude": 1 } ~~~ #### 取消 > 取消只能在未支付的狀態下 ~~~[api] post:/index/order/cancel/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-06-25 11:26:00", "data": [] } ~~~ #### 支付 ~~~[api] post:/index/order/payment *number:order_id#訂單ID *number:pay_type#支付類型,1=>余額,2=>微信公眾號,3=>微信APP,4=>微信H5,5=>微信掃碼,6=>支付寶 <<< success 2 { "code": 1, "msg": "", "time": "2018-06-26 16:28:29", "data": { "appId": "wx14c3490a6fbcbaa3", "nonceStr": "5b31f92d9182f", "package": "prepay_id=wx26162829545366d28f111b7d2383287315", "signType": "MD5", "paySign": "3A8D86726931535D0C4ABD090D4F7177", "timestamp": "1530001709" } } <<< success 3 { "code": 1, "msg": "", "time": "2018-11-08 21:50:36", "data": { "appid": "wx6dfefd8f2acb42fc", "partnerid": "1513894401", "prepayid": "wx08215038736937fae8eefb893057803104", "noncestr": "5be43f2f663b5", "timestamp": 1541685039, "package": "Sign=WXPay", "sign": "3B4E4D9D13CF4D8AA8B46AEB7B7A1A35" } } ~~~ #### 收貨 ~~~[api] post:/index/order/receive/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-06-29 21:39:42", "data": [] } <<< error { "code": 0, "msg": "訂單未發貨", "time": "2018-06-26 23:32:47", "data": [] } ~~~ #### 評價 > 訂單收貨后才可評價 ~~~[api] post:/index/order/evaluate/ *number:order_id#訂單ID *array:goods#商品 *number:goods_id#商品ID string:sku_key#商品存放SKU庫存量項目ID *string:content#內容 *array:images#圖片 *number:grade#評分 <<< success success { "code": 1, "msg": "success", "time": "2018-06-29 21:39:42", "data": [] } <<< example { "order_id": 7, "goods": [ { "goods_id": 1, "sku_key": "", "content": "好棒的產品", "images": ["http://oss.dgyouduo.com/static/img/no-image.png"], "grade": 5 } ] } ~~~ #### 刪除
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看