From 6c0d25e640fbaef60fccb37ddac0d60931a65e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 17 Oct 2022 18:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A4=E7=90=86=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/site/index.js | 2 +- pages.json | 48 +++++---- pages/appointment/appointment.vue | 18 +++- pages/appointmenttime/appointmenttime.vue | 117 ++++++++++++---------- pages/site/site.vue | 6 +- 5 files changed, 111 insertions(+), 80 deletions(-) diff --git a/api/site/index.js b/api/site/index.js index b2376a0..e60c559 100644 --- a/api/site/index.js +++ b/api/site/index.js @@ -8,7 +8,7 @@ import request from "../request.js" // }) // } -export function nearbyList(pageSize,pageNum,longitude, latitude, nurseStationType, nurseStationName) { +export function nearbyList(pageSize,pageNum,longitude, latitude, nurseStationType, ) { return request({ url: `/nurseApplet/nearbyNursingStation/nearbyList?pageSize=${pageSize}&pageNum=${pageNum}&homeLongitude=${longitude}&homeLatitude=${latitude}&nurseStationType=${nurseStationType}&nurseStationName=${nurseStationName}`, method: 'GET' diff --git a/pages.json b/pages.json index 33234c6..5fe6532 100644 --- a/pages.json +++ b/pages.json @@ -4,6 +4,34 @@ }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { + "path" : "pages/nursestation/nursestation", + "style" : + { + "navigationBarTitleText": "济南护万家护理有限公司", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" + } + + }, + { + "path": "pages/site/site", + "style": { + "navigationBarTitleText": "附近护理站", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" //背景颜色 + } + }, + + { + "path" : "pages/appointmenttime/appointmenttime", + "style" : + { + "navigationBarTitleText": "预约时间", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" //背景颜色 + } + + },{ "path": "pages/login/login", "style": { "navigationBarTitleText": "", @@ -17,13 +45,6 @@ "navigationStyle": "custom" } }, { - "path": "pages/site/site", - "style": { - "navigationBarTitleText": "附近护理站", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#ffffff" //背景颜色 - } - },{ "path" : "pages/appointment/appointment", "style" : { @@ -54,16 +75,7 @@ "navigationBarBackgroundColor": "#ffffff" } }, - { - "path" : "pages/appointmenttime/appointmenttime", - "style" : - { - "navigationBarTitleText": "预约时间", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#ffffff" //背景颜色 - } - - }, + { "path": "pages/homepage/homepage", "style": { @@ -106,6 +118,8 @@ "navigationBarBackgroundColor": "#ffffff" } } + + ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/appointment/appointment.vue b/pages/appointment/appointment.vue index b040ba7..c4ad9aa 100644 --- a/pages/appointment/appointment.vue +++ b/pages/appointment/appointment.vue @@ -3,16 +3,16 @@ 选择想要预约的时间 - + 9月10号 - + 9月11号 - + 9月12号 - + 9月13号 @@ -29,12 +29,20 @@ } }, methods: { - + appointment() { + uni.navigateTo({ + url: `/pages/appointmenttime/appointmenttime` + }) + }, } }