From cc1ccad3080b01571997906e992427eb2a0162f5 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sun, 12 Jul 2026 12:49:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 3 +- package.json | 9 ++- scripts/patch-u-input.js | 4 -- scripts/u-input.vue | 57 +++++++++++++++++-- src/api/login.js | 5 +- src/pages/health/doctorRecord/list.vue | 22 ++++--- src/pages/health/healthRecord/list.vue | 17 ++++-- src/pages/health/heightWeightRecord/list.vue | 17 ++++-- src/pages/health/marRecord/list.vue | 21 ++++--- src/pages/health/medicineBasic/list.vue | 12 +++- src/pages/health/medicineStockIn/list.vue | 12 +++- src/pages/health/milkPowderRecord/list.vue | 17 ++++-- src/pages/health/processRecord/list.vue | 21 ++++--- .../statistic/doctorStatistic/index.vue | 27 +++++---- .../health/statistic/healthScreen/index.vue | 12 ++-- .../statistic/healthStatistic/index.vue | 27 +++++---- .../health/statistic/marStatistic/index.vue | 52 +++++++++++++---- .../statistic/milkPowderStatistic/index.vue | 22 ++++--- .../health/statistic/recordScreen/index.vue | 8 ++- .../statistic/temperatureStatistic/index.vue | 27 +++++---- src/pages/health/temperatureRecord/list.vue | 22 ++++--- src/pages/login.vue | 42 +++++++++++--- src/store/modules/user.ts | 14 ++++- src/types/request.ts | 4 +- src/utils/request.ts | 31 ++++++---- 25 files changed, 350 insertions(+), 155 deletions(-) diff --git a/package-lock.json b/package-lock.json index ee86f80..aa94e39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "uni-preset-vue", "version": "0.0.0", + "hasInstallScript": true, "dependencies": { "@dcloudio/uni-app": "3.0.0-4000820240401001", "@dcloudio/uni-app-plus": "3.0.0-4000820240401001", @@ -12490,7 +12491,7 @@ }, "node_modules/uview-plus": { "version": "3.1.45", - "resolved": "https://registry.npmmirror.com/uview-plus/-/uview-plus-3.1.45.tgz", + "resolved": "https://registry.npmjs.org/uview-plus/-/uview-plus-3.1.45.tgz", "integrity": "sha512-JHgLp2heaMciLdGimO/v4tMM8iwb2vTEOk6sXqn5X198AHjM5A/IGzH84GZPvUISFTEJbxGEHiGPxpv2K26AGw==", "dependencies": { "clipboard": "^2.0.11", diff --git a/package.json b/package.json index d13d5f5..3f1e24d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,14 @@ "type-check": "vue-tsc --noEmit", "clean:linux": "rm -rf dist || rm -rf node_modules", "clean:windows": "rd /s /q dist || rd /s /q node_modules", - "postinstall": "node scripts/patch-u-input.js" + "patch:u-input": "node scripts/patch-u-input.js", + "postinstall": "node scripts/patch-u-input.js", + "predev:mp-weixin": "node scripts/patch-u-input.js", + "prebuild:mp-weixin": "node scripts/patch-u-input.js", + "predev:h5": "node scripts/patch-u-input.js", + "prebuild:h5": "node scripts/patch-u-input.js", + "predev:app": "node scripts/patch-u-input.js", + "prebuild:app": "node scripts/patch-u-input.js" }, "dependencies": { "@dcloudio/uni-app": "3.0.0-4000820240401001", diff --git a/scripts/patch-u-input.js b/scripts/patch-u-input.js index ff54a98..c0c690d 100644 --- a/scripts/patch-u-input.js +++ b/scripts/patch-u-input.js @@ -2,10 +2,6 @@ * uView u-input 组件补丁 * 直接用预存的补丁文件覆盖原始文件 * 使下拉选择框(readonly/disabled)超长文字可自动换行完整显示 - * - * 修改内容详见 scripts/u-input.vue(已修改好的完整文件) - * - * 通过 package.json 的 postinstall 自动执行 */ const fs = require('fs'); const path = require('path'); diff --git a/scripts/u-input.vue b/scripts/u-input.vue index 74e07c6..c99420e 100644 --- a/scripts/u-input.vue +++ b/scripts/u-input.vue @@ -1,7 +1,7 @@