竞赛宣传

dev_aliyun
daiao 5 years ago
parent 9af83480be
commit cbe8f7d00f

@ -129,16 +129,21 @@
<% end %> <% end %>
<% end %> <% end %>
if (window.localStorage) { var begin_time = new Date();
var uid = localStorage.getItem('competition_uid'); var end_time = new Date("2019-10-10");
} else { if (begin_time < end_time) {
var uid = false if (window.localStorage) {
} var uid = localStorage.getItem('competition_uid');
if(!uid){ } else {
var htmlvalue = "<%= escape_javascript(render :partial => 'competitions/competitions_name')%>"; var uid = false
pop_box_new(htmlvalue, 500, 380); }
if (!uid) {
var htmlvalue = "<%= escape_javascript(render :partial => 'competitions/competitions_name')%>";
pop_box_new(htmlvalue, 500, 380);
}
} }
<% notice = SystemUpdateNotice.last %> <% notice = SystemUpdateNotice.last %>
<% if @noticed_update || ((User.current.certification == 1 || params[:controller] != "welcome") && 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) %> <% if @noticed_update || ((User.current.certification == 1 || params[:controller] != "welcome") && 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) %>
var htmlvalue = "<%= escape_javascript(render :partial => 'account/user_update_notice', :locals => {:notice => notice})%>"; var htmlvalue = "<%= escape_javascript(render :partial => 'account/user_update_notice', :locals => {:notice => notice})%>";

Loading…
Cancel
Save