car
BIN
utils/img/a.jpeg
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
utils/img/banner.png
Normal file
|
After Width: | Height: | Size: 212 KiB |
BIN
utils/img/e0a4120f56503d02d61d5f6e92071dda.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
utils/img/万能泡沫清洗剂.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
utils/img/保养.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
utils/img/冷却系统养护.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
utils/img/发动机.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
utils/img/图层 6.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
utils/img/圆角矩形 2.png
Normal file
|
After Width: | Height: | Size: 834 B |
BIN
utils/img/广告位.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
utils/img/形状 3.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
utils/img/形状 5.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
utils/img/椭圆 6.png
Normal file
|
After Width: | Height: | Size: 1020 B |
BIN
utils/img/汽车空调换油保养.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
utils/img/矩形 19.png
Normal file
|
After Width: | Height: | Size: 112 B |
BIN
utils/img/矩形 2.png
Normal file
|
After Width: | Height: | Size: 395 B |
BIN
utils/img/类目 品类 分类 类别.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
utils/img/道路救援.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
utils/img/雨刮.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
19
utils/util.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const formatTime = date => {
|
||||
const year = date.getFullYear()
|
||||
const month = date.getMonth() + 1
|
||||
const day = date.getDate()
|
||||
const hour = date.getHours()
|
||||
const minute = date.getMinutes()
|
||||
const second = date.getSeconds()
|
||||
|
||||
return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
|
||||
}
|
||||
|
||||
const formatNumber = n => {
|
||||
n = n.toString()
|
||||
return n[1] ? n : '0' + n
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
formatTime: formatTime
|
||||
}
|
||||