The present invention provides a method and
system for designing a website building for a mini-program front-end page, and relates to the technical field of mini-program website building, including extracting semantic elements and target requirements based on website building requirements and
design styles input by users, and generating a mini-program component recommendation scheme; based on a multi-objective optimization
algorithm, by iteratively optimizing a combination of design elements, generating
layout style schemes for multiple mini-program front-end pages, extracting topological relationships and semantic dependencies, constructing a graph structure page representation vector, iteratively optimizing the
layout style scheme, and obtaining an optimal
layout style scheme; adopting a dynamic component construction method, by
parsing a page layout
structure diagram, identifying UI elements, and automatically mapping them into corresponding program components, combining a context-aware component recommendation mechanism, dynamically recommending and rendering optimized mini-program components according to the
functional semantics of the page and the user's interaction intention, and combining an
incremental learning algorithm to finally form a customized mini-program front-end page website
building design scheme.