From 0ab2d29886c583c2f76abe4f8fa61bb82d3651ba Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 22 Oct 2024 10:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=20=E5=B1=85=E6=B0=91?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 16 +- components/Head/index.vue | 10 +- components/custom-tab-bar/index.vue | 4 +- ec-canvas/ec-canvas.vue | 5 +- manifest.json | 170 +-- pages.json | 71 +- pages/information/echartsCallBack.js | 2 +- pages/information/information.vue | 2 +- pages/login/login.vue | 73 +- .../HotlineComplaints/HotlineComplaints.vue | 2 +- .../RequirementAnalysis.vue | 2 +- .../modules/SmyddcSqmydzc/SmyddcSqmydzc.vue | 2 +- pages/statistics/modules/Trend/Trend.vue | 2 +- {ec-canvas => static}/echarts.js | 0 subpages/addResi/pages/addResi/addResi.vue | 984 +++++++++++++++++- .../dissatisfied/demandCheck/demandCheck.vue | 4 +- .../housePortrait/component/graph/graph.vue | 2 +- subpages/morenews/pages/morenews/morenews.vue | 36 +- .../pages/punchCard/punchCard.vue | 16 +- .../pages/resiInfo/component/graph/graph.vue | 2 +- .../searchResult/pages/resiInfo/resiInfo.vue | 131 +-- .../residentPortrait2/residentPortrait.vue | 2 +- utils/api.js | 2 +- 23 files changed, 1282 insertions(+), 258 deletions(-) rename {ec-canvas => static}/echarts.js (100%) diff --git a/App.vue b/App.vue index 3822041..5f9fd82 100644 --- a/App.vue +++ b/App.vue @@ -18,14 +18,14 @@ export default { } else { this.globalData.share = false; } - const menuButtonInfo = uni.getMenuButtonBoundingClientRect(); - uni.getSystemInfo({ - success: (res) => { - this.globalData.height = res.statusBarHeight; - this.globalData.deviceInfo.statusHeight = res.statusBarHeight; - this.globalData.deviceInfo.navigationHeight = menuButtonInfo.height + (menuButtonInfo.top - res.statusBarHeight) * 2; - } - }); + // const menuButtonInfo = uni.getMenuButtonBoundingClientRect(); + // uni.getSystemInfo({ + // success: (res) => { + // this.globalData.height = res.statusBarHeight; + // this.globalData.deviceInfo.statusHeight = res.statusBarHeight; + // this.globalData.deviceInfo.navigationHeight = menuButtonInfo.height + (menuButtonInfo.top - res.statusBarHeight) * 2; + // } + // }); uni.hideTabBar(); getStaffbasicinfo() .then((res) => { diff --git a/components/Head/index.vue b/components/Head/index.vue index 8f75cac..f741ef6 100644 --- a/components/Head/index.vue +++ b/components/Head/index.vue @@ -57,12 +57,12 @@ export default { navigationHeight: app.globalData.deviceInfo.navigationHeight, agencyName: app.globalData.user.agencyName }); - const menuButton = uni.getMenuButtonBoundingClientRect(); + // const menuButton = uni.getMenuButtonBoundingClientRect(); console.log(menuButton); - this.setData({ - leftWidth: menuButton.left, - iconWidth: menuButton.width - }); + // this.setData({ + // leftWidth: menuButton.left, + // iconWidth: menuButton.width + // }); }, back() { diff --git a/components/custom-tab-bar/index.vue b/components/custom-tab-bar/index.vue index e8ae24a..d63c964 100644 --- a/components/custom-tab-bar/index.vue +++ b/components/custom-tab-bar/index.vue @@ -94,13 +94,13 @@ export default { getOwnedRolesOfStaffId(res.data.id).then((res2) => { app.globalData.user = res.data; this.setData({ - 'list[3].show': res2.data.filter((item) => item.roleKey === 'secretary' || item.roleKey === 'admin').length > 0 + 'list[3].show': true }); }); }); } else { this.setData({ - 'list[3].show': app.globalData.roleList.filter((item) => item.roleKey === 'secretary' || item.roleKey === 'admin').length > 0 + 'list[3].show': true }); } console.log(app.globalData.roleList, 'userss'); diff --git a/ec-canvas/ec-canvas.vue b/ec-canvas/ec-canvas.vue index 3705f97..569b88d 100644 --- a/ec-canvas/ec-canvas.vue +++ b/ec-canvas/ec-canvas.vue @@ -26,7 +26,7 @@