Well... I got a idea from this question If $f$ is uniformly continuous on two sets, show that $f$ is also uniformly continuous on the union of two given sets. So Let me think more the general case. I would suggest you the statement that I made and regard it as true.
$f$ is a uniformly continuous on both $D_1$ and $D_2$ (Here the $D_1 \cap D_2 \not= \phi$) Then, $f$ is a uniformly continuos on $D_1 \cup D_2$
You might look above statement is trivial though, still I can't prove it. :( Does anyone have a idea or hint to prove that?
p.s.) If the statement is false, What is the counterexamples?