购物车订单填写页
对应的手机网站端页面


接口地址
URL地址 | http://www.tpshop.com/index.php?m=Api&c=Cart&a=cart2 |
请求方式 | post |
参数列表
参数 | 是否必须 | 说明 |
user_id | 必选 | 用户id |
| token | 必须 | token |
成功案例
{
"status": 1,
"msg": "获取成功",
"result": {
"addressList": {
"address_id": "1",
"user_id": "1",
"consignee": "刘先生",
"email": "tpshop@tpshop.com",
"country": "1",
"province": "3",
"city": "39",
"district": "416",
"twon": "0",
"address": "海兴大厦",
"zipcode": "asas",
"mobile": "13986765412",
"is_default": "0"
},
"totalPrice": {
"total_fee": 3516.04,
"cut_fee": -518.04,
"num": 31
},
"userInfo": {
"user_id": "1",
"email": "dsads@dsadsp.com",
"password": "519475228fe35ad067744465c42a19b2",
"sex": "2",
"birthday": "1989",
"user_money": "1347.30",
"frozen_money": "0.00",
"distribut_money": "125.00",
"pay_points": "12370",
"address_id": "1",
"reg_time": "1245048540",
"last_login": "1470750524",
"last_ip": "0.0.0.0",
"qq": "",
"mobile": "13800138006",
"mobile_validated": "0",
"oauth": "",
"openid": null,
"head_pic": null,
"province": "0",
"city": "0",
"district": "0",
"email_validated": "0",
"nickname": "",
"level": "2",
"discount": "0.98",
"total_amount": "14694.76",
"is_lock": "0",
"is_distribut": "0",
"first_leader": "0",
"second_leader": "0",
"third_leader": "0",
"token": "2e6bf4b8ed6e879195fb4f0c1372e985"
},
"storeList": [
{
"store_id": 1,
"store_name": "CS专卖店-5.1",
"coupon_num": 0, //优惠券数量
"shippingList": [
{
"shipping_area_id": "19",
"shipping_code": "shunfeng",
"store_id": "1",
"name": "顺丰物流",
"freight": 0 /* 运费 */
},
{
"shipping_area_id": "29",
"shipping_code": "yuantong",
"store_id": "1",
"name": "圆通物流",
"freight": 0
}
],
"cartList": [
{
"id": "36",
"user_id": "1",
"session_id": "q4qnvqogp8nl2jkrpldv7iehf2",
"goods_id": "42",
"goods_sn": "TP0000042",
"goods_name": "Teclast/台电 X80 Plus WIFI 32GB Win10平板电脑双系统8英寸",
"market_price": "599.00",
"goods_price": "499.00",
"member_goods_price": "489.02",
"goods_num": "2",
"spec_key": "",
"spec_key_name": "",
"bar_code": "",
"selected": "1",
"add_time": "1470211036",
"prom_type": "0",
"prom_id": "0",
"sku": "",
"store_id": "1",
"goods_fee": 978.04,
"store_count": "101"
}
]
},
{
"store_id": 3,
"store_name": "旺小姐旗舰店",
"coupon_num": 1,
"shippingList": [
{
"shipping_area_id": "35",
"shipping_code": "shunfeng",
"store_id": "3",
"name": "顺丰物流",
"freight": 0
}
],
"cartList": [
{
"id": "35",
"user_id": "1",
"session_id": "q4qnvqogp8nl2jkrpldv7iehf2",
"goods_id": "1",
"goods_sn": "TP000000",
"goods_name": "Apple iPhone 6s Plus 16G 玫瑰金 移动联通电信4G手机",
"market_price": "300.00",
"goods_price": "423.00",
"member_goods_price": "423.00",
"goods_num": "6",
"spec_key": "28_100",
"spec_key_name": "内存:32G 颜色:玫瑰金",
"bar_code": "",
"selected": "1",
"add_time": "1470210580",
"prom_type": "1",
"prom_id": "2",
"sku": "",
"store_id": "3",
"goods_fee": 2538,
"store_count": "98"
}
]
}
]
}
}