Dicke model describes a collective interaction between the two-level atoms and the light cavity and has been predicted to show a peculiar quantum phase transition, which is a second-order phase transition from a normal phase (in a weak-coupling strength) to a superradiant phase (in a strong-coupling strength). The model plays an important role in illustrating the quantum ground-state properties of many-body macroscopic quantum states. In the experiment, Dicke quantum phase transition in an open system could be formed by a Bose-Einstein condensate coupled to a high-finesse optical cavity. This experiment on the Bose-Einstein condensate trapped in the optical cavity have opened new frontiers, which could combine the cold atoms with quantum optics and makes it possible to enter into the strongly coupled regime of cavity quantum electrodynamics. In strong coupled regime, the atoms exchange the photons many times before spontaneous emission and cavity losses set in. It has become a hot research topic in recent years and plays an important role in many fields of modern physics, such as condensed matter physics, nuclear physics, etc. It can be applied to the manipulation of the geometric phase and entanglement in quantum information and computing. Quantum phase transition has been widely studied for the Dicke model as a typical example. Many different research methods about the mean-field approximation have been used to analyze the ground state properties of the Dicke model. In this paper, we study the ground state properties of two-component Bose-Einstein condensate in a single-mode cavity. Meanwhile, the associated quantum phase transition is described by the spin-coherent-state variational method, whose advantage is that the ground state energy and wave function can be obtained without the thermodynamic limit. By taking the average in the boson coherent state, we obtain an equivalent effective pesudospin Hamiltonian, which will be diagonalized by using the spin coherent state. Finally, we can obtain the energy functional, which is the basics of the variation to obtain the numerical solution of photon number and the expression of the atomic number and the ground state energy. This paper presents a rich phase diagram, which can be manipulated by changing the atom-field coupling imbalance between two components and the atom-field frequency detuning. While in the single-mode Dicke model there exist only the normal phase and the superradiation phase. When the frequency of one component atom is zero or the frequency of the two component atoms are equal in optical cavity, the system returns to the standard Dicke model, in which there occurs the second-order phase transition from the normal phase to the superradiant phase by adjusting the atom-field coupling. In conclusion, we discover that the stimulated radiation comes from the collective state of atomic population inversion, which does not exist in the single-mode Dicke model. Meanwhile, the new stimulated-radiation state S and S, which can only be produced by one component of the atom, are observed in the two-component Bose-Einstein condensates in the single-mode optical cavity. By adjusting the atom-field coupling imbalance and the atom-field frequency detuning (the blue or red detuning), the order of the superradiation state and the stimulated-radiation states can be exchanged between the two components of the atom.