With the globalization of economy and the rapid development of technology, the business ecosystem has become an important support for the improvement of enterprise competitiveness and industrial development. In this paper, we constructed an LSTM-Transformer model combining Transformer, LSTM and multi-attention mechanism to simulate the evolution of business ecosystems, and carried out simulation experiments based on the takeaway O2O business model. The results show that the LSTM-Transformer model can fit the takeout platform data better, and its MAE, MAPE, and SMAPE values are smaller than those of CV-KF, ISTM, ISTM-Attention, and Transformer models, with the highest prediction accuracy and interpretability. Meanwhile, the simulation results show that advertising and promotion, word-of-mouth communication and the number of Internet users can affect the number of takeout platform users and their growth rate, product quality, logistics quality, the number of merchants, meal types, consumption level, and takeout pricing can affect the scale of the takeout market, and the trend of the evolution of the logistics capacity mainly depends on the demand for logistics capacity in the takeout industry. The study of the operation mechanism in the takeaway O2O business ecosystem in this paper helps to realize the healthy development of the takeaway O2O model business ecosystem and provides a reference for the operation of other business ecosystems.