文档
测试

首页v2

POST
http://localhost/fitness/ui/getHomeResource/v2

请求参数

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

响应参数

参数名
类型
描述
必填
introUrl
string
示例:https://www.365healthy.net/mobile/page/intro
必填
homeItems
array
数据列表
必填
homeLists
array
数据列表
必填
docType
string
示例:
必填
id
int
示例:1
必填
linkUrl
string
示例:https://www.365healthy.net/mobile/page/intro
必填
picUrl
string
示例:https://www.365healthy.net/uploadFiles/images/app/banner/b1.png
必填
name
string
示例:轮播图
必填
sort
int
示例:1
必填
crossvertica
int
示例:0
必填
isMember
int
示例:1
必填
hasUserInfo
int
示例:1
必填

响应格式

{ "homeItems": [ { "name": "", "homeLists": [ { "linkUrl": "https://www.365healthy.net/mobile/page/intro", "id": 1, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/banner/b1.png" }, { "linkUrl": "https://www.365healthy.net/mobile/page/videoList/1", "id": 2, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/banner/b2.png" }, { "linkUrl": "https://www.365healthy.net/mobile/page/videoList/1", "id": 3, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/banner/b3.png" } ], "crossvertica": 0, "sort": 1 }, { "name": "糖胖逆转", "homeLists": [ { "id": 1, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/diabetes@3x.png", "name": "糖尿病", "hotType": 1, "state": 1 }, { "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/fatty_liver@3x.png", "id": 2, "name": "脂肪肝", "state": 2, "hotType": 0 }, { "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/fat@3x.png", "id": 3, "name": "肥胖", "hotType": 1, "state": 3 }, { "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/blood@3x.png", "id": 4, "name": "高血脂", "hotType": 1, "state": 4 } ], "crossvertica": 0, "sort": 2 }, { "name": "减肥增肌", "homeLists": [ { "id": 5, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/bg/weight.png", "name": "我要减肥", "hotType": 1, "state": 5, "title": "个性化定制减脂减重" }, { "picUrl": "https://www.365healthy.net/uploadFiles/images/app/bg/muscle.png", "id": 6, "name": "我要增肌", "hotType": 0, "state": 6, "title": "个性化定制增强肌肉" } ], "crossvertica": 0, "sort": 3 }, { "name": "优化管理", "homeLists": [ { "id": 7, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/diabetes@3x.png", "name": "糖尿病", "hotType": 1, "state": 1 }, { "id": 8, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/fatty_liver@3x.png", "name": "脂肪肝", "hotType": 0, "state": 2 }, { "id": 9, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/fat@3x.png", "name": "肥胖", "hotType": 1, "state": 3 }, { "id": 10, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/blood@3x.png", "name": "高血脂", "hotType": 1, "state": 4 } ], "crossvertica": 0, "sort": 4 }, { "name": "血压,BMI,血脂", "homeLists": [ { "dbp": 0, "dbpSetValue": 0, "sbp": 0, "sbpSetValue": 0, "name": "血压" }, { "bmi": 22.3, "bmiSetValue": 24.9, "height": 184, "weight": 75.5, "name": "BMI" }, { "hdlc": 0, "ldlc": 0, "tc": 0, "tg": 0, "name": "血脂" } ], "crossvertica": 0, "sort": 5 }, { "name": "我的医生", "homeLists": [ { "id": 10, "picUrl": "https://www.365healthy.net/uploadFiles/images/avatar/a9c3a66f-4d6c-425c-ad49-51bed1700b6d.png", "skill": "主任医生|内科学", "hospital": "浙江大学医学院附属第二医院", "name": "单鹏飞", "focusState": 0, "type": 1, "hospitalLevel": "三甲", "docId": 36 } ], "crossvertica": 0, "sort": 6 }, { "name": "自我管理", "homeLists": [ { "latestWeight": 85, "idealWeight": 67, "targetWeight": 59.9, "name": "体重", "totalNumber": 4, "completeNumber": 4, "sort": 1 }, { "dietCaloric": 1017, "ingestible": 540, "totalCaloric": 1005, "name": "运动与饮食", "sportCalorics": 552, "sort": 2 }, { "habState": 0, "bgState": 0, "hbatime": "", "hba": 0.0, "record": 0.0, "name": "血糖", "time": "", "sort": 3 }, { "hiplineRecord": 44.0, "name": "腰围", "recordDate": "2022-03-25", "sort": 4, "waistlineRecord": 100.5 }, { "name": "经期", "menstruationDays": 5, "sort": 5 }, { "recordDate": "2022-03-25", "waterCapacity": 1000, "name": "喝水", "sort": 6 } ], "crossvertica": 1, "sort": 7 }, { "name": "健康工具", "homeLists": [ { "id": 0, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/banner/b1.png", "name": "健康评估", "hotType": 1, "state": 1 }, { "id": 0, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/home_weight@3x.png", "name": "体脂工具", "hotType": 1, "state": 2 }, { "id": 0, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/home_diet@3x.png", "name": "饮食推荐", "hotType": 0, "state": 3 }, { "id": 0, "picUrl": "https://www.365healthy.net/uploadFiles/images/app/icon/home_movement@3x.png", "name": "运动记录", "hotType": 0, "state": 4 } ], "crossvertica": 0, "sort": 8 }, { "name": "健康咨询", "homeLists": [ { "id": 105, "picUrl": "https://www.365healthy.net/uploadFiles/images/avatar/db422968-747e-4cd2-8a2f-3aeb0b06a3ae.png", "skill": "营养师.营养学", "hospital": "妙智康", "name": "童雅芳", "focusState": 1, "type": 3, "hospitalLevel": "三甲", "docId": 4196 }, { "id": 10, "picUrl": "https://www.365healthy.net/uploadFiles/images/avatar/a9c3a66f-4d6c-425c-ad49-51bed1700b6d.png", "skill": "主任医生.内科学", "hospital": "浙江大学医学院附属第二医院", "name": "单鹏飞", "focusState": 1, "type": 1, "hospitalLevel": "三甲", "docId": 36 } ], "crossvertica": 0, "sort": 9 } ], "hasUserInfo": 1, "introUrl": "https://www.365healthy.net/mobile/page/intro", "isMember": 0 }

首页展示

########################### 首页展示 ####################### /** * 轮播图 */ BANNER(1, "轮播图"), /** * 糖胖逆转 */ REVERSE(2, "糖胖逆转"), /** * 减肥增肌 */ WEIGHT_MUSCLE(3, "减肥增肌"), /** * 优化管理 */ OPTIMIZE_MANAGEMENT(4, "优化管理"), /** * 血压,BMI,血脂 */ PRESSURE_BMI_BLOOD_FAT(5, "血压,BMI,血脂"), /** * 我的医生 */ MY_DOCTOR(6, "我的医生"), /** * 自我管理 */ SELF_MANAGEMENT(7, "自我管理"), /** * 健康工具 */ HEALTH_TOOL(8, "健康工具"), /** * 健康咨询 */ HEALTH_INQUIRY(9, "健康咨询"), ;

自我管理

########################### 自我管理展示 ####################### /** * 体重 */ WEIGHT(1, "体重"), /** * 饮食与运动 */ SPORT_DIET(2, "饮食与运动"), /** * 血糖 */ BLOOD_SUGAR(3, "血糖"), /** * 腰围 */ WAISTLINE(4, "腰围"), /** * 经期 */ MENSTRUAL_PERIOD(5, "经期"), /** * 喝水 */ WATER(6, "喝水"), ;