pull/123/head
midoks 3 years ago
parent 290c8cb59c
commit 77a7c20e2c
  1. 11
      route/static/app/public.js
  2. 9
      route/static/app/soft.js

@ -826,15 +826,14 @@ function installTips() {
// }); // });
// }; // };
function fly(a,e) { function flySlow(a) {
var b = $("#task").offset(); var b = $("#task").offset();
var e = $("." + a);
var d = e;
var c = $('<span class="yuandian"></span>'); var c = $('<span class="yuandian"></span>');
var d = $("." + a);
c.fly({ c.fly({
start: { start: {
left: d.pageX, left: d.offset().left,
top: d.pageY top: d.offset().top,
}, },
end: { end: {
left: b.left + 10, left: b.left + 10,
@ -842,10 +841,12 @@ function fly(a,e) {
width: 0, width: 0,
height: 0 height: 0
}, },
speed: 0.65,
onEnd: function() { onEnd: function() {
layer.closeAll(); layer.closeAll();
layer.msg(lan.bt.task_add, {icon: 1}); layer.msg(lan.bt.task_add, {icon: 1});
getTaskCount(); getTaskCount();
$('.yuandian').remove();
} }
}); });

@ -214,9 +214,9 @@ function addVersion(name, ver, type, obj, title, install_pre_inspection) {
$(this).attr('checked', 'checked').parent().siblings().find("input").removeAttr('checked'); $(this).attr('checked', 'checked').parent().siblings().find("input").removeAttr('checked');
}); });
installTips(); installTips();
// fly("layui-layer-btn0");
}, },
yes:function(e){ yes:function(index,layero){
// console.log(index,layero)
var info = $("#selectVersion").val().toLowerCase(); var info = $("#selectVersion").val().toLowerCase();
if (info == ''){ if (info == ''){
info = $("#selectVersion").text().toLowerCase(); info = $("#selectVersion").text().toLowerCase();
@ -230,12 +230,13 @@ function addVersion(name, ver, type, obj, title, install_pre_inspection) {
//安装检查 //安装检查
installPreInspection(name, version, function(){ installPreInspection(name, version, function(){
runInstall(data); runInstall(data);
fly("layui-layer-btn0",e); flySlow('layui-layer-btn0');
}); });
return; return;
} }
runInstall(data); runInstall(data);
fly("layui-layer-btn0",e); flySlow('layui-layer-btn0');
} }
}); });
} }

Loading…
Cancel
Save