Update public.js

pull/632/head
Mr Chen 5 months ago
parent 9365139430
commit 56055000d9
  1. 6
      web/static/app/public.js

@ -1152,7 +1152,7 @@ function getPanelList(){
},function(){ },function(){
$(this).css("opacity",".6"); $(this).css("opacity",".6");
}).click(function(){ }).click(function(){
// $("#btpanelform").remove(); // $("#panel_form").remove();
var murl = $(this).attr("data-url"); var murl = $(this).attr("data-url");
var user = $(this).attr("data-user"); var user = $(this).attr("data-user");
var pw = $(this).attr("data-pw"); var pw = $(this).attr("data-pw");
@ -1172,13 +1172,13 @@ function getPanelList(){
}); });
// window.open(murl); // window.open(murl);
// //
var loginForm ='<div id="btpanelform" style="display:none"><form id="toBtpanel" action="'+now_url.origin+'/do_login" method="post" target="btpfrom">\ var loginForm ='<div id="panel_form" style="display:none"><form id="toBtpanel" action="'+now_url.origin+'/do_login" method="post" target="btpfrom">\
<input name="username" value="'+user+'" type="text">\ <input name="username" value="'+user+'" type="text">\
<input name="password" value="'+pw+'" type="password">\ <input name="password" value="'+pw+'" type="password">\
<input name="code" id="bt_code" value="" type="text">\ <input name="code" id="bt_code" value="" type="text">\
</form><iframe name="btpfrom" src=""></iframe></div>'; </form><iframe name="btpfrom" src=""></iframe></div>';
$("body").append(loginForm); $("body").append(loginForm);
// console.log($("btpanelform").html()); // console.log($("panel_form").html());
layer.msg('正在打开面板...',{icon:16,shade: [0.3, '#000'],time:1000}); layer.msg('正在打开面板...',{icon:16,shade: [0.3, '#000'],time:1000});
setTimeout(function(){ setTimeout(function(){
$("#toBtpanel").submit(); $("#toBtpanel").submit();

Loading…
Cancel
Save