修改
This commit is contained in:
parent
bb428bdcf5
commit
3789016108
@ -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 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -38,6 +38,42 @@
|
||||
</view>
|
||||
<tabs :list="appointmentTimeList" :current="timecurrent" @change="timechange" active-color="#26A888">
|
||||
</tabs>
|
||||
<view class="timeyear">
|
||||
<view class="toptext">
|
||||
<view :class="Soonerorlater=='morning'?'Soonerorlaterclass':'Soonerorlater'"
|
||||
@tap="tapSoonerorlater('morning')">
|
||||
上午
|
||||
</view>
|
||||
<view class="">
|
||||
</view>
|
||||
<view :class="Soonerorlater=='after'?'Soonerorlaterclass':'Soonerorlater'"
|
||||
@tap="tapSoonerorlater('after')">
|
||||
下午
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomtext">
|
||||
<view class="items" v-if="Soonerorlater=='morning'">
|
||||
<view @tap='taptime(item,index)'
|
||||
v-for="(item ,index) in appointmentTimeList[timecurrent].morningList"
|
||||
:class="timeindex==index?'timeitemtap':'timeitem'"
|
||||
:style="item.status?'':'background: #FFFFFF;color: #AAABB0;'">
|
||||
<view class="itemstext">
|
||||
{{item.scheduleTimeSlot}}
|
||||
</view>
|
||||
<view class="itemstexttwo">
|
||||
{{item.status?'(可预约)':'(不可预约)'}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="items" v-if="Soonerorlater=='after'">
|
||||
<view @tap='taptime(item,index)'
|
||||
v-for="(item ,index) in appointmentTimeList[timecurrent].afternoonList"
|
||||
:class="timeindex==index?'timeitemtap':'timeitem'">
|
||||
{{item.scheduleTimeSlot}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="text">
|
||||
问题简述
|
||||
</view>
|
||||
@ -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 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import './confirmation.scss';
|
||||
</style>
|
||||
</style>
|
||||
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user