Merge pull request #16 from wanzhende/patch-4

修复当用户选择的小时大于min参数的小时情况下分钟选择没有取消限制的问题
This commit is contained in:
贤心 2017-06-18 23:01:16 +08:00 committed by GitHub
commit 06c11ba9cd

View File

@ -206,7 +206,7 @@ layui.define(function(exports){
if(Dates.ymd[1]+1 == Dates.mins[1] && Dates.ymd[2] == Dates.mins[2]){ if(Dates.ymd[1]+1 == Dates.mins[1] && Dates.ymd[2] == Dates.mins[2]){
if(index === 0 && (times < Dates.mins[3])){ if(index === 0 && (times < Dates.mins[3])){
return 1; return 1;
} else if(index === 1 && times < Dates.mins[4]){ } else if(index === 1 && times < Dates.mins[4] && Dates.hmsin[0].value <= Dates.mins[3]){
return 1; return 1;
} else if(index === 2 && times < Dates.mins[5]){ } else if(index === 2 && times < Dates.mins[5]){
return 1; return 1;