From 1f45ed3e57161df9f8c59de4879b5657b0f58dab Mon Sep 17 00:00:00 2001
From: zhangmanman <994797151@qq.com>
Date: Fri, 14 Jan 2022 12:07:59 +0800
Subject: [PATCH] =?UTF-8?q?[=E6=A1=A3=E6=A1=88]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apis/interfaces/user.js | 12 +++++--
pages.json | 7 ++++
pages/index/files.vue | 77 +++++++++++++++++++++++++++++++++++++++++
pages/user/index.vue | 10 ++++--
4 files changed, 102 insertions(+), 4 deletions(-)
create mode 100644 pages/index/files.vue
diff --git a/apis/interfaces/user.js b/apis/interfaces/user.js
index b94d2ab..7b7de48 100644
--- a/apis/interfaces/user.js
+++ b/apis/interfaces/user.js
@@ -14,6 +14,14 @@ const info = () =>{
})
}
-export {
- info
+// 我的档案
+const records = () =>{
+ return request({
+ url: 'health/records'
+ })
+}
+
+export {
+ info,
+ records
}
diff --git a/pages.json b/pages.json
index 19ec562..f6c2851 100644
--- a/pages.json
+++ b/pages.json
@@ -20,6 +20,13 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
+ }, {
+ "path": "pages/index/files",
+ "name": "indexFiles",
+ "style": {
+ "navigationBarTitleText": "健康档案",
+ "navigationStyle": "custom"
+ }
}, {
"path": "pages/record/index",
"name": "Record",
diff --git a/pages/index/files.vue b/pages/index/files.vue
new file mode 100644
index 0000000..2952a51
--- /dev/null
+++ b/pages/index/files.vue
@@ -0,0 +1,77 @@
+
+
+
+
+ 性别
+
+
+ {{ recordsData.sex == 1 ? '男' : '女' }}
+
+
+
+
+ 年龄
+
+
+ {{ recordsData.age }}
+
+
+
+
+ 身高
+
+
+ {{ recordsData.height }}cm
+
+
+
+
+ 体重
+
+
+ {{ recordsData.weight }}kg
+
+
+
+
+
+
+
+
diff --git a/pages/user/index.vue b/pages/user/index.vue
index 382a52a..4de2ddc 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -89,7 +89,7 @@
ZH钱包
-
+
健康档案
@@ -182,7 +182,13 @@
if(this.userInfo.is_wallet) this.$Router.push({name: 'WalletProperty'})
else this.$Router.push({name: 'WalletAdd'})
}
- },
+ },
+ // 个人档案
+ onFiles(){
+ if(this.isLogin()){
+ this.$Router.push({name: 'indexFiles'})
+ }
+ },
// 按钮导航
onBtn(name, params){
if(this.isLogin()){