|
|
|
@ -8,9 +8,15 @@ if @shixun
|
|
|
|
|
json.myself_experience @work.myshixun.try(:total_score)
|
|
|
|
|
json.total_experience @shixun.all_score
|
|
|
|
|
json.work_score number_with_precision @work.work_score, precision: 1
|
|
|
|
|
json.all_work_score 100
|
|
|
|
|
json.all_work_score number_with_precision 100, precision: 1
|
|
|
|
|
json.time_consuming @work.myshixun_consume
|
|
|
|
|
json.evaluate_count @user_evaluate_count.to_i
|
|
|
|
|
if @homework.work_efficiency
|
|
|
|
|
json.eff_score_full number_with_precision @homework.eff_score, precision: 1
|
|
|
|
|
json.eff_score @work.eff_score
|
|
|
|
|
json.challenge_score_full number_with_precision (100 - @homework.eff_score), precision: 1
|
|
|
|
|
json.challenge_score @work.final_score
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 阶段成绩
|
|
|
|
|
json.stage_list do
|
|
|
|
@ -25,6 +31,9 @@ if @shixun
|
|
|
|
|
json.experience game.challenge.all_score
|
|
|
|
|
json.complete_status game_status(game, @homework)
|
|
|
|
|
json.challenge_id game.challenge_id
|
|
|
|
|
challenge_score = @homework.challenge_score game.challenge_id
|
|
|
|
|
json.game_score_full challenge_score
|
|
|
|
|
json.game_score work_challenge_score @work, game, challenge_score, @homework
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|