Authored by mali

转码

... ... @@ -729,8 +729,8 @@ function addRecordPage(skup, order_code, id) {
$('#startTime').val(parseInt(new Date().getTime() / 1000));
//$("#startTime").textbox('setValue',parseInt(new Date().getTime() / 1000));
} else if ($('#endTime').val() == '') {
stopCount();
$('#endTime').val(parseInt(new Date().getTime() / 1000));
stopCount();
// $("#endTime").textbox('setValue',parseInt(new Date().getTime() / 1000));
$('#recordBtn').linkbutton({text:'上传云端'});
} else if ($('#startTime').val() != '' && $('#endTime').val() != ''){
... ...
... ... @@ -39,12 +39,7 @@
function stopCount() {
var endTime = parseInt($('#endTime').val());
var startTime = parseInt($('#startTime').val());
alert(endTime);
alert(startTime);
alert(endTime - startTime > 60);
var secondVar = parseInt((endTime - startTime) % 60);
alert(secondVar);
if (endTime - startTime > 60) {
var minuteVar = parseInt((endTime - startTime) / 60);
totalVar = minuteVar + '分' + secondVar + '秒';
... ...