修改
This commit is contained in:
parent
4ad55d3b6d
commit
326919e98a
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<view class="content" v-if='tabslist.length>0'>
|
||||
<view class="" v-if="timecurrent==0">
|
||||
<view class="toptime" v-if="timecurrent==0">
|
||||
<span>{{tabslist[0].name}} {{tabslist[0].dates}}</span>
|
||||
|
||||
</view>
|
||||
@ -36,8 +36,7 @@
|
||||
<view class="bodyitem">
|
||||
|
||||
<view class="" v-for="(item ,index) in List[timecurrent].morningList">
|
||||
<view @tap='taptimemorning(item,index)'
|
||||
:class="item.status==true?'morningbodytwo':'morningbody'">
|
||||
<view @tap='taptimemorning(item,index)' :class="item.status==true?'morningbodytwo':'morningbody'">
|
||||
<span class="spanitem">{{item.scheduleTimeSlot}}</span>
|
||||
<view class="spanitem" v-if="item.status==false">不可预约</view>
|
||||
<view class="spanitem" v-else>可预约</view>
|
||||
@ -52,8 +51,7 @@
|
||||
</view>
|
||||
<view class="bodyitem">
|
||||
<view class="" v-for="(item ,index) in List[timecurrent].afternoonList">
|
||||
<view @tap='taptimeafter(item,index)'
|
||||
:class="item.status==true?'bodytwo':'body'">
|
||||
<view @tap='taptimeafter(item,index)' :class="item.status==true?'bodytwo':'body'">
|
||||
<span class="spanitem">{{item.scheduleTimeSlot}}</span>
|
||||
<view class="spanitem" v-if="item.status==false">不可预约</view>
|
||||
<view class="spanitem" v-else>可预约</view>
|
||||
@ -133,17 +131,17 @@
|
||||
}
|
||||
},
|
||||
// 修改上午全部状态
|
||||
morningdata(){
|
||||
this.qurey={
|
||||
schedulePlanDetailIds:[],
|
||||
status:'1',
|
||||
morningdata() {
|
||||
this.qurey = {
|
||||
schedulePlanDetailIds: [],
|
||||
status: '1',
|
||||
|
||||
}
|
||||
getListByDoctor(this.doctorId).then(res => {
|
||||
|
||||
if (res.data) {
|
||||
|
||||
res.data[this.timecurrent].morningList.forEach(e=>{
|
||||
res.data[this.timecurrent].morningList.forEach(e => {
|
||||
this.qurey.schedulePlanDetailIds.push(e.schedulePlanDetailId)
|
||||
|
||||
})
|
||||
@ -171,10 +169,10 @@
|
||||
|
||||
},
|
||||
// 修改下午全部状态
|
||||
afterdata(){
|
||||
this.qurey={
|
||||
schedulePlanDetailIds:[],
|
||||
status:'1',
|
||||
afterdata() {
|
||||
this.qurey = {
|
||||
schedulePlanDetailIds: [],
|
||||
status: '1',
|
||||
|
||||
},
|
||||
getListByDoctor(this.doctorId).then(res => {
|
||||
@ -182,7 +180,7 @@
|
||||
if (res.data) {
|
||||
console.log(res.data[this.timecurrent].afternoonList)
|
||||
// var schedulePlanDetailId
|
||||
res.data[this.timecurrent].afternoonList.forEach(e=>{
|
||||
res.data[this.timecurrent].afternoonList.forEach(e => {
|
||||
this.qurey.schedulePlanDetailIds.push(e.schedulePlanDetailId)
|
||||
|
||||
})
|
||||
@ -209,21 +207,21 @@
|
||||
|
||||
},
|
||||
// 修改全天状态
|
||||
alldata(){
|
||||
alldata() {
|
||||
getListByDoctor(this.doctorId).then(res => {
|
||||
this.qurey={
|
||||
schedulePlanDetailIds:[],
|
||||
status:'1',
|
||||
this.qurey = {
|
||||
schedulePlanDetailIds: [],
|
||||
status: '1',
|
||||
|
||||
}
|
||||
if (res.data) {
|
||||
console.log(res.data[this.timecurrent].afternoonList)
|
||||
// var schedulePlanDetailId
|
||||
res.data[this.timecurrent].afternoonList.forEach(e=>{
|
||||
res.data[this.timecurrent].afternoonList.forEach(e => {
|
||||
this.qurey.schedulePlanDetailIds.push(e.schedulePlanDetailId)
|
||||
|
||||
})
|
||||
res.data[this.timecurrent].morningList.forEach(e=>{
|
||||
res.data[this.timecurrent].morningList.forEach(e => {
|
||||
this.qurey.schedulePlanDetailIds.push(e.schedulePlanDetailId)
|
||||
|
||||
})
|
||||
@ -251,9 +249,9 @@
|
||||
},
|
||||
//选择时间
|
||||
taptimemorning(item, index) {
|
||||
this.qurey={
|
||||
schedulePlanDetailIds:[],
|
||||
status:'1',
|
||||
this.qurey = {
|
||||
schedulePlanDetailIds: [],
|
||||
status: '1',
|
||||
|
||||
}
|
||||
this.status = item.status
|
||||
@ -291,9 +289,9 @@
|
||||
// 下午
|
||||
taptimeafter(item, index) {
|
||||
this.timeindexafter = index
|
||||
this.qurey={
|
||||
schedulePlanDetailIds:[],
|
||||
status:''
|
||||
this.qurey = {
|
||||
schedulePlanDetailIds: [],
|
||||
status: ''
|
||||
|
||||
}
|
||||
if (item.status == true) {
|
||||
@ -358,7 +356,7 @@
|
||||
this.timeindex = null
|
||||
this.Soonerorlater = null
|
||||
},
|
||||
timedata(){
|
||||
timedata() {
|
||||
this.timecurrent++
|
||||
this.timeindexafter = null
|
||||
this.timeindex = null
|
||||
@ -567,7 +565,7 @@
|
||||
border-radius: 5rpx 5rpx 5rpx 0rpx;
|
||||
|
||||
::v-deep .u-tabs[data-v-59a86fad] {
|
||||
padding: 74rpx 0 0 0;
|
||||
padding: 10rpx 0 0 0;
|
||||
}
|
||||
|
||||
::v-deep .uni-scroll-view,
|
||||
@ -576,11 +574,17 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
position: relative !important;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 1%;
|
||||
// top: 1%;
|
||||
margin-top: 14rpx;
|
||||
display: inline-block;
|
||||
// background: red;
|
||||
/* width: 100%; */
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
::v-deep.tabs {
|
||||
|
||||
@ -64,6 +64,8 @@
|
||||
{{list.personName}}
|
||||
</view>
|
||||
<view class="fist">
|
||||
<!-- <image></image> -->
|
||||
<image class="imagelist" src="../../static/time.png" mode=""></image>
|
||||
<image src="../../static/see.png" mode="" class="two" @tap="gotime"></image>
|
||||
</view>
|
||||
<view class="myorder titles" @tap="personlinfo()">
|
||||
@ -383,9 +385,14 @@
|
||||
left: 50%;
|
||||
top: 13%;
|
||||
transform: translateX(-50%);
|
||||
background: url(../../static/time.png) no-repeat center center fixed;
|
||||
background-size: contain;
|
||||
// background: url(../../static/time.png) no-repeat center center fixed;
|
||||
// background-size: contain;
|
||||
margin-bottom: 50rpx;
|
||||
.imagelist{
|
||||
width: 100%;
|
||||
height: 130rpx;
|
||||
|
||||
}
|
||||
.two {
|
||||
width: 168rpx;
|
||||
height: 54rpx;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user