You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/shixuns/operation.js.erb

22 lines
927 B

6 years ago
<% if @mail %>
flag=true;
sure_box_redirect_btn('<%= my_account_path %>', '开启实训,请先绑定邮箱','绑定邮箱');
6 years ago
<% else %>
<% if @is_modify.blank? %>
//为了防止浏览器阻挡,在实训路径中需要弹出新的页面,而实训首页又不需要弹出新的页面
<% if @is_subject %>
var newTab=window.open("/loading.html");
$.ajax().done(function() {
// 重定向到目标页面
$('#ajax-indicator').hide();
newTab.location.href = "<%= shixun_exec_shixun_path(@shixun) %>";
});
<% else %>
$(".loading_all").show();
window.location.href="<%= shixun_exec_shixun_path(@shixun) %>";
$("#ajax-indicator").hide();
<% end %>
<% else %>
sure_box_redirect('<%= myshixun_reset_myshixun_path(@myshixun) %>', '实训已经更新啦,系统正在为您重置');
<% end %>
<% end %>