|
@@ -223,6 +223,14 @@ export default defineComponent({
|
|
|
}
|
|
|
return nowIndex;
|
|
|
},
|
|
|
+ // 获取时间的下标
|
|
|
+ getTimerIndex(timerArr: any, val: any) {
|
|
|
+ timerArr.map((time: any, index: any) => {
|
|
|
+ if (time.formatTimer == val) {
|
|
|
+ return index;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取当前位置的坐标(多端服务定制的判断规则-待开发)
|
|
|
getNowPerstion(timerArr: any) {
|
|
|
let nowIndex: any = proxyData.getNowIndex();
|
|
@@ -240,15 +248,23 @@ export default defineComponent({
|
|
|
|
|
|
let spaceCustomContentList: any =
|
|
|
proxyData.nowData.spaceCustomContentList || [];
|
|
|
-
|
|
|
+ // debugger
|
|
|
if (formatTimer >= cusStartTime && formatTimer <= cusEndTime) {
|
|
|
+ // debugger
|
|
|
//在服务定制时间之间
|
|
|
timerArr.map((item: any, index: any) => {
|
|
|
if (item.formatTimer === cusEndTime) {
|
|
|
obj.nowIndex = index;
|
|
|
}
|
|
|
});
|
|
|
- spaceCustomContentList.map((item: any) => {});
|
|
|
+ let endFormatTimer: any = timerArr[nowIndex + obj.len].formatTimer;
|
|
|
+ spaceCustomContentList.map((item: any) => {
|
|
|
+ let startTime: any = proxyData.parseCusStartTime(item.startTime);
|
|
|
+ if (startTime > cusEndTime && endFormatTimer > startTime) {
|
|
|
+ let index: any = proxyData.getTimerIndex(timerArr, startTime);
|
|
|
+ obj.len = index - obj.nowIndex;
|
|
|
+ }
|
|
|
+ });
|
|
|
} else if (formatTimer < cusStartTime) {
|
|
|
timerArr.map((item: any, index: any) => {
|
|
|
if (item.formatTimer === cusStartTime) {
|