🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
* 获取确认订单页面 ~~~[api] get:/index.php?ctl=Buyer_Cart&met=confirm&typ=json string:k#key int:u#用户id product_id#购物车id array ifcart# address_id#默认地址id cart_type# <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "glist": [ { "shop_id": "8", "shop_name": "hp的店铺", "shop_user_id": "10013", "shop_user_name": "hp", "district_id": "1876", "shop_self_support": "false", "goods": [ { "cart_id": "5512", "user_id": "10014", "shop_id": "8", "goods_id": "435", "goods_num": "4", "cart_status": "0", "id": "5512", "transport_area_id": "0", "buy_able": 1, "cubage": "1.00", "old_price": "200.00", .... "address": [ { "user_address_id": "5", "user_id": "10014", "user_address_contact": "adwq", "user_address_province_id": "9", "user_address_city_id": "152", "user_address_area_id": "1892", "user_address_area": "上海 闵行区 古美街道", "user_address_address": "aaaaaaaaaaaaa", "user_address_phone": "15212206900", "user_address_company": "", "user_address_default": "1", "user_address_time": "2017-11-16 11:09:24", "id": "5" }, ... ], "cost": [ { "cost": 0, "con": "" } ], "order_discounted_price": 379.2, "order_cost_sum": "15.80" } } <<< error ~~~ * 获取默认收货地址信息 ~~~[api] get:/index.php?ctl=Buyer_User&met=getUserConfigAddress&typ=json string:k#key int:u#用户id <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "user_address_id": "5", "user_id": "10014", "user_address_contact": "adwq", "user_address_province_id": "9", "user_address_city_id": "152", "user_address_area_id": "1892", "user_address_area": "上海 闵行区 古美街道", "user_address_address": "aaaaaaaaaaaaa", "user_address_phone": "15212111111", "user_address_company": "", "user_address_default": "1", "user_address_time": "2017-11-16 11:09:24", "id": "5" } } <<< error {"cmd_id":-1,"status":250,"msg":"\u534f\u8bae\u5185\u5bb9\u6709\u8bef\uff1a-140","data":0} ~~~ * 获取收货地址管理列表 ~~~[api] get:/index.php?ctl=Buyer_Cart&met=confirm&typ=json string:k#key int:u#用户id product_id:#购物车id array <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "glist": [ { "shop_id": "8", "shop_name": "hp的店铺", "shop_user_id": "10013", "shop_user_name": "hp", "district_id": "1876", "shop_self_support": "false", "goods": [ { "cart_id": "5512", "user_id": "10014", "shop_id": "8", "goods_id": "435", "goods_num": "4", "cart_status": "0", "id": "5512", "transport_area_id": "0", "buy_able": 1, "cubage": "1.00", "old_price": "200.00", "now_price": "100.00", "down_price": 100, "order_goods_count": 1, "IsHaveBuy": 0, "buy_limit": "0", "sumprice": "400.00", "cat_commission": "1", "commission": "4.00", "goods_base": { ..... "address": [ { "user_address_id": "5", "user_id": "10014", "user_address_contact": "adwq", "user_address_province_id": "9", "user_address_city_id": "152", "user_address_area_id": "1892", "user_address_area": "上海 闵行区 古美街道", "user_address_address": "aaaaaaaaaaaaa", "user_address_phone": "15212206900", "user_address_company": "", "user_address_default": "1", "user_address_time": "2017-11-16 11:09:24", "id": "5" }, .... ], "cost": [ { "cost": 0, "con": "" } ], "order_discounted_price": 379.2, "order_cost_sum": "15.80" } } <<< error ~~~ * 选择收货地址 ~~~[api] get:/index.php?ctl=Buyer_Cart&met=confirm&typ=json string:k#key int:u#用户id product_id#购物车id array ifcart# address_id#默认地址id cart_type# <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "glist": [ { "shop_id": "8", "shop_name": "hp的店铺", "shop_user_id": "10013", "shop_user_name": "hp", "district_id": "1876", "shop_self_support": "false", "goods": [ { "cart_id": "5512", "user_id": "10014", "shop_id": "8", "goods_id": "435", "goods_num": "4", "cart_status": "0", "id": "5512", "transport_area_id": "0", "buy_able": 1, "cubage": "1.00", "old_price": "200.00", "now_price": "100.00", "down_price": 100, ... "address": [ { "user_address_id": "5", "user_id": "10014", "user_address_contact": "adwq", "user_address_province_id": "9", "user_address_city_id": "152", "user_address_area_id": "1892", "user_address_area": "上海 闵行区 古美街道", "user_address_address": "aaaaaaaaaaaaa", "user_address_phone": "15212206900", "user_address_company": "", "user_address_default": "1", "user_address_time": "2017-11-16 11:09:24", "id": "5" }, ..... ], "cost": [ { "cost": 0, "con": "" } ], "order_discounted_price": 379.2, "order_cost_sum": "15.80" } } <<< error ~~~ * 提交订单 ~~~[api] get:/?ctl=Buyer_Order&met=addOrder&typ=json string:k#key int:u#用户id receiver_name#收货人 receiver_address#收货人地址 receiver_phone#收货人手机号 invoice#是否开发票 invoice_id#发票id invoice_title#发票性质 invoice_content#发票内容 cart_id#购物车id shop_id#商品店铺id remark#留言 pay_way_id#支付方式 address_id#地址id from#购物平台 <<< success success { "cmd_id":100, "status":200, "msg":"success", "data": { } } <<< error success { "cmd_id":100, "status":250, "msg":"error", "data": { } } ~~~