Authored by mali

转码

@@ -729,8 +729,8 @@ function addRecordPage(skup, order_code, id) { @@ -729,8 +729,8 @@ function addRecordPage(skup, order_code, id) {
729 $('#startTime').val(parseInt(new Date().getTime() / 1000)); 729 $('#startTime').val(parseInt(new Date().getTime() / 1000));
730 //$("#startTime").textbox('setValue',parseInt(new Date().getTime() / 1000)); 730 //$("#startTime").textbox('setValue',parseInt(new Date().getTime() / 1000));
731 } else if ($('#endTime').val() == '') { 731 } else if ($('#endTime').val() == '') {
732 - stopCount();  
733 $('#endTime').val(parseInt(new Date().getTime() / 1000)); 732 $('#endTime').val(parseInt(new Date().getTime() / 1000));
  733 + stopCount();
734 // $("#endTime").textbox('setValue',parseInt(new Date().getTime() / 1000)); 734 // $("#endTime").textbox('setValue',parseInt(new Date().getTime() / 1000));
735 $('#recordBtn').linkbutton({text:'上传云端'}); 735 $('#recordBtn').linkbutton({text:'上传云端'});
736 } else if ($('#startTime').val() != '' && $('#endTime').val() != ''){ 736 } else if ($('#startTime').val() != '' && $('#endTime').val() != ''){
@@ -39,12 +39,7 @@ @@ -39,12 +39,7 @@
39 function stopCount() { 39 function stopCount() {
40 var endTime = parseInt($('#endTime').val()); 40 var endTime = parseInt($('#endTime').val());
41 var startTime = parseInt($('#startTime').val()); 41 var startTime = parseInt($('#startTime').val());
42 - alert(endTime);  
43 - alert(startTime);  
44 - alert(endTime - startTime > 60);  
45 var secondVar = parseInt((endTime - startTime) % 60); 42 var secondVar = parseInt((endTime - startTime) % 60);
46 - alert(secondVar);  
47 -  
48 if (endTime - startTime > 60) { 43 if (endTime - startTime > 60) {
49 var minuteVar = parseInt((endTime - startTime) / 60); 44 var minuteVar = parseInt((endTime - startTime) / 60);
50 totalVar = minuteVar + '分' + secondVar + '秒'; 45 totalVar = minuteVar + '分' + secondVar + '秒';