将自定义导航按钮封装成directive

封装了两个按钮：customGoBack和customGoBackOffline