{{ detail.completionDesc }}
+{{ item.name }}
+任务回看
+目标
+{{ detail.target }}
+目标解释
+diff --git a/src/api/development.js b/src/api/development.js
index 5d44ab6..67f33da 100644
--- a/src/api/development.js
+++ b/src/api/development.js
@@ -19,7 +19,8 @@ export const apiDevelopment = {
CurrentTask,
UploadFile,
SubmitTask,
- TaskDetail
+ TaskDetail,
+ AchieveList //成就列表
};
export default apiDevelopment;
@@ -81,7 +82,7 @@ function TaskDetail(params) {
method: 'get',
params: {
personId: personId,
- ...params
+ ...params
}
});
}
@@ -96,7 +97,7 @@ function SubmitTask(param) {
method: 'post',
data: {
personId: personId,
- ...param
+ ...param
}
});
}
@@ -106,11 +107,11 @@ function SubmitTask(param) {
*/
function UploadFile(param) {
return http({
- url: "/api/File/Upload",
- method: "post",
+ url: '/api/File/Upload',
+ method: 'post',
data: param,
- headers: { "Content-Type": "multipart/form-data" },
- transformRequest: function(data) {
+ headers: { 'Content-Type': 'multipart/form-data' },
+ transformRequest: function (data) {
const formData = new FormData();
let i = data.formData.entries();
let j = i.next();
@@ -122,3 +123,15 @@ function UploadFile(param) {
}
});
}
+/**
+ *
+ */
+function AchieveList() {
+ return http({
+ url: '/api/Level/AchieveList',
+ method: 'get',
+ params: {
+ personId: personId
+ }
+ });
+}
diff --git a/src/api/health-user.js b/src/api/health-user.js
index ad4c235..f5a38a2 100644
--- a/src/api/health-user.js
+++ b/src/api/health-user.js
@@ -8,7 +8,8 @@ export const APIHealthUser = {
getHomeData, //今日体征感知
getHisData, //体征历史数据
getCalendar, //体征历史数据日历
- getReportData //洞悉
+ getReportData, //洞悉
+ saveDiary //保存情绪日记
};
export default APIHealthUser;
function addPerson(params) {
@@ -76,3 +77,10 @@ function getReportData(params) {
data: params
});
}
+function saveDiary(params) {
+ return request({
+ url: `/api/HealthyData/SaveDiary`,
+ method: 'post',
+ data: params
+ });
+}
diff --git a/src/assets/development/images/achieve/1.png b/src/assets/development/images/achieve/1.png
new file mode 100644
index 0000000..e8dda62
Binary files /dev/null and b/src/assets/development/images/achieve/1.png differ
diff --git a/src/assets/development/images/achieve/10.png b/src/assets/development/images/achieve/10.png
new file mode 100644
index 0000000..2246fb5
Binary files /dev/null and b/src/assets/development/images/achieve/10.png differ
diff --git a/src/assets/development/images/achieve/11.png b/src/assets/development/images/achieve/11.png
new file mode 100644
index 0000000..35fd61d
Binary files /dev/null and b/src/assets/development/images/achieve/11.png differ
diff --git a/src/assets/development/images/achieve/12.png b/src/assets/development/images/achieve/12.png
new file mode 100644
index 0000000..04bfaa6
Binary files /dev/null and b/src/assets/development/images/achieve/12.png differ
diff --git a/src/assets/development/images/achieve/2.png b/src/assets/development/images/achieve/2.png
new file mode 100644
index 0000000..b69e27c
Binary files /dev/null and b/src/assets/development/images/achieve/2.png differ
diff --git a/src/assets/development/images/achieve/3.png b/src/assets/development/images/achieve/3.png
new file mode 100644
index 0000000..c17f886
Binary files /dev/null and b/src/assets/development/images/achieve/3.png differ
diff --git a/src/assets/development/images/achieve/4.png b/src/assets/development/images/achieve/4.png
new file mode 100644
index 0000000..9f871bd
Binary files /dev/null and b/src/assets/development/images/achieve/4.png differ
diff --git a/src/assets/development/images/achieve/5.png b/src/assets/development/images/achieve/5.png
new file mode 100644
index 0000000..2be8375
Binary files /dev/null and b/src/assets/development/images/achieve/5.png differ
diff --git a/src/assets/development/images/achieve/6.png b/src/assets/development/images/achieve/6.png
new file mode 100644
index 0000000..6dba16b
Binary files /dev/null and b/src/assets/development/images/achieve/6.png differ
diff --git a/src/assets/development/images/achieve/7.png b/src/assets/development/images/achieve/7.png
new file mode 100644
index 0000000..0249b20
Binary files /dev/null and b/src/assets/development/images/achieve/7.png differ
diff --git a/src/assets/development/images/achieve/8.png b/src/assets/development/images/achieve/8.png
new file mode 100644
index 0000000..6dc361c
Binary files /dev/null and b/src/assets/development/images/achieve/8.png differ
diff --git a/src/assets/development/images/achieve/9.png b/src/assets/development/images/achieve/9.png
new file mode 100644
index 0000000..7e962fe
Binary files /dev/null and b/src/assets/development/images/achieve/9.png differ
diff --git a/src/assets/development/images/achieve/d_01.png b/src/assets/development/images/achieve/d_01.png
new file mode 100644
index 0000000..c838997
Binary files /dev/null and b/src/assets/development/images/achieve/d_01.png differ
diff --git a/src/assets/development/images/achieve_banner.png b/src/assets/development/images/achieve_banner.png
new file mode 100644
index 0000000..d9871bf
Binary files /dev/null and b/src/assets/development/images/achieve_banner.png differ
diff --git a/src/assets/today/images/text.png b/src/assets/today/images/text.png
new file mode 100644
index 0000000..6cfb91a
Binary files /dev/null and b/src/assets/today/images/text.png differ
diff --git a/src/router/router.config.js b/src/router/router.config.js
index 4eb4731..5510e44 100644
--- a/src/router/router.config.js
+++ b/src/router/router.config.js
@@ -74,6 +74,18 @@ export const constantRouterMap = [
component: () => import('@/views/development/taskWearing'),
meta: { title: '佩戴任务', keepAlive: false }
},
+ {
+ path: '/achieveList',
+ name: 'achieveList',
+ component: () => import('@/views/development/achieveList'),
+ meta: { title: '成就列表', keepAlive: false }
+ },
+ {
+ path: '/achieveDetails',
+ name: 'achieveDetails',
+ component: () => import('@/views/development/achieveDetails'),
+ meta: { title: '成就详情', keepAlive: false }
+ },
{
path: '/familyNumber',
name: 'familyNumber',
diff --git a/src/views/development/achieveDetails.vue b/src/views/development/achieveDetails.vue
new file mode 100644
index 0000000..da7def7
--- /dev/null
+++ b/src/views/development/achieveDetails.vue
@@ -0,0 +1,358 @@
+
+
+ {{ detail.completionDesc }} {{ item.name }} 任务回看 目标 {{ detail.target }} 目标解释 {{ item.target }}
+ {{ calcStatus(item.status) }}{{ (item.percent) * 100
+ }}%
+
+ 达成REACH