...
|
...
|
@@ -14,11 +14,11 @@ const _formatTime = (a, b) => { |
|
|
if (judge === 1) {
|
|
|
status = b ? '预告明日' : '明天';
|
|
|
} else if (judge > 1) {
|
|
|
status = b ? `${(time.getMonth() + 1)}.${time.getDate()}` : `${(time.getMonth() + 1)}月${time.getDate()}日`;
|
|
|
status = b ? `${(time.getMonth() + 1)}.${time.getDate()} ` : `${(time.getMonth() + 1)}月${time.getDate()}日`;
|
|
|
} else {
|
|
|
status = b ? '预告' : '今天';
|
|
|
}
|
|
|
return `${status} ${time.getHours() < 10 ? '0' + time.getHours() : time.getHours()}
|
|
|
return `${status}${time.getHours() < 10 ? '0' + time.getHours() : time.getHours()}
|
|
|
:${time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()}`;
|
|
|
};
|
|
|
|
...
|
...
|
@@ -40,7 +40,7 @@ const _getBestList = () => { |
|
|
code: 200,
|
|
|
cache: false
|
|
|
}).then(result => {
|
|
|
let list = result.data;
|
|
|
let list = result.data || [];
|
|
|
|
|
|
for (let item of list) {
|
|
|
switch (item.living) {
|
...
|
...
|
@@ -59,7 +59,7 @@ const _getBestList = () => { |
|
|
// 格式化时间
|
|
|
item.starting_time = _formatTime(item.starting_time, true);
|
|
|
}
|
|
|
return result.data ? result.data : [];
|
|
|
return result.data || [];
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -69,7 +69,7 @@ const _getLivingList = () => { |
|
|
code: 200,
|
|
|
cache: false
|
|
|
}).then(result => {
|
|
|
return result.data ? result.data : [];
|
|
|
return result.data || [];
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -79,12 +79,12 @@ const _getPrelivingList = () => { |
|
|
code: 200,
|
|
|
cache: false
|
|
|
}).then(result => {
|
|
|
let list = result.data;
|
|
|
let list = result.data || [];
|
|
|
|
|
|
for (let item of list) {
|
|
|
item.starting_time = _formatTime(item.starting_time);
|
|
|
}
|
|
|
return result.data ? result.data : [];
|
|
|
return result.data || [];
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -94,7 +94,7 @@ const _getRecordList = () => { |
|
|
code: 200,
|
|
|
cache: false
|
|
|
}).then(result => {
|
|
|
return result.data ? result.data : [];
|
|
|
return result.data || [];
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
|