|
|
@@ -36,7 +36,8 @@ export default {
|
|
|
dateValue:'',
|
|
|
hourList:[],
|
|
|
hourListSelceted:[],
|
|
|
- selectDate:getApp().globalData.nowTime,
|
|
|
+// selectDate:getApp().globalData.nowTime,
|
|
|
+ selectDate:'',
|
|
|
selectedHour:[],
|
|
|
};
|
|
|
},
|
|
|
@@ -109,7 +110,10 @@ export default {
|
|
|
if (res.data.code === 200) {
|
|
|
let dayList = res.data.data;
|
|
|
if(dayList.length){
|
|
|
- this.dateValue = dayList[0]
|
|
|
+ this.dateValue = dayList[0];
|
|
|
+ if (this.selectDate == ''){
|
|
|
+ this.selectDate = dayList[0];
|
|
|
+ }
|
|
|
}
|
|
|
this.list = dayList;
|
|
|
this.getHoursTime(id,this.selectDate)
|
|
|
@@ -184,7 +188,7 @@ export default {
|
|
|
.hours-content {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- justify-content: space-around;
|
|
|
+// justify-content: space-around;
|
|
|
align-items: center;
|
|
|
margin-top: 20rpx;
|
|
|
view {
|
|
|
@@ -193,6 +197,8 @@ export default {
|
|
|
background: #f4f4f4;
|
|
|
text-align: center;
|
|
|
line-height: 80rpx;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ margin-right: 10rpx;
|
|
|
margin-bottom: 20rpx;
|
|
|
border-radius: 10rpx;
|
|
|
font-size: 24rpx;
|