~~~[api]
post:app/index.php?i=1&c=entry&ctrl=wmall&ac=order&op=create&ta=index&do=api&m=we7_wmall
*sid=61#商户id
*emp_no=马云#下单人姓名
<<<
success
{
"errno": 0,
"message": {
"store": { //门店信息
"id": "3",
"uniacid": "1",
"agentid": "0",
"cid": "||",
"title": "茶不思",
"logo": "http://1.xinzuowl.com/attachment/images/1/2016/12/ecc9Eu0LIyr62aoOiC6goU6aLAcIIC.jpg",
"telephone": "2622178042",
"business_hours": [
{
"s": "09:00",
"e": "23:55"
}
],
"is_in_business": "1",
"is_rest": "0",
"description": "<p>啦啦外卖,最好用的外卖系统</p>",
"send_price": "10",
"delivery_price": "3",
"delivery_free_price": "0",
"pack_price": "1.00",
"delivery_time": "0",
"delivery_type": "3",
"delivery_within_days": "3",
"delivery_reserve_days": "0",
"serve_radius": "1",
"serve_fee": {
"type": 1,
"fee": ""
},
"delivery_area": "",
"thumbs": "",
"address": "啦啦外卖,最好用的外卖系统",
"location_x": "37.791069",
"location_y": "112.609959",
"status": "1",
"displayorder": "255",
"sns": {
"qq": "2622178042",
"weixin": "2622178042"
},
"notice": "1515671425",
"tips": "用户进入页面后, 将弹框提示设置的内容",
"content": "啦啦外卖,最好用的外卖系统",
"payment": [
"wechat",
"yimafu",
"alipay",
"credit",
"delivery"
],
"wechat_qrcode": {
"ticket": "gQHY8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAydFRtRVZVbkNkTDQxMDAwMGcwN24AAgRGkzdaAwQAAAAA",
"url": "http://weixin.qq.com/q/02tTmEVUnCdL410000g07n"
},
"custom_url": [
{
"title": "啦啦外卖",
"url": "http://1.xinzuowl.com/app/index.php?i=1&c=entry&ctrl=wmall&ac=home&op=index&do=mobile&m=we7_wmall",
"wxapp_link": ""
}
],
"addtype": "2",
"addtime": "1468632693",
"template": "index",
"pc_notice_status": "1",
"not_in_serve_radius": "1",
"auto_handel_order": "1",
"auto_get_address": "1",
"auto_notice_deliveryer": "1",
"click": "103",
"is_recommend": "1",
"is_stick": "1",
"position": "2",
"is_assign": "1",
"is_reserve": "1",
"is_meal": "1",
"is_paybill": "1",
"forward_mode": "1",
"forward_url": "",
"consume_per_person": "0",
"assign_mode": "1",
"assign_qrcode": "a:2:{s:6:\"ticket\";s:96:\"gQE18DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyaFRNT1VubkNkTDQxMDAwMHcwN1EAAgQvfB9aAwQAAAAA\";s:3:\"url\";s:45:\"http://weixin.qq.com/q/02hTMOUnnCdL410000w07Q\";}",
"delivery_mode": "2",
"delivery_fee_mode": "3",
"data": {
"eleme": {
"delivery": {
"delivery_mode": 0,
"delivery_fee_mode": 1,
"delivery_price": 0
},
"order": {
"auto_handel_order": 0,
"auto_notice_deliveryer": 0,
"auto_print": 0,
"accept_order": 0
}
},
"meituan": {
"delivery": {
"delivery_mode": 0,
"delivery_fee_mode": 1,
"delivery_price": 0
},
"order": {
"auto_handel_order": 0,
"auto_notice_deliveryer": 0,
"auto_print": 0,
"accept_order": 0
}
},
"extra_fee": [
{
"name": "平台增值费",
"fee": "5",
"status": 1
}
],
"custom_goods_sailed_status": 1,
"delivery_time_type": 1,
"shopPage": [],
"wxapp": {
"extPages": {
"pages_store_goods": {
"navigationBarBackgroundColor": "#9900ff"
},
"pages_store_goodsdetail": {
"navigationBarBackgroundColor": ""
}
},
"template": 2
},
"dada": {
"shopno": "",
"status": 0,
"citycode": ""
},
"superCoupon": {
"status": 0,
"max_limit": 0
},
"tangshi": {
"payment": [
"wechat",
"yimafu",
"alipay",
"credit",
"finishMeal"
]
}
},
"deltime": "0",
"origin_logo": "http://1.xinzuowl.com/attachment/images/1/2016/12/ecc9Eu0LIyr62aoOiC6goU6aLAcIIC.jpg",
"delivery_title": "啦啦专送.0",
"is_in_business_hours": true,
"business_hours_cn": "09:00~23:55",
"score_cn": 100,
"order_address_limit": 4
},
"cart": { //购物车信息
"id": "422",
"uniacid": "1",
"sid": "3",
"uid": "10158",
"groupid": "3",
"num": "4", //商品数量
"box_price": "0", //餐盒费用
"price": "48.00", //商品价格
"original_price": "0.00",
"data": { //购物车详细数据
"9758": [
{
"title": "干捞葱肉饺子",
"option_title": "",
"num": 4,
"price": "14",
"discount_price": "10",
"discount_num": 2,
"price_num": 2,
"total_price": 56,
"total_discount_price": 48,
"bargain_id": "5"
}
]
},
"original_data": {
"9758": {
"goods_id": "9758",
"title": "干捞葱肉饺子",
"options": [
{
"option_id": "0",
"name": "",
"num": 4,
"price_num": 2,
"discount_num": 2,
"bargain_id": "5",
"price_total": "48.00"
}
]
}
},
"pindan_data": "",
"pindan_status": "0",
"pindan_id": "0",
"bargain_use_limit": "1",
"addtime": "1530670263",
"paytime": "0"
},
"order": { //订单信息
"order_type": 1,
"pack_fee": "1.00", //店铺包装费
"price": "48.00", //商品价格
"box_price": "0",//餐盒费
"delivery_fee": 0,//配送费
"extra_fee": 5,//平台附加费
"extra_fee_detail": [ //平台附加费详情
{
"name": "平台增值费",
"fee": "5",
"status": 1
}
],
"total_fee": 54, //订单总金额
"discount_fee": 6, //订单优惠金额
"activityed": { //订单优惠明细
"list": {
"discount": {
"text": "-¥3",
"value": "3",
"type": "discount",
"name": "满减优惠",
"icon": "discount_b.png",
"store_discount_fee": 2,
"agent_discount_fee": "",
"plateform_discount_fee": "1"
},
"cashGrant": {
"text": "返1元",
"value": 1,
"type": "cashGrant",
"name": "返现优惠",
"icon": "cashGrant_b.png",
"store_discount_fee": 1,
"agent_discount_fee": "",
"plateform_discount_fee": ""
},
"grant": {
"text": "打开ild",
"value": 0,
"type": "grant",
"name": "满赠优惠",
"icon": "grant_b.png"
},
"couponGrant": {
"text": "返10元代金券",
"value": 0,
"type": "couponGrant",
"name": "满返优惠",
"icon": "couponGrant_b.png"
},
"deliveryFeeDiscount": {
"text": "-¥3",
"value": 3,
"type": "delivery",
"name": "满10元减3元配送费",
"icon": "discount_b.png",
"plateform_discount_fee": "",
"store_discount_fee": 3,
"agent_discount_fee": ""
}
},
"total": 6, //订单优惠总金额
"activity": 6,
"token": 0,
"store_discount_fee": 6, //订单优惠商户承担多少钱
"agent_discount_fee": 0,
"plateform_discount_fee": 1 //订单优惠平台承担多少钱
},
"final_fee": 48 //订单最终顾客需支付的金额
}
}
}