Authored by 郭成尧

Merge branch 'hotfix/moment' into 'hotfix/agelevel'

删除moment



See merge request !1178
let tip = require('plugin/tip'),
moment = require('moment'),
Swiper = require('yoho-swiper');
// IScroll = require('yoho-iscroll');
... ... @@ -225,8 +224,13 @@ function removeByValue(arr, val) {
}
}
function _formatDay(day) {
return moment(day).format('MM月DD日 HH:mm');
function _formatDay(date) {
let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1);
let D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
let h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
let m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
return `${M}${D} ${h}:${m}`;
}
function pullPicBig(cIndex) {
... ...