diff --git a/src/components/suspend/suspend.vue b/src/components/suspend/suspend.vue index 3ebcd92..e8cca0d 100644 --- a/src/components/suspend/suspend.vue +++ b/src/components/suspend/suspend.vue @@ -30,7 +30,7 @@ methods: { // 意见反馈 newProblem() { - uni.switchTab({url: `/pages/health/index`}) + uni.switchTab({url: `/pages/home/index`}) } } }; diff --git a/src/components/systemBtn/systemBtn.vue b/src/components/systemBtn/systemBtn.vue index c90a342..e8cca0d 100644 --- a/src/components/systemBtn/systemBtn.vue +++ b/src/components/systemBtn/systemBtn.vue @@ -30,9 +30,7 @@ methods: { // 意见反馈 newProblem() { - uni.navigateTo({ - url: `/pages_mine/pages/system/index` - }) + uni.switchTab({url: `/pages/home/index`}) } } }; diff --git a/src/pages.json b/src/pages.json index 0eeeb30..64bed61 100644 --- a/src/pages.json +++ b/src/pages.json @@ -39,224 +39,26 @@ } }, { - "path": "pages/health/homepage/index", + "path": "pages/home/homepage/index", "style": { "navigationBarTitleText": "", "navigationStyle": "custom" } }, { - "path": "pages/health/index", + "path": "pages/home/index", "style": { "navigationBarTitleText": "", "navigationStyle": "custom" } }, - { - "path": "pages/health/statistic/index", - "style": { - "navigationBarTitleText": "" - } - }, { "path": "pages/mine", "style": { "navigationBarTitleText": "", "navigationStyle": "custom" } - }, - { - "path": "pages/health/doctorRecord/list", - "style": { - "navigationBarTitleText": "就医记录" - } } - , - { - "path": "pages/health/doctorRecord/addEdit", - "style": { - "navigationBarTitleText": "就医记录" - } - }, - { - "path": "pages/health/healthRecord/list", - "style": { - "navigationBarTitleText": "健康档案" - } - } , - { - "path": "pages/health/healthRecord/addEdit", - "style": { - "navigationBarTitleText": "健康档案" - } - }, - { - "path": "pages/health/marRecord/list", - "style": { - "navigationBarTitleText": "用药记录" - } - } - , - { - "path": "pages/health/marRecord/addEdit", - "style": { - "navigationBarTitleText": "用药记录" - } - }, - { - "path": "pages/health/medicineBasic/list", - "style": { - "navigationBarTitleText": "药品基础信息" - } - } - , - { - "path": "pages/health/medicineBasic/details", - "style": { - "navigationBarTitleText": "药品基础信息详情" - } - } - , - { - "path": "pages/health/medicineBasic/addEdit", - "style": { - "navigationBarTitleText": "药品基础信息" - } - }, - { - "path": "pages/health/medicineStockIn/list", - "style": { - "navigationBarTitleText": "药品入库清单" - } - } - , - { - "path": "pages/health/medicineStockIn/details", - "style": { - "navigationBarTitleText": "药品入库清单详情" - } - } - , - { - "path": "pages/health/medicineStockIn/addEdit", - "style": { - "navigationBarTitleText": "药品入库清单" - } - }, { - "path": "pages/health/medicineStock/list", - "style": { - "navigationBarTitleText": "药品实时库存" - } - } - , - { - "path": "pages/health/temperatureRecord/list", - "style": { - "navigationBarTitleText": "体温记录" - } - } - , - { - "path": "pages/health/temperatureRecord/addEdit", - "style": { - "navigationBarTitleText": "体温记录" - } - } , - { - "path": "pages/health/processRecord/list", - "style": { - "navigationBarTitleText": "档案过程记录" - } - } - , - { - "path": "pages/health/processRecord/addEdit", - "style": { - "navigationBarTitleText": "过程记录" - } - }, - { - "path": "pages/health/heightWeightRecord/list", - "style": { - "navigationBarTitleText": "身高体重记录" - } - } - , - { - "path": "pages/health/milkPowderRecord/addEdit", - "style": { - "navigationBarTitleText": "吃奶记录" - } - }, - { - "path": "pages/health/milkPowderRecord/list", - "style": { - "navigationBarTitleText": "吃奶记录" - } - } - , - { - "path": "pages/health/heightWeightRecord/addEdit", - "style": { - "navigationBarTitleText": "身高体重记录" - } - }, - { - "path": "pages/health/person/list", - "style": { - "navigationBarTitleText": "成员管理" - } - } - , - { - "path": "pages/health/person/addEdit", - "style": { - "navigationBarTitleText": "成员管理" - } - }, - { - "path": "pages/health/activity/list", - "style": { - "navigationBarTitleText": "活动记录" - } - } - , - { - "path": "pages/health/activity/addEdit", - "style": { - "navigationBarTitleText": "活动记录" - } - } , - { - "path": "pages/health/statistic/doctorStatistic/index", - "style": { - "navigationBarTitleText": "就医统计" - } - } , - { - "path": "pages/health/statistic/healthStatistic/index", - "style": { - "navigationBarTitleText": "档案统计" - } - } , - { - "path": "pages/health/statistic/marStatistic/index", - "style": { - "navigationBarTitleText": "用药统计" - } - } , - { - "path": "pages/health/statistic/temperatureStatistic/index", - "style": { - "navigationBarTitleText": "体温统计" - } - } , - { - "path": "pages/health/statistic/milkPowderStatistic/index", - "style": { - "navigationBarTitleText": "吃奶量统计" - } - } ], "subPackages": [ { @@ -485,23 +287,17 @@ "backgroundColor": "#ffffff", "list": [ { - "pagePath": "pages/health/homepage/index", + "pagePath": "pages/home/homepage/index", "iconPath": "static/images/tabbar/home.png", "selectedIconPath": "static/images/tabbar/home_.png", "text": "首页" }, { - "pagePath": "pages/health/index", + "pagePath": "pages/home/index", "iconPath": "static/images/tabbar/work.png", "selectedIconPath": "static/images/tabbar/work_.png", "text": "工作台" }, - // { - // "pagePath": "pages/health/statistic/index", - // "iconPath": "static/images/tabbar/statistic.png", - // "selectedIconPath": "static/images/tabbar/statistic_.png", - // "text": "统计分析" - // }, { "pagePath": "pages/mine", "iconPath": "static/images/tabbar/mine.png", diff --git a/src/pages/health/activity/addEdit.vue b/src/pages/health/activity/addEdit.vue deleted file mode 100644 index b0df681..0000000 --- a/src/pages/health/activity/addEdit.vue +++ /dev/null @@ -1,350 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/activity/list.vue b/src/pages/health/activity/list.vue deleted file mode 100644 index 078f86b..0000000 --- a/src/pages/health/activity/list.vue +++ /dev/null @@ -1,534 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/doctorRecord/addEdit.vue b/src/pages/health/doctorRecord/addEdit.vue deleted file mode 100644 index 1b6a8aa..0000000 --- a/src/pages/health/doctorRecord/addEdit.vue +++ /dev/null @@ -1,400 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/doctorRecord/list.vue b/src/pages/health/doctorRecord/list.vue deleted file mode 100644 index 9a7cc67..0000000 --- a/src/pages/health/doctorRecord/list.vue +++ /dev/null @@ -1,779 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/healthRecord/addEdit.vue b/src/pages/health/healthRecord/addEdit.vue deleted file mode 100644 index a69d71d..0000000 --- a/src/pages/health/healthRecord/addEdit.vue +++ /dev/null @@ -1,418 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/healthRecord/list.vue b/src/pages/health/healthRecord/list.vue deleted file mode 100644 index ba3c738..0000000 --- a/src/pages/health/healthRecord/list.vue +++ /dev/null @@ -1,759 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/heightWeightRecord/addEdit.vue b/src/pages/health/heightWeightRecord/addEdit.vue deleted file mode 100644 index 72aee1d..0000000 --- a/src/pages/health/heightWeightRecord/addEdit.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/heightWeightRecord/list.vue b/src/pages/health/heightWeightRecord/list.vue deleted file mode 100644 index 7cd3fc9..0000000 --- a/src/pages/health/heightWeightRecord/list.vue +++ /dev/null @@ -1,643 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/homepage/index.vue b/src/pages/health/homepage/index.vue deleted file mode 100644 index ea5136c..0000000 --- a/src/pages/health/homepage/index.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pages/health/index.vue b/src/pages/health/index.vue deleted file mode 100644 index ede2f5f..0000000 --- a/src/pages/health/index.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/pages/health/marRecord/addEdit.vue b/src/pages/health/marRecord/addEdit.vue deleted file mode 100644 index 737311c..0000000 --- a/src/pages/health/marRecord/addEdit.vue +++ /dev/null @@ -1,533 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/marRecord/list.vue b/src/pages/health/marRecord/list.vue deleted file mode 100644 index 5330d90..0000000 --- a/src/pages/health/marRecord/list.vue +++ /dev/null @@ -1,837 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/medicineBasic/addEdit.vue b/src/pages/health/medicineBasic/addEdit.vue deleted file mode 100644 index e3fe404..0000000 --- a/src/pages/health/medicineBasic/addEdit.vue +++ /dev/null @@ -1,555 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/medicineBasic/details.vue b/src/pages/health/medicineBasic/details.vue deleted file mode 100644 index 55b32d4..0000000 --- a/src/pages/health/medicineBasic/details.vue +++ /dev/null @@ -1,412 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/medicineBasic/list.vue b/src/pages/health/medicineBasic/list.vue deleted file mode 100644 index 2104165..0000000 --- a/src/pages/health/medicineBasic/list.vue +++ /dev/null @@ -1,700 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/medicineStock/list.vue b/src/pages/health/medicineStock/list.vue deleted file mode 100644 index eed1c07..0000000 --- a/src/pages/health/medicineStock/list.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/medicineStockIn/addEdit.vue b/src/pages/health/medicineStockIn/addEdit.vue deleted file mode 100644 index 10212f9..0000000 --- a/src/pages/health/medicineStockIn/addEdit.vue +++ /dev/null @@ -1,565 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/medicineStockIn/details.vue b/src/pages/health/medicineStockIn/details.vue deleted file mode 100644 index 4c7156b..0000000 --- a/src/pages/health/medicineStockIn/details.vue +++ /dev/null @@ -1,298 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/medicineStockIn/list.vue b/src/pages/health/medicineStockIn/list.vue deleted file mode 100644 index a38ce1e..0000000 --- a/src/pages/health/medicineStockIn/list.vue +++ /dev/null @@ -1,713 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/milkPowderRecord/addEdit.vue b/src/pages/health/milkPowderRecord/addEdit.vue deleted file mode 100644 index a2d1634..0000000 --- a/src/pages/health/milkPowderRecord/addEdit.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/milkPowderRecord/list.vue b/src/pages/health/milkPowderRecord/list.vue deleted file mode 100644 index 1b9ed4c..0000000 --- a/src/pages/health/milkPowderRecord/list.vue +++ /dev/null @@ -1,620 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/person/addEdit.vue b/src/pages/health/person/addEdit.vue deleted file mode 100644 index 60b7d54..0000000 --- a/src/pages/health/person/addEdit.vue +++ /dev/null @@ -1,303 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/person/list.vue b/src/pages/health/person/list.vue deleted file mode 100644 index 3090d46..0000000 --- a/src/pages/health/person/list.vue +++ /dev/null @@ -1,409 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/processRecord/addEdit.vue b/src/pages/health/processRecord/addEdit.vue deleted file mode 100644 index 60ad5c6..0000000 --- a/src/pages/health/processRecord/addEdit.vue +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/processRecord/list.vue b/src/pages/health/processRecord/list.vue deleted file mode 100644 index 3b027b9..0000000 --- a/src/pages/health/processRecord/list.vue +++ /dev/null @@ -1,720 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/statistic/doctorStatistic/index.vue b/src/pages/health/statistic/doctorStatistic/index.vue deleted file mode 100644 index b018eec..0000000 --- a/src/pages/health/statistic/doctorStatistic/index.vue +++ /dev/null @@ -1,1417 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/statistic/healthStatistic/index.vue b/src/pages/health/statistic/healthStatistic/index.vue deleted file mode 100644 index 129ccb0..0000000 --- a/src/pages/health/statistic/healthStatistic/index.vue +++ /dev/null @@ -1,1269 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/statistic/index.vue b/src/pages/health/statistic/index.vue deleted file mode 100644 index 47fa66b..0000000 --- a/src/pages/health/statistic/index.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/pages/health/statistic/marStatistic/index.vue b/src/pages/health/statistic/marStatistic/index.vue deleted file mode 100644 index 82ad36b..0000000 --- a/src/pages/health/statistic/marStatistic/index.vue +++ /dev/null @@ -1,1219 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/statistic/milkPowderStatistic/index.vue b/src/pages/health/statistic/milkPowderStatistic/index.vue deleted file mode 100644 index c7a730a..0000000 --- a/src/pages/health/statistic/milkPowderStatistic/index.vue +++ /dev/null @@ -1,1000 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/statistic/temperatureStatistic/index.vue b/src/pages/health/statistic/temperatureStatistic/index.vue deleted file mode 100644 index 407915a..0000000 --- a/src/pages/health/statistic/temperatureStatistic/index.vue +++ /dev/null @@ -1,1082 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/health/temperatureRecord/addEdit.vue b/src/pages/health/temperatureRecord/addEdit.vue deleted file mode 100644 index bdafd51..0000000 --- a/src/pages/health/temperatureRecord/addEdit.vue +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pages/health/temperatureRecord/list.vue b/src/pages/health/temperatureRecord/list.vue deleted file mode 100644 index ef6fbc2..0000000 --- a/src/pages/health/temperatureRecord/list.vue +++ /dev/null @@ -1,738 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/login.vue b/src/pages/login.vue index c5262cb..57ab7b0 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -168,7 +168,7 @@ function loginSuccess(result) { // 设置用户信息 userStore.getInfo().then(res => { uni.switchTab({ - url: '/pages/health/homepage/index' + url: '/pages/home/homepage/index' }); }).catch(err => { modal.msgError('获取用户信息失败,请重新登录'); diff --git a/src/pages/statistic/bill/creditBillAnalysis/index.vue b/src/pages/statistic/bill/creditBillAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/creditInstallmentAnalysis/index.vue b/src/pages/statistic/bill/creditInstallmentAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/creditInstallmentSettledAnalysis/index.vue b/src/pages/statistic/bill/creditInstallmentSettledAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/creditRecordAnalysis/index.vue b/src/pages/statistic/bill/creditRecordAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/futuresAnalysis/index.vue b/src/pages/statistic/bill/futuresAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/investAnalysis/index.vue b/src/pages/statistic/bill/investAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/onlineLendAnalysis/index.vue b/src/pages/statistic/bill/onlineLendAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/onlineLendSettledAnalysis/index.vue b/src/pages/statistic/bill/onlineLendSettledAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/statistic/bill/stocksAnalysis/index.vue b/src/pages/statistic/bill/stocksAnalysis/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages_mine/pages/system/notice/addEdit.vue b/src/pages_mine/pages/system/notice/addEdit.vue index 60b8544..2cfa616 100644 --- a/src/pages_mine/pages/system/notice/addEdit.vue +++ b/src/pages_mine/pages/system/notice/addEdit.vue @@ -69,8 +69,6 @@ - - @@ -391,52 +389,6 @@ function doSubmit() { }) } } - -// 测试函数 - 用于验证基本功能 -function testSave() { - console.log('=== 开始测试保存功能 ===') - console.log('当前表单状态:', form) - console.log('编辑器上下文:', editorCtx.value) - console.log('内容长度:', form.noticeContent?.length || 0) - - // 强制获取编辑器内容进行测试 - if (editorCtx.value) { - editorCtx.value.getContents({ - success: (res) => { - console.log('测试获取的内容:', res) - console.log('HTML内容:', res.html) - console.log('纯文本内容:', res.text) - console.log('字符数:', res.text?.length || 0) - - // 尝试直接保存测试数据 - const testData = { - noticeTitle: form.noticeTitle || '测试标题', - noticeType: form.noticeType || '1', - noticeContent: res.html || '

测试内容

', - status: form.status || '0' - } - - console.log('测试数据:', testData) - - // 直接调用API测试 - addNotice(testData).then(response => { - console.log('测试保存成功:', response) - modal.msgSuccess('测试保存成功!') - }).catch(error => { - console.error('测试保存失败:', error) - modal.msgError('测试保存失败: ' + error.message) - }) - }, - fail: (error) => { - console.error('测试获取内容失败:', error) - modal.msgError('无法获取编辑器内容') - } - }) - } else { - console.log('编辑器未初始化') - modal.msgError('编辑器未初始化') - } -}