3.1 购物车首页

3.1 购物车首页

HTTP请求方式:POST

METHOD:b2c.cart.index

完整的HTTP请求参数(由下边各个参数的值自动生成,可直接复制至剪切板): 复制至剪切板

详解HTTP请求参数:添加参数 查看参数说明

  • = *

参数说明:

参数名称 是否必填 类型 描述
没有参数!

返回结果(JSON)     格式化json

数据说明:

//订单费用列表
"order_detail": {
cost_item:商品总金额,
cost_freight:运费,
cost_protect:配送保价费,//0不显示
pmt_order:订单优惠金额,//0不显示
cost_payment:客户承担支付手续费,//0不显示
cost_tax:开发票所需税金,//0不显示
totalConsumeScore:消费积分,//0不显示
totalGainScore:订单可得积分,//0不显示
total_amount:总金额,
prepare_total_amount:预付订金,//没有该字段不显示
point_dis_price:积分抵扣//积分抵扣金额
}

//积分抵扣
"point_dis": {
    "max_discount_value_money": "¥30021.00",//本订单最大可抵扣金额
    "max_discount_value_point": 30021,//金额对应的积分
    "real_usage_point": 1001061,//当前账户积分
    "discount_point_ratio": "1积分=¥1.00",//比例
    "discount_rate": "1"//比例
},

//发票配置
"tax_setting": {
    "tax_type": [//发票类型
        {
            "tax_ratio": "",
            "tax_type": "不需要发票",
            "tax_value": "false"
        },
        {
            "tax_ratio": "税率5%",
            "tax_type": "个人发票",
            "tax_value": "personal"
        },
        {
            "tax_ratio": "税率5%",
            "tax_type": "公司发票",
            "tax_value": "company"
        }
    ],
    "tax_content": {//发票内容
        "商品清单": "商品清单",
        "电器": "电器",
        "办公用品": "办公用品",
        "其它": "其它"
    }
},


//默认支付方式
"arr_def_payment": {
    "pay_app_id": "tenpay",
    "app_id": "tenpay",
    "app_display_name": "财付通"
},

//支付方式列表
"payments": [
    {
        "value": "{\"pay_app_id\":\"deposit\",\"payment_name\":\"预存款\"}",
        "app_id": "deposit",
        "app_display_name": "预存款",
        "app_pay_brief": "",
        "checked": "false"
    },
    {
        "value": "{\"pay_app_id\":\"mtenpay\",\"payment_name\":\"手机财付通\"}",
        "app_id": "mtenpay",
        "app_display_name": "手机财付通",
        "app_pay_brief": null,
        "checked": "false"
    }
],
//支付方式支持的货币
"current_currency": "CNY",

//默认配送方式
"shipping_method": {
    "shipping_id": 1,
    "shipping_name": "快递",
    "money": "¥25.00",
    "has_cod": "false",
    "is_protect": "1"
},

