From f5ba8d216115d33b46c96ab5e0da59dfb0db4a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 24 Oct 2023 10:09:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/seekadvicefrom/seekadvicefrom.js | 29 ++ pages.json | 57 +-- pages/homepage/homepage.vue | 585 +++++++++++++++++++++--- pages/seekadvicefrom/seekadvicefrom.vue | 2 +- static/docHead.png | Bin 0 -> 5929 bytes static/homepage.png | Bin 2332 -> 1104 bytes static/ico/emoji.png | Bin 0 -> 2086 bytes static/ico/file.png | Bin 0 -> 1325 bytes static/ico/more.png | Bin 0 -> 1763 bytes static/ico/send.png | Bin 0 -> 1901 bytes static/ico/success.png | Bin 0 -> 1351 bytes static/myinformation.png | Bin 807 -> 0 bytes static/myinformations.png | Bin 717 -> 0 bytes 13 files changed, 579 insertions(+), 94 deletions(-) create mode 100644 api/seekadvicefrom/seekadvicefrom.js create mode 100644 static/docHead.png create mode 100644 static/ico/emoji.png create mode 100644 static/ico/file.png create mode 100644 static/ico/more.png create mode 100644 static/ico/send.png create mode 100644 static/ico/success.png delete mode 100644 static/myinformation.png delete mode 100644 static/myinformations.png diff --git a/api/seekadvicefrom/seekadvicefrom.js b/api/seekadvicefrom/seekadvicefrom.js new file mode 100644 index 0000000..a6ed7df --- /dev/null +++ b/api/seekadvicefrom/seekadvicefrom.js @@ -0,0 +1,29 @@ +import request from "@/api/request.js" + +// 发送即使消息 +export function sendMessage(data) { + return request({ + url: `/nurseApplet/chatRecord/sendMessage`, + method: 'post', + data: data + }) +} + + +// 查询聊天记录 +export function getChatRecord(data) { + return request({ + url: `/nurseApplet/chatRecord/getChatRecord`, + method: 'get', + data: data + }) +} + +// 标记为已读 +export function markRead(data) { + return request({ + url: `/nurseApplet/chatRecord/updateReadStatus`, + method: 'PUT', + data: data + }) +} \ No newline at end of file diff --git a/pages.json b/pages.json index e4ad754..6e8d708 100644 --- a/pages.json +++ b/pages.json @@ -3,47 +3,39 @@ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/myinformation/myinformation", - "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false, - "navigationStyle": "custom" - // "navigationBarBackgroundColor": "#4ac4ab" - - // "navigationStyle": "custom" - } - }, { "path": "pages/homepage/homepage", "style": { - "enablePullDownRefresh": false, - "navigationBarTitleText": "工单" + "navigationBarTitleText": "工单", + "onReachBottomDistance": 20, //距离底部多远时触发 单位为px + "enablePullDownRefresh": true //设置参数为true } - }, { - "path": "pages/index/index", + }, + { + "path": "pages/seekadvicefrom/seekadvicefrom", + "style": { + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, + { + "path": "pages/login/login", "style": { "enablePullDownRefresh": false, "navigationStyle": "custom" } }, - - // { - // "path": "pages/login/login", - // "style": { - // "navigationBarTitleText": "", - // "enablePullDownRefresh": false, - // "navigationStyle": "custom" - // } - // }, { "path": "pages/myinformation/myinformation", "style": { "navigationBarTitleText": "我的", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#4ac4ab" - - // "navigationStyle": "custom" + "enablePullDownRefresh": false + } + }, { + "path": "pages/taskDetails/taskDetails", + "style": { + "navigationBarTitleText": "工单详情", + "enablePullDownRefresh": false } } ], @@ -52,7 +44,6 @@ "navigationBarTitleText": "", "navigationBarBackgroundColor": "#18CBB3", "backgroundColor": "#F8F8F8" - }, "uniIdRouter": {}, "tabBar": { @@ -63,15 +54,15 @@ "list": [{ "pagePath": "pages/homepage/homepage", "iconPath": "static/homepage.png", - "selectedIconPath": "static/homepage.png", + "selectedIconPath": "static/homepages.png", "text": "首页" }, { "pagePath": "pages/myinformation/myinformation", - "iconPath": "static/myinformations.png", - "selectedIconPath": "static/myinformation.png", + "iconPath": "static/my.png", + "selectedIconPath": "static/mys.png", "text": "我的" } ] } -} +} \ No newline at end of file diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index 5ae8826..a90e586 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -2,61 +2,294 @@ - - - - - - - + + + + + + + + + + + 心如止水 + + + 大夫我女儿吃了药后有点发烧,怎么回事,您给看点好看说不定倒是波动的的的的 + + + 1 + + + + + + 心如止水 + + + 大夫我女儿吃了药后有点发烧,怎么回事,您给看点好看说不定倒是波动的的的的 + + + 1 + + +