From 378901610865d8b9f7fc7c2e076387e2f99556e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 17 Oct 2023 11:42:24 +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 --- pagesB/confirmation/confirmation.scss | 89 ++++++++++++++++++++++++-- pagesB/confirmation/confirmation.vue | 89 ++++++++++++++++++++++++-- pagesC/Onlinesigning/Onlinesigning.vue | 2 +- 3 files changed, 168 insertions(+), 12 deletions(-) diff --git a/pagesB/confirmation/confirmation.scss b/pagesB/confirmation/confirmation.scss index eebed28..251e8c4 100644 --- a/pagesB/confirmation/confirmation.scss +++ b/pagesB/confirmation/confirmation.scss @@ -1,4 +1,4 @@ -.app { + .app { padding-top: 10rpx; width: 100%; @@ -40,6 +40,85 @@ border-radius: 5rpx; padding-bottom: 50rpx; + .timeyear { + .bottomtext { + -webkit-overflow-scrolling: touch; + width: 96%; + margin: 0 auto; + + .items { + display: flex; + justify-content: flex-start; + flex-wrap: wrap; + text-align: center; + color: #000000; + + .timeitem { + width: 29%; + margin: 0 2% 20rpx; + height: 96rpx; + border-radius: 5rpx; + border: 2rpx solid #26A888; + } + + .itemstext{ + line-height: 38rpx; + padding-top: 10rpx; + font-size: 23rpx; + } + + .itemstexttwo{ + line-height: 42rpx; + font-size: 16rpx; + font-weight: 500; + color: #000000; + } + + .timeitemtap { + width: 29%; + margin: 0 2% 20rpx; + height: 96rpx; + border: 2rpx solid #26A888; + border-radius: 5rpx; + color: #26A888; + background: #E6F8F3; + } + } + } + + .toptext { + -webkit-overflow-scrolling: touch; + padding-top: 10rpx; + display: flex; + justify-content: space-around; + height: 50rpx; + color: #000000; + line-height: 27rpx; + margin-bottom: 30rpx; + text-align: center; + + .Soonerorlater { + width: 200rpx; + font-size: 36rpx; + height: 50rpx; + } + + .Soonerorlaterclass { + font-size: 36rpx; + color: #26A888; + width: 200rpx; + height: 50rpx; + } + + view:nth-child(2) { + width: 4rpx; + height: 27rpx; + background: #C5C3C3; + border-radius: 2rpx; + } + } + } + .select { width: 90%; height: 80rpx; @@ -89,7 +168,8 @@ background: #FFFFFF; border: 2rpx solid #26A888; border-radius: 5rpx; - .title{ + + .title { font-weight: 500; color: #EE8F15; margin-bottom: 20rpx; @@ -101,7 +181,8 @@ font-weight: 400; color: #333333; padding: 30rpx 0 0 40rpx; - text{ + + text { padding-left: 20rpx; font-size: 20rpx; font-weight: 400; @@ -167,4 +248,4 @@ } } } - } + } \ No newline at end of file diff --git a/pagesB/confirmation/confirmation.vue b/pagesB/confirmation/confirmation.vue index 5b2a0e5..ba4f8e5 100644 --- a/pagesB/confirmation/confirmation.vue +++ b/pagesB/confirmation/confirmation.vue @@ -38,6 +38,42 @@ + + + + 上午 + + + + + 下午 + + + + + + + {{item.scheduleTimeSlot}} + + + {{item.status?'(可预约)':'(不可预约)'}} + + + + + + {{item.scheduleTimeSlot}} + + + + 问题简述 @@ -129,14 +165,15 @@ addresslength: null, imglistlength: null, address: '请选择所属地区', //页面所属区域 + Soonerorlater: 'morning', timecurrent: 0, //时间下标 appointmentTimeList: [], formdata: { - address: null, //页面所属区域 - patientId: 1, - patientName: '李广君', - cardNo: '370882199909092123', - phone: '17615455437', + address: null, + patientId: null, + patientName: null, + cardNo: null, + phone: null, address: null, doctorId: null, doctorName: null, @@ -153,6 +190,11 @@ }; }, onLoad(options) { + let userinfo = uni.getStorageSync('userinfo'); + this.formdata.patientId = userinfo.id + this.formdata.patientName = userinfo.patientName + this.formdata.cardNo = userinfo.cardNo + this.formdata.phone = userinfo.phone this.formdata.doctorName = options.doctorName this.formdata.doctorId = options.doctorId this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile' @@ -161,8 +203,30 @@ }, onShow() {}, methods: { + //切换上下午 + tapSoonerorlater(item) { + this.Soonerorlater = item + this.timeindex = 0 + if (item == 'morning') { + this.formdata.serviceStartTime = this.appointmentTimeList[this.timecurrent].morningList[0] + .starttime + } else if (item == 'after') { + this.formdata.serviceStartTime = this.appointmentTimeList[this.timecurrent].afternoonList[0] + .endtime + } + }, + //选择时间 + taptime(item, index) { + this.orderlist.serviceStartTime = item + this.timeindex = index + }, timechange(index) { - this.timecurrent = index + if (this.timecurrent != index) { + this.timecurrent = index + this.formdata.appointmentStartTime = null + this.formdata.appointmentEndTime = null + } + this.formdata.appointmentDate = this.appointmentTimeList[index].scheduleDate }, updata() { if (this.imglistlength > 0) { @@ -200,7 +264,18 @@ res.data.forEach(e => { e.dates = e.scheduleDate.slice(5, 10) e.name = e.week + e.morningList.forEach(el => { + el.starttime = el.scheduleTimeSlot.split('~')[0] + el.endtime = el.scheduleTimeSlot.split('~')[1] + }) + e.afternoonList.forEach(el => { + el.starttime = el.scheduleTimeSlot.split('~')[0] + el.endtime = el.scheduleTimeSlot.split('~')[1] + }) }) + this.formdata.appointmentDate = res.data[0].scheduleDate + this.formdata.appointmentStartTime = res.data[0].morningList[0].starttime + this.formdata.appointmentEndTime = res.data[0].morningList[0].endtime this.appointmentTimeList = res.data }) }, @@ -237,4 +312,4 @@ + \ No newline at end of file diff --git a/pagesC/Onlinesigning/Onlinesigning.vue b/pagesC/Onlinesigning/Onlinesigning.vue index a91494c..38e59de 100644 --- a/pagesC/Onlinesigning/Onlinesigning.vue +++ b/pagesC/Onlinesigning/Onlinesigning.vue @@ -535,7 +535,7 @@ let userinfo = uni.getStorageSync('userinfo'); this.query.residentName = userinfo.patientName this.query.identity = userinfo.cardNo - this.query.phone = userinfo.patientName + this.query.phone = userinfo.phone this.query.signTime = year + '-' + month + '-' + day; }, onShow() {