//会员地址列表
"member_addr_list": [
    {
        "addr_id": "11100",
        "name": "11 11",
        "area": "mainland:上海/上海市/黄浦区:23",
        "addr": "New York",
        "zip": "10002",
        "tel": "",
        "mobile": "18588880154",
        "def_addr": 0,
        "value": "{\"addr_id\":11100,\"area\":23}"
    },
    {
        "addr_id": "11101",
        "name": "谭先生",
        "area": "mainland:天津/天津市/河西区:46",
        "addr": "大东路66号",
        "zip": "",
        "tel": "84919831",
        "mobile": "15626479376",
        "def_addr": 0,
        "value": "{\"addr_id\":11101,\"area\":46}"
    },
    {
        "addr_id": "11102",
        "name": "fgnc",
        "area": "mainland:江苏/南京市/玄武区:1645",
        "addr": "dgf ",
        "zip": "510000",
        "tel": "",
        "mobile": "13212345678",
        "def_addr": 0,
        "value": "{\"addr_id\":11102,\"area\":1645}"
    }
],
"shippings": [
    {
        "value": "{\"id\":1,\"has_cod\":\"false\",\"dt_name\":\"快递\",\"money\":\"25\"}",
        "dt_id": "1",
        "dt_name": "快递",
        "money": "¥25.00",
        "extends_detail": null,
        "detail": "说大话",
        "protect": "true",
        "minprice": "¥2.00",
        "protect_rate": 1,
        "text": "物流保价(保价费率为商品价格的1%,不足¥2.00按¥2.00计算)",
        "disabled": "false",
        "protect_checked": true,
        "checked": "true"
    },
    {
        "value": "{\"id\":12,\"has_cod\":\"false\",\"dt_name\":\"国際EMS\",\"money\":\"0\"}",
        "dt_id": "12",
        "dt_name": "国際EMS",
        "money": "¥0.00",
        "extends_detail": null,
        "detail": " ",
        "protect": "true",
        "minprice": "¥5.00",
        "protect_rate": 1,
        "text": "物流保价(保价费率为商品价格的1%,不足¥5.00按¥5.00计算)",
        "disabled": "true",
        "protect_checked": true,
        "checked": "false"
    },
    {
        "value": "{\"id\":2,\"has_cod\":\"true\",\"dt_name\":\"货到付款\",\"money\":\"30\"}",
        "dt_id": "2",
        "dt_name": "货到付款",
        "money": "¥30.00",
        "extends_detail": null,
        "detail": "修改此处说明文字,请登录后台管理界面:“控制面板-配送方式”,编辑该配送方式",
        "checked": "false"
    }
],

//默认配送地址
"def_addr": {
    "addr_id": "11102",
    "name": "fgnc",
    "area": "mainland:江苏/南京市/玄武区:1645",
    "addr": "dgf ",
    "zip": "510000",
    "tel": "",
    "mobile": "13212345678",
    "def_addr": null
},

//商品清单
"aCart": {
    "object": {
        "goods": [//普通商品
            {
                "obj_ident": "goods_1128_2533",
                "selected": false,
                "goods_id": "1128",
                "is_fav": "true",
                "product_id": "2533",
                "store": 9847,
                "max": 9847,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/01/2d/92/c8eac4b543fbd0ec800ba6aa60a3165fd991c003.jpg?1415129982#w",
                "spec_info": "",
                "name": "RMK 玫瑰洁肤凝霜 玫瑰卸妆膏 100g",
                "price": "¥3624.00",//优惠后的单件价格
                "mktprice": "¥3624.00",//单件优惠前的价格//0不显示
                "discount_amount": "¥931.00",//单件优惠金额
                "subtotal_discount_amount": "¥1862.00",//总优惠金额
                "subtotal_gain_score": "7288",//获得总积分
                "prefilter_after_price": "¥3624.00",//优惠后的单件价格
                "subtotal_prefilter_after": "¥7248.00",//优惠后的总价格
                "quantity": 2,//数量
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ]
            },
            {
                "obj_ident": "goods_1212_2712",
                "selected": false,
                "goods_id": "1212",
                "is_fav": false,
                "product_id": "2712",
                "store": 9334,
                "max": 9334,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/3f/83/9b/4576695c5115b01023ac91385bf92685bf17b274.jpg?1415129936#w",
                "spec_info": "",
                "name": "北海道ROYCE提拉米苏巧克力威化饼干12枚装",
                "price": "¥1522.00",
                "mktprice": "0",//0不显示
                "discount_amount": "¥1522.00",
                "subtotal_discount_amount": "¥1522.00",
                "subtotal_gain_score": "101",
                "prefilter_after_price": "¥0.00",
                "subtotal_prefilter_after": "¥0.00",
                "quantity": 1,
                "gift": [
                    {
                        "thumbnail": "http://zj.qianseit.com/public/images/3b/5d/3a/62f8a7be2de02d2bbbaae18c63756c1559031f2c.png?1414684214#h",
                        "product_id": "2697",
                        "price": "¥0.00",
                        "mktprice":"¥0.00",//市场价
                        "quantity": 1,
                        "name": "SANA豆乳洗面奶150g",
                        "spec_info": "",
                        "desc_tag": "赠品"
                    }
                ],
                "promotion": [
                    {
                        "desc_tag": "送积分",
                        "name": "庆圣诞迎新年,全商城3倍积分,包关税"
                    },
                    {
                        "desc_tag": "减价",
                        "name": "小于500元的商品5折"
                    }
                ]
            },
            {
                "obj_ident": "goods_1216_3806",
                "selected": false,
                "goods_id": "1216",
                "is_fav": "true",
                "product_id": "3806",
                "store": 9994,
                "max": 9994,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/c9/7b/a6/33c97954ec9b01b4bd055e5438b233a67c61c455.jpg?1415266541#h",
                "spec_info": "颜色:02自然肤色",
                "name": "BISON Baby Pink 轻透控油矿物质BB蜜粉饼2色选",
                "price": "¥1676.00",
                "mktprice": //市场价格
                "discount_amount": "¥356.00",
                "subtotal_discount_amount": "¥1778.00",
                "subtotal_gain_score": 10656,
                "prefilter_after_price": "¥1320.00",
                "subtotal_prefilter_after": "¥6600.00",
                "quantity": 5,
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ],
                "adjunct": [
                    {
                        "min": 0,
                        "max": "10",
                        "store": 99998,
                        "thumbnail": "http://zj.qianseit.com/public/images/c8/79/99/ff5ea16795d6a4d0b9859bbcc366588e462ae9ea.png?1440905036#w",
                        "name": "15年新版 KOJI Dolly Wink 睫毛膏 纤长/浓密 防水防晕好卸妆H",
                        "product_id": "10781",
                        "goods_id": "3181",
                        "spec_info": "颜色:蓝色",
                        "price": "¥1374.00",
                        "mktprice": //市场价格
                        "group_id": 0,
                        "discount_amount": "¥137.00",
                        "subtotal_discount_amount": "¥137.00",
                        "subtotal_gain_score": "989",
                        "subtotal_price": "¥1237.00",
                        "quantity": "1",
                        "is_fav": false
                    },
                    {
                        "min": 0,
                        "max": "10",
                        "store": 99999,
                        "thumbnail": "http://zj.qianseit.com/public/images/c8/79/99/ff5ea16795d6a4d0b9859bbcc366588e462ae9ea.png?1440905036#w",
                        "name": "15年新版 KOJI Dolly Wink 睫毛膏 纤长/浓密 防水防晕好卸妆H",
                        "product_id": "10782",
                        "goods_id": "3181",
                        "spec_info": "颜色:粉色",
                        "price": "¥1374.00",
                        "mktprice": //市场价格
                        "group_id": 0,
                        "discount_amount": "¥412.00",
                        "subtotal_discount_amount": "¥412.00",
                        "subtotal_gain_score": "2967",
                        "subtotal_price": "¥3710.00",
                        "quantity": 3,
                        "is_fav": false
                    }
                ]
            },
            {
                "obj_ident": "goods_1404_5643",
                "selected": false,
                "goods_id": "1404",
                "is_fav": false,
                "product_id": "5643",
                "store": 9780,
                "max": 9780,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/02/4d/37/457750083140803b6608255a3c976e5fe4305835.png?1419753913#h",
                "spec_info": "口味:抹茶奶油夹心",
                "name": "日本固力果Glico collon抹茶奶油夹心卷/香草奶油夹心卷",
                "price": "¥399.00",
                "mktprice": //市场价格
                "discount_amount": "¥100.00",
                "subtotal_discount_amount": "¥100.00",
                "subtotal_gain_score": "319",
                "prefilter_after_price": "¥299.00",
                "subtotal_prefilter_after": "¥299.00",
                "quantity": 1,
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ]
            },
            {
                "obj_ident": "goods_1537_6330",
                "selected": false,
                "goods_id": "1537",
                "is_fav": false,
                "product_id": "6330",
                "store": 9931,
                "max": 9931,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/15/7a/90/0ca01406e15adc65c9d66cb168ea8dee56fb7298.jpg?1422585336#h",
                "spec_info": "分量:原味奶油14根",
                "name": "日本东京都YOKUMOKU手工蛋卷",
                "price": "¥2219.00",
                "mktprice": //市场价格
                "discount_amount": "¥464.00",
                "subtotal_discount_amount": "¥464.00",
                "subtotal_gain_score": "1775",
                "prefilter_after_price": "¥1755.00",
                "subtotal_prefilter_after": "¥1755.00",
                "quantity": 1,
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ]
            },
            {
                "obj_ident": "goods_2306_9154",
                "selected": false,
                "goods_id": "2306",
                "is_fav": false,
                "product_id": "9154",
                "store": 9999,
                "max": 9999,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/ca/b0/4a/f3e0fe50a11c0c9b68ca543169afd5c9d69c7235.jpg?1436509866#h",
                "spec_info": "",
                "name": "Bolero crazy bites迷你巧克力蛋卷",
                "price": "¥729.00",
                "mktprice": //市场价格
                "discount_amount": "¥166.00",
                "subtotal_discount_amount": "¥332.00",
                "subtotal_gain_score": "1166",
                "prefilter_after_price": "¥563.00",
                "subtotal_prefilter_after": "¥1126.00",
                "quantity": 2,
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ]
            },
            {
                "obj_ident": "goods_2602_9848",
                "selected": false,
                "goods_id": "2602",
                "is_fav": "true",
                "product_id": "9848",
                "store": 9995,
                "max": 9995,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/b2/de/c6/d772afc8fabac65edcdb2ad2cfd7950fe6a4e4f7.jpg?1440203300#h",
                "spec_info": "口味:玫瑰",
                "name": "花王KAO药用入浴剂 碳酸温浴美肌 玫瑰/薰衣草 两味选",
                "price": "¥0.00",
                "mktprice": //市场价格
                "discount_amount": "¥0.00",
                "subtotal_discount_amount": "¥0.00",
                "subtotal_gain_score": "0",
                "prefilter_after_price": "¥0.00",
                "subtotal_prefilter_after": "¥0.00",
                "quantity": 2,
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ]
            },
            {
                "obj_ident": "goods_580_4799",
                "selected": false,
                "goods_id": "580",
                "is_fav": false,
                "product_id": "4799",
                "store": 9138,
                "max": 9138,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/5c/a9/f9/1bf3828b58a699ed1cbae50683d475909a757dc5.png?1415129718#h",
                "spec_info": "分量:9个装",
                "name": "三色年轮蛋糕 东京banana系列产品",
                "price": "¥2399.00",
                "mktprice": //市场价格
                "discount_amount": "¥500.00",
                "subtotal_discount_amount": "¥1500.00",
                "subtotal_gain_score": "5757",
                "prefilter_after_price": "¥1899.00",
                "subtotal_prefilter_after": "¥5697.00",
                "quantity": 3,
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ]
            },
            {
                "obj_ident": "goods_82_322",
                "selected": false,
                "goods_id": "82",
                "is_fav": "true",
                "product_id": "322",
                "store": 9934,
                "max": "1",
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/57/03/2c/eebd6a2b7e9b83ddb27758fd36cad8375fd4aa00.jpg?1415130583#h",
                "spec_info": "",
                "name": "2013最新版 一日只需5粒 左旋肉碱含量增 DHC左旋肉碱(露卡素) 30日 加速燃烧脂肪",
                "price": "¥2300.00",
                "mktprice": //市场价格
                "discount_amount": "¥0.00",
                "subtotal_discount_amount": "¥0.00",
                "subtotal_gain_score": "2080",
                "prefilter_after_price": "¥2300.00",
                "subtotal_prefilter_after": "¥2300.00",
                "quantity": 1,
                "special_type": "团购"
            },
            {
                "obj_ident": "goods_953_2213",
                "selected": false,
                "goods_id": "953",
                "is_fav": false,
                "product_id": "2213",
                "store": 9012,
                "max": 9012,
                "min": 1,
                "thumbnail": "http://zj.qianseit.com/public/images/9f/c3/07/ded57497920a4cccf03d11a14077d621e5e31f2d.jpg?1415130070#w",
                "spec_info": "",
                "name": "京都名产 浓厚宇治抹茶蛋卷 抹茶奶油卷心酥低糖吃不胖",
                "price": "¥1450.00",
                "mktprice": //市场价格
                "discount_amount": "¥310.00",
                "subtotal_discount_amount": "¥310.00",
                "subtotal_gain_score": "1160",
                "prefilter_after_price": "¥1140.00",
                "subtotal_prefilter_after": "¥1140.00",
                "quantity": 1,
                "promotion": [
                    {
                        "desc_tag": "减价",
                        "name": "全场商品优惠20员"
                    }
                ]
            }
        ],
        "gift": {//订单兑换赠品
            "order": [
                {
                    "product_id": "4343",
                    "name": "贝印 KAI弧度式睫毛夹",
                    "spec_info": "编号:粉HC0902",
                    "price": "¥0.00",
                    "mktprice": "¥0.00",//原价
                    "quantity": 1,
                    "thumbnail": "http://zj.qianseit.com/public/images/f2/cb/b4/d92ceb8630a3709fba951a449b358b8fffe18893.jpg?1415129942#w",
                    "desc_tag": "送赠品"
                }
            ]
        }
    },
    /***订单确认页面不使用****/
    "subtotal_gain_score": 30302,
    "discount_amount_order": 100,
    "subtotal_prefilter_after": 30121,
    /***订单确认页面不使用@END****/
    //订单促销
    "promotion": {
        "order": [
            {
                "name": "订单总价大于20000,减免20%",
                "rule_id": "1",
                "discount_amount": 0,
                "desc": "全场购物满100打8折",
                "solution": [
                    {
                        "goods_id": "1211",
                        "name": "东京 特产 手信 彩虹色 手工 蛋卷",
                        "product_id": "4321",
                        "thumbnail": "http://zj.qianseit.com/public/images/b9/77/4e/0824c113b4ba9f632484dec870732258a362e8e0.jpg?1430211403#w"
                    },
                    {
                        "goods_id": "1211",
                        "name": "东京 特产 手信 彩虹色 手工 蛋卷",
                        "product_id": "4322",
                        "thumbnail": "http://zj.qianseit.com/public/images/b9/77/4e/0824c113b4ba9f632484dec870732258a362e8e0.jpg?1430211403#w"
                    }
                ],
                "desc_tag": "送赠品"
            },
            {
                "name": "满100减100",
                "rule_id": "34",
                "discount_amount": "100",
                "desc": "哈哈哈哈骗你的",
                "solution": "订单总价格优惠¥100.00出售",
                "desc_tag": "减价"
            },
            {
                "name": "商品(BISON Baby Pink 轻透控油矿物质BB蜜粉饼2色选)满3件送赠品",
                "rule_id": "29",
                "discount_amount": 0,
                "desc": "满3件送赠品",
                "solution": [
                    {
                        "goods_id": "1199",
                        "name": "贝印 KAI弧度式睫毛夹",
                        "product_id": "4343",
                        "thumbnail": "http://zj.qianseit.com/public/images/f2/cb/b4/d92ceb8630a3709fba951a449b358b8fffe18893.jpg?1415129942#w"
                    }
                ],
                "desc_tag": "送赠品"
            }
        ]
    },
    //购物车数量种类
    "_cookie": {
        "CART_COUNT": 10,
        "CART_NUMBER": 23,
        "CART_TOTAL_PRICE": 30021
    },
    //预售商品识别
      promotion_type:'prepare',
      //配送时间
       "shipping_time": {
            "days_options": [
                {
                    "name": "任意日期",
                    "value": "任意日期"
                },
                {
                    "name": "仅工作日",
                    "value": "仅工作日"
                },
                {
                    "name": "仅休息日",
                    "value": "仅休息日"
                },
                {
                    "name": "指定日期",
                    "value": "special"
                }
            ],
            "times_options": [
                {
                    "name": "任意时间段",
                    "value": "任意时间段"
                },
                {
                    "name": "上午",
                    "value": "上午"
                },
                {
                    "name": "下午",
                    "value": "下午"
                },
                {
                    "name": "晚上",
                    "value": "晚上"
                }
            ],
            "end_time": "22",
            "begin_time": "8",
            "day_type": "special",
            "begin_day": 1469104977,
            "end_day": 1469709777
        },

}