Page processing method and device, electronic equipment and readable storage medium
By providing page processing methods in mini program development, allowing clients to edit and adjust page component layout, it solves the complex problem of page component adjustment in traditional mini program development, and improves development efficiency and personalized configuration capabilities.
Patent Information
- Application Number
- CN202411576077.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-25
AI Technical Summary
In the traditional mini program development process, the page component adjustment steps are complicated and cannot be flexibly modified, resulting in inefficient development.
Provides a page processing method, by receiving page configuration information sent by the client, obtaining page configuration templates and native data, and editing and adjusting component layout on the client, the server generates a display page based on native data and component layout information.
It realizes user-defined page layout, improves the flexibility and development efficiency of page component layout adjustment, and improves the personalized configuration capabilities of mini programs.
Smart Images

Figure CN119513440A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic devices, and in particular to a page processing method, device, electronic device and readable storage medium. Background Art
[0002] Currently, in the relevant technology, enterprises can expand various business functions and enhance brand influence through mini programs. However, the traditional mini program development process is usually traditional embedded development or independent development. After the mini program page is configured, if you want to adjust the components of the page again, you need to upload the code to the official website and publish it again, and you cannot flexibly modify it, which makes the adjustment steps of the components in the mini program page complicated. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention provides a page processing method.
[0005] A second aspect of the present invention provides a page processing device.
[0006] A third aspect of the present invention provides an electronic device.
[0007] A fourth aspect of the present invention provides a readable storage medium.
[0008] In view of this, a first aspect of the present invention provides a page processing method, which is used for a server, and the page processing method includes: receiving page configuration information sent by a client; obtaining a page configuration template and page native data of the page configuration template according to the page configuration information; sending the page configuration template to the client so that the client displays the page configuration template, and the page configuration template can be edited on the client; receiving a component adjustment instruction generated from the client according to the edited page configuration template, and extracting component layout information in the component adjustment instruction; obtaining a first display page based on the page native data and the component layout information; sending the first display page to the client so that the client displays the first display page.
[0009] The present application provides a page processing method, which is used for a server. The page processing method includes: receiving page configuration information sent by a client, obtaining a page configuration template and page native data of the page configuration template according to the page configuration information, and sending the page configuration template to the client so that the client can display the page configuration template, so that the client can display the page configuration template to the customer, that is, the page without changing the component layout, which can provide an entry for custom design. After the user clicks on the new page template, the page design can be customized, and the page configuration template can be edited on the client to realize user-defined page layout and improve product performance. The page processing method also receives a component adjustment instruction generated from the client according to the edited page configuration template, extracts the component layout information in the component adjustment instruction, that is, the user adjusts the layout of the components on the page through the client, and the server obtains the first display page based on the page native data and the component layout information, and sends the first display page to the client so that the client displays the first display page. The first display page is the page customized by the customer. Through the native data and the page configuration template, it can be realized that after receiving the change instruction of the client, the component layout on the page configuration template can be directly changed, thereby improving the flexibility of the adjustment of the page component layout.
[0010] Furthermore, by building the design and running forms of components through native data, the encapsulation and reusability of components in the page configuration template can be improved. Customers can build mini-program pages with components as units by dragging and dropping on the client side, thereby improving configuration flexibility.
[0011] In addition, the page processing method in the above technical solution provided by the present invention may also have the following additional technical features: In some technical solutions of the present invention, optionally, based on the page native data and component layout information, a first display page is obtained, including obtaining a second page based on the page native data and component layout information; receiving a theme adjustment request sent by the client, and extracting theme change information in the theme adjustment request; and obtaining the first display page based on the theme change information and the second page.
[0012] In this technical solution, a first display page is obtained based on the page native data and component layout information, including obtaining a second page based on the page native data and component layout information; wherein the second page is a page for changing the layout, which is configured according to the customer's customized requirements, and then, a theme adjustment request sent by the client is received, and the theme change information in the theme adjustment request is extracted; based on the theme change information and the second page, the first display page is obtained, so that when the page component is designed according to the customer's customized requirements, the theme of the page can be customized, which allows the customer to flexibly control the theme display effect of the overall native applet and improve product performance.
[0013] In some technical solutions of the present invention, optionally, obtaining a first display page according to the theme change information and the second page includes: obtaining a theme template according to the theme change information; and changing the theme of the second page based on the theme template to obtain the first display page.
[0014] In this technical solution, according to the theme change information and the second page, the first display page is obtained, including: according to the theme change information, obtaining the theme template; based on the theme template, changing the theme of the second page to obtain the first display page. The theme of the page is adjusted in the form of a theme template, which improves the flexibility of page adjustment and facilitates user operation.
[0015] In some technical solutions of the present invention, optionally, a page configuration template and page native data are obtained according to page configuration information, including: obtaining an initial page and metadata of the initial page according to the page configuration information; configuring the initial page based on the metadata to obtain a page configuration template and page native data of the page configuration template.
[0016] In this technical solution, according to the page configuration information, the page configuration template and the page native data are obtained, including: according to the page configuration information, the initial page is obtained; according to the page configuration information, the metadata of the initial page is obtained; based on the metadata, the initial page is configured to obtain the page configuration template and the page native data of the page configuration template. The flexibility and configurability of the page configuration template can be improved, so that the page content, layout and interaction logic can be adjusted according to the configuration information without modifying the code.
[0017] In some technical solutions of the present invention, optionally, after adjusting the layout position of the components on the page configuration template based on the page native data and the component layout information and obtaining the first display page, the page processing method also includes: configuring and generating a first display page template based on the first display page and the page native data, and storing the first display page template.
[0018] In this technical solution, after adjusting the layout position of the components on the page configuration template based on the page native data and the component layout information and obtaining the first display page, the page processing method further includes: configuring and generating the first display page template based on the first display page and the page native data, and storing the first display page template. It can be achieved that when the overall design of the page is completed, the first display page needs to be published to the client, that is, the page of the applet will be updated during runtime and updated to the first display page. If it is not updated, the first display page template will be generated and saved in the template list to temporarily store the user's design for the user to operate later.
[0019] In some technical solutions of the present invention, optionally, a first display page is sent to a client so that the client displays the first display page, including: obtaining the first display page based on page native data and component layout information; obtaining the component hierarchical relationship within the first display page based on the first display page; sending the first display page to the client so that the client displays the first display page according to the component hierarchical relationship.
[0020] In this technical solution, a first display page is sent to a client so that the client displays the first display page, including: obtaining the first display page based on page native data and component layout information; obtaining the component hierarchy relationship within the first display page based on the first display page; sending the first display page to the client so that the client displays the first display page according to the component hierarchy relationship. When the component layout on the page is adjusted through the page processing method, the mini program needs to parse the configuration and adjustment data when the page is loaded, and read the components and properties of each layer according to the component hierarchy relationship in the component layout information according to the componentization mode, match the runtime components, and parse the global and component required styles through the custom theme parsing to achieve the display of the custom designed mini program page.
[0021] In some technical solutions of the present invention, optionally, the first display page may be a list page; and / or the first display page may be a detail page.
[0022] In this technical solution, the first display page can be a list page; or the first display page can be set to be a detail page. In the mini program, the user can adjust the component layout by dragging and dropping components on the client, and then generate a customized first display page, wherein the first display page can be the list page of the mini program, or the first display page can be the detail page obtained by interacting with the list page in the mini program.
[0023] According to a second aspect of the present invention, a page processing device is provided, comprising a first receiving unit, a first obtaining unit, a first transmission unit, a second receiving unit, an extraction unit, a second obtaining unit and a second transmission unit. The first receiving unit is used to receive page configuration information sent by a client; the first obtaining unit is used to obtain a page configuration template and page native data of the page configuration template according to the page configuration information; the first transmission unit is used to send the page configuration template to the client so that the client displays the page configuration template, and the page configuration template can be edited on the client; the second receiving unit is used to receive a component adjustment instruction generated from the client according to the edited page configuration template; the extraction unit is used to extract component layout information in the component adjustment instruction; the second obtaining unit is used to obtain a first display page based on the page native data and the component layout information; the second transmission unit is used to send the first display page to the client so that the client displays the first display page.
[0024] In the technical solution, a page processing device is provided, including a first receiving unit, a first obtaining unit, a first transmission unit, a second receiving unit, an extraction unit, a second obtaining unit and a second transmission unit. The first receiving unit is used to receive page configuration information sent by a client; the first obtaining unit is used to obtain a page configuration template and page native data of the page configuration template according to the page configuration information; the first transmission unit is used to send the page configuration template to the client so that the client can display the page configuration template, so that the client can display the page configuration template to the customer, that is, the page without changing the component layout, which can be implemented as an entry for custom design. After the user clicks on the new page template, the page design can be customized, and the page configuration template can be edited on the client; the second receiving unit receives the component adjustment instruction generated from the client according to the edited page configuration template; the extraction unit is used to extract the component layout information in the component adjustment instruction; the second obtaining unit is used to adjust the layout position of the component on the page configuration template based on the page native data and the component layout information, and obtain the first display page; the second transmission unit is used to send the first display page to the client so that the client can display the first display page. The first display page is the page customized by the customer. Through native data and page configuration template, it is possible to directly change the component layout on the page configuration template after receiving the client's change instructions, thereby improving the flexibility of adjusting the page component layout.
[0025] Furthermore, by building the design and running forms of components through native data, the encapsulation and reusability of components in the page configuration template can be improved. Customers can build mini-program pages with components as units by dragging and dropping on the client side, thereby improving configuration flexibility.
[0026] According to a third aspect of the present invention, an electronic device is provided, comprising a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the page processing method as described in any one of the above technical solutions are implemented.
[0027] An electronic device provided in the present application can implement the page processing method in any of the above-mentioned technical solutions. Therefore, the electronic device has the advantages of the page processing method in any of the above-mentioned technical solutions and can implement the technical effects of the page processing method in any of the above-mentioned technical solutions. To avoid repetition, it will not be repeated here.
[0028] According to a fourth aspect of the present invention, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the page processing method in any of the above technical solutions are implemented.
[0029] The present application provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, a page processing method as in any of the above-mentioned technical solutions is implemented. Therefore, the readable storage medium has the advantages of the page processing method in any of the above-mentioned technical solutions and can achieve the technical effects of the page processing method in any of the above-mentioned technical solutions. To avoid repetition, it will not be repeated here.
[0030] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 is one of the flow charts of a page processing method according to an embodiment of the present invention; Figure 2 is a structural block diagram of a page processing device according to an embodiment of the present invention; Figure 3 is a structural block diagram of an electronic device according to an embodiment of the present invention; Figure 4 A structural block diagram of a customized applet device with personalized configuration according to an embodiment of the present invention; Figure 5 This is a second flowchart of a page processing method according to an embodiment of the present invention; Figure 6 This is a third flowchart of a page processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0034] Refer to the following Figures 1 to 6 A page processing method, apparatus, electronic device, and readable storage medium according to some embodiments of the present invention are described.
[0035] like Figure 1As shown, in an embodiment of the present invention, a page processing method is provided, the page processing method is used for a server, and the page processing method includes: Step 102, receiving page configuration information sent by the client; Step 104, obtaining a page configuration template and page native data of the page configuration template according to the page configuration information; Step 106, sending the page configuration template to the client, so that the client displays the page configuration template, and the page configuration template can be edited on the client; Step 108, receiving a component adjustment instruction generated from the client according to the edited page configuration template, and extracting component layout information in the component adjustment instruction; Step 110, obtaining a first display page based on the page native data and component layout information; Step 112: Send the first display page to the client, so that the client displays the first display page.
[0036] The present application provides a page processing method, which is used for a server. The page processing method includes: receiving page configuration information sent by a client, obtaining a page configuration template and page native data of the page configuration template according to the page configuration information, and sending the page configuration template to the client so that the client can display the page configuration template, so that the client can display the page configuration template to the customer, that is, the page without changing the component layout, which can provide an entry for custom design. After the user clicks on the new page template, the page design can be customized, and the page configuration template can be edited on the client to realize user-defined page layout and improve product performance. The page processing method also receives a component adjustment instruction generated from the client according to the edited page configuration template, extracts the component layout information in the component adjustment instruction, that is, the user adjusts the layout of the components on the page through the client, and the server obtains the first display page based on the page native data and the component layout information, and sends the first display page to the client so that the client displays the first display page. The first display page is the page customized by the customer. Through the native data and the page configuration template, it can be realized that after receiving the change instruction of the client, the component layout on the page configuration template can be directly changed, thereby improving the flexibility of the adjustment of the page component layout.
[0037] Furthermore, by building the design and running forms of components through native data, the encapsulation and reusability of components in the page configuration template can be improved. Customers can build mini-program pages with components as units by dragging and dropping on the client side, thereby improving configuration flexibility.
[0038] This embodiment provides a page processing method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0039] Based on the page native data and component layout information, a first display page is obtained, including obtaining a second page based on the page native data and component layout information; a theme adjustment request sent by the client is received, and theme change information in the theme adjustment request is extracted; based on the theme change information and the second page, the first display page is obtained.
[0040] In this embodiment, based on the page native data and component layout information, a first display page is obtained, including obtaining a second page based on the page native data and component layout information; wherein the second page is a page for changing the layout, which is configured according to the customer's custom requirements, and then, a theme adjustment request sent by the client is received, and the theme change information in the theme adjustment request is extracted; based on the theme change information and the second page, the first display page is obtained, so that when the page component is designed according to the customer's custom requirements, the theme of the page can be customized, which allows the customer to flexibly control the theme display effect of the overall native applet and improve product performance.
[0041] This embodiment provides a page processing method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0042] According to the theme change information and the second page, the first display page is obtained, including: according to the theme change information, a theme template is obtained; based on the theme template, the theme of the second page is changed to obtain the first display page.
[0043] In this embodiment, obtaining the first display page according to the theme change information and the second page includes: obtaining a theme template according to the theme change information; and changing the theme of the second page based on the theme template to obtain the first display page. The theme of the page is adjusted in the form of a theme template, which improves the flexibility of page adjustment and facilitates user operation.
[0044] This embodiment provides a page processing method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0045] According to the page configuration information, the page configuration template and the page native data are obtained, including: according to the page configuration information, the initial page is obtained; according to the page configuration information, the metadata of the initial page is obtained; based on the metadata, the initial page is configured to obtain the page configuration template and the page native data of the page configuration template.
[0046] In this embodiment, according to the page configuration information, the page configuration template and the page native data are obtained, including: according to the page configuration information, the initial page is obtained; according to the page configuration information, the metadata of the initial page is obtained; based on the metadata, the initial page is configured to obtain the page configuration template and the page native data of the page configuration template. The flexibility and configurability of the page configuration template can be improved, so that the page content, layout and interaction logic can be adjusted according to the configuration information without modifying the code.
[0047] This embodiment provides a page processing method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0048] After adjusting the layout position of the components on the page configuration template based on the page native data and the component layout information and obtaining the first display page, the page processing method further includes: configuring and generating a first display page template based on the first display page and the page native data, and storing the first display page template.
[0049] In this embodiment, after adjusting the layout position of the components on the page configuration template based on the page native data and the component layout information and obtaining the first display page, the page processing method further includes: configuring and generating the first display page template based on the first display page and the page native data, and storing the first display page template. It can be achieved that when the overall design of the page is completed, the first display page needs to be published to the client, that is, the page of the applet will be updated during runtime and updated to the first display page. If it is not updated, the first display page template will be generated and saved in the template list to temporarily store the user's design for the user to operate later.
[0050] This embodiment provides a page processing method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0051] Sending a first display page to a client so that the client displays the first display page, including: obtaining the first display page based on page native data and component layout information; obtaining a component hierarchical relationship within the first display page based on the first display page; sending the first display page to the client so that the client displays the first display page according to the component hierarchical relationship.
[0052] In this embodiment, a first display page is sent to a client so that the client displays the first display page, including: obtaining the first display page based on page native data and component layout information; obtaining the component hierarchy relationship within the first display page based on the first display page; sending the first display page to the client so that the client displays the first display page according to the component hierarchy relationship. When the component layout on the page is adjusted through the page processing method, the mini program needs to parse the configuration and adjustment data when the page is loaded. According to the componentization mode, the components and properties of each layer are read through the component hierarchy relationship in the component layout information, and the runtime components are matched. At the same time, through the custom theme parsing, the global and component required styles are parsed to realize the display of the custom designed mini program page.
[0053] This embodiment provides a page processing method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0054] The first display page may be a list page; and / or the first display page may be a detail page.
[0055] In this embodiment, the first display page may be a list page; or the first display page may be a detail page. In the mini program, the user may adjust the component layout by dragging and dropping components on the client, thereby generating a customized first display page, wherein the first display page may be a list page of the mini program, or the first display page may be a detail page obtained by interacting with the list page in the mini program.
[0056] like Figure 2 As shown, in an embodiment of the present invention, a page processing device 200 is provided, comprising a first receiving unit 210, a first acquiring unit 220, a first transmission unit 230, a second receiving unit 240, an extracting unit 250, a second acquiring unit 260, and a second transmission unit 270. The first receiving unit 210 is used to receive page configuration information sent by a client; the first acquiring unit 220 is used to acquire a page configuration template and page native data of the page configuration template according to the page configuration information; the first transmission unit 230 is used to send the page configuration template to the client so that the client displays the page configuration template, and the page configuration template can be edited on the client; the second receiving unit 240 is used to receive a component adjustment instruction generated from the client according to the edited page configuration template; the extracting unit 250 is used to extract component layout information in the component adjustment instruction; the second acquiring unit 260 is used to acquire a first display page based on the page native data and the component layout information; the second transmission unit 270 is used to send the first display page to the client so that the client displays the first display page.
[0057] In this embodiment, a page processing device 200 is provided, including a first receiving unit 210 , a first acquiring unit 220 , a first transmitting unit 230 , a second receiving unit 240 , an extracting unit 250 , a second acquiring unit 260 , and a second transmitting unit 270 . The first receiving unit 210 is used to receive the page configuration information sent by the client; the first obtaining unit 220 is used to obtain the page configuration template and the page native data of the page configuration template according to the page configuration information; the first transmission unit 230 is used to send the page configuration template to the client so that the client can display the page configuration template, so that the client can display the page configuration template to the customer, that is, the page without changing the component layout, which can be implemented as a portal for custom design. After the user clicks on the new page template, the page design can be customized, and the page configuration template can be edited on the client; the second receiving unit 240 receives the component adjustment instruction generated from the client according to the edited page configuration template; the extraction unit 250 is used to extract the component layout information in the component adjustment instruction; the second obtaining unit 260 is used to adjust the layout position of the component on the page configuration template based on the page native data and the component layout information, and obtain the first display page; the second transmission unit 270 is used to send the first display page to the client so that the client can display the first display page. The first display page is the page customized by the customer. Through the native data and the page configuration template, it can be realized that after receiving the change instruction of the client, the component layout on the page configuration template can be directly changed, thereby improving the flexibility of the adjustment of the page component layout.
[0058] Furthermore, by building the design and running forms of components through native data, the encapsulation and reusability of components in the page configuration template can be improved. Customers can build mini-program pages with components as units by dragging and dropping on the client side, thereby improving configuration flexibility.
[0059] like Figure 3 As shown, in an embodiment of the present invention, an electronic device 300 is provided, including a processor 304 and a memory 302, the memory 302 stores programs or instructions that can be executed on the processor 304, and when the programs or instructions are executed by the processor 304, the steps of the page processing method as in any one of the above embodiments are implemented.
[0060] An electronic device 300 provided in the present application can implement the page processing method in any of the above-mentioned embodiments. Therefore, the electronic device 300 has the advantages of the page processing method in any of the above-mentioned embodiments and can implement the technical effects of the page processing method in any of the above-mentioned technical solutions. To avoid repetition, it will not be repeated here.
[0061] In an embodiment of the present invention, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the page processing method in any of the above embodiments are implemented.
[0062] The present application provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, a page processing method as in any of the above embodiments is implemented. Therefore, the readable storage medium has the advantages of the page processing method in any of the above embodiments and can achieve the technical effects of the page processing method in any of the above embodiments. To avoid repetition, it will not be described here.
[0063] Specifically, Figure 4 As shown, in one embodiment of the present application, a customized mini-program device 400 based on personalized configuration is also included, and the customized mini-program device 400 based on personalized configuration includes a template configuration unit 410, a componentized design unit 420, an automatic layout unit 430, a custom theme unit 440 and a native mini-program construction unit 450.
[0064] like Figure 5 As shown, the page processing method in the embodiment of the present application further includes: Step 501, obtaining a page configuration template and page native data according to the page configuration information; Step 502, sending the page configuration template to the client, so that the client displays the page configuration template, and the page configuration template can be edited on the client; Step 503, receiving a component adjustment instruction generated from the client according to the edited page configuration template, and extracting component layout information in the component adjustment instruction; Step 504, obtaining a second page based on the page native data and component layout information; Step 505, receiving a theme adjustment request sent by the client, and extracting theme change information in the theme adjustment request; Step 506, obtaining a first display page according to the theme change information and the second page; Step 507, based on the first display page, obtaining the component hierarchical relationship in the first display page; Step 508, sending the first display page to the client, so that the client displays the first display page according to the component hierarchy relationship, and generates a small program consisting of the first display page; Step 509: Based on the first display page and the page native data, configure and generate a first display page template, and store the first display page template.
[0065] like Figure 6 As shown, based on the above-mentioned personalized configuration steps, the page processing method process can be: Step 601, mini program multi-template configuration module; Step 602, page designer container module; Step 603, component-based automatic layout function; Step 604, customizing the multi-theme function; Step 605, page data construction function; Step 606, custom template publishing function; Step 607, native applet data analysis function; Step 608, generate and automatically publish the native applet.
[0066] Among them, according to the page configuration information, the page configuration template and the page native data are obtained, that is, through the mini-program multi-template configuration module, the main information of different pages and templates is displayed in the form of a list, providing an entry for custom design. After the user clicks on the new page template, he enters the page designer container module. The page designer container module uses the component library, preview area, multi-theme configuration, and component configurable options as content to build a display structure and instant preview to achieve the visualization effect of the custom designed native mini-program. The component-based automatic layout function uses the native mini-program development technology to build the design and running state forms of the components, improve the encapsulation and reusability of the components, and build the mini-program page with components as units by dragging and dropping; then through the custom multi-theme function, when the component design is completed, the theme configuration function can be used to design component themes and global themes, allowing users to flexibly control the theme display effect of the entire native mini-program; then through the page data construction function, when the design is completed and the mini-program page is saved, It is necessary to generate a set of data content for the entire page for the mini-program to parse and display at runtime. Due to the componentized design, the page layout generates data in the form of component names and attributes, and the theme formalizes the production data through the theme name and custom parameters for the mini-program to automatically layout and display custom themes at runtime; the custom template publishing function, when the overall design of the page is completed, it is necessary to provide a function to determine whether to publish the template. If you choose to publish, the page of the mini-program at runtime will be updated. If you do not click to publish, unpublished content will be generated and displayed in the template list to save the user's design temporarily for later operation; the native mini-program data parsing function, the mini-program at runtime needs to parse the design-time data when the page is loaded. According to the componentized mode, the hierarchical structure in the layout information is used to read the components and attributes of each layer, match the runtime components, and parse the global and component required styles through custom theme parsing to achieve the display of the custom designed mini-program page, and finally generate and automatically publish the native mini-program.
[0067] In the claims, specification and drawings of the present invention, the term "multiple" refers to two or more than two. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper" and "lower" is based on the orientation or positional relationship shown in the drawings, which is only for the purpose of more conveniently describing the present invention and making the description process simpler, rather than indicating or implying that the device or element referred to must have the specific orientation described, be constructed and operated in a specific orientation, so these descriptions cannot be understood as limiting the present invention; the terms "connect", "install", "fix" and the like should be understood in a broad sense. For example, "connection" can be a fixed connection between multiple objects, or a detachable connection between multiple objects, or an integral connection; it can be a direct connection between multiple objects, or an indirect connection between multiple objects through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood based on the specific circumstances of the above data.
[0068] In the claims, specification and drawings of the present invention, the description of the terms "one embodiment", "some embodiments", "specific embodiments" and the like means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In the claims, specification and drawings of the present invention, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0069] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A page processing method, characterized in that: The page processing method is used for a server, and the page processing method includes: Receive page configuration information sent by the client; According to the page configuration information, a page configuration template and page native data of the page configuration template are obtained; Sending the page configuration template to the client, so that the client displays the page configuration template, and the page configuration template can be edited on the client; Receiving a component adjustment instruction generated from the client according to the edited page configuration template, and extracting component layout information from the component adjustment instruction; Based on the page native data and the component layout information, obtain a first display page; The first display page is sent to the client, so that the client displays the first display page.
2. The page processing method according to claim 1, characterized in that: The acquiring a first display page based on the page native data and the component layout information includes: Based on the page native data and the component layout information, obtaining a second page; Receiving a theme adjustment request sent by the client, and extracting theme change information in the theme adjustment request; A first display page is obtained according to the theme change information and the second page.
3. The page processing method according to claim 2, characterized in that: The acquiring the first display page according to the theme change information and the second page includes: According to the theme change information, obtain a theme template; Based on the theme template, the theme of the second page is changed to obtain the first display page.
4. The page processing method according to claim 1, characterized in that: The acquiring, according to the page configuration information, a page configuration template and page native data of the page configuration template comprises: According to the page configuration information, an initial page and metadata of the initial page are acquired; Based on the metadata, the initial page is configured to obtain a page configuration template and page native data of the page configuration template.
5. The page processing method according to claim 1, characterized in that: After obtaining the first display page based on the page native data and the component layout information, the page processing method further includes: Based on the first display page and the page native data, a first display page template is configured and generated, and the first display page template is stored.
6. The page processing method according to claim 1, characterized in that: The sending the first display page to the client so that the client displays the first display page includes: Based on the page native data and the component layout information, obtain a first display page; Based on the first display page, obtaining a component hierarchical relationship within the first display page; The first display page is sent to the client, so that the client displays the first display page according to the component hierarchy relationship.
7. The page processing method according to any one of claims 1 to 6, characterized in that: The first display page may be a list page; and / or The first display page may be a details page.
8. A page processing device, characterized in that: include: A first receiving unit, used to receive page configuration information sent by a client; A first acquisition unit, configured to acquire a page configuration template and page native data of the page configuration template according to the page configuration information; A first transmission unit, configured to send the page configuration template to the client, so that the client displays the page configuration template, and the page configuration template can be edited on the client; A second receiving unit, configured to receive a component adjustment instruction generated from the client according to the edited page configuration template; An extraction unit, used for extracting component layout information in the component adjustment instruction; A second acquisition unit, configured to acquire a first display page based on the page native data and the component layout information; The second transmission unit is configured to send the first display page to the client, so that the client displays the first display page.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the page processing method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the page processing method according to any one of claims 1 to 7 are implemented.