We can do this with permutations.
Let $
\def\N{\mathbb{N}}
\def\Q{\mathbb{Q}}
\def\Z{\mathbb{Z}}
\def\fq{\lfloor q \rfloor}
\def\fr{\lfloor r \rfloor}
\def\fx{\lfloor x \rfloor}
\def\fy{\lfloor y \rfloor}
\def\fz{\lfloor z \rfloor}
\Q_k$ denote $\Q\cap[k,k+1)$, and let $c:\Q_0^2\to\N$ be a bijective function counting off the elements of $\Q_0^2$.
Let superscripts from $\Z$ denote a simply transitive action of $\Z$ on $\Q_0$, and
define $p:\Q^2\to\Q_0^2$ piecewise by $$p(x,y)=(\{x\}^{\fx-\fy},\{y\}^{\fx-\fy}).$$
Then the claim is satisfied with $s=c\circ p$.
Proof: Since $c$ is bijective, it is enough to show that $p$ is bijective on $\Q_m\times\Q_n$ for integer $m,n$, and bijective on horizontal and vertical lines. The bijectivity on $\Q_m\times\Q_n$ is immediate from the inverse of the group action, and the proofs for horizontal and vertical lines are the same. So it suffices to prove bijectivity on vertical lines.
Injectivity on Vertical Lines: When $p(x,y)=p(x,z)$, the first coordinates are $$\{x\}^{\fx-\fy}=\{x\}^{\fx-\fz}.$$ By the simple transitivity, $\fy=\fz$. So $(x,y)$ and $(x,z)$ are both in $\Q_{\fx}\times\Q_{\fy}$, on which $p$ is bijective, and $y=z$.
Surjectivity on Vertical Lines: Suppose $q \in \Q$ and $x,y\in\Q_0$. Let $k$ be an integer such that $\{q\}^k=x$. Let $r=\fq - k + y^{-k}$. Then $$\fq-\fr=\fq-(\fq-k)=k$$ and as desired
$$p(q,r)=(\{q\}^k,\{r\}^k)=(x,(y^{-k})^k) = (x,y).$$