From b26ef20a7ce200e7c678c52e0e1ffbc07c179f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 17 Oct 2023 11:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A2=84=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/pages/homepage/homepage.js | 2 +- api/pagesC/myappointment/myappointment.js | 21 +++ pagesC/Myappointment/Myappointment.scss | 11 +- pagesC/Myappointment/Myappointment.vue | 151 ++++++++++++++-------- 4 files changed, 124 insertions(+), 61 deletions(-) create mode 100644 api/pagesC/myappointment/myappointment.js diff --git a/api/pages/homepage/homepage.js b/api/pages/homepage/homepage.js index 687f2fa..ca16c9e 100644 --- a/api/pages/homepage/homepage.js +++ b/api/pages/homepage/homepage.js @@ -17,7 +17,7 @@ export function getCurrentUser(openid, cityCode) { url: `/applet/register/getCurrentResident/${openid}/${cityCode}`, method: 'GET', header: { - // Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') }, }) } diff --git a/api/pagesC/myappointment/myappointment.js b/api/pagesC/myappointment/myappointment.js new file mode 100644 index 0000000..22a2ce1 --- /dev/null +++ b/api/pagesC/myappointment/myappointment.js @@ -0,0 +1,21 @@ +import request from "../../request.js" + +// 列表查询 +export function list(data) { + return request({ + url: '/applet/service/apply/list', + method: 'POST', + data:data + }) +} +export function cancel(bookingNo) { + return request({ + url: `/applet/service/apply/cancel/${bookingNo}`, + method: 'GET', + // header: { + // region: uni.getStorageSync('region'), + // Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + // }, + }) +} + diff --git a/pagesC/Myappointment/Myappointment.scss b/pagesC/Myappointment/Myappointment.scss index fe6a70a..e282560 100644 --- a/pagesC/Myappointment/Myappointment.scss +++ b/pagesC/Myappointment/Myappointment.scss @@ -25,19 +25,22 @@ .top { position: absolute; - background: red; + // background: red; width: 90%; left: 5%; top: 7%; span:nth-child(1) { - font-size: 32rpx; + font-size: 27rpx; font-weight: 600; color: #000000; position: absolute; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } span:nth-child(2) { font-weight: 500; - font-size: 28rpx; + font-size: 27rpx; font-weight: 600; color: #26A888; position: absolute; @@ -61,7 +64,7 @@ .recorditem { width: 100%; - font-size: 28rpx; + font-size: 27rpx; font-family: Source Han Sans CN; font-weight: 400; color: #868585; diff --git a/pagesC/Myappointment/Myappointment.vue b/pagesC/Myappointment/Myappointment.vue index d007f27..c600808 100644 --- a/pagesC/Myappointment/Myappointment.vue +++ b/pagesC/Myappointment/Myappointment.vue @@ -2,87 +2,126 @@ - - - 大生化 - - 未完成 - - - - 高血压个性服务包 - - - 预约时间:2023-12-1208:30 - - - - - 取消预约 - - + + + + {{item.formName}} + 已完成 + + 待批准 + 未完成 + 已取消 - - - - 大生化 - - 未完成 + + + {{item.packageName}} - - - 高血压个性服务包 - - - 预约时间:2023-12-1208:30 - - - - - 完成时间: - 2023-12-20 - 08:30 - - - - - + + + 完成时间:{{item.completeTime}} + + + 预约时间:{{item.bookingTime}} + + + 取消时间:{{item.cancelTime}} + + + + + 取消预约 + + + + + + \ No newline at end of file