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 { .app {
padding-top: 10rpx; padding: 0 0 124rpx;
width: 100%; width: 100%;
.btns { .btns {
width: 100%; width: 100%;
height: 124rpx;
background: #FFFFFF;
box-shadow: 0rpx -3rpx 13rpx 0rpx rgba(0,0,0,0.1);
border-radius: 20rpx;
display: flex; display: flex;
font-size: 31rpx; justify-content: space-between;
justify-content: space-around; padding: 0 3%;
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
margin-top: 80rpx; position: fixed;
padding-bottom: 50rpx; bottom:0;
.btnleft { .btnleft {
width: 290rpx; font-size: 30rpx;
height: 62rpx; font-weight: 500;
background: #FFFFFF; color: #F44B2F;
border: 1px solid #26A888; line-height: 124rpx;
border-radius: 5rpx; text{
color: #26A888; font-size:44rpx;
line-height: 62rpx }
} }
.btnright { .btnright {
width: 289rpx; width: 169rpx;
height: 62rpx; height: 61rpx;
background: #26A888; background: #26A888;
border-radius: 5rpx; border-radius: 5rpx;
line-height: 61rpx;
transform: translateY(50%);
font-size: 28rpx;
font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
line-height: 62rpx;
} }
} }
::v-deep .u-tabs {
padding: 30rpx 20rpx 0 20rpx !important;
}
.item { .item {
border-radius: 5rpx;
width: 96%; width: 96%;
margin: 20rpx auto; margin: 14rpx auto 0;
background-color: #fff; background-color: #fff;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03); box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 5rpx; border-radius: 5rpx;
padding-bottom: 50rpx; padding-bottom: 50rpx;
.timeyear { .timeyear {
padding: 30rpx 40rpx 0 40rpx;
.bottomtext { .bottomtext {
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
width: 96%; width: 100%;
margin: 0 auto; margin: 0 auto;
.items { .items {
@ -71,7 +80,6 @@
line-height: 42rpx; line-height: 42rpx;
font-size: 16rpx; font-size: 16rpx;
font-weight: 500; font-weight: 500;
color: #000000;
} }
.timeitemtap { .timeitemtap {
@ -99,12 +107,12 @@
.Soonerorlater { .Soonerorlater {
width: 200rpx; width: 200rpx;
font-size: 36rpx; font-size: 28rpx;
height: 50rpx; height: 50rpx;
} }
.Soonerorlaterclass { .Soonerorlaterclass {
font-size: 36rpx; font-size: 28rpx;
color: #26A888; color: #26A888;
width: 200rpx; width: 200rpx;
height: 50rpx; height: 50rpx;

View File

@ -125,7 +125,7 @@
</view> </view>
<view class="btns"> <view class="btns">
<view class="btnleft"> <view class="btnleft">
返回 <text>{{formdata.price}}</text>.00
</view> </view>
<view class="btnright" @tap='updata'> <view class="btnright" @tap='updata'>
保存 保存
@ -167,6 +167,7 @@
address: '请选择所属地区', // address: '请选择所属地区', //
Soonerorlater: 'morning', Soonerorlater: 'morning',
timecurrent: 0, // timecurrent: 0, //
timeindex: 0,
appointmentTimeList: [], appointmentTimeList: [],
formdata: { formdata: {
address: null, address: null,
@ -197,6 +198,7 @@
this.formdata.phone = userinfo.phone this.formdata.phone = userinfo.phone
this.formdata.doctorName = options.doctorName this.formdata.doctorName = options.doctorName
this.formdata.doctorId = options.doctorId this.formdata.doctorId = options.doctorId
this.formdata.price = options.price
this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile' this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile'
this.areaInfo(); this.areaInfo();
this.getListByDoctorinfo(); this.getListByDoctorinfo();
@ -208,25 +210,29 @@
this.Soonerorlater = item this.Soonerorlater = item
this.timeindex = 0 this.timeindex = 0
if (item == 'morning') { if (item == 'morning') {
this.formdata.serviceStartTime = this.appointmentTimeList[this.timecurrent].morningList[0] this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.starttime .starttime
} else if (item == 'after') { } else if (item == 'after') {
this.formdata.serviceStartTime = this.appointmentTimeList[this.timecurrent].afternoonList[0] this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.endtime .endtime
} }
}, },
// //
taptime(item, index) { taptime(item, index) {
this.orderlist.serviceStartTime = item this.formdata.appointmentStartTime = item.starttime
this.formdata.appointmentEndTime = item.endtime
this.timeindex = index this.timeindex = index
}, },
timechange(index) { timechange(index) {
this.formdata.appointmentDate = this.appointmentTimeList[index].scheduleDate
if (this.timecurrent != index) { if (this.timecurrent != index) {
this.timecurrent = index this.timecurrent = index
this.formdata.appointmentStartTime = null this.timeindex = 0
this.formdata.appointmentEndTime = null 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() { updata() {
if (this.imglistlength > 0) { if (this.imglistlength > 0) {
@ -247,35 +253,36 @@
this.info(); this.info();
}, },
info() { info() {
console.log(this.formdata) consultationInfo(this.formdata).then(res => {
// consultationInfo(this.formdata).then(res => { if (res.code == 200) {
// if (res.code == 200) { this.$refs.uToast.show({
// this.$refs.uToast.show({ title: '新建专家问诊成功',
// title: '', type: 'success',
// type: 'success', duration: '1500',
// duration: '1500', back: 1
// back: 1 })
// }) }
// } })
// })
}, },
getListByDoctorinfo() { getListByDoctorinfo() {
getListByDoctor(this.formdata.doctorId).then(res => { getListByDoctor(this.formdata.doctorId).then(res => {
res.data.forEach(e => { res.data.forEach(e => {
e.dates = e.scheduleDate.slice(5, 10) e.dates = e.scheduleDate.slice(5, 10)
e.name = e.week e.name = e.week
e.morningList.forEach(el => { e.morningList.length > 0 ? e.morningList.forEach(el => {
el.starttime = el.scheduleTimeSlot.split('~')[0] el.starttime = el.scheduleTimeSlot.split('~')[0]
el.endtime = el.scheduleTimeSlot.split('~')[1] 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.starttime = el.scheduleTimeSlot.split('~')[0]
el.endtime = el.scheduleTimeSlot.split('~')[1] el.endtime = el.scheduleTimeSlot.split('~')[1]
}) }) : ''
}) })
this.formdata.appointmentDate = res.data[0].scheduleDate this.formdata.appointmentDate = res.data[0].scheduleDate
this.formdata.appointmentStartTime = res.data[0].morningList[0].starttime res.data[0]?.morningList[0]?.starttime ? this.formdata.appointmentStartTime = res.data[0]
this.formdata.appointmentEndTime = res.data[0].morningList[0].endtime .morningList[0].starttime : ''
res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0]
.morningList[0].endtime : ''
this.appointmentTimeList = res.data this.appointmentTimeList = res.data
}) })
}, },

View File

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