日期时间空间

时间:2016-01-21 13:08:58
【文件属性】:

文件名称:日期时间空间

文件大小:134KB

文件格式:JS

更新时间:2016-01-21 13:08:58

时间

//属性 this.title=$(""); this.content=$(""); this.timeRow=$(""); this.timeUnit=$(""); this.tipUnit=$(""); this.dateTip=panelDate.split('-')[2]; //初始化 if(flag==0){ this.timeUnit.mousedown(function(){ $("#fromHourMinute").val($(this).html()); $("#toHourMinute").val($(this).html()); $("#fromHourMinute").attr("defaultValue",$(this).html()); $("#toHourMinute").attr("defaultValue",$(this).html()); // var checkTime=checkWorkTimeRangeByTime(); // var checkStore=checkWorkTimeRangeByStore(); // if(checkTime!='您选择的还车时间超出门店的营业时间,请调整' && checkStore!='您选择的还车时间超出门店的营业时间,请调整'){ // checkDifferStore(); // } }); }else if(flag==1){ this.timeUnit.mousedown(function(){ $("#toHourMinute").val($(this).html()); $("#toHourMinute").attr("defaultValue",$(this).html()); // var checkTime=checkWorkTimeRangeByTime(); // var checkStore=checkWorkTimeRangeByStore(); // if(checkTime!='您选择的还车时间超出门店的营业时间,请调整' && checkStore!='您选择的还车时间超出门店的营业时间,请调整'){ // checkDifferStore(); // } }); }else{ this.timeUnit.mousedown(function(){ $("#fromHourMinute").val($(this).html()); $("#fromHourMinute").attr("defaultValue",$(this).html()); }); } if(map.get("morning").length==0 && map.get("afternoon").length==0 && map.get("night").length==0 && map.get("firstMiddlenight").length==0 && map.get("secondMiddlenight").length==0){ this.title.append($("该日暂无推荐时段内的工作时间")); var morningTd=this.timeRow.clone(); morningTd.appendTo(this.content); }else{ if(map.get("morning").length>0){ this.title.append($("上午")); var morningTd=this.timeRow.clone(); morningTd.appendTo(this.content); for(var i=0;i").appendTo(morningTd); } } if(map.get("afternoon").length>0){ this.title.append($("下午")); var afternoonTd=this.timeRow.clone(); afternoonTd.appendTo(this.content); for(var i=0;i").appendTo(afternoonTd); } } if(map.get("night").length>0){ this.title.append($("傍晚")); var nightTd=this.timeRow.clone(); nightTd.appendTo(this.content); for(var i=0;i").appendTo(nightTd); } } if(map.get("firstMiddlenight").length>0 && map.get("secondMiddlenight").length>0){ this.title.append($("夜间服务(50元/次)")); var firstMiddlenightTd=this.timeRow.clone(); firstMiddlenightTd.appendTo(this.content); var secondMiddlenightTd=this.timeRow.clone(); secondMiddlenightTd.appendTo(this.content); for(var i=0;i").appendTo(firstMiddlenightTd); if(map.get("firstMiddlenight")[i] == '23:30' && typeof(panelDate)!='undefined' && i < (map.get("firstMiddlenight").length-1) ){ var unit2=this.tipUnit.clone(true); unit2.html(this.dateTip+'日'); unit2.appendTo(firstMiddlenightTd); $("
").appendTo(firstMiddlenightTd); } } for(var i=0;i").appendTo(secondMiddlenightTd); } } else if(map.get("firstMiddlenight").length>0){ this.title.append($("夜间服务(50元/次)")); var firstMiddlenightTd=this.timeRow.clone(); firstMiddlenightTd.appendTo(this.content); for(var i=0;i").appendTo(firstMiddlenightTd); if(map.get("firstMiddlenight")[i] == '23:30' && typeof(panelDate)!='undefined' && i < (map.get("firstMiddlenight").length-1) ){ var unit2=this.tipUnit.clone(true); unit2.html(this.dateTip+'日'); unit2.appendTo(firstMiddlenightTd); $("
").appendTo(firstMiddlenightTd); } } } else if(map.get("secondMiddlenight").length>0){ this.title.append($("夜间服务(50元/次)")); var secondMiddlenightTd=this.timeRow.clone(); secondMiddlenightTd.appendTo(this.content); for(var i=0;i").appendTo(secondMiddlenightTd); } } } var num=this.content.children().length; this.label=$("


网友评论