|
@@ -571,12 +571,18 @@ export const formateTimeContinuous: any = function (index: any = 1,
|
|
|
endTime = cusEndTime;
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
- if (text) {
|
|
|
- let nowIndex: any = index + 1;
|
|
|
- that.text = text
|
|
|
- if (nowIndex < data.length - 1) {
|
|
|
- return formateTimeContinuous(nowIndex, startTime, endTime, 1, data, that);
|
|
|
+ if (text) {
|
|
|
+ let nowIndex: any = index + 1;
|
|
|
+ that.text = text
|
|
|
+ if (nowIndex < data.length - 1) {
|
|
|
+ return formateTimeContinuous(nowIndex, startTime, endTime, 1, data, that);
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ text: that.text,
|
|
|
+ startTime: startTime,
|
|
|
+ endTime: endTime,
|
|
|
+ };
|
|
|
+ }
|
|
|
} else {
|
|
|
return {
|
|
|
text: that.text,
|
|
@@ -591,6 +597,7 @@ export const formateTimeContinuous: any = function (index: any = 1,
|
|
|
endTime: endTime,
|
|
|
};
|
|
|
}
|
|
|
+
|
|
|
} else {
|
|
|
// 预约时候后找最近的一段预约时间
|
|
|
// let cusStartTime: any = data[index].cusStartTime;
|