diff --git a/pages.json b/pages.json index 75f7690..819997a 100644 --- a/pages.json +++ b/pages.json @@ -41,43 +41,39 @@ "navigationBarTitleText": "基本信息填写" } }, - { - "path": "pages/add-stroke/add-stroke", - "style": { - "navigationBarTitleText": "添加行程" - } - }, - { - "path": "pages/apply-code/apply-code", - "style": { - "navigationBarTitleText": "申请健康码" - } - }, - { - "path": "pages/statistics/statistics", - "style": { "navigationBarTitleText": "统计" } - }, - { - "path": "pages/my-code/my-code", - "style": { - "navigationBarTitleText": "我的健康打卡" - } - }, - { - "path": "pages/my-trips/my-trips", - "style": { - "navigationBarTitleText": "我的行程" - } - } - ,{ - "path" : "pages/healthy-card/healthy-card", - "style" : {} - } - ,{ - "path" : "pages/user-code/user-code", - "style" : {} - } - ], + { + "path": "pages/add-stroke/add-stroke", + "style": { + "navigationBarTitleText": "添加行程" + } + }, + { + "path": "pages/apply-code/apply-code", + "style": { + "navigationBarTitleText": "申请健康码" + } + }, + { + "path": "pages/my-code/my-code", + "style": { + "navigationBarTitleText": "我的健康打卡" + } + }, + { + "path": "pages/my-trips/my-trips", + "style": { + "navigationBarTitleText": "我的行程" + } + }, + { + "path": "pages/healthy-card/healthy-card", + "style": {} + }, + { + "path": "pages/user-code/user-code", + "style": {} + } + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "山大健康码", diff --git a/store/modules/statistics/mutations.js b/store/modules/statistics/mutations.js index dd8489d..4e42cea 100644 --- a/store/modules/statistics/mutations.js +++ b/store/modules/statistics/mutations.js @@ -23,7 +23,13 @@ const mutations = { * @param {array} data */ setShoolSignNumber(state, data) { - state.shoolSignNumber = data || []; + const arr = [ + { name: '正常', number: '-' }, + { name: '发烧', number: '-' }, + { name: '其他', number: '-' }, + { name: '未上报', number: '-' }, + ]; + state.shoolSignNumber = data || arr; }, }; diff --git a/store/modules/statistics/state.js b/store/modules/statistics/state.js index 0770464..8e546cb 100644 --- a/store/modules/statistics/state.js +++ b/store/modules/statistics/state.js @@ -1,7 +1,12 @@ const state = { userSigns: [], // 用户个人打卡记录 shoolSigns: [], // 校园的打卡记录 - shoolSignNumber: [], // 健康上报数目统计 + shoolSignNumber: [ + { name: '正常', number: '-' }, + { name: '发烧', number: '-' }, + { name: '其他', number: '-' }, + { name: '未上报', number: '-' }, + ], // 健康上报数目统计 }; export default state;