Authored by mali

转码

... ... @@ -700,8 +700,8 @@ function addRecordPage(skup, order_code, id) {
var div = $("<div id='recordDiv'>").appendTo($(document.body));
var url = contextPath + "/html/judgeCenter/record.html";
$(div).myDialog({
width: "25%",
height: "20%",
width: "45%",
height: "35%",
title: "视频录制",
href: url,
modal: true,
... ... @@ -713,6 +713,13 @@ function addRecordPage(skup, order_code, id) {
iconCls: "icon-save",
onClick: function () {
if (!$('#startTime').val() || $('#startTime').val() == '') {
if ($('#cameraCode').val() == undefined && $('#cameraCode').val() == '')
{
window.self.$.messager.alert("先选择摄像头", data.message, "error");
return;
}
timedCount();
$('#recordBtn').linkbutton({text:'结束录制'});
$('#startTime').val(parseInt(new Date().getTime() / 1000));
... ...
... ... @@ -10,46 +10,48 @@
<ul>
<li>
<label>摄像头:</label>
<input id="cameraCode" type="text"/>
</li>
<li>
计时&nbsp;:&nbsp;<input id='txt' type='text'/>
<label>计 时:</label>
<input id="txt" type="text" class="easyui-textbox" style="width:150px"/>
</li>
<li>
时长&nbsp;:&nbsp;<input id='total' type='text'/>
<label>时长:</label>
<input id="txt" type="text" class="easyui-textbox" style="width:150px"/>
</li>
</ul>
<script type="text/javascript">
$(function () {
var c = 0
var t
if (t) {
clearTimeout(t);
}
function timedCount() {
document.getElementById('txt').value = c
c = c + 1
t = setTimeout("timedCount()", 1000)
}
var c = 0
var t
if (t) {
clearTimeout(t);
}
function timedCount() {
document.getElementById('txt').value = c
c = c + 1
t = setTimeout("timedCount()", 1000)
}
var totalVar;
var totalVar;
function stopCount() {
var endTime = $('#endTime').val();
var startTime = $('#startTime').val();
var secondVar = parseInt((endTime - startTime) % 60);
if (endTime - startTime > 60) {
var minuteVar = parseInt((endTime - startTime) / 60);
totalVar = minuteVar + '分' + secondVar + '秒';
} else {
totalVar = secondVar + '秒';
}
c = 0;
setTimeout("document.getElementById('total').value=totalVar", 0);
clearTimeout(t);
function stopCount() {
var endTime = $('#endTime').val();
var startTime = $('#startTime').val();
var secondVar = parseInt((endTime - startTime) % 60);
if (endTime - startTime > 60) {
var minuteVar = parseInt((endTime - startTime) / 60);
totalVar = minuteVar + '分' + secondVar + '秒';
} else {
totalVar = secondVar + '秒';
}
c = 0;
setTimeout("document.getElementById('total').value=totalVar", 0);
clearTimeout(t);
}
$(function () {
$.ajax({
contentType: "application/json",
dataType: "json",
... ...