首頁(yè)及系統(tǒng)數(shù)據(jù)接口數(shù)據(jù)描述
2.1商城首頁(yè)接口
(1)請(qǐng)求路徑:xxx.com/SmallProgAPI/Home/GetIndexData
- 請(qǐng)求參數(shù)
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
openId | 是 | OpenID | String |
?
(3)返回值說明:Json格式
?
返回結(jié)果:
{"success":true,"msg":"","code":0,"data":{"HomeTopicPath":"http://localhost/AppletHome/data/default.json","Vid":0,"QQMapKey":""}} |
?
?
返回結(jié)果參數(shù)說明:
首頁(yè)信息?data
字段名稱 | 字段編碼 | 備注 |
首頁(yè)專題json包路徑 | HomeTopicPath | |
版本號(hào) | Vid | |
QQ地圖接口key | QQMapKey |
2.2商城首頁(yè)商品信息接口
(1)請(qǐng)求路徑:xxx.com/SmallProgAPI/Home/GetIndexProductData
- 請(qǐng)求參數(shù)
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
openId | 是 | OpenID | String |
pageIndex | 是 | 當(dāng)前頁(yè)碼 | Int |
pageSize | 是 | 每頁(yè)顯示記錄數(shù) | Int |
?
(3)返回值說明:Json格式
?
返回結(jié)果:
{"success":true,"msg":"","code":0,"data":[{"ProductId":1695,"ProductName":"【滿500減50】ONLY夏季新款蕾絲鏤空收腰短袖連衣裙女|117207529","SalePrice":"479.2","ThumbnailUrl160":"http://localhost:32223//Storage/Shop/1/Products/1695/1_350.png","MarketPrice":"0","CartQuantity":0,"HasSKU":false,"SkuId":"1695_0_0_0","ActiveId":0,"ActiveType":0,"Stock":22},{"ProductId":1696,"ProductName":"官方階梯價(jià)結(jié)算商品","SalePrice":"15.98","ThumbnailUrl160":"http://localhost:32223//Storage/Shop/1/Products/1696/1_350.png","MarketPrice":"0","CartQuantity":0,"HasSKU":false,"SkuId":"1696_0_0_0","ActiveId":0,"ActiveType":0,"Stock":446},{"ProductId":1697,"ProductName":"官方結(jié)算002","SalePrice":"159.18","ThumbnailUrl160":"http://localhost:32223//Storage/Shop/1/Products/1697/1_350.png","MarketPrice":"0","CartQuantity":0,"HasSKU":false,"SkuId":"1697_0_0_0","ActiveId":0,"ActiveType":0,"Stock":1831},{"ProductId":1698,"ProductName":"官方結(jié)算001","SalePrice":"159.18","ThumbnailUrl160":"http://localhost:32223//Storage/Shop/1/Products/1698/1_350.png","MarketPrice":"0","CartQuantity":0,"HasSKU":false,"SkuId":"1698_0_0_0","ActiveId":0,"ActiveType":0,"Stock":25},{"ProductId":1699,"ProductName":"王小鴨新款夏裝大碼短袖中長(zhǎng)款裙子女士大擺真絲2018a字裙連衣裙","SalePrice":"639.2","ThumbnailUrl160":"http://localhost:32223//Storage/Shop/1/Products/1699/1_350.png","MarketPrice":"0","CartQuantity":0,"HasSKU":false,"SkuId":"1699_0_0_0","ActiveId":0,"ActiveType":0,"Stock":480}]} |
?
?
返回結(jié)果參數(shù)說明:
首頁(yè)信息?data
字段名稱 | 字段編碼 | 備注 |
商品ID | ProductId | |
商品名稱 | ProductName | |
價(jià)格 | SalePrice | |
圖片 | ThumbnailUrl160 | |
市場(chǎng)價(jià) | MarketPrice | |
購(gòu)物車數(shù)量 | CartQuantity | |
是否有規(guī)格 | HasSKU | |
規(guī)格Id | SkuId | |
活動(dòng)Id | ActiveId | |
活動(dòng)類型 | ActiveType | 1=限時(shí)購(gòu),0=無活動(dòng) |
庫(kù)存數(shù)量 | Stock |
0 Comments.