文档
测试

商城首页()

POST
http://localhost/shopping/getMallHome

请求头

参数名
类型
描述
必填

请求参数

参数名
类型
描述
必填
phone
string
示例:{{phone}}
必填
token
string
示例:{{token}}
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:获取成功
必填
state
int
示例:1
必填
mallHome
object
数据字典
必填
vipLinks
array
数据列表
必填
phase
string
示例:套餐
必填
average
int
示例:198
必填
originalPrice
int
示例:198
必填
name
string
示例:智能化管理套餐
必填
packageId
int
示例:1
必填
vipType
string
示例:月卡
必填
id
int
示例:7
必填
preferentialPrice
int
示例:198
必填
goodsLists
array
数据列表
必填
picUrl
string
示例:https://www.365healthy.net/uploadFiles/images/resource/bodyFatScaleImageWhite.png
必填
originalPrice
int
示例:328
必填
price
int
示例:168
必填
name
string
示例:体脂秤白色,电池款
必填
id
int
示例:1
必填
title
string
示例:体脂秤
必填
hot
int
示例:1
必填
content
string
示例:商城首页体脂秤文案
必填
banners
array
数据列表
必填
goodsId
int
示例:1
必填
id
int
示例:1
必填
isSelect
int
示例:1
必填
picUrl
string
示例:https://www.365healthy.net/uploadFiles/images/resource/mallHomePageBanner.png
必填
title
string
示例:体脂秤
必填

响应格式

{ "msg": "获取成功", "state": 1, "mallHome": { "vipLinks": [ { "phase": "套餐", "average": 198, "originalPrice": 198, "name": "智能化管理套餐", "packageId": 1, "vipType": "月卡", "id": 7, "preferentialPrice": 198 }, { "phase": "套餐", "average": 1096, "originalPrice": 1096, "name": "营养师管理套餐", "packageId": 2, "vipType": "月卡", "id": 14, "preferentialPrice": 1096 }, { "phase": "套餐", "average": 3258, "originalPrice": 3258, "name": "尊享 VIP 管理套餐", "packageId": 4, "vipType": "月卡", "id": 18, "preferentialPrice": 3258 } ], "goodsLists": [ { "picUrl": "https://www.365healthy.net/uploadFiles/images/resource/bodyFatScaleImageWhite.png", "originalPrice": 328, "price": 168, "name": "体脂秤白色,电池款", "id": 1, "title": "体脂秤", "hot": 1, "content": "商城首页体脂秤文案" }, { "picUrl": "https://www.365healthy.net/uploadFiles/images/resource/bodyFatScaleImageWhite.png", "originalPrice": 328, "price": 168, "name": "体脂秤白色,USB款", "id": 2, "title": "体脂秤", "hot": 1, "content": "商城首页体脂秤文案" }, { "picUrl": "https://www.365healthy.net/uploadFiles/images/resource/bodyFatScaleImageBlue.png", "originalPrice": 328, "price": 168, "name": "体脂秤蓝色,电池款", "id": 3, "title": "体脂秤", "hot": 1, "content": "商城首页体脂秤文案" }, { "picUrl": "https://www.365healthy.net/uploadFiles/images/resource/bodyFatScaleImageBlue.png", "originalPrice": 328, "price": 168, "name": "体脂秤蓝色,USB款", "id": 4, "title": "体脂秤", "hot": 1, "content": "商城首页体脂秤文案" } ], "banners": [ { "goodsId": 1, "id": 1, "isSelect": 1, "picUrl": "https://www.365healthy.net/uploadFiles/images/resource/mallHomePageBanner.png", "title": "体脂秤" }, { "goodsId": 2, "id": 2, "isSelect": 1, "picUrl": "https://www.365healthy.net/uploadFiles/images/resource/mallHomePageBanner.png", "title": "体脂秤" }, { "goodsId": 3, "id": 3, "isSelect": 1, "picUrl": "https://www.365healthy.net/uploadFiles/images/resource/mallHomePageBanner.png", "title": "体脂秤" } ] } }