From 6e66d8c4494e28dba25fb4816a1b7dfe31e29e61 Mon Sep 17 00:00:00 2001 From: kola-web Date: Fri, 8 Aug 2025 11:22:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BC=98=E5=8C=96=E6=94=B9?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.private.config.json | 161 ++++++++++++++++++----------------- src/pages/home/index.scss | 2 + src/pages/home/index.ts | 2 +- src/pages/home/index.wxml | 6 +- src/pages/information/index.ts | 2 +- src/pages/informationDetail/index.ts | 3 + src/pages/message/index.wxml | 2 +- 7 files changed, 95 insertions(+), 83 deletions(-) diff --git a/project.private.config.json b/project.private.config.json index c533c1d..7b609f5 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,78 +1,85 @@ -{ - "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "xinda-miniprogram", - "setting": { - "compileHotReLoad": true, - "urlCheck": true, - "coverView": false, - "lazyloadPlaceholderEnable": false, - "skylineRenderEnable": true, - "preloadBackgroundData": false, - "autoAudits": false, - "useApiHook": true, - "useApiHostProcess": true, - "showShadowRootInWxmlPanel": false, - "useStaticServer": false, - "useLanDebug": false, - "showES6CompileOption": false, - "checkInvalidKey": true, - "ignoreDevUnusedFiles": true, - "bigPackageSizeSupport": false - }, - "condition": { - "miniprogram": { - "list": [ - { - "name": "隐私协议", - "pathName": "doc/pages/doc1/index", - "query": "", - "scene": null, - "launchMode": "default" - }, - { - "name": "首页", - "pathName": "pages/home/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "资料库详情", - "pathName": "pages/informationDetail/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "消息", - "pathName": "pages/message/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "资料库", - "pathName": "pages/information/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "我的", - "pathName": "pages/my/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "登录", - "pathName": "pages/login/index", - "query": "", - "launchMode": "default", - "scene": null - } - ] - } - }, - "libVersion": "3.8.9" +{ + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "xinda-miniprogram", + "setting": { + "compileHotReLoad": true, + "urlCheck": true, + "coverView": false, + "lazyloadPlaceholderEnable": false, + "skylineRenderEnable": true, + "preloadBackgroundData": false, + "autoAudits": false, + "useApiHook": true, + "useApiHostProcess": true, + "showShadowRootInWxmlPanel": false, + "useStaticServer": false, + "useLanDebug": false, + "showES6CompileOption": false, + "checkInvalidKey": true, + "ignoreDevUnusedFiles": true, + "bigPackageSizeSupport": false + }, + "condition": { + "miniprogram": { + "list": [ + { + "name": "通知资料", + "pathName": "pages/informationDetail/index", + "query": "id=76", + "scene": null, + "launchMode": "default" + }, + { + "name": "隐私协议", + "pathName": "doc/pages/doc1/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "首页", + "pathName": "pages/home/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "资料库详情", + "pathName": "pages/informationDetail/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "消息", + "pathName": "pages/message/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "资料库", + "pathName": "pages/information/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "我的", + "pathName": "pages/my/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "登录", + "pathName": "pages/login/index", + "query": "", + "launchMode": "default", + "scene": null + } + ] + } + }, + "libVersion": "3.8.9" } \ No newline at end of file diff --git a/src/pages/home/index.scss b/src/pages/home/index.scss index d183f80..4e8d075 100644 --- a/src/pages/home/index.scss +++ b/src/pages/home/index.scss @@ -8,6 +8,8 @@ page { } .page { padding: 44rpx 40rpx 0; + min-height: 100vh; + box-sizing: border-box; .user { display: flex; align-items: center; diff --git a/src/pages/home/index.ts b/src/pages/home/index.ts index d63b1aa..6437079 100644 --- a/src/pages/home/index.ts +++ b/src/pages/home/index.ts @@ -187,7 +187,7 @@ Page({ method: 'GET', url: '?r=xd/doctor/index/get-material-list', data: { - ContentType: 3, + ContentType: '3,5', count: 3, }, }).then((res) => { diff --git a/src/pages/home/index.wxml b/src/pages/home/index.wxml index f344edc..4d561a8 100644 --- a/src/pages/home/index.wxml +++ b/src/pages/home/index.wxml @@ -55,7 +55,7 @@ - {{item.year}} + 截止{{item.year}} {{item.month}} @@ -78,7 +78,7 @@ - {{item.year}} + 截止 {{item.year}} {{item.month}} @@ -106,7 +106,7 @@ - {{item.year}} + 截止{{item.year}} {{item.month}} diff --git a/src/pages/information/index.ts b/src/pages/information/index.ts index b528b9e..313bc26 100644 --- a/src/pages/information/index.ts +++ b/src/pages/information/index.ts @@ -22,7 +22,7 @@ Page({ url: '?r=xd/doctor/index/get-material-list', data: { page: newPage, - ContentType: 3, + ContentType: '3,5', }, }).then((res) => { res.list.forEach((item) => { diff --git a/src/pages/informationDetail/index.ts b/src/pages/informationDetail/index.ts index 85d944c..b391fb7 100644 --- a/src/pages/informationDetail/index.ts +++ b/src/pages/informationDetail/index.ts @@ -49,6 +49,9 @@ Page({ if (res.ContentType == '4') { wx.hideShareMenu(); wx.offCopyUrl(); + wx.setNavigationBarTitle({ + title: '通知详情', + }); } this.setData({ detail: { diff --git a/src/pages/message/index.wxml b/src/pages/message/index.wxml index bad9192..802a6c2 100644 --- a/src/pages/message/index.wxml +++ b/src/pages/message/index.wxml @@ -4,7 +4,7 @@ - {{item.year}}年 {{item.month}}月{{item.day}}日 + 截止{{item.year}}年 {{item.month}}月{{item.day}}日 {{item.Content}}