From 4f5372bf4b2dd5e2934036fa509f80c4d12eab39 Mon Sep 17 00:00:00 2001 From: Hannah Date: Sat, 24 Jan 2026 22:39:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(home):=20=E9=87=8D=E6=9E=84=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E9=97=AE=E8=AF=8A=E8=A1=A8=E5=8D=95=E4=B8=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=8C=96=E5=8F=AF=E6=8A=98=E5=8F=A0=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将原有的简单表单替换为模块化问诊表单,包含就诊类型、基本信息、病史信息等7个模块 - 新增可折叠功能,每个模块在填写完成后自动收起 - 添加表单数据管理文件 inquiryFormData.js,包含638行结构化问诊字段 - 调整登录后默认跳转页面为首页而非医生页面 - 开发环境API切换为线上正式环境 - 启用首页作为应用启动页 --- config/baseUrl.js | 4 +- pages.json | 22 +- pages/home/index.vue | 132 ++++--- pages/home/inquiryFormData.js | 638 ++++++++++++++++++++++++++++++++++ pages/user/login.vue | 16 +- 5 files changed, 741 insertions(+), 71 deletions(-) create mode 100644 pages/home/inquiryFormData.js diff --git a/config/baseUrl.js b/config/baseUrl.js index e460a939..17028d24 100644 --- a/config/baseUrl.js +++ b/config/baseUrl.js @@ -3,8 +3,8 @@ let baseUrl = ""; let socketUrl = ""; if (process.env.NODE_ENV === 'development') { // 开发环境 - baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 - // baseUrl = "https://api.nuttyreading.com/"; //线上正式 + // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 + baseUrl = "https://api.nuttyreading.com/"; //线上正式 } else if (process.env.NODE_ENV === 'production') { // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 baseUrl = "https://api.nuttyreading.com/"; //线上正式 diff --git a/pages.json b/pages.json index c3bdb1a9..ac79c9fb 100644 --- a/pages.json +++ b/pages.json @@ -1,16 +1,16 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - // { - // "path": "pages/home/index", - // "style": { - // "navigationBarTitleText": "首页", - // "app-plus": { - // "bounce": "none", - // "titleNView": false, - // "popGesture": "none" - // } - // } - // }, + { + "path": "pages/home/index", + "style": { + "navigationBarTitleText": "首页", + "app-plus": { + "bounce": "none", + "titleNView": false, + "popGesture": "none" + } + } + }, { "path": "pages/doctors/index", "style": { diff --git a/pages/home/index.vue b/pages/home/index.vue index cfdb9f0c..ff0aa9d3 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -24,57 +24,30 @@ - -