From 7d37353fe03be8f9ad73cb7d6a3c5e7ab0fe3356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 17 Oct 2023 14:13:17 +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 | 54 +++++++++++++++----------- pagesB/confirmation/confirmation.vue | 55 +++++++++++++++------------ pagesB/medicine/medicine.vue | 1 + 3 files changed, 63 insertions(+), 47 deletions(-) diff --git a/pagesB/confirmation/confirmation.scss b/pagesB/confirmation/confirmation.scss index 251e8c4..cf9b197 100644 --- a/pagesB/confirmation/confirmation.scss +++ b/pagesB/confirmation/confirmation.scss @@ -1,49 +1,58 @@ .app { - padding-top: 10rpx; + padding: 0 0 124rpx; width: 100%; - .btns { width: 100%; + height: 124rpx; + background: #FFFFFF; + box-shadow: 0rpx -3rpx 13rpx 0rpx rgba(0,0,0,0.1); + border-radius: 20rpx; display: flex; - font-size: 31rpx; - justify-content: space-around; + justify-content: space-between; + padding: 0 3%; text-align: center; font-weight: 500; - margin-top: 80rpx; - padding-bottom: 50rpx; - + position: fixed; + bottom:0; .btnleft { - width: 290rpx; - height: 62rpx; - background: #FFFFFF; - border: 1px solid #26A888; - border-radius: 5rpx; - color: #26A888; - line-height: 62rpx + font-size: 30rpx; + font-weight: 500; + color: #F44B2F; + line-height: 124rpx; + text{ + font-size:44rpx; + } } .btnright { - width: 289rpx; - height: 62rpx; + width: 169rpx; + height: 61rpx; background: #26A888; border-radius: 5rpx; + line-height: 61rpx; + transform: translateY(50%); + font-size: 28rpx; + font-weight: 400; color: #FFFFFF; - line-height: 62rpx; } } - + ::v-deep .u-tabs { + padding: 30rpx 20rpx 0 20rpx !important; + } .item { + border-radius: 5rpx; width: 96%; - margin: 20rpx auto; + margin: 14rpx auto 0; background-color: #fff; box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03); border-radius: 5rpx; padding-bottom: 50rpx; .timeyear { + padding: 30rpx 40rpx 0 40rpx; .bottomtext { -webkit-overflow-scrolling: touch; - width: 96%; + width: 100%; margin: 0 auto; .items { @@ -71,7 +80,6 @@ line-height: 42rpx; font-size: 16rpx; font-weight: 500; - color: #000000; } .timeitemtap { @@ -99,12 +107,12 @@ .Soonerorlater { width: 200rpx; - font-size: 36rpx; + font-size: 28rpx; height: 50rpx; } .Soonerorlaterclass { - font-size: 36rpx; + font-size: 28rpx; color: #26A888; width: 200rpx; height: 50rpx; diff --git a/pagesB/confirmation/confirmation.vue b/pagesB/confirmation/confirmation.vue index ba4f8e5..3954139 100644 --- a/pagesB/confirmation/confirmation.vue +++ b/pagesB/confirmation/confirmation.vue @@ -125,7 +125,7 @@ - 返回 + ¥{{formdata.price}}.00 保存 @@ -167,6 +167,7 @@ address: '请选择所属地区', //页面所属区域 Soonerorlater: 'morning', timecurrent: 0, //时间下标 + timeindex: 0, appointmentTimeList: [], formdata: { address: null, @@ -197,6 +198,7 @@ this.formdata.phone = userinfo.phone this.formdata.doctorName = options.doctorName this.formdata.doctorId = options.doctorId + this.formdata.price = options.price this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile' this.areaInfo(); this.getListByDoctorinfo(); @@ -208,25 +210,29 @@ this.Soonerorlater = item this.timeindex = 0 if (item == 'morning') { - this.formdata.serviceStartTime = this.appointmentTimeList[this.timecurrent].morningList[0] + this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0] .starttime } else if (item == 'after') { - this.formdata.serviceStartTime = this.appointmentTimeList[this.timecurrent].afternoonList[0] + this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0] .endtime } }, //选择时间 taptime(item, index) { - this.orderlist.serviceStartTime = item + this.formdata.appointmentStartTime = item.starttime + this.formdata.appointmentEndTime = item.endtime this.timeindex = index }, timechange(index) { + this.formdata.appointmentDate = this.appointmentTimeList[index].scheduleDate if (this.timecurrent != index) { this.timecurrent = index - this.formdata.appointmentStartTime = null - this.formdata.appointmentEndTime = null + this.timeindex = 0 + this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0] + .starttime + this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0] + .endtime } - this.formdata.appointmentDate = this.appointmentTimeList[index].scheduleDate }, updata() { if (this.imglistlength > 0) { @@ -247,35 +253,36 @@ this.info(); }, info() { - console.log(this.formdata) - // consultationInfo(this.formdata).then(res => { - // if (res.code == 200) { - // this.$refs.uToast.show({ - // title: '新建图文问诊成功', - // type: 'success', - // duration: '1500', - // back: 1 - // }) - // } - // }) + consultationInfo(this.formdata).then(res => { + if (res.code == 200) { + this.$refs.uToast.show({ + title: '新建专家问诊成功', + type: 'success', + duration: '1500', + back: 1 + }) + } + }) }, getListByDoctorinfo() { getListByDoctor(this.formdata.doctorId).then(res => { res.data.forEach(e => { e.dates = e.scheduleDate.slice(5, 10) e.name = e.week - e.morningList.forEach(el => { + e.morningList.length > 0 ? e.morningList.forEach(el => { el.starttime = el.scheduleTimeSlot.split('~')[0] el.endtime = el.scheduleTimeSlot.split('~')[1] - }) - e.afternoonList.forEach(el => { + }) : '' + e.afternoonList.length > 0 ? 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 + res.data[0]?.morningList[0]?.starttime ? this.formdata.appointmentStartTime = res.data[0] + .morningList[0].starttime : '' + res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0] + .morningList[0].endtime : '' this.appointmentTimeList = res.data }) }, diff --git a/pagesB/medicine/medicine.vue b/pagesB/medicine/medicine.vue index ad95797..d2c7cd2 100644 --- a/pagesB/medicine/medicine.vue +++ b/pagesB/medicine/medicine.vue @@ -184,6 +184,7 @@ } }) }, + goConsultationDetails(){}, swiperChange(e) { this.currentIndex = e.detail.current let {