Page generation method and device, electronic equipment and computer readable medium
Through editor fusion and component call priority management, the problem of low creative tweet page creation efficiency is solved, rapid generation of efficient H5 creative tweet pages is achieved, and the development process of creative tweet pages is simplified.
Patent Information
- Application Number
- CN202410436144.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, the creation efficiency of creative tweet pages is low and the effect is poor. It requires professional and technical personnel to design, code and deploy, which takes a long time and cannot be quickly used by users.
By responding to the page generation request, obtain the page type identification and demand data, determine the target editor, and perform editor fusion when the number is greater than the preset threshold, generate a fusion editor, display component call priority, based on page demand data and priority Make component calls and generate target pages.
It improves the efficiency of creating creative tweet pages and improves the page creation effect, allowing ordinary business personnel to quickly generate H5 creative tweet pages without professional technical support.
Smart Images

Figure CN118535155A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page generation method, device, electronic device, and computer-readable medium. Background Art
[0002] Currently, developing an H5 creative tweet page requires a series of steps, including design, coding, debugging, and release, before it can be viewed and used by users. Existing technologies require professional technical support, including design, coding, and deployment to information systems, to create an H5 creative tweet page for business personnel to use. This can take a long time, ranging from two weeks to a month, before it can be viewed and used by users. This results in low efficiency and poor results in creating creative tweet pages. Summary of the Invention
[0003] In view of this, the embodiments of the present application provide a page generation method, device, electronic device and computer-readable medium, which can solve the problems of low efficiency and poor effect in the creation of existing creative tweet pages.
[0004] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present application, a page generation method is provided, comprising:
[0005] In response to the page generation request, obtaining the corresponding page type identifier and page requirement data;
[0006] Determine the target editor based on the page type identifier;
[0007] Obtaining the number of target editors, and in response to the number being greater than a preset threshold, executing an editor fusion process to obtain a fused editor, and displaying the calling priority of each component contained in the fused editor;
[0008] Based on the page requirement data and call priority, corresponding component calls are made to execute component logic and generate the target page.
[0009] Optionally, perform an editor fusion process to obtain a fused editor, including:
[0010] Merge the components in the target editor into the same editor and remove duplicates from the merged components to obtain a fused editor.
[0011] Optionally, after generating the target page, the method further includes:
[0012] Automatically generate an identification code corresponding to the target page and display the identification code.
[0013] Optionally, before displaying the calling priorities of the included components in the fusion editor, the method further includes:
[0014] Determine the layers to which each component in the Fusion Editor belongs;
[0015] Determine the up-and-down overlay relationship of the layers to which they belong, and based on this relationship, determine the calling priority of the corresponding components.
[0016] Optionally, based on the page demand data and call priority, corresponding component calls are made, including:
[0017] Determine the component type and component calling method corresponding to the page requirement data;
[0018] Based on the component type, component calling method and calling priority, the corresponding component call is made.
[0019] Optionally, component types include animation components, trigger components, playback components, style components, and display components; and component calling methods include click-triggered component calling, timer-triggered component calling, and slide-triggered component calling.
[0020] In addition, the present application also provides a page generation device, including:
[0021] an acquisition unit configured to acquire a corresponding page type identifier and page requirement data in response to a page generation request;
[0022] a target editor determining unit configured to determine a target editor based on the page type identifier;
[0023] an editor fusion unit configured to obtain the number of target editors, and in response to the number being greater than a preset threshold, execute an editor fusion process to obtain a fused editor, and display the calling priority of each component contained in the fused editor;
[0024] The target page generating unit is configured to make corresponding component calls based on the page requirement data and the calling priority to execute the component logic and thereby generate the target page.
[0025] Optionally, the editor fusion unit is further configured to:
[0026] Merge the components in the target editor into the same editor and remove duplicates from the merged components to obtain a fused editor.
[0027] Optionally, the device further includes an identification code generating unit configured to:
[0028] Automatically generate an identification code corresponding to the target page and display the identification code.
[0029] Optionally, the apparatus further includes a call priority determination unit configured to:
[0030] Determine the layers to which each component in the Fusion Editor belongs;
[0031] Determine the up-and-down overlay relationship of the layers to which they belong, and based on this relationship, determine the calling priority of the corresponding components.
[0032] Optionally, the target page generating unit is further configured to:
[0033] Determine the component type and component calling method corresponding to the page requirement data;
[0034] Based on the component type, component calling method and calling priority, the corresponding component call is made.
[0035] Optionally, component types include animation components, trigger components, playback components, style components, and display components; and component calling methods include click-triggered component calling, timer-triggered component calling, and slide-triggered component calling.
[0036] In addition, the present application also provides a page generating electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the page generating method as described above.
[0037] In addition, the present application also provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the page generation method as described above is implemented.
[0038] To achieve the above objective, according to another aspect of the embodiments of the present application, a computer program product is provided.
[0039] A computer program product according to an embodiment of the present application includes a computer program, which, when executed by a processor, implements the page generation method provided by the embodiment of the present application.
[0040] One embodiment of the above invention has the following advantages or beneficial effects: the present application obtains a corresponding page type identifier and page requirement data in response to a page generation request; determines a target editor based on the page type identifier; obtains the number of target editors, and in response to the number being greater than a preset threshold, executes an editor fusion process to obtain a fused editor, and displays the call priority of each component contained in the fused editor; and based on the page requirement data and call priority, performs corresponding component calls to execute component logic and thereby generate the target page. This improves the efficiency and effectiveness of creating creative tweet pages.
[0041] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings are provided to facilitate a better understanding of the present application and do not constitute an undue limitation on the present application.
[0043] Figure 1 This is a schematic diagram of the main process of a page generation method according to an embodiment of the present application;
[0044] Figure 2 This is a schematic diagram of the main process of a page generation method according to an embodiment of the present application;
[0045] Figure 3 This is a diagram of a tree structure of mini-program configuration data according to a page generation method according to an embodiment of the present application;
[0046] Figure 4 1 is a schematic diagram of a tree structure of page configuration data according to a page generation method according to an embodiment of the present application;
[0047] Figure 5 is a schematic diagram of the main units of the page generating device according to an embodiment of the present application;
[0048] Figure 6 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
[0049] Figure 7 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0050] The following describes exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding. They should be considered as merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the following description omits descriptions of well-known functions and structures. It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, models, and other existing solutions in the industry may be mentioned. These should be considered as exemplary and are intended only to illustrate the feasibility of implementing the technical solution of this application. It does not mean that the applicant has or will necessarily use the solution. In the technical solution of this application, the collection, analysis, use, transmission, storage, and other aspects of user personal information involved comply with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, disclosed, or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken to prevent unauthorized access to user personal information, ensure that those with access to such data comply with relevant laws and regulations, and ensure the security of user personal information. Once such user personal information is no longer needed, risks should be minimized by restricting or even prohibiting its collection and / or deleting it.
[0051] When used, including in certain related applications, protect user privacy by de-identifying data, such as by removing specific identifiers when used, controlling the amount or specificity of stored data, controlling how data is stored, and / or other de-identification methods.
[0052] Figure 1 This is a schematic diagram of the main process of the page generation method according to an embodiment of the present application. Figure 1 As shown, the page generation method includes:
[0053] Step S101 : in response to a page generation request, obtaining a corresponding page type identifier and page requirement data.
[0054] In this embodiment, the execution entity of the page generation method (e.g., a server) can receive a page generation request via a wired or wireless connection. After receiving the page generation request, the execution entity can obtain the page type identifier and corresponding page requirement data carried in the request.
[0055] The page type identifier can be used to characterize the page type, and the page requirement data may include data such as the elements that need to be displayed on the page, the form of the elements, the position of the elements, etc. The embodiment of the present application does not specifically limit the page requirement data.
[0056] Step S102: Determine the target editor based on the page type identifier.
[0057] Each page type may have a corresponding editor for customizing the page and quickly and accurately generating a page corresponding to the page type corresponding to the page type identifier. Based on the page type identifier, the corresponding editor is determined as the target editor.
[0058] Step S103 , obtaining the number of target editors, and in response to the number being greater than a preset threshold, executing an editor fusion process to obtain a fused editor, and displaying the calling priority of each component contained in the fused editor.
[0059] When the number of target editors corresponding to the page type identifier is large and greater than a preset threshold, one target editor can correspond to one or more types of elements to be added to the page. Multiple target editors may have duplicate available components. By merging multiple target editors, only one duplicate available component is retained to streamline the target editors and obtain a fused editor, thereby making it easier for users to find and call the required components to complete the layout of elements on the page. After obtaining the fused editor, the execution entity can display the calling priority of the streamlined components in the fused editor to assist users in determining the order in which to use the components, facilitate user decision-making, and ensure the accuracy of the generated page.
[0060] Specifically, before displaying the call priorities of the various components contained in the fusion editor, the page generation method further includes: determining the layers to which the various components contained in the fusion editor belong; determining the vertical stacking relationship of the layers, and based on this stacking relationship, determining the call priorities of the corresponding components. The call priority of components corresponding to elements in the layer stacked below is higher than the call priority of components corresponding to elements in the layer stacked above. This ensures that the various layers of the page are created in an orderly manner, improving the efficiency and accuracy of page generation.
[0061] Step S104 : Based on the page requirement data and the call priority, a corresponding component call is performed to execute the component logic, thereby generating a target page.
[0062] Specifically, based on the page demand data and the call priority, a corresponding component call is made, including: determining the component type and component call method corresponding to the page demand data; and making a corresponding component call based on the component type, component call method and call priority.
[0063] Specifically, component types include animation components, trigger components, playback components, style components, and display components; component invocation methods include click-triggered component invocation, timer-triggered component invocation, and slide-triggered component invocation. The execution entity can sequentially invoke components corresponding to the corresponding component types based on priority and the corresponding component invocation method to complete the creation of the corresponding page.
[0064] This embodiment responds to page generation requests by obtaining the corresponding page type identifier and page requirement data; determines the target editor based on the page type identifier; obtains the number of target editors, and, if the number exceeds a preset threshold, executes an editor fusion process to obtain a fused editor. The fused editor then displays the call priority of each component contained therein; and, based on the page requirement data and call priority, calls the corresponding components to execute component logic and generate the target page. This improves the efficiency and effectiveness of creating creative tweet pages.
[0065] Figure 2 This is a schematic diagram of the main flow of a page generation method according to an embodiment of the present application. Figure 2 As shown, the page generation method includes:
[0066] Step S201 : in response to a page generation request, obtain a corresponding page type identifier and page requirement data.
[0067] After receiving the page generation request, the execution entity can obtain the page type identifier and corresponding page requirement data carried in the request.
[0068] The page type identifier can be used to characterize the page type, and the page requirement data may include data such as the elements that need to be displayed on the page, the form of the elements, the position of the elements, etc. The embodiment of the present application does not specifically limit the page requirement data.
[0069] Step S202: Determine the target editor based on the page type identifier.
[0070] The associated components are determined according to the page type identifier, and the editor containing the most associated components is found according to the associated components to be used as the target editor, thereby facilitating more accurate generation of the required page.
[0071] Step S203, obtain the number of target editors, and in response to the number being greater than a preset threshold, merge the components in the target editor into the same editor, and de-duplicate the merged components to obtain a fused editor, and display the calling priority of each component contained in the fused editor.
[0072] H5, or HTML, is a display page that integrates text, pictures, music, videos, links and other forms.
[0073] For example, the embodiment of the present application can use the H5 creative tweet editor, the principle of which is as follows: H5 is essentially a set of configuration data, which is managed and organized in JSON format; this set of configuration data is in a tree-like hierarchical structure, defining the overall configuration of H5, page structure, components in the page, component animations and triggers, etc.; Editor: manages and configures this set of data in a visual way. The editor can adjust the page height, page type, page background transparency, block browser return, set page switching effects (fade in, overlay, etc.), display status bar, page width, display page turning arrows, continuous page turning in the first position, display background music icons, turn on adaptive layout, page zoom, display interactive components, display playback control bar, display page background image, page switching mode, etc.
[0074] To merge the target editors, you can first create a new editor, drag the components from multiple target editors to the new editor in sequence, and then check in real time whether there are duplicate components during the subsequent dragging process. If duplicate components are detected in the new editor, refuse to add the duplicate components, switch to the next component and continue dragging and adding it to the new editor, and also check for duplicate components until all the components of all target editors are polled, dragged and checked, and a fused editor is generated.
[0075] Step S204 : Based on the page requirement data and the call priority, a corresponding component call is performed to execute the component logic, thereby generating a target page.
[0076] The execution subject can call the components corresponding to the corresponding component types in sequence according to the priority and the corresponding component calling method, execute the component logic of the called components, and thus complete the creation of the corresponding page.
[0077] Step S205: automatically generate an identification code corresponding to the target page and display the identification code.
[0078] For example, works created through the H5 Creative Tweet Editor automatically generate an identification code, such as a QR code, and users automatically open the H5 Creative Tweet by scanning the QR code.
[0079] In an embodiment of the present application, an editor capable of creating H5 creative tweets is provided. Ordinary business personnel can create and publish without the support of professional technical personnel. The editor quickly generates creative tweets containing corporate information addresses by dragging and dropping a series of operations such as pictures, texts, animation effects, and artistic fonts used in all H5 creative tweets. Works created through the H5 creative tweet editor automatically generate QR codes, and users automatically open H5 creative tweets by scanning the QR code. Component calling method (click, timed trigger, slide trigger).
[0080] H5 is essentially a set of configuration data, organized and managed in JSON format. This data, in a tree-like hierarchical structure, defines the overall H5 configuration, page structure, components within the page, component animations, and triggers. The editor manages and adjusts this data in a visual way. The entire H5 configuration data is organized in a tree-like structure.
[0081] Among them, such as Figure 3 As shown, the tree-like organization corresponding to the mini program includes basic information, canvas size, loading page style, background music, and page structure (Chanpter): (Page 1, Page 2, Page 3).
[0082] like Figure 4 As shown, the tree organization corresponding to the page includes basic information: page title; basic settings: background color, whether to display MasterPage; long page settings; components (overlays): component 1, component 2, component 3; animation: animation 1, animation 2, animation 3; triggers: trigger 1, trigger 2, trigger 3.
[0083] The structure of the editor is described through the correspondence between the editor setting options and the data structure. Specifically:
[0084] Work setting options: work name, switching effect, continuous page turning from beginning to end, display page turning arrows, display background music.
[0085] Page setting options: page ID, page name, show Masterpage, show Background, enable long pages, prohibit sliding pages, component list, animation, trigger.
[0086] Component setting options: Here we take the button component as an example, component ID, component HTML template, initial hiding, size layout, width, height, X coordinate, Y coordinate, basic settings, component title, button text, component style.
[0087] Animation setting options: Take a "zoom in and zoom out" animation waiting to be triggered as an example: animation ID, component ID, page ID, animation type, animation settings: ratio, animation timing settings, number of repetitions, animation effect number, waiting for triggering, delay, appearance method, return to the beginning, and duration.
[0088] Trigger setting options: Take button click to trigger animation playback as an example, trigger type: click, trigger configuration, action: play animation, which animation to play, page ID, animation ID, trigger component ID, page ID, trigger ID.
[0089] Ordinary users can create and select components, pages, and insert images by dragging and dropping buttons within the editor canvas. This simple operation does not require the support of professional technicians to generate H5 creative tweets. The creation of H5 creative tweets has a short validity period, so ordinary users can quickly create H5 creative tweets.
[0090] Figure 5 Schematic diagram of the main units of the page generation device according to the embodiment of the present application. Figure 5 As shown, the page generating apparatus 500 includes an acquiring unit 501 , a target editor determining unit 502 , an editor merging unit 503 and a target page generating unit 504 .
[0091] The acquisition unit 501 is configured to acquire the corresponding page type identifier and page requirement data in response to the page generation request;
[0092] A target editor determining unit 502 is configured to determine a target editor based on the page type identifier;
[0093] The editor fusion unit 503 is configured to obtain the number of target editors, and in response to the number being greater than a preset threshold, execute an editor fusion process to obtain a fused editor, and display the calling priority of each component contained in the fused editor;
[0094] The target page generating unit 504 is configured to perform corresponding component calls based on the page requirement data and the call priority to execute component logic and thereby generate the target page.
[0095] In some embodiments, the editor fusion unit 503 is further configured to: merge components in the target editor into the same editor, and remove duplicates from the merged components to obtain a fused editor.
[0096] In some embodiments, the page generating device further includes Figure 5 The identification code generating unit not shown in the figure is configured to automatically generate an identification code corresponding to the target page and display the identification code.
[0097] In some embodiments, the page generating device further includes Figure 5 The calling priority determination unit not shown in the figure is configured to: determine the layers to which the components contained in the fusion editor belong; determine the upper and lower superposition relationships of the layers, and determine the calling priority of the corresponding components based on the upper and lower superposition relationships.
[0098] In some embodiments, the target page generating unit 504 is further configured to: determine the component type and component calling method corresponding to the page requirement data; and perform corresponding component calling based on the component type, component calling method and calling priority.
[0099] In some embodiments, component types include animation components, trigger components, playback components, style components, and display components; component calling methods include click-triggered component calling, timed-triggered component calling, and sliding-triggered component calling.
[0100] It should be noted that the page generation method and page generation device of the present application have corresponding relationships in terms of specific implementation contents, so the repeated contents will not be described again.
[0101] Figure 6 An exemplary system architecture 600 is shown to which the page generation method or page generation apparatus according to the embodiments of the present application can be applied.
[0102] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0103] Users can use terminal devices 601, 602, and 603 to interact with server 605 via network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0104] The terminal devices 601 , 602 , and 603 may be various electronic devices that have a page generation processing screen and support web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0105] Server 605 can be a server that provides various services, such as a background management server that provides support for page generation requests submitted by users using terminal devices 601, 602, and 603 (for example only). The background management server can respond to the page generation request and obtain the corresponding page type identification and page requirement data; determine the target editor based on the page type identification; obtain the number of target editors, and in response to the number being greater than a preset threshold, execute the editor fusion process to obtain a fused editor, and display the call priority of each component contained in the fused editor; based on the page requirement data and call priority, perform corresponding component calls to execute component logic and generate the target page. This improves the efficiency of creating creative tweet pages and enhances the page creation effect.
[0106] It should be noted that the page generation method provided in the embodiment of the present application is generally executed by the server 605 , and accordingly, the page generation device is generally set in the server 605 .
[0107] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.
[0108] Reference below Figure 7 , which shows a structural diagram of a computer system 700 of a terminal device suitable for implementing an embodiment of the present application. Figure 7 The terminal device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0109] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the computer system 700 are also stored in the RAM 703. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0110] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including displays such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card or a modem. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. Removable media 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like, is installed in the drive 710 as needed, so that computer programs read therefrom can be installed into the storage section 708 as needed.
[0111] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from a removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present application are executed.
[0112] It should be noted that the computer-readable medium described in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. Computer-readable storage media can include, for example, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.
[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0114] The units involved in the embodiments described in this application can be implemented by software or hardware. The units described can also be set in a processor. For example, it can be described as: a processor includes an acquisition unit, a target editor determination unit, an editor fusion unit, and a target page generation unit. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0115] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device responds to a page generation request, obtains a corresponding page type identifier and page requirement data; determines a target editor based on the page type identifier; obtains the number of target editors, and in response to the number being greater than a preset threshold, executes an editor fusion process to obtain a fused editor, and displays the call priority of each component contained in the fused editor; performs corresponding component calls based on the page requirement data and the call priority to execute component logic, thereby generating a target page.
[0116] The computer program product of the present application includes a computer program, and when the computer program is executed by a processor, it implements the page generation method in the embodiment of the present application.
[0117] According to the technical solution of the embodiment of the present application, the efficiency of creating creative tweet pages and the page creation effect can be improved.
[0118] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A page generation method, characterized in that: include: In response to the page generation request, obtaining a corresponding page type identifier and page requirement data; Based on the page type identifier, determining a target editor; Acquiring the number of the target editors, and in response to the number being greater than a preset threshold, executing an editor fusion process to obtain a fused editor, and displaying the calling priority of each component contained in the fused editor; Based on the page requirement data and the call priority, corresponding component calls are made to execute component logic, thereby generating a target page.
2. The method according to claim 1, characterized in that The executing editor fusion process to obtain a fusion editor includes: The components in the target editor are merged into the same editor, and the merged components are deduplicated to obtain a fused editor.
3. The method according to claim 1, characterized in that After generating the target page, the method further includes: An identification code corresponding to the target page is automatically generated and displayed.
4. The method according to claim 1, characterized in that: Before displaying the calling priorities of the various components contained in the fusion editor, the method further includes: Determine the layer to which each component contained in the fusion editor belongs; Determine the up-and-down superposition relationship of the layers, and determine the calling priority of the corresponding components based on the up-and-down superposition relationship.
5. The method according to claim 1, characterized in that The performing corresponding component calls based on the page demand data and the call priority includes: Determine the component type and component calling method corresponding to the page requirement data; Based on the component type, the component calling mode and the calling priority, a corresponding component calling is performed.
6. The method according to claim 5, characterized in that The component types include animation components, trigger components, playback components, style components and display components; the component calling methods include click-triggered component calling, timed-triggered component calling and sliding-triggered component calling.
7. A page generating device, characterized in that: include: An acquisition unit, configured to acquire a corresponding page type identifier and page requirement data in response to a page generation request; a target editor determining unit, configured to determine a target editor based on the page type identifier; an editor fusion unit, configured to obtain the number of the target editors, and in response to the number being greater than a preset threshold, execute an editor fusion process to obtain a fused editor, and display the calling priority of each component contained in the fused editor; The target page generating unit is configured to perform corresponding component calls based on the page requirement data and the calling priority to execute component logic and further generate a target page.
8. The device according to claim 7, characterized in that The editor fusion unit is further configured to: The components in the target editor are merged into the same editor, and the merged components are deduplicated to obtain a fused editor.
9. The device according to claim 7, characterized in that The device also includes an identification code generating unit configured to: An identification code corresponding to the target page is automatically generated and displayed.
10. The device according to claim 7, characterized in that The apparatus further comprises a call priority determination unit configured to: Determine the layer to which each component contained in the fusion editor belongs; Determine the up-and-down superposition relationship of the layers, and determine the calling priority of the corresponding components based on the up-and-down superposition relationship.
11. The device according to claim 7, characterized in that The target page generating unit is further configured to: Determine the component type and component calling method corresponding to the page requirement data; Based on the component type, the component calling mode and the calling priority, a corresponding component calling is performed.
12. The device according to claim 11, characterized in that The component types include animation components, trigger components, playback components, style components and display components; the component calling methods include click-triggered component calling, timed-triggered component calling and sliding-triggered component calling.
13. A page generating electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
