多門店首頁接口
- 請求路徑:com/SmallProgAPI/Home/GetShopsIndexData
- 請求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
? |
- 返回值說明:Json格式
返回結(jié)果:
{"success":true,"msg":"","code":0,"data":{"QQMapKey":"SYJBZ-DSLR3-IWX3Q-3XNTM-ELURH-23FTP","TopSlide":null,"Menu":[{"Id":249,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709121423492871660.jpg","Url":"2,http://himall2-7test.himalltest.kuaidiantong.cn/m-wap/shopbranch/index/117","DisplaySequence":23,"TypeId":14,"Description":"悅湖山"},{"Id":252,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709121424067911390.jpg","Url":"1,http://himall2-7test.himalltest.kuaidiantong.cn/m-wap/shopbranch/tags/10","DisplaySequence":26,"TypeId":14,"Description":"香煙"},{"Id":253,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709121424162920970.jpg","Url":"2,http://himall2-7test.himalltest.kuaidiantong.cn/m-wap/shopbranch/index/63","DisplaySequence":27,"TypeId":14,"Description":"新華"},{"Id":275,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709121423391212000.jpg","Url":"1,http://himall2-7test.himalltest.kuaidiantong.cn/m-wap/shopbranch/tags/19","DisplaySequence":32,"TypeId":14,"Description":"yuyi"},{"Id":276,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709121425274707980.jpg","Url":"2,http://himall2-7test.himalltest.kuaidiantong.cn/m-wap/shopbranch/index/69","DisplaySequence":33,"TypeId":14,"Description":"水果"},{"Id":277,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709121425493116370.jpg","Url":"3,http://himall2-7test.himalltest.kuaidiantong.cn/m-wap/topic/detail/114","DisplaySequence":34,"TypeId":14,"Description":"糧油"},{"Id":278,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709121427346593050.jpg","Url":"1,http://himall2-7test.himalltest.kuaidiantong.cn/m-wap/shopbranch/tags/6","DisplaySequence":35,"TypeId":14,"Description":"水果1"},{"Id":284,"ShopId":0,"ImageUrl":"http://localhost:4573//temp/201709141057334502460.jpg","Url":"4,http://www.baidu.com","DisplaySequence":38,"TypeId":14,"Description":"跳轉(zhuǎn)鏈接"}],"ADImg1":null,"ADImg2":null,"ADImg3":null,"ADImg4":null,"ADImg5":null,"MiddleSlide":null}} |
?
?
返回結(jié)果參數(shù)說明:
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
地圖Key | QQMapKey | string | 是 | |
頂部輪播圖 | TopSlide | Json列表 | 是 | |
菜單 | Menu | Json列表 | 是 | |
中間輪播圖 | MiddleSlide | Json列表 | 是 | |
廣告圖 | ADImg1 | Json | 是 | |
ADImg2 | Json | 是 | ||
ADImg3 | Json | 是 | ||
ADImg4 | Json | 是 | ||
ADImg5 | Json | 是 |
數(shù)據(jù)字段信息
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
圖片地址 | ImageUrl | string | 否 | |
鏈接地址 | Url | String | 否 | 數(shù)據(jù)格式為:
類型(1門店標(biāo)簽??2門店??3專題??4自定義),地址 |
描述 | Description | string | 是 |
2.4門店列表接口
- 請求路徑:com/?SmallProgAPI/Home/GetStoreList
- 請求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
fromLatLng | 是 | 經(jīng)緯度 | string |
keyWords | 否 | 關(guān)鍵字 | string |
tagsId | 否 | 標(biāo)簽編號 | int |
shopId | 否 | 商家編號 | int |
pageNo | 是 | 頁碼 | int |
pageSize | 是 | 每頁顯示數(shù) | Int |
openId | 否 | 用戶openid | string |
?
- 返回值說明:Json格式
返回結(jié)果:
{"success":true,"msg":"","code":0,"data":{"Total":2,"CityInfo":{"Id":222,"Name":"太原市"},"CurrentAddress":"平陽路96-12號","Stores":[{"CommentScore":5.00,"SaleCount":20,"SaleCountByMonth":0,"CartQuantity":0,"ShowProducts":[{"Id":1171,"ProductName":"測試全麥風(fēng)1142","MarketPrice":333.00,"MinSalePrice":333.00,"HasSKU":false,"SaleCount":0,"HighCommentCount":0,"DefaultImage":"http://localhost:4573//Storage/Shop/1/Products/1171/1_150.png"}],"ShopAllActives":{"ShopActives":null,"FreeFreightAmount":0.0,"ShopCoupons":[{"Id":157,"CouponName":"10","Price":10.0,"OrderAmount":"100.00","ShopId":1,"ShopName":null,"EndTime":"2017-11-24T00:00:00","strEndTime":"2017-11-24","StartTime":"2017-10-24T00:00:00","strStartTime":"2017-10-24","Num":0,"useNum":0,"inventory":0,"perMax":0,"IsUse":0,"UseArea":0,"Remark":null}],"MinCouponPrice":10.0,"MaxCouponPrice":10.0},"ShopBranch":{"ShopName":null,"ShopBranchInTagNames":null,"ShopBranchTagId":null,"Id":11,"ShopId":1,"ShopBranchName":"山西太原","AddressId":0,"AddressDetail":"太原市小店區(qū)塢城街道平陽路96-10","AddressFullName":null,"ContactUser":null,"ContactPhone":"17012345780","Status":0,"CreateDate":"0001-01-01T00:00:00","UserName":null,"PasswordOne":null,"PasswordTwo":null,"RegionIdPath":null,"ServeRadius":0,"Longitude":112.553,"Latitude":37.8143,"ShopImages":"http://localhost:4573//temp/201709141033218603790.jpg","Distance":0.02,"DistanceUnit":"20M","Enabled":false,"AddressPath":null,"IsStoreDelive":false,"IsAboveSelf":true,"DeliveFee":0,"FreeMailFee":0,"DeliveTotalFee":0,"StoreOpenStartTime":"00:00:00","StoreOpenEndTime":"00:00:00","RecommendSequence":9223372036854775807,"IsRecommend":false,"CommentScore":0.0,"DaDaShopId":null},"Products":[]},{"CommentScore":5.00,"SaleCount":1,"SaleCountByMonth":0,"CartQuantity":0,"ShowProducts":[{"Id":732,"ProductName":"商品2號","MarketPrice":250.00,"MinSalePrice":150.00,"HasSKU":true,"SaleCount":1,"HighCommentCount":1,"DefaultImage":"http://localhost:4573//Storage/Shop/292/Products/732/1_150.png"}],"ShopAllActives":{"ShopActives":null,"FreeFreightAmount":0.0,"ShopCoupons":[],"MinCouponPrice":0.0,"MaxCouponPrice":0.0},"ShopBranch":{"ShopName":null,"ShopBranchInTagNames":null,"ShopBranchTagId":null,"Id":27,"ShopId":292,"ShopBranchName":"太原店","AddressId":0,"AddressDetail":"太原市尖草坪區(qū)光社街道新店街杜家村劇場(匯陽小區(qū)西北)","AddressFullName":null,"ContactUser":null,"ContactPhone":"18390838220","Status":0,"CreateDate":"0001-01-01T00:00:00","UserName":null,"PasswordOne":null,"PasswordTwo":null,"RegionIdPath":null,"ServeRadius":5,"Longitude":112.577,"Latitude":37.9482,"ShopImages":"http://localhost:4573//temp/201704081055033013660.jpg","Distance":15.05,"DistanceUnit":"15.05KM","Enabled":false,"AddressPath":null,"IsStoreDelive":false,"IsAboveSelf":false,"DeliveFee":0,"FreeMailFee":0,"DeliveTotalFee":0,"StoreOpenStartTime":"00:00:00","StoreOpenEndTime":"00:00:00","RecommendSequence":9223372036854775807,"IsRecommend":false,"CommentScore":0.0,"DaDaShopId":null},"Products":[]}]}} |
?
?
返回結(jié)果參數(shù)說明:
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
總量 | Total | int | 否 | |
城市信息 | CityInfo | Json | 是 | |
當(dāng)前位置 | CurrentAddress | string | 是 | |
門店列表 | Stores | Json列表 | 是 |
城市信息?CityInfo
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
城市編號 | Id | int | 否 | |
城市名稱 | Name | String | 否 |
門店列表信息?Stores
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
銷量 | SaleCount | Int | 否 | |
月銷量 | SaleCountByMonth | int | 否 | |
評分 | CommentScore | decimal | 否 | |
活動 | ShopAllActives | json列表 | 是 | |
門店信息 | ShopBranch | json | 是 | 見2.4 |
商品 | ShowProducts | json列表 | 是 | |
門店商品數(shù)量 | ProductCount | int | 是 |
?
商品?ShowProducts
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
商品編號 | Id | int | 否 | |
商品名稱 | ProductName | string | 否 | |
市場價(jià) | MarketPrice | decimal | 否 | |
最低售價(jià) | MinSalePrice | decimal | 否 | |
是否有規(guī)格 | HasSKU | bool | 否 | |
商品略縮圖 | DefaultImage | string | 是 | |
銷量 | SaleCount | int | 否 | |
好評數(shù) | HighCommentCount | int | 否 |
?
門店(商家)活動信息?ShopAllActives
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
商家活動 | ShopActives | json列表 | 是 | |
滿額免運(yùn)費(fèi)額度 | FreeFreightAmount | decimal | 否 | |
優(yōu)惠券集 | ShopCoupons | Json列表 | 是 | |
最小優(yōu)惠券面額 | MinCouponPrice | Decimal | 否 | |
最大優(yōu)惠券面額 | MaxCouponPrice | decimal | 否 |
商家活動信息?ShopActives
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
活動名稱 | ActiveName | string | 是 | |
商家編號 | ShopId | int | 是 |
優(yōu)惠券信息?ShopCoupons
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
編號 | Id | json列表 | 是 | |
優(yōu)惠券名稱 | CouponName | decimal | 否 | |
價(jià)值 | Price | Json列表 | 是 | |
使用條件 | OrderAmount | Decimal | 否 | |
商鋪編號 | ShopId | decimal | 否 | |
商鋪名稱 | ShopName | string | 否 | |
到期時(shí)間 | EndTime | datetime | 否 | |
strEndTime | string | 否 | ||
開始時(shí)間 | StartTime | datetime | 否 | |
strStartTime | string | 否 |
0 Comments.