Phase-field method based on jax