...
|
...
|
@@ -5,6 +5,9 @@ common=require('../common/common'); |
|
|
var e = new common.edit("#activityForm");
|
|
|
|
|
|
e.on("render", function() {
|
|
|
|
|
|
});
|
|
|
|
|
|
var bgStyle = $("#backgroundStyle").val();
|
|
|
var prizeList = $("#prizeList").val();
|
|
|
if (bgStyle) {
|
...
|
...
|
@@ -20,8 +23,23 @@ e.on("render", function() { |
|
|
$("#realUserNum").val(prizeObj.realUserNum);
|
|
|
$("#sockUserNum").val(prizeObj.sockUserNum);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
function dealTotalHours() {
|
|
|
var beginTimeStr = $("#beginTimeStr").val();
|
|
|
var endTimeStr = $("#endTimeStr").val();
|
|
|
if (beginTimeStr != "" && endTimeStr != "") {
|
|
|
var bDate = new Date(beginTimeStr);
|
|
|
var eDate = new Date(endTimeStr);
|
|
|
var hours = eDate.getTime() - bDate.getTime();
|
|
|
$("#totalHours").html("总计时间:" + parseInt(hours / (1000 * 60 * 60)) + " 小时");
|
|
|
} else {
|
|
|
$("#totalHours").html("");
|
|
|
}
|
|
|
}
|
|
|
dealTotalHours();
|
|
|
$("#beginTimeStr,#endTimeStr").change(function() {
|
|
|
dealTotalHours();
|
|
|
});
|
|
|
|
|
|
e.init();
|
|
|
|
...
|
...
|
|