Liberalization of the electricity retail market has intensified the competition among different types of retail electricity providers (REPs), leading REPs to pay more attention to electricity consumers' (ECs') preferences for electricity service quality, such as reliability and flexibility. In addition, social learning also greatly influences consumers' electricity purchase strategies. Therefore, this paper models the price and service quality competition among multi-type REPs in a two-layer electricity retail market network that integrates electricity trading and consumer social learning. Firstly, we construct a two-layer network that transforms the dynamic process of ECs switching REPs and changing neighbors into the reconfiguration of the network structure. The upper layer is a bipartite network to express the dynamic transaction between REPs and ECs, while the lower layer is a random network to represent the learning interaction between ECs. Secondly, considering network externalities, we model a retail competition based on price and ECs' preferences for electricity service quality in the network above and get the equilibrium solutions in different scenarios by simulating the electricity consumption data of 600 London households. The results demonstrate that network externalities hinder the transmission of price signals, and the density of the EC network affects the market game result, while the update speed of the EC network has little effect. This study provides theoretical support for multi-agent decision-making in the electricity retail market.