@Balarka Ok, let $\pi_1,\pi_2$ be the projections. Let $p,q\in E_1$ s.t. $f(p)=f(q)$. Then $\pi_1(p)=\pi_2(f(p))=\pi_2(f(q))=\pi_1(q)$, so $p,q$ live in the same fiber of $B$ in $E_1$, but $f$ is bijective when restricted to that fiber, hence $p=q$, i.e. $f$ is injective. Surjectivity of $f$ is obvious since each element of $E_2$ lies in some fiber of $B$.
Choose local trivializations $\varphi_i\colon\pi_i^{-1}(U)\rightarrow U\rightarrow\mathbb{R}^n,\,i=1,2$ for some open $U\subset B$ (same $U$ for both WLOG cause otherwise take intersection). Then $\varphi_2\circ f\vert_{\pi_1^{-1}(U)}\cir…