yshop1.7.1,修复后台表单等问题题

This commit is contained in:
hupeng
2020-01-08 12:16:28 +08:00
parent 1a3a388136
commit 82430ae52a
11 changed files with 640 additions and 425 deletions

View File

@ -91,6 +91,24 @@ export function formatTime(time, option) {
}
}
export function formatTimeTwo(time) {
time = time * 1000
const d = new Date(time)
return (
d.getFullYear()+'年'+
(d.getMonth() + 1) +
'月' +
d.getDate() +
'日' +
d.getHours() +
'时' +
d.getMinutes() +
'分'
)
}
/**
* @param {string} url
* @returns {Object}