| Version 5 (modified by lijincai, 13 years ago) (diff) |
|---|
接口列表
1,首页
2,店铺页
3,产品概述
4,确认购买
5,精准搜索
5.1 热门搜索词 请求url: /shot
返回参数:
{
hotlist:
[
{
"[id]:热点类型id,
[name]:类型名"
}
]
}
5.2 搜索商品 请求url: /searchProducts
请求参数:
[words]关键词
返回参数:
{
"resultlist":
[
{
[id]:商品id, [name]:商品标题 [price]:价格 [url]:商品概述的url [type]:淘宝商品、IT商场商品 [thumb]:商品缩略图
},{...},{...}
]
}
5.3 搜索店铺 请求url: /searchShops
请求参数:
[word]关键词(热点词)
返回参数:
{
"resultlist":
[
{
[id]:店铺Id [tile]:店铺标题, [rate]:店铺信誉 [isFlagShip]:是否为旗舰店 [addr]:地区
},{...},{...}
]
}
6,个人中心
6.1 买家收货地址列表 请求url: /addrs
返回参数: {
"addrList:"
[
{
"id":"123"买家Id "addrid":"1234"收货地址id
"name":收货人 "addr":收货地址 "postcode":邮编 "phone":联系电话
},{…},{…}
]
}
6.2 添加收货地址 请求url: /addAddrs
请求参数:
"id":"123"买家Id "name":收货人
"addr":收货地址 "postcode":邮编 "phone":联系电话
返回参数:
"code": 1 1成功,0失败
6.3 删除收货地址 请求url: /delAddrs
请求参数
[id]:买家Id [addrid]:收货地址id
返回参数:
"code": 1 1成功,0失败
6.4 定单详情 请求url: /orderInfo
请求参数:
"id":买家Id "orderId":定单ID"
返回参数:
{
"productName":商品名称 "addr":收货地址 "price":单价 "count":购买数量 "fare":邮费 "totalPrice":总价 "orderNO":IT商城详单号"
}
6.5 已买到的商品 请求url: /bought
返回参数:
{
"buyList":
[
{
[id]:买家Id [productid]:商品的ID [url]:商品详情的url [pic]:商品缩略图 [price]:价格 [orderId]:定单id [status]:交易状态"
},{…},{...}
]
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)