First, let's analyze the reason for this: mainly because of the compatibility of the router, because Apple's own router is not the problem, and other non-apple-produced routers will have a lock screen 30 seconds after the situation of WiFi disconnect.
After analyzing the reason, next to the right remedy, to seek the solution to this problem!
Just set the router to be OK, the operation method is as follows:
Turn off the WMM option in the router's advanced wireless settings.
The above is the port version of the IPhone6 lock-screen WiFi automatic disconnect a solution, if you also often encountered IPhone6 lock screen WiFi disconnect situation, do not try to effect the above method.
A lock-screen, WiFi-filled plugin after a jailbreak.
If we must solve this problem, only after the jailbreak with Insomnia Pro plug-in, you can lock screen constantly, but this plug-in is very power consumption.