bigdir/app/views/contests/set_reward_softapplication....

31 lines
708 B
Plaintext
Raw Normal View History

2014-05-14 16:19:12 +08:00
$('#reward_result_<%= @contesting_softapplication_id %>').html('<%= j(
2014-04-03 22:38:18 +08:00
2014-05-14 16:19:12 +08:00
if get_prize(@c_sa).nil? or get_prize(@c_sa) == ""
2014-04-03 22:38:18 +08:00
if @contest.deadline < Date.today
puts '未评奖'
end
else
2014-05-14 16:19:12 +08:00
case get_prize(@c_sa)
2014-04-03 22:38:18 +08:00
when '-1'
image_tag("/images/bid/special_reward.png")
when '0'
image_tag("/images/bid/first_reward.png")
when '1'
image_tag("/images/bid/second_reward.png")
when '2'
image_tag("/images/bid/third_reward.png")
when '3'
image_tag("/images/bid/forth_reward.png")
when '4'
image_tag("/images/bid/fifth_reward.png")
when '5'
image_tag("/images/bid/qualified.png")
2014-05-14 16:19:12 +08:00
end
2014-04-03 22:38:18 +08:00
end
)
%>')
2014-05-14 16:19:12 +08:00
$('#<%= @contesting_softapplication_id %>').hide()