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