I Have Six Weeks Of Inactivity After A Surgical Procedure Coming Up. How Can I Continue My Weight Loss ?

I will be able to do nothing at all for two weeks. Following that, no cardio for six to eight weeks. How to ensure continued weight loss?