This commit is contained in:
myr1111
2020-01-09 09:46:20 +08:00
commit 07e6576a29
34 changed files with 277 additions and 0 deletions

BIN
utils/img/a.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
utils/img/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
utils/img/保养.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
utils/img/发动机.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
utils/img/图层 6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 834 B

BIN
utils/img/广告位.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
utils/img/形状 3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
utils/img/形状 5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/img/椭圆 6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
utils/img/矩形 19.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 B

BIN
utils/img/矩形 2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
utils/img/道路救援.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
utils/img/雨刮.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

19
utils/util.js Normal file
View 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
}