...
|
...
|
@@ -8,20 +8,24 @@ var $ = require('yoho-jquery'), |
|
|
lazyLoad = require('yoho-jquery-lazyload'),
|
|
|
Hammer = require('yoho-hammer'),
|
|
|
dialog = require('../plugin/dialog'),
|
|
|
tip = require('../plugin/tip'),
|
|
|
orderId = $('#order-detail').data('id'),
|
|
|
tip = require('../plugin/tip');
|
|
|
|
|
|
var orderId = $('#order-detail').data('id'),
|
|
|
$countDownHours = $('.hours'),
|
|
|
$countdownContainer = $('.count-down'),
|
|
|
Swiper = require('yoho-swiper'),
|
|
|
$ownerInfo = $('.owner-info'),
|
|
|
$reaMask = $('.reason-mask'),
|
|
|
reasonSwiper,
|
|
|
optHammer;
|
|
|
optHammer,
|
|
|
$createTime = new Date($('.createTime').text() * 1000);
|
|
|
|
|
|
lazyLoad({
|
|
|
try_again_css: 'order-failure'
|
|
|
});
|
|
|
|
|
|
require('../common');
|
|
|
|
|
|
function downCount(options) {
|
|
|
|
|
|
var difference = options, // difference of dates
|
...
|
...
|
@@ -207,3 +211,43 @@ $reaMask.on('touchend', function(event) { |
|
|
$reaMask.css('visibility', 'hidden');
|
|
|
event.stopPropagation();
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function formatDate(objD) {
|
|
|
var str, colorhead, colorfoot,
|
|
|
yy = objD.getYear(),
|
|
|
MM = objD.getMonth() + 1,
|
|
|
dd = objD.getDate(),
|
|
|
hh = objD.getHours(),
|
|
|
mm = objD.getMinutes(),
|
|
|
ss = objD.getSeconds();
|
|
|
|
|
|
if (yy < 1900) {
|
|
|
yy = yy + 1900;
|
|
|
}
|
|
|
|
|
|
if (MM < 10) {
|
|
|
MM = '0' + MM;
|
|
|
}
|
|
|
|
|
|
if (dd < 10) {
|
|
|
dd = '0' + dd;
|
|
|
}
|
|
|
|
|
|
if (hh < 10) {
|
|
|
hh = '0' + hh;
|
|
|
}
|
|
|
|
|
|
if (mm < 10) {
|
|
|
mm = '0' + mm;
|
|
|
}
|
|
|
|
|
|
if (ss < 10) {
|
|
|
ss = '0' + ss;
|
|
|
}
|
|
|
|
|
|
str = yy + '-' + MM + '-' + dd + ' ' + hh + ':' + mm + ':' + ss;
|
|
|
$('.createTime').text(str);
|
|
|
}
|
|
|
formatDate($createTime); |
...
|
...
|
|