Those examples here are with disconnected spectrum.
So we might hope that if $R$ has no non-trivial idempotent elements and $R_{\mathfrak{p}}$ is a domain for every prime ideal $\mathfrak{p}$, does this conditions imply that $R$ is a domain?
We know that adding one more condition that assumes $R$ is Noetherian or has only finitely many minimal prime ideals the implication holds.
Suppose $\mathfrak{p}_i,i=1,2,\ldots,n$ be all the minimal prime ideals of $R$. Then the condition $R_{\mathfrak{p}}$ is integral for every prime ideal $\mathfrak{p}$ is exactly saying that $R$ is reduced and $R=\mathfrak{p}_i+\mathfrak{p}_j$ when $i\neq j$. So by Chinese remainder theorem, $R=R/\mathfrak{p}_1\times\cdots\times R/\mathfrak{p}_n$. And if we assume $R$ has no non-trivial idempotent elements, then $R$ has only one minimal prime ideal which is zero, namely, $R$ is a domain.
However, I do not know if whether it is still true without the assumption that $R$ has finitely many minimal prime ideals.
I am not clear whether the continuous functions ring on $[0,1]$, i.e., $A=C[0,1]$, is a counter-example.
It is clear that $A$ is not a domain, $A$ is reduced and $A$ is connected! So the only one problem is that whether for any two minimal primes $\mathfrak{p}$ and $\mathfrak{q}$ are comaximal. (I remember this is true, but I do not remember from where I know this result.)