Commit 611330e1 by 李伟康

commit 修改banner样式

1 parent 67d27446
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 3
const index = 2
/**
*
0本地
......
......@@ -437,8 +437,12 @@ export default {
let { carBannerList, currentIndex } = this,
len = carBannerList.length
let className = currentIndex == index ? 'current-item' : ''
if (currentIndex == 0 && index == len - 1) className += ' current-item-left'
else if (currentIndex == len - 1 && index != 0) className += ' current-item-left'
if (currentIndex == 0 && index == len - 1) {
className += ' current-item-left'
}
else if (currentIndex == len - 1) {
if (index != 0) className += ' current-item-left'
}
else {
if (index < currentIndex) className += ' current-item-left'
else className += ' current-item-right'
......
......@@ -4,19 +4,20 @@ import { getTime, withinSpliter, daysBetween } from './util'
class LocalLog {
logger = null
constructor() {
this.logger = new LogCat()
// this.logger = new LogCat()
this.logger = { }
}
debug(msg) {
this.logger.writeLog(LogLevel.DEBUG, msg)
// this.logger.writeLog(LogLevel.DEBUG, msg)
}
info(msg) {
this.logger.writeLog(LogLevel.INFO, msg)
// this.logger.writeLog(LogLevel.INFO, msg)
}
warn(msg) {
this.logger.writeLog(LogLevel.WARN, msg)
// this.logger.writeLog(LogLevel.WARN, msg)
}
error(msg) {
this.logger.writeLog(LogLevel.ERROR, msg)
// this.logger.writeLog(LogLevel.ERROR, msg)
}
getFiles(beginDate, endDate) {
const logFiles = this.logger.getLogFileList()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!