Simply put, the water quality declined and became toxic. Since you didn't do a fishless cycle first, or monitor and control water quality after getting the danios, the water likely had high ammonia levels when you got your platys. Fish introduced into poor water quality often are stressed worse than the ones that were in it while it declined, and this stress leads to weakened defenses. Ich (whitespot), finrot (the ragged fins), not eating, and abnormal behavior are common symptoms, and in the process of a cycle, fish often don't seem to respond to treatment because you either dilute medicine with water changes necessary to control water stats, or those stats become even higher and weaken the fish further than the medicines can help. I'll also note at this point that it's exceedingly rare for fish to get eaten by filters. Even my monster filter, danios will play and weak swimming fish like corydoras and angelfish will sit near the intake without being pulled in. Fish that do get pulled into filters are usually dead or ill when it happens, and the filter isn't the cause of death (like falling off the building and then being hit by a car).
With new tank syndrome, it can be hard to impossible to be sure what really finished off a fish. My philosophy is, if the tank isn't cycled, it doesn't matter - ammonia or nitrite in the water is almost certainly the root cause.
Anyway, this is an unfortunate and frustrating way to get into the hobby, and my tale of gloom and doom probably didn't help, but thankfully the solution isn't that difficult. You'll need a liquid based test kit that tests for ammonia, nitrIte, nitrAte (be careful with your I's and A's, these two are hard to tell apart, even for some of the experienced people, but the distinction is critical, as explained in articles I'll link below), and pH. There are strip tests, some of which also cover some other stats, but these are inaccurate, unreliable, and expensive - usually ~$15 to cover the important stats in the US, which will give you 25 sets of strips. The liquid kits run $20-30, but give literally hundreds of tests.
Once you have your test kit, you'll want to proceed as detailed in this thread:
http/www.fishforums.net/content/New-to-t...eady-have-fish/
If, for any reason, your remaining fish die, don't replace the ones you lose until the tank is stable. If they all die, I advise switching to a fishless cycle, which will mature the tank without fish present. Since you've started with fish, it won't take the full time, and at the end of it, you'll be in a position to have many more fish much healthier than right now:
http/www.fishforums.net/content/New-to-t...shless-Cycling/