优化引流页面

dev_local_lzdx
daiao 5 years ago
parent fb0166a087
commit 5dd7193204

@ -12,6 +12,26 @@ module ManagementsHelper
return addr return addr
end end
def agent_action(user_agent)
case user_agent.action_status
when 1 then "代理之前注册"
when 2 then "代理之后注册"
when 0 then "未注册"
else
"--"
end
end
def agent_register(user_agent)
case user_agent.register_status
when 1 then "代理之前报名"
when 2 then "代理之后报名"
when 0 then "未注册"
else
"--"
end
end
def user_ip_addr ip def user_ip_addr ip
addr = "--" addr = "--"
unless ip.nil? unless ip.nil?

@ -21,8 +21,8 @@
<td class="edu-txt-left"><span><%= link_to ua.key, user_path(ua.key), :target => "_blank" %></span></td> <td class="edu-txt-left"><span><%= link_to ua.key, user_path(ua.key), :target => "_blank" %></span></td>
<td><%= link_to user.try(:show_real_name), user_path(user), target:'_blank' %></td> <td><%= link_to user.try(:show_real_name), user_path(user), target:'_blank' %></td>
<td><%= school&.name %></td> <td><%= school&.name %></td>
<td><%= ua.action_status == 2 ? "代理之后注册" : "--" %></td> <td><%= agent_action(ua) %></td>
<td><%= ua.register_status == 2 ? "代理之后报名" : "--" %></td> <td><%= agent_register(ua) %></td>
<td><%= ua.ip %></td> <td><%= ua.ip %></td>
<td>"--"</td> <td>"--"</td>
</tr> </tr>

Loading…
Cancel
Save