Active page generation method and device, computer equipment and storage medium
By parsing and combining page components and deployment information in the activity configuration file, the method of generating activity pages is optimized, and the problem of manual operation dependency is solved, efficient and automated activity page generation is achieved, reducing costs and improving efficiency.
Patent Information
- Application Number
- CN202510108555.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-13
AI Technical Summary
The current active page development process relies on the manual operation of developers, resulting in high labor costs, low development efficiency, and problems such as page update delay and version management difficulties.
By responding to the upload event of the active configuration file, parsing the configuration file to obtain page components and component configuration information, obtain matching component deployment information, combine page components, and optimize page configuration results to generate matching active pages.
It realizes automatic generation of active pages without manual operations by developers, reduces labor costs, improves development efficiency, simplifies page update process, and improves the reliability of version management.
Smart Images

Figure CN119987771A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of big data processing, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for generating an activity page. Background Art
[0002] As the business continues to develop, business activities in different business scenarios are increasing. In the current activity development process, the creation of activity pages depends on the manual operations of developers, such as understanding activity requirements, creating activity pages, filling in activity content, and completing activity page creation.
[0003] However, as the number of activity types gradually increases, the activity page for each activity type requires manual operation by developers, resulting in high labor costs and low development efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide an activity page generation method, device, computer equipment, computer-readable storage medium and computer program product that can reduce labor costs and improve development efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for generating an activity page. The method comprises:
[0006] In response to an upload event for an activity configuration file, parsing the activity configuration file to obtain a plurality of page components and component configuration information corresponding to each of the page components;
[0007] Obtaining component deployment information matching the activity configuration file;
[0008] Combine the multiple page components based on the component deployment information to obtain a page configuration result;
[0009] Based on the component configuration information corresponding to each of the page components, the page configuration result is optimized to obtain an activity page matching the activity configuration file.
[0010] In one embodiment, combining the multiple page components based on the component deployment information to obtain a page configuration result includes:
[0011] Parsing the component deployment information to obtain respective deployment areas of multiple candidate components in a preset activity template;
[0012] Determine a target candidate component matching each of the page components from the multiple candidate components;
[0013] Based on the respective deployment areas of the target candidate components in the preset activity template and the page components, a page configuration result is obtained.
[0014] In one embodiment, obtaining the page configuration result based on the respective deployment areas of the target candidate components in the preset activity template and the page components includes:
[0015] In a case where the number of the target candidate components is less than the number of the candidate components, determining remaining candidate components except each of the target candidate components from the multiple candidate components;
[0016] In response to a replacement event for the remaining candidate components, obtaining a newly added page component matching the activity configuration file;
[0017] Based on the deployment areas of each of the target candidate components and the remaining candidate components in the preset activity template, each of the page components and the newly added page components are configured in the preset activity template to obtain a page configuration result.
[0018] In one embodiment, the component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component; optimizing the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file includes:
[0019] Generate a display interface based on the sub-option configuration information corresponding to each of the page components;
[0020] In response to a configuration information selection event triggered in the display interface, determining selected sub-option configuration information from the sub-option configuration information corresponding to each of the page components;
[0021] Based on the selected sub-option configuration information, the configuration information of the deployment area of the corresponding page component in the page configuration result is replaced to obtain an activity page matching the activity configuration file.
[0022] In one embodiment, the activity configuration file includes an activity type; and obtaining component deployment information matching the activity configuration file includes:
[0023] determining a storage location of information matching the activity type;
[0024] Component deployment information matching the activity configuration file is read from the information storage location.
[0025] In one embodiment, the method further comprises:
[0026] Obtain the activity period of the activity page;
[0027] In the case where the current deadline matches the activity deadline, the activity page is deactivated.
[0028] In a second aspect, the present application provides an activity page generation device, the device comprising:
[0029] An analysis module, configured to, in response to an upload event for an activity configuration file, parse the activity configuration file to obtain a plurality of page components and component configuration information corresponding to each of the page components;
[0030] An acquisition module, used to acquire component deployment information matching the activity configuration file;
[0031] A processing module, configured to combine the plurality of page components based on the component deployment information to obtain a page configuration result;
[0032] The optimization module is used to optimize the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file.
[0033] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0034] In response to an upload event for an activity configuration file, parsing the activity configuration file to obtain a plurality of page components and component configuration information corresponding to each of the page components;
[0035] Obtaining component deployment information matching the activity configuration file;
[0036] Combine the multiple page components based on the component deployment information to obtain a page configuration result;
[0037] Based on the component configuration information corresponding to each of the page components, the page configuration result is optimized to obtain an activity page matching the activity configuration file.
[0038] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0039] In response to an upload event for an activity configuration file, parsing the activity configuration file to obtain a plurality of page components and component configuration information corresponding to each of the page components;
[0040] Obtaining component deployment information matching the activity configuration file;
[0041] Combine the multiple page components based on the component deployment information to obtain a page configuration result;
[0042] Based on the component configuration information corresponding to each of the page components, the page configuration result is optimized to obtain an activity page matching the activity configuration file.
[0043] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0044] In response to an upload event for an activity configuration file, parsing the activity configuration file to obtain a plurality of page components and component configuration information corresponding to each of the page components;
[0045] Obtaining component deployment information matching the activity configuration file;
[0046] Combine the multiple page components based on the component deployment information to obtain a page configuration result;
[0047] Based on the component configuration information corresponding to each of the page components, the page configuration result is optimized to obtain an activity page matching the activity configuration file.
[0048] The above-mentioned activity page generation method, device, computer equipment, storage medium and computer program product, by responding to the upload event for the activity configuration file, parses the activity configuration file to obtain multiple page components and component configuration information corresponding to each page component, and obtains component deployment information matching the activity configuration file, combines multiple page components based on the component deployment information, obtains a page configuration result, and then optimizes the page configuration result based on the component configuration information corresponding to each page component, and obtains an activity page matching the activity configuration file. Therefore, by uploading the activity configuration file, an activity page matching the activity configuration file can be automatically generated, without the need for manual operation by developers, which can reduce labor costs and improve development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 An application environment diagram of an activity page generation method in an embodiment;
[0051] Figure 2 A schematic diagram of a flow chart of a method for generating an activity page in one embodiment;
[0052] Figure 3 A schematic diagram of a process for combining multiple page components based on component deployment information to obtain a page configuration result in an embodiment;
[0053] Figure 4 A schematic diagram of a process for obtaining a page configuration result based on respective deployment areas of each target candidate component in a preset activity template and each page component in an embodiment;
[0054] Figure 5 A schematic diagram of a process of optimizing a page configuration result based on component configuration information corresponding to each page component to obtain an activity page matching an activity configuration file in an embodiment;
[0055] Figure 6 A schematic diagram of a flow chart of a method for generating an activity page in another embodiment;
[0056] Figure 7 It is a structural block diagram of an activity page generating device in one embodiment;
[0057] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] Research has found that in the current activity page development process, the packaging and publishing of the activity configuration files corresponding to the activity page usually rely on manual operations by developers. This process includes multiple steps such as packaging the activity configuration files, uploading the packaged files to the server, and updating the static resources on the server. These steps are cumbersome and error-prone, which not only reduces development efficiency, but may also cause page updates to fail or problems due to human errors. In other words, as the number of activity types gradually increases, the activity page of each activity type requires manual operation by developers, which will result in high labor costs and low development efficiency.
[0060] Moreover, the current activity page development process also has problems such as delayed page updates and difficult version management. For example, since multiple steps need to be performed manually, the page update speed is often delayed by human factors, which not only affects the user experience, but may also cause security issues or functional defects due to untimely updates. At the same time, due to the lack of an effective version management mechanism, it is difficult for developers to track and manage the version information of each update release.
[0061] Moreover, the current activity page development process still lacks an automated packaging process and publishing solution, although some front-end packaging tools (such as Webpack, etc.) and version control systems (such as Git) can be used to develop activity pages; Webpack refers to a static module packaging tool for modern JavaScript applications; Git is an open source distributed version control system used to track file changes and collaborate on development. However, this usually completes the automation of a single step, such as code packaging or version management, and cannot achieve automation of the entire packaging and publishing process, which causes developers to still need to manually perform multiple steps and cannot completely get rid of cumbersome operation processes. In addition, existing solutions also lack an integrated user interaction interface, which requires developers to switch multiple tools or interfaces to complete the entire process, further increasing the complexity of the operation and the possibility of errors.
[0062] After research, it was found that by uploading the activity configuration file, the activity configuration file can be triggered to be quickly uploaded to the server with one click, and the activity page will be generated in the end, thus simplifying the traditional manual operation process, eliminating errors and delays caused by human factors, and significantly improving the speed and efficiency of page updates. Moreover, by updating the activity configuration file directly to the server, there is no need to spend a lot of time on communicating with the backend and deploying the server, thus improving the overall development efficiency and project delivery quality.
[0063] In view of this, the present application provides a method for generating an activity page, which can be applied to Figure 1 In the application environment shown, the development terminal 102 communicates with the server 104 via a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers.
[0064] Specifically, the development terminal 102 is used to trigger an upload event of an active configuration file. The server 104 responds to the upload event for the active configuration file, parses the active configuration file to obtain multiple page components and component configuration information corresponding to each page component, and obtains component deployment information matching the active configuration file, combines multiple page components based on the component deployment information, obtains a page configuration result, and then optimizes the page configuration result based on the component configuration information corresponding to each page component to obtain an active page matching the active configuration file.
[0065] The development terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0066] In one embodiment, Figure 2 As shown, a method for generating an activity page is provided, and the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate, and the following steps are included:
[0067] S202: In response to an upload event for an activity configuration file, the activity configuration file is parsed to obtain a plurality of page components and component configuration information corresponding to each page component.
[0068] Among them, combined Figure 1 The development terminal displays an upload interface, which includes a file selection button and a confirmation button; when the developer selects an active configuration file based on the file selection button and triggers the confirmation button, the server responds to the upload event for the active configuration file, parses the active configuration file to obtain multiple page components, and component configuration information corresponding to each page component.
[0069] In some cases, the upload interface also includes a profile description box, in which the developer can fill in the activity name, content related to the activity profile, etc.
[0070] The activity configuration file refers to a file used to configure the activity page, and the page component has a corresponding relationship with the component content in the activity page. For example, if the page component refers to the default background image component, the component content in the activity page includes the default background image. The component configuration information of the page component refers to information related to the configuration of the page component. For example, the component configuration information of the page component may include the component content corresponding to the page component and the sub-option configuration information corresponding to the page component.
[0071] There is no limitation on the implementation method of parsing the activity configuration file to obtain multiple page components and component configuration information corresponding to each page component. Several of the methods are described below with examples.
[0072] In one embodiment, the activity configuration file includes multiple page components and component configuration information corresponding to each page component. Then, the multiple page components and component configuration information corresponding to each page component can be obtained by parsing the activity configuration file.
[0073] In one embodiment, the activity configuration file includes multiple page component names, and the multiple page component names can be obtained by parsing the activity configuration file; based on the multiple page component names, multiple page components and component configuration information corresponding to each page component can be determined.
[0074] S204: Obtain component deployment information that matches the activity configuration file.
[0075] The component deployment information refers to information related to the deployment location of the candidate component. For example, the component deployment information may include the deployment area of the candidate component in the preset activity template. The candidate component may be the same as or different from the page component. There is no limit to the method of obtaining the component deployment information matching the activity configuration file. Several of these methods are described below with examples.
[0076] In one embodiment, the preset component deployment information may be determined as the component deployment information matching the activity configuration file, wherein the preset component deployment information includes information such as respective deployment areas of multiple preset components in the preset activity template.
[0077] In one embodiment, the activity configuration file includes an activity type, and then an information storage location matching the activity type is determined, and component deployment information matching the activity configuration file is read from the information storage location.
[0078] S206, combining multiple page components based on the component deployment information to obtain a page configuration result.
[0079] There is no limitation on the method of combining multiple page components based on component deployment information to obtain page configuration results. In one embodiment, component deployment information is parsed to obtain the positional relationship between multiple first reference components in the initial page template; second reference components that match each page component are determined from the multiple first reference components; positional relationships between the second reference components are determined from the positional relationships between the multiple first reference components; and based on the positional relationships between the second reference components, each page component is deployed in the initial page template to obtain a page configuration result.
[0080] For example, multiple first reference components may include text components, image components, and video components, and the positional relationship between the multiple first reference components may be expressed as: the image component and the video component are located below the text component. The component content corresponding to the image component may represent the specific content of the image, the component content corresponding to the video component may represent the specific content of the video, and the component content corresponding to the text component may represent the text content.
[0081] S208: Optimize the page configuration result based on the component configuration information corresponding to each page component to obtain an activity page that matches the activity configuration file.
[0082] Therein, based on the component configuration information corresponding to each page component, the page configuration result is optimized, and the method of obtaining the activity page matching the activity configuration file is not limited, and the following is an example of possible implementation methods.
[0083] In one embodiment, the component configuration information corresponding to the page component may include the component content corresponding to the page component. Based on the positional relationship between the page components in the page template set in the page configuration result, the available content area corresponding to each page component in the page configuration result is determined; based on the available content area corresponding to each page component, the component content corresponding to each page component is adjusted; the adjusted component content corresponding to the page component is configured in the available content area corresponding to the page component in the page configuration result to obtain an activity page that matches the activity configuration file.
[0084] Among them, the adjusted component content corresponding to the page component can be manually adjusted by the developer, or automatically adjusted based on a preset method, or there can be other methods, which are not limited in this embodiment.
[0085] In one embodiment, the server may send the activity page to the development terminal so that the developer can view the activity page. Alternatively, the server may send the activity template corresponding to the activity page to the development terminal, and the developer clicks the activity template based on the development terminal, and the development terminal may jump to the interface displaying the activity page.
[0086] In some cases, an update button, a deactivate button and a delete button are displayed on the activity template; when the update button is triggered, the development terminal can be adjusted to the update interface, and the developer can re-upload a new activity configuration file based on the update interface to generate a new activity page; when the deactivate button is triggered, the activity page is deactivated; when the delete button is triggered, the activity template corresponding to the current activity page is deleted, that is, the current activity page is deleted.
[0087] In some cases, when the update button is triggered, the time when the update button is triggered and the version number of the updated active page and other contents can be recorded to obtain an update record. The version number of the updated active page can be determined based on the version number input in the update interface, or can be determined by automatically detecting the file name of the active configuration file.
[0088] The server may send the activity page to multiple user terminals corresponding to the activity type based on the activity type corresponding to the activity page, so that users corresponding to the user terminals may participate in the business activity corresponding to the activity page.
[0089] In one embodiment, the activity period of the activity page is obtained, and when the current period matches the activity period, the activity page is deactivated. Thus, by setting the activity period of the activity page, the user's enthusiasm for participation can be increased, while meeting the user's increasingly personalized and diversified financial service needs.
[0090] based on Figure 2 The content shown, by responding to the upload event for the activity configuration file, parsing the activity configuration file to obtain multiple page components and component configuration information corresponding to each page component, and obtaining component deployment information matching the activity configuration file, combining multiple page components based on the component deployment information, obtaining a page configuration result, and then optimizing the page configuration result based on the component configuration information corresponding to each page component, to obtain an activity page matching the activity configuration file. Thus, by uploading the activity configuration file, an activity page matching the activity configuration file can be automatically generated, without the need for manual operation by the developer, which can reduce labor costs and improve development efficiency.
[0091] In one embodiment, the method for combining multiple page components based on component deployment information to obtain a page configuration result (S206) may be as follows: Figure 3 As shown, the following steps are included:
[0092] S302, parsing component deployment information to obtain respective deployment areas of multiple candidate components in a preset activity template.
[0093] The component deployment information may include respective deployment areas of multiple candidate components in a preset activity template, and by parsing the component deployment information, respective deployment areas of multiple candidate components in the preset activity template may be obtained. The deployment area of the candidate component represents the placement area of the component content corresponding to the candidate component and the sub-option configuration information of the candidate component in the preset activity template.
[0094] S304: Determine a target candidate component that matches each page component from multiple candidate components.
[0095] There is no limitation on the method of determining the target candidate components that match each page component from multiple candidate components. In one embodiment, the target candidate components that match each page component can be determined from multiple candidate components based on the matching result between the component name of the candidate component and the component name of the page component. In another embodiment, the target candidate components that match each page component can be determined from multiple candidate components based on the matching result between the component identifier of the candidate component and the component identifier of the page component.
[0096] S306: Obtain a page configuration result based on the respective deployment areas of the target candidate components in the preset activity template and the respective page components.
[0097] Wherein, based on the deployment area of each target candidate component in the preset activity template and the configuration of each page component, the method of obtaining the page configuration result is not limited. In one embodiment, each page component is respectively configured in the deployment area of the corresponding target candidate component in the preset activity template to obtain the page configuration result.
[0098] based on Figure 3 The content shown can realize the configuration of each page component in the preset activity template through the respective deployment areas of each target candidate component in the preset activity template in the component deployment information, thereby improving the generation accuracy of the activity page.
[0099] In one embodiment, based on the respective deployment areas of each target candidate component in the preset activity template and each page component, the implementation method of obtaining the page configuration result (ie, S306) may be as follows: Figure 4 The content shown includes the following steps:
[0100] S402: When the number of target candidate components is less than the number of candidate components, determine remaining candidate components except for each target candidate component from the plurality of candidate components.
[0101] Among them, when the number of target candidate components is less than the number of candidate components, it means that multiple candidate components in the preset active template are not fully matched with multiple page components, then the remaining candidate components except for the target candidate components can be determined from the multiple candidate components, that is, the candidate components that are not matched among the multiple candidate components are the remaining candidate components.
[0102] S404: In response to the replacement event for the remaining candidate components, obtain a new page component that matches the active configuration file.
[0103] The development terminal is used to trigger a replacement event for the remaining candidate components, and the server can obtain a newly added page component that matches the active configuration file in response to the replacement event for the remaining candidate components.
[0104] S406, based on the deployment areas of each target candidate component and the remaining candidate components in the preset activity template, each page component and the newly added page component are configured in the preset activity template to obtain a page configuration result.
[0105] Specifically, each page component is configured in the deployment area of the corresponding target candidate component in the preset activity template, and the newly added page component is configured in the deployment area of the remaining candidate components in the preset activity template, so that the page configuration result can be obtained.
[0106] based on Figure 4 As shown in the content, for the remaining candidate components except the target candidate components among multiple candidate components, by replacing the remaining candidate components with newly added page components, page components can be added in real time based on activity requirements, thereby improving the flexibility of activity page configuration.
[0107] In one embodiment, the component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component. Based on the component configuration information corresponding to each page component, the page configuration result is optimized to obtain an activity page matching the activity configuration file (ie, S208). The implementation method may be as follows: Figure 5 As shown, the following steps are included:
[0108] S502: Generate a display interface based on the sub-option configuration information corresponding to each page component.
[0109] The sub-option configuration information refers to the configuration information related to the sub-option corresponding to the page component. For example, if the page component represents a default background image component, the corresponding sub-option configuration information may include configuration information for the upload image option and configuration information for the image Uniform Resource Locator (URL) option.
[0110] The display interface may display sub-options corresponding to the page components. For example, the display interface may display an upload picture button that matches the configuration information for the upload picture option, and a picture URL input box that matches the configuration information for the picture URL option.
[0111] S504, in response to a configuration information selection event triggered in the display interface, determining selected sub-option configuration information from sub-option configuration information corresponding to each page component.
[0112] The configuration information selection event refers to the event of selecting the sub-option corresponding to the page component triggered by the developer based on the development terminal. For example, the page component refers to the default background image component, and the corresponding sub-options include the upload image option and the image URL option. When the developer selects the upload image option in the display interface, the configuration information for the upload image option is determined as the selected sub-option configuration information.
[0113] S506: Based on the selected sub-option configuration information, replace the configuration information of the deployment area of the corresponding page component in the page configuration result to obtain an activity page that matches the activity configuration file.
[0114] Specifically, based on the selected sub-option configuration information, a configuration interface matching the selected sub-option configuration information is sent to the development terminal; when the sub-option configuration result is received based on the configuration interface, the sub-option configuration result is used to replace the configuration information of the deployment area of the corresponding page component in the page configuration result, so that an active page matching the active configuration file can be obtained.
[0115] For example, when the page component is the default background image component and the selected sub-option configuration information is the configuration information for the upload image option, a configuration interface can be sent to the development terminal. The configuration interface includes an image upload button. After the developer selects an image based on the image upload button, the selected image is the sub-option configuration result. After the configuration information of the deployment area of the corresponding page component in the page configuration result is replaced with the selected image, the deployment area of the corresponding page component in the page configuration result displays the selected image, and the default background image in the active page is the selected image.
[0116] For example, when the page component is the default background image component and the selected sub-option configuration information is the configuration information for the image URL option, a configuration interface can be sent to the development terminal. The configuration interface includes an image URL input box. After the developer enters the image URL based on the image URL input box, the image corresponding to the image URL is the sub-option configuration result. After replacing the configuration information of the deployment area of the corresponding page component in the page configuration result with the image corresponding to the image URL, the deployment area of the corresponding page component in the page configuration result can display the image corresponding to the image URL, and the default background image in the active page is the image corresponding to the image URL.
[0117] In combination with the above, in one embodiment, Figure 6 As shown, a method for generating an activity page is provided, and the method is applied to Figure 1 Taking the server 104 in the example as an example, the following steps are included:
[0118] S602, in response to an upload event for an activity configuration file, parsing the activity configuration file to obtain multiple page components and component configuration information corresponding to each page component; the activity configuration file includes an activity type; the component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component.
[0119] S604, determining an information storage location that matches the activity type, and reading component deployment information that matches the activity configuration file from the information storage location.
[0120] S606, parsing the component deployment information to obtain respective deployment areas of the plurality of candidate components in the preset activity template.
[0121] S608, determining a target candidate component that matches each page component from multiple candidate components.
[0122] S610, obtaining a page configuration result based on the respective deployment areas of each target candidate component in the preset activity template and each page component.
[0123] S612: Generate a display interface based on the sub-option configuration information corresponding to each page component.
[0124] S614, in response to the configuration information selection event triggered in the display interface, determining the selected sub-option configuration information from the sub-option configuration information corresponding to each page component.
[0125] S616, based on the selected sub-option configuration information, replace the configuration information of the deployment area of the corresponding page component in the page configuration result to obtain an activity page matching the activity configuration file.
[0126] Among them, the specific content of S602-S616 can be adapted to the description of the above content and will not be repeated here.
[0127] In combination with the above content, it can be seen that the present application provides an activity page generation method based on an activity template. When the activity type is different, the corresponding activity page can be directly and automatically generated by uploading the corresponding activity configuration file. No complicated manual server deployment is required. At the same time, it supports highly configurable web page creation, greatly simplifying the front-end code update process.
[0128] Moreover, this application generates pages by publishing the activity configuration file to the server with one click, eliminating the need for developers to manually perform multiple tedious steps, which can save development time and improve development efficiency. Moreover, when the activity type is different, by re-uploading the corresponding activity configuration file, the static resources on the server can be updated immediately to achieve instant updates of the page. At the same time, the risk of human error can be reduced, the manual operation of developers can be reduced, thereby reducing errors and delays caused by human factors, and by automatically recording the version information of each update, the risk caused by update errors can be reduced, and stability and reliability can be improved.
[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0130] Based on the same inventive concept, the embodiment of the present application also provides an activity page generation device for implementing the activity page generation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more activity page generation device embodiments provided below can refer to the limitations of the activity page generation method above, and will not be repeated here.
[0131] In one embodiment, Figure 7 As shown, an activity page generation device is provided, including: an analysis module 702, an acquisition module 704, a processing module 706 and an optimization module 708, wherein:
[0132] The analysis module 702 is used to respond to an upload event for an activity configuration file and parse the activity configuration file to obtain multiple page components and component configuration information corresponding to each of the page components.
[0133] The acquisition module 704 is used to acquire component deployment information matching the activity configuration file.
[0134] The processing module 706 is used to combine the multiple page components based on the component deployment information to obtain a page configuration result.
[0135] The optimization module 708 is used to optimize the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file.
[0136] In one embodiment, the processing module is also used to: parse the component deployment information to obtain the respective deployment areas of multiple candidate components in the preset active template; determine the target candidate components that match each of the page components from the multiple candidate components; and obtain the page configuration results based on the respective deployment areas of each of the target candidate components in the preset active template and each of the page components.
[0137] In one embodiment, the processing module is further used to: determine the remaining candidate components except each of the target candidate components from the multiple candidate components when the number of the target candidate components is less than the number of the candidate components; obtain a newly added page component matching the activity configuration file in response to a replacement event for the remaining candidate components; and configure each of the page components and the newly added page component in the preset activity template based on the deployment areas of each of the target candidate components and the remaining candidate components in the preset activity template to obtain a page configuration result.
[0138] In one embodiment, the component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component; the optimization module is further used to: generate a display interface based on the sub-option configuration information corresponding to each of the page components; in response to a configuration information selection event triggered in the display interface, determine the selected sub-option configuration information from the sub-option configuration information corresponding to each of the page components; based on the selected sub-option configuration information, replace the configuration information of the deployment area of the corresponding page component in the page configuration result to obtain an active page matching the active configuration file.
[0139] In one embodiment, the activity configuration file includes an activity type; the acquisition module is further used to: determine an information storage location matching the activity type; and read component deployment information matching the activity configuration file from the information storage location.
[0140] In one embodiment, the processing module is further used to: obtain the activity period of the activity page; and deactivate the activity page when the current period matches the activity period.
[0141] Each module in the above-mentioned activity page generation device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0142] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as activity configuration files. The network interface of the computer device is used to communicate with an external development terminal through a network connection. When the computer program is executed by the processor, a method for generating an activity page is implemented.
[0143] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0144] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: in response to an upload event for an activity configuration file, parsing the activity configuration file to obtain multiple page components and component configuration information corresponding to each of the page components; obtaining component deployment information matching the activity configuration file; combining the multiple page components based on the component deployment information to obtain a page configuration result; and optimizing the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file.
[0145] In one embodiment, when the processor executes the computer program, the following steps are also implemented: parsing the component deployment information to obtain the respective deployment areas of multiple candidate components in the preset active template; determining the target candidate components that match each of the page components from the multiple candidate components; and obtaining the page configuration results based on the respective deployment areas of each of the target candidate components in the preset active template and each of the page components.
[0146] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the number of the target candidate components is less than the number of the candidate components, determining the remaining candidate components other than each of the target candidate components from the multiple candidate components; in response to a replacement event for the remaining candidate components, obtaining a newly added page component that matches the activity configuration file; based on the deployment areas of each of the target candidate components and the remaining candidate components in the preset activity template, configuring each of the page components and the newly added page components in the preset activity template to obtain a page configuration result.
[0147] In one embodiment, the component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component; when the processor executes the computer program, the following steps are also implemented: based on the sub-option configuration information corresponding to each of the page components, a display interface is generated; in response to a configuration information selection event triggered in the display interface, selected sub-option configuration information is determined from the sub-option configuration information corresponding to each of the page components; based on the selected sub-option configuration information, the configuration information of the deployment area of the corresponding page component in the page configuration result is replaced to obtain an active page matching the active configuration file.
[0148] In one embodiment, the activity configuration file includes an activity type; when the processor executes the computer program, the processor further implements the following steps: determining an information storage location matching the activity type; and reading component deployment information matching the activity configuration file from the information storage location.
[0149] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining the activity period of the active page; and deactivating the active page when the current period matches the activity period.
[0150] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: in response to an upload event for an activity configuration file, parsing the activity configuration file to obtain multiple page components and component configuration information corresponding to each of the page components; obtaining component deployment information matching the activity configuration file; combining the multiple page components based on the component deployment information to obtain a page configuration result; and optimizing the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file.
[0151] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: parsing the component deployment information to obtain the respective deployment areas of multiple candidate components in the preset active template; determining the target candidate components that match each of the page components from the multiple candidate components; and obtaining the page configuration results based on the respective deployment areas of each of the target candidate components in the preset active template and each of the page components.
[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: when the number of the target candidate components is less than the number of the candidate components, determining the remaining candidate components other than each of the target candidate components from the multiple candidate components; in response to a replacement event for the remaining candidate components, obtaining a newly added page component that matches the activity configuration file; based on the deployment areas of each of the target candidate components and the remaining candidate components in the preset activity template, configuring each of the page components and the newly added page components in the preset activity template to obtain a page configuration result.
[0153] In one embodiment, the component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component; when the computer program is executed by the processor, the following steps are also implemented: based on the sub-option configuration information corresponding to each of the page components, a display interface is generated; in response to a configuration information selection event triggered in the display interface, selected sub-option configuration information is determined from the sub-option configuration information corresponding to each of the page components; based on the selected sub-option configuration information, the configuration information of the deployment area of the corresponding page component in the page configuration result is replaced to obtain an active page matching the active configuration file.
[0154] In one embodiment, the activity configuration file includes an activity type; when the computer program is executed by a processor, the following steps are further implemented: determining an information storage location matching the activity type; and reading component deployment information matching the activity configuration file from the information storage location.
[0155] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining the activity period of the active page; and deactivating the active page when the current period matches the activity period.
[0156] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: in response to an upload event for an activity configuration file, parsing the activity configuration file to obtain multiple page components and component configuration information corresponding to each of the page components; obtaining component deployment information matching the activity configuration file; combining the multiple page components based on the component deployment information to obtain a page configuration result; and optimizing the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file.
[0157] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: parsing the component deployment information to obtain the respective deployment areas of multiple candidate components in the preset active template; determining the target candidate components that match each of the page components from the multiple candidate components; and obtaining the page configuration results based on the respective deployment areas of each of the target candidate components in the preset active template and each of the page components.
[0158] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: when the number of the target candidate components is less than the number of the candidate components, determining the remaining candidate components other than each of the target candidate components from the multiple candidate components; in response to a replacement event for the remaining candidate components, obtaining a newly added page component that matches the activity configuration file; based on the deployment areas of each of the target candidate components and the remaining candidate components in the preset activity template, configuring each of the page components and the newly added page components in the preset activity template to obtain a page configuration result.
[0159] In one embodiment, the component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component; when the computer program is executed by the processor, the following steps are also implemented: based on the sub-option configuration information corresponding to each of the page components, a display interface is generated; in response to a configuration information selection event triggered in the display interface, selected sub-option configuration information is determined from the sub-option configuration information corresponding to each of the page components; based on the selected sub-option configuration information, the configuration information of the deployment area of the corresponding page component in the page configuration result is replaced to obtain an active page matching the active configuration file.
[0160] In one embodiment, the activity configuration file includes an activity type; when the computer program is executed by a processor, the following steps are further implemented: determining an information storage location matching the activity type; and reading component deployment information matching the activity configuration file from the information storage location.
[0161] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining the activity period of the active page; and deactivating the active page when the current period matches the activity period.
[0162] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0163] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0164] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0165] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for generating an activity page, characterized in that: The method comprises: In response to an upload event for an activity configuration file, parsing the activity configuration file to obtain a plurality of page components and component configuration information corresponding to each of the page components; Obtaining component deployment information matching the activity configuration file; Combine the multiple page components based on the component deployment information to obtain a page configuration result; Based on the component configuration information corresponding to each of the page components, the page configuration result is optimized to obtain an activity page matching the activity configuration file.
2. The method according to claim 1, characterized in that The combining the multiple page components based on the component deployment information to obtain a page configuration result includes: Parsing the component deployment information to obtain respective deployment areas of multiple candidate components in a preset activity template; Determine a target candidate component matching each of the page components from the multiple candidate components; Based on the respective deployment areas of the target candidate components in the preset activity template and the page components, a page configuration result is obtained.
3. The method according to claim 2, characterized in that The obtaining of the page configuration result based on the respective deployment areas of the target candidate components in the preset activity template and the page components includes: In a case where the number of the target candidate components is less than the number of the candidate components, determining remaining candidate components except each of the target candidate components from the multiple candidate components; In response to a replacement event for the remaining candidate components, obtaining a newly added page component matching the activity configuration file; Based on the deployment areas of each of the target candidate components and the remaining candidate components in the preset activity template, each of the page components and the newly added page components are configured in the preset activity template to obtain a page configuration result.
4. The method according to claim 1, characterized in that: The component configuration information corresponding to the page component includes sub-option configuration information corresponding to the page component; optimizing the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file includes: Generate a display interface based on the sub-option configuration information corresponding to each of the page components; In response to a configuration information selection event triggered in the display interface, determining selected sub-option configuration information from the sub-option configuration information corresponding to each of the page components; Based on the selected sub-option configuration information, the configuration information of the deployment area of the corresponding page component in the page configuration result is replaced to obtain an activity page matching the activity configuration file.
5. The method according to claim 1, characterized in that The activity configuration file includes an activity type; and obtaining component deployment information matching the activity configuration file includes: determining a storage location of information matching the activity type; Component deployment information matching the activity configuration file is read from the information storage location.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtain the activity period of the activity page; In the case where the current deadline matches the activity deadline, the activity page is deactivated.
7. An activity page generating device, characterized in that: The device comprises: An analysis module, configured to, in response to an upload event for an activity configuration file, parse the activity configuration file to obtain a plurality of page components and component configuration information corresponding to each of the page components; An acquisition module, used to acquire component deployment information matching the activity configuration file; A processing module, configured to combine the plurality of page components based on the component deployment information to obtain a page configuration result; The optimization module is used to optimize the page configuration result based on the component configuration information corresponding to each of the page components to obtain an activity page matching the activity configuration file.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.