diff --git a/apis/interfaces/gout.js b/apis/interfaces/gout.js
index 07e4365..e9e7ed4 100644
--- a/apis/interfaces/gout.js
+++ b/apis/interfaces/gout.js
@@ -43,9 +43,12 @@ const goutCover = (case_id, data) => {
}
// 查看尿酸
-const lastLog = () => {
+const lastLog = type => {
return request({
- url: 'gout/result/last_log'
+ url: 'gout/result/last_log',
+ data: {
+ type
+ }
})
}
diff --git a/pages.json b/pages.json
index 32d6f48..bfb0b6f 100644
--- a/pages.json
+++ b/pages.json
@@ -40,7 +40,7 @@
"aliasPath": "/purine/index",
"name": "purineIndex",
"style":{
- "navigationBarTitleText":"嘌呤列表"
+ "navigationBarTitleText":"健康饮食"
}
}, {
"path": "pages/purine/details",
@@ -55,7 +55,7 @@
"name": "uricacidIndex",
"auth": true,
"style":{
- "navigationBarTitleText":"尿酸值"
+ "navigationBarTitleText":"记录"
}
}, {
"path": "pages/uricacid/list",
@@ -63,7 +63,7 @@
"name": "uricacidList",
"auth": true,
"style":{
- "navigationBarTitleText":"尿酸列表"
+ "navigationBarTitleText":"记录列表"
}
}, {
"path": "pages/attestation/index",
@@ -137,7 +137,7 @@
}],
"borderStyle": "white",
"backgroundColor": "#FFFFFF",
- "selectedColor": "#6a7df3",
+ "selectedColor": "#4490ff",
"color": "#9d9d9d",
"iconWidth": "26px",
"spacing": "0",
diff --git a/pages/index/details.vue b/pages/index/details.vue
index 6faa65b..9d00cc0 100644
--- a/pages/index/details.vue
+++ b/pages/index/details.vue
@@ -4,17 +4,12 @@
-
- 参与活动
-
-
-
- 参与活动
-
-
- 已参与
-
-
+
+ 记录三高
+
+
+ 活动分享
+
@@ -123,8 +118,11 @@
},
methods: {
// 商品详情数据
- detailsInfo() {
- goods(this.$Route.query.id).then(res => {
+ detailsInfo() {
+ goods(2).then(res => {
+
+ console.log(res)
+
this.detailsData = res
this.detailsImg = res.content.replace(/\
- 嘌呤查询
- 知识小科普
+ 健康饮食
+ 食品知识小科普
diff --git a/pages/uricacid/index.vue b/pages/uricacid/index.vue
index 682a2b3..56c4093 100644
--- a/pages/uricacid/index.vue
+++ b/pages/uricacid/index.vue
@@ -1,9 +1,14 @@
-
+
+
+ 血糖记录
+ 血脂记录
+ 血压记录
+
- {{ lastData.log ? lastData.log.created_at : '您还没有上传过尿酸值' }}
+ {{ lastData.log ? lastData.log.created_at : '您还没有上传过血糖值' }}
所有记录
@@ -19,17 +24,17 @@
- 男性尿酸指标 {{ lastData.Newscope.man }}
- 女性尿酸指标 {{ lastData.Newscope.woman }}
+ 男性血糖指标 {{ lastData.Newscope.man }}
+ 女性血糖指标 {{ lastData.Newscope.woman }}
- 尿酸趋势分析
+ 血糖趋势分析
- 当前尿酸值为{{ lastData.log.quantity }}umol,
+ 当前血糖值为{{ lastData.log.quantity }}umol,
{{ lastData.log.quantity > lastData.Newscope.scope.max ? '高于' : '低于' }}{{ lastData.Newscope.scope.max }}umol
{{ lastData.log.quantity > lastData.Newscope.scope.max ? '您的尿酸水平偏高,根据治疗指南需要进行治疗干预。需要生活控制(多喝水,饮食控制、并发症危险因素的控制、碱化尿液),配合药物治疗。具体情况请遵循医嘱。' : '您的尿酸水平控制很棒,请继续保持' }}
@@ -104,17 +109,23 @@
cover : {
showpath: '',
path : ''
- }
+ },
+ tabType : 'hyperglycemia'
}
},
onShow() {
// 获取尿酸数据
this.lastInfo();
},
- methods: {
+ methods: {
+ // 切换数据
+ onTab(e){
+ this.tabType = e;
+ this.lastInfo()
+ },
// 尿酸数据
lastInfo() {
- lastLog().then(res => {
+ lastLog(this.tabType).then(res => {
this.lastData.Newscope = res.scope
this.lastData.log = res.log
this.lastData.caseId = res.case.gout_case_id
@@ -188,8 +199,27 @@