🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
+++ post:app/api.php?i=2&c=entry&do=submit&op=index&m=we7_wmall *token=gN7PD0DZA357Ewi57NIupQqPpeikTdw7#用户身份token *sid=1#门店id coupon_id=1#代金券id 注意: 订单最终金额 = 商品费用+包装费+配送费-优惠金额 用户选择代金券后, 访问的也是该接口, 需要加上coupon_id 商家/平台配送的时候 ,必须要选择收货地址 到店自提的时候, 需要填写下单人和联系手机号 <<< success { "message": { "resultCode": 0, "resultMessage": { "cart": { //购物车商品 "id": "915", "uniacid": "2", "sid": "1", "uid": "8970", "groupid": "2", "num": "2", "price": "14.00", "data": { "61": [ { "title": "山东烟台红富士(1斤)", "num": 1, "price": "7.5" } ], "62": [ { "title": "新疆库尔勒梨(1斤)", "num": 1, "price": "6.5" } ] }, "num_data": { "61": 1, "62": 1 }, "addtime": "1479527173" }, "address": [], //收货地址, (系统会自动获取顾客可用的收货地址, 该值可能为空) "address_id": null, //收货地址id, (下单时候需要用) "paytype": [ //支付方式 { "text": "微信支付", "value": "wechat" }, { "text": "支付宝", "value": "alipay" }, { "text": "货到付款", "value": "delivery" } ], "coupons": [ //顾客可用的代金券 { "id": "744", "uniacid": "2", "sid": "1", "couponid": "2", "uid": "8970", "order_id": "0", "code": "28043266", "status": "1", "remark": "", "granttime": "1479353465", "usetime": "0", "title": "每天可领3元券", "starttime": "1468857600", "endtime": "1487260800", "use_limit": "1", "discount": "3", "condition": "5" } ], "coupons_count": 1, //顾客可用代金券的数量 "coupon_id": 0, //用户选择使用的代金券id "conpon": null, //用选择使用的代金券 "activityed": { //订单优惠信息 "list": "", "total": 0, "activity": 0, "token": 0 }, "cart_price": "14.00", //商品价格 "delivery_price": "0", //配送费 "pack_price": "0.00", //包装费 "totalprice": 14, //订单总金额 "activityedprice": 0, //优惠总金额 "waitprice": 14, //优惠后价格,顾客需要支付的金额 "delivery_mode": "1", //门店配送模式, 1:门店配送, 2:平台配送 "delivery_type": "1", //店铺支持的配送方式,1:仅支持商家配送 2:仅支持到店自提 3:商家配送,到店自提都支持 "invoice_status": "0", //店铺是否支持开发票 "delivery_time": { //店铺的配送时间段 "days": [ "11-19" ], "times": [ { "start": "08:00", "end": "20:00", "timestamp": 1479556841 } ], "timestamp": [ 1479556841 ], "updatetime": 1479571200, "reserve": 0 } }, "data": { "resultCode": "" } } } <<< error { "message": { "resultCode": -1, "resultMessage": "", "data": { } } } +++