| | |
| | | var a ="<div>\n" + |
| | | " <div class=\"initialLevel col-sm-12 control-label form-group\" >\n" + |
| | | " <span class=\"control-label\" >时间段</span>\n" + |
| | | " <input class=\"control-label\" id=\"num1-"+i+"\" name=\"num1\" type=\"text\" placeholder=\"00:00\" style=\"height: 30px;width: 80px\">\n" + |
| | | " <input class=\"control-label time-item\" id=\"num1-"+i+"\" name=\"num1\" type=\"text\" placeholder=\"00:00\" style=\"height: 30px;width: 80px\" readonly>\n" + |
| | | " <span class=\"control-label\" >——</span>\n" + |
| | | " <input class=\"control-label\" id=\"num2-"+i+"\" name=\"num2\" type=\"text\" placeholder=\"00:00\" style=\"height: 30px;width: 80px\">\n" + |
| | | " <input class=\"control-label time-item\" id=\"num2-"+i+"\" name=\"num2\" type=\"text\" placeholder=\"00:00\" style=\"height: 30px;width: 80px\" readonly>\n" + |
| | | " <span class=\"control-label\" >代驾里程</span>\n" + |
| | | " <input class=\"control-label\" id=\"num3-"+i+"\" name=\"num3\" type=\"number\" style=\"height: 30px;width: 80px\">\n" + |
| | | " <span class=\"control-label\" >公里,起步价</span>\n" + |
| | |
| | | " </div>" |
| | | |
| | | $("#rules").append($(a)) |
| | | // laydate.render({ |
| | | // elem: '#num1-'+i, |
| | | // type: 'time', |
| | | // format: 'HH:mm', |
| | | // range: false, |
| | | // lang:'zn' |
| | | // }); |
| | | // laydate.render({ |
| | | // elem: '#num2-'+i, |
| | | // type: 'time', |
| | | // format: 'HH:mm', |
| | | // range: false, |
| | | // lang:'zn' |
| | | // }); |
| | | lay('.time-item').each(function(){ |
| | | laydate.render({ |
| | | elem: this, |
| | | type: 'time', |
| | | format: 'HH:mm', |
| | | range: false, |
| | | lang:'zn', |
| | | trigger: 'click' |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | TSystemConfig.delBox = function (o) { |