This commit is contained in:
2023-10-17 14:13:17 +08:00
parent 7634e48160
commit 7d37353fe0
3 changed files with 63 additions and 47 deletions

View File

@ -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;

View File

@ -125,7 +125,7 @@
</view>
<view class="btns">
<view class="btnleft">
返回
<text>{{formdata.price}}</text>.00
</view>
<view class="btnright" @tap='updata'>
保存
@ -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
})
},

View File

@ -184,6 +184,7 @@
}
})
},
goConsultationDetails(){},
swiperChange(e) {
this.currentIndex = e.detail.current
let {