diff --git a/config/api/api.js b/config/api/api.js index f910fe4..90e3ec0 100644 --- a/config/api/api.js +++ b/config/api/api.js @@ -5,34 +5,34 @@ const sites = `${HEALTH}/sites`; const journeys = `${HEALTH}/journeys`; // 保存个人信息 -const SUBMIT_USER_INFO = `${users}/addInfo`; +export const SUBMIT_USER_INFO = `${users}/addInfo`; // 获取个人信息 -const GET_USER_INFO = `${users}/info`; +export const GET_USER_INFO = `${users}/info`; // 获取健康打卡记录 -const HEALTH_SIGN_HISTORY = `${health}/info`; +export const HEALTH_SIGN_HISTORY = `${health}/info`; -// 健康类型统计 -const HEALTH_TYPE_STATISTICS = `${health}/statistics`; +// 健康上报数目统计 +export const HEALTH_TYPE_STATISTICS = `${health}/statistics`; // 查询健康状态类型 -const HEALTH_TYPE_STATUS = `${health}/type`; +export const HEALTH_TYPE_STATUS = `${health}/type`; // 健康打卡 -const HEALTH_SIGN = `${health}/upload`; +export const HEALTH_SIGN = `${health}/upload`; // 查看自己的打卡记录 -const SCAN_SIGN_INFO = `${sites}/info`; +export const USER_SIGNS = `${sites}/info`; // 扫码统计 -const SCAN_SIGN_HISTORY = `${sites}/statistics`; +export const SCHOOL_SIGNS = `${sites}/statistics`; // 扫码打卡 -const SCAN_SIGN = `${sites}/upload`; +export const SCAN_SIGN = `${sites}/upload`; // 查询行程 -const GET_JOURNEYS = `${journeys}/info`; +export const GET_JOURNEYS = `${journeys}/info`; // 上报行程 -const SUBMIT_JOURNEYS = `${sites}/upload`; +export const SUBMIT_JOURNEYS = `${sites}/upload`; diff --git a/pages.json b/pages.json index c514991..80fb446 100644 --- a/pages.json +++ b/pages.json @@ -1,5 +1,9 @@ { "pages": [ + { + "path": "pages/statistics/statistics", + "style": { "navigationBarTitleText": "统计" } + }, { "path": "pages/index/index", "style": { @@ -16,10 +20,7 @@ "navigationBarTitleText": "打卡" } }, - { - "path": "pages/statistics/statistics", - "style": { "navigationBarTitleText": "统计" } - }, + { "path": "pages/get-code/get-code", "style": { diff --git a/pages/statistics/statistics.vue b/pages/statistics/statistics.vue index 66a5b62..d282278 100644 --- a/pages/statistics/statistics.vue +++ b/pages/statistics/statistics.vue @@ -10,6 +10,7 @@