|
|
|
@ -3,11 +3,11 @@
|
|
|
|
|
<div class="clearfix font-16 mb30 title_detail">
|
|
|
|
|
<a href="<%= home_path %>" class="none"><img src="/images/educoder/logo.png" class="fl"/></a>
|
|
|
|
|
<span class="fr">
|
|
|
|
|
<% if @require_trail_auth %>
|
|
|
|
|
<a href="javascript:void(0)" onclick="apply_trial_box()" class="color-blue">试用申请</a>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%# if @require_trail_auth %>
|
|
|
|
|
<!-- <a href="javascript:void(0)" onclick="apply_trial_box()" class="color-blue">试用申请</a>-->
|
|
|
|
|
<%# else %>
|
|
|
|
|
<a href="<%= home_path %>" class="color-blue">返回首页</a>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# end %>
|
|
|
|
|
<em class="vertical-line ml5 mr5"></em>
|
|
|
|
|
<a href="<%= signout_path %>" class="color-blue">退出</a>
|
|
|
|
|
</span>
|
|
|
|
@ -91,21 +91,21 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(function () {
|
|
|
|
|
<% if @require_trail_auth %>
|
|
|
|
|
var html = "<%= escape_javascript(render :partial => 'welcome/two_btn_mask_pop') %>";
|
|
|
|
|
pop_box_new(html, 500, 338,true);
|
|
|
|
|
<% if @certification_expired.present? %>
|
|
|
|
|
$("#apply_trial_text").html("您的账号授权已过期,继续使用需要经过授权审核<br>通过审核后,您将可以继续使用");
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# if @require_trail_auth %>
|
|
|
|
|
<!-- var html = "<%#= escape_javascript(render :partial => 'welcome/two_btn_mask_pop') %>";-->
|
|
|
|
|
<!-- pop_box_new(html, 500, 338,true);-->
|
|
|
|
|
<%# if @certification_expired.present? %>
|
|
|
|
|
<!-- $("#apply_trial_text").html("您的账号授权已过期,继续使用需要经过授权审核<br>通过审核后,您将可以继续使用");-->
|
|
|
|
|
<%# end %>
|
|
|
|
|
<%# end %>
|
|
|
|
|
|
|
|
|
|
<% if @noticed_result %>
|
|
|
|
|
<% if @trail_authentication.status == 1 %>
|
|
|
|
|
sure_box_redirect_without_newtab("<%= user_path(@user) %>", "试用申请已被接受");
|
|
|
|
|
<% elsif @trail_authentication.status == 2 %>
|
|
|
|
|
sure_box_redirect_without_newtab_btn("<%= my_account_path %>", "试用申请已被拒绝<br/>原因:<%= [@trail_authentication.reason, @trail_authentication.reject_description].join(';') %>", "重新申请");
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# if @noticed_result %>
|
|
|
|
|
<%# if @trail_authentication.status == 1 %>
|
|
|
|
|
<!-- sure_box_redirect_without_newtab("<%#= user_path(@user) %>", "试用申请已被接受");-->
|
|
|
|
|
<%# elsif @trail_authentication.status == 2 %>
|
|
|
|
|
<!-- sure_box_redirect_without_newtab_btn("<%#= my_account_path %>", "试用申请已被拒绝<br/>原因:<%#= [@trail_authentication.reason, @trail_authentication.reject_description].join(';') %>", "重新申请");-->
|
|
|
|
|
<%# end %>
|
|
|
|
|
<%# end %>
|
|
|
|
|
|
|
|
|
|
<% notice = SystemUpdateNotice.last %>
|
|
|
|
|
<% if User.current.certification == 1 && notice.present? && notice.end_time > Time.now && notice.start_time >= (Time.now - 21600) && User.current.user_system_notices.where(:notice_type => notice.notice_type).count == 0 %>
|
|
|
|
|