diff --git a/route/static/app/public.js b/route/static/app/public.js index 9f6da1f9c..5681b16f7 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -826,15 +826,14 @@ function installTips() { // }); // }; -function fly(a,e) { +function flySlow(a) { var b = $("#task").offset(); - var e = $("." + a); - var d = e; var c = $(''); + var d = $("." + a); c.fly({ start: { - left: d.pageX, - top: d.pageY + left: d.offset().left, + top: d.offset().top, }, end: { left: b.left + 10, @@ -842,10 +841,12 @@ function fly(a,e) { width: 0, height: 0 }, + speed: 0.65, onEnd: function() { layer.closeAll(); layer.msg(lan.bt.task_add, {icon: 1}); getTaskCount(); + $('.yuandian').remove(); } }); diff --git a/route/static/app/soft.js b/route/static/app/soft.js index aeec49547..31ccf87fd 100755 --- a/route/static/app/soft.js +++ b/route/static/app/soft.js @@ -214,9 +214,9 @@ function addVersion(name, ver, type, obj, title, install_pre_inspection) { $(this).attr('checked', 'checked').parent().siblings().find("input").removeAttr('checked'); }); installTips(); - // fly("layui-layer-btn0"); }, - yes:function(e){ + yes:function(index,layero){ + // console.log(index,layero) var info = $("#selectVersion").val().toLowerCase(); if (info == ''){ info = $("#selectVersion").text().toLowerCase(); @@ -230,12 +230,13 @@ function addVersion(name, ver, type, obj, title, install_pre_inspection) { //安装检查 installPreInspection(name, version, function(){ runInstall(data); - fly("layui-layer-btn0",e); + flySlow('layui-layer-btn0'); }); return; } runInstall(data); - fly("layui-layer-btn0",e); + flySlow('layui-layer-btn0'); + } }); }