diff --git a/api/homepage/index.js b/api/homepage/index.js new file mode 100644 index 0000000..17569f9 --- /dev/null +++ b/api/homepage/index.js @@ -0,0 +1,38 @@ +import request from "../request.js" + +// 查询工单列表 +export function getList(data) { + return request({ + url: `/nurseApp/orders/getList`, + method: 'GET', + data: data + }) +} + +//修改订单状态 +export function updateStatus(data) { + return request({ + url: `/nurseApp/orders/updateStatus`, + method: 'post', + data: data + }) +} + +//拒单接口 +export function closeHealthConsultationOrder(data) { + return request({ + url: `/nurseApp/weChatPayment/closeHealthConsultationOrder`, + method: 'post', + data: data + }) +} + + +//消息列表 +export function consultationInfolist(data) { + return request({ + url: `/nurseApplet/consultationInfo/list`, + method: 'get', + data: data + }) +} \ No newline at end of file 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/api/taskDetails/index.js b/api/taskDetails/index.js new file mode 100644 index 0000000..ceda26c --- /dev/null +++ b/api/taskDetails/index.js @@ -0,0 +1,9 @@ +import request from "../request.js" + +// 工单详情 +export function consultationInfo(id) { + return request({ + url: `/nurseApplet/consultationInfo/${id}`, + method: 'GET', + }) +} \ No newline at end of file diff --git a/pages.json b/pages.json index 2d369c6..e2159f5 100644 --- a/pages.json +++ b/pages.json @@ -3,6 +3,14 @@ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/homepage/homepage", + "style": { + "navigationBarTitleText": "工单", + "onReachBottomDistance": 20, //距离底部多远时触发 单位为px + "enablePullDownRefresh": true //设置参数为true + } + }, { "path": "pages/ServiceSchedule/ServiceSchedule", "style": { @@ -10,10 +18,17 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#4ac4ab" } - }, { + }, + { + "path": "pages/seekadvicefrom/seekadvicefrom", + "style": { + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, + { "path": "pages/login/login", "style": { - "navigationBarTitleText": "", "enablePullDownRefresh": false, "navigationStyle": "custom" } @@ -21,31 +36,17 @@ { "path": "pages/myinformation/myinformation", "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false, - "navigationStyle": "custom" + "navigationBarTitleText": "我的", + "enablePullDownRefresh": false + // "navigationStyle": "custom" } - }, - - - { - "path": "pages/homepage/homepage", + }, { + "path": "pages/taskDetails/taskDetails", "style": { - "enablePullDownRefresh": false, - "navigationBarTitleText": "工单" + "navigationBarTitleText": "工单详情", + "enablePullDownRefresh": false } - } - // { - // "path": "pages/index/index", - // "style": { - // "enablePullDownRefresh": false, - // "navigationStyle": "custom" - // } - // } - - - - , { + }, { "path": "pages/Personalinfo/Personalinfo", "style": { "navigationBarTitleText": "个人信息", @@ -59,7 +60,6 @@ "navigationBarTitleText": "", "navigationBarBackgroundColor": "#18CBB3", "backgroundColor": "#F8F8F8" - }, "uniIdRouter": {}, "tabBar": { @@ -70,13 +70,13 @@ "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": "我的" } ] 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 + + + \ No newline at end of file diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 17ecd54..ece4823 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -1,7 +1,7 @@