Activity processing method and device, computer equipment and storage medium
By creating an identity for the event and obtaining the configured skin set, selecting matching skins and rendering the page, the problem of poor flexibility in traditional active skin configuration methods is solved, and flexible configuration and low-code maintenance of the active pages are achieved.
Patent Information
- Application Number
- CN202510329500.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-07-22
AI Technical Summary
The traditional active skin configuration method needs to rely on the code layer implementation, resulting in long links and poor flexibility, which cannot meet the personalized needs of different activity types.
By creating pending activities associated with the activity identification, obtain the configured active skin set, select the matching target active skin, and render the target activity page based on the activity configuration data and the target active skin.
It realizes flexible configuration of the activity page, reduces code changes and testing frequency, and reduces dependence on R&D personnel and maintenance costs.
Smart Images

Figure CN120353458A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a method and apparatus for activity processing, a computer device, and a storage medium. Background Art
[0002] With the development of Internet platforms, the forms of marketing reward activities on the driver side of online car-hailing have become increasingly diverse. However, using a single skin for various marketing activities can no longer meet the personalized needs of different activity types. The traditional skin configuration method relies on the code layer for implementation. Adding a new skin requires developers to modify the configuration code, resulting in a long link and poor flexibility. Summary of the Invention
[0003] Based on this, in view of the above technical problems, it is necessary to provide a method and apparatus for activity processing, a computer device, and a storage medium that can improve the flexibility of configuration and reduce the frequency of code changes and testing.
[0004] An activity processing method, the method includes:
[0005] Create a to-be-processed activity corresponding to the current scenario, where the to-be-processed activity is associated with a corresponding activity identifier;
[0006] Obtain a configured set of activity skins;
[0007] Select a target activity skin that matches the to-be-processed activity from the set of activity skins;
[0008] Pull activity configuration data corresponding to the activity identifier;
[0009] Render a target activity page corresponding to the current scenario according to the activity configuration data and the target activity skin.
[0010] In one embodiment, before creating the to-be-processed activity corresponding to the current scenario, it includes: creating a to-be-processed activity, where the to-be-processed activity is associated with a corresponding activity identifier, selecting the current scenario corresponding to the to-be-processed activity, editing the activity information of the to-be-processed activity to obtain activity configuration data corresponding to the to-be-processed activity, and establishing an association relationship between the activity identifier, the current scenario, and the activity configuration data.
[0011] In one embodiment, obtaining the configured active skin set includes: obtaining the template page of the skin to be configured, where the template page includes a block list area, a page preview area, and an attribute editing area; receiving the user's operation in the block list area, determining the target block in the block list area according to the operation, determining the target area corresponding to the target block in the skin template displayed in the page preview area, and displaying the area attribute configuration items corresponding to the target area in the attribute editing area; receiving the user's editing operation on the area attribute configuration items, obtaining the area attribute configuration information corresponding to the area attribute configuration items according to the editing operation, and generating the configured active skin page according to the area attribute configuration information.
[0012] In one embodiment, determining the target block in the block list area according to the operation includes: determining the operation position of the user in the block list area according to the operation, obtaining the block identifier that matches the operation position, and determining the target block in the block list area according to the block identifier.
[0013] In one embodiment, before obtaining the block identifier that matches the operation position, it further includes: obtaining the position information corresponding to each candidate block in the block list area, generating a transparent operation floating layer above each candidate block according to the position information, and establishing the relationship between each transparent operation floating layer and the candidate block identifier of each candidate block.
[0014] In one embodiment, determining the operation position of the user in the block list area according to the operation includes: receiving the user's operation in the block list area, determining the target transparent operation floating layer that matches the operation, and obtaining the operation position corresponding to the target transparent operation floating layer.
[0015] In one embodiment, rendering the target activity page corresponding to the current scene according to the activity configuration data and the target activity skin includes: fusing the activity configuration data and the target activity skin to obtain the activity skin page, and rendering the activity skin page to obtain the target activity page corresponding to the current scene.
[0016] An activity processing device, the device includes:
[0017] A creation module, configured to create a to-be-processed activity corresponding to the current scene, where the to-be-processed activity is associated with a corresponding activity identifier;
[0018] An obtaining module, configured to obtain the configured active skin set;
[0019] A selection module, configured to select a target activity skin that matches the to-be-processed activity from the active skin set;
[0020] A pulling module, configured to pull the activity configuration data corresponding to the activity identifier;
[0021] A rendering module for rendering a target activity page corresponding to the current scene according to the active configuration data and the target activity skin.
[0022] A computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0023] Create a to-be-processed activity corresponding to the current scene, and the to-be-processed activity is associated with a corresponding activity identifier.
[0024] Obtain a configured set of activity skins.
[0025] Select a target activity skin that matches the to-be-processed activity from the set of activity skins.
[0026] Pull the activity configuration data corresponding to the activity identifier.
[0027] Render a target activity page corresponding to the current scene according to the activity configuration data and the target activity skin.
[0028] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the following steps are implemented:
[0029] Create a to-be-processed activity corresponding to the current scene, and the to-be-processed activity is associated with a corresponding activity identifier.
[0030] Obtain a configured set of activity skins.
[0031] Select a target activity skin that matches the to-be-processed activity from the set of activity skins.
[0032] Pull the activity configuration data corresponding to the activity identifier.
[0033] Render a target activity page corresponding to the current scene according to the activity configuration data and the target activity skin.
[0034] In the above activity processing method, device, computer device, and storage medium, a to-be-processed activity corresponding to the current scene is created, and the to-be-processed activity is associated with a corresponding activity identifier. A configured set of activity skins is obtained, a target activity skin that matches the to-be-processed activity is selected from the set of activity skins, the activity configuration data corresponding to the activity identifier is pulled, and a target activity page corresponding to the current scene is rendered according to the activity configuration data and the target activity skin. Therefore, by creating an activity that matches the current scene, selecting a matching skin for the activity, and fusing and rendering the selected skin with the activity configuration data of the activity, a target activity page corresponding to the current scene can be obtained, which can be flexibly configured. For the skins of different activities, there is no need for re-development, no need for code changes and testing, which can reduce the dependence on R & D personnel and reduce the maintenance cost. Brief Description of the Drawings
[0035] Figure 1 It is an application environment diagram of the activity processing method in an embodiment;
[0036] Figure 2 It is a schematic flowchart of the activity processing method in an embodiment;
[0037] Figure 3 It is a schematic flowchart of the steps for creating an activity to be processed in an embodiment;
[0038] Figure 4 It is a schematic flowchart of the steps for configuring an activity skin set in an embodiment;
[0039] Figure 4-1 It is a page diagram of a skin template page in an embodiment;
[0040] Figure 5 It is a schematic flowchart of the steps for determining a target block in an embodiment;
[0041] Figure 6 It is a schematic flowchart of the steps for generating a transparent operation floating layer in an embodiment;
[0042] Figure 7 It is a schematic flowchart of the steps for determining an operation position in an embodiment;
[0043] Figure 8 It is a schematic flowchart of the steps for rendering a target activity page in an embodiment;
[0044] Figure 9 It is a structural block diagram of an activity processing device in an embodiment;
[0045] Figure 10 It is an internal structure diagram of a computer device in an embodiment;
[0046] Figure 11 It is an internal structure diagram of a computer device in an embodiment. Detailed Description of the Embodiments
[0047] In order to make the objectives, technical solutions, and advantages of this application clearer, the following further elaborates on this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely used to explain this application and are not used to limit this application.
[0048] The activity processing method provided by this application can be applied to, for example Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. Among them, the terminal 102 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0049] Specifically, the server 104 creates a to-be-processed activity corresponding to the current scenario. The to-be-processed activity is associated with a corresponding activity identifier. The server 104 obtains the configured activity skin set, selects a target activity skin that matches the to-be-processed activity from the activity skin set, pulls the activity configuration data corresponding to the activity identifier, and renders a target activity page corresponding to the current scenario according to the activity configuration data and the target activity skin. Finally, the server 104 returns the target activity page to the terminal 102.
[0050] In another embodiment, the terminal 102 creates a to-be-processed activity corresponding to the current scenario. The to-be-processed activity is associated with a corresponding activity identifier. The terminal 102 obtains the configured activity skin set, selects a target activity skin that matches the to-be-processed activity from the activity skin set, pulls the activity configuration data corresponding to the activity identifier, and renders a target activity page corresponding to the current scenario according to the activity configuration data and the target activity skin.
[0051] In one embodiment, as Figure 2 shown, a method for processing an activity is provided. Taking the method applied to the Figure 1 terminal or server in it as an example for illustration, the method includes the following steps:
[0052] Step 202, create a to-be-processed activity corresponding to the current scenario. The to-be-processed activity is associated with a corresponding activity identifier.
[0053] Among them, the to-be-processed activity is an activity that needs to be processed in the current scenario, which can be a marketing activity. Create a to-be-processed activity corresponding to the current scenario according to actual business requirements, product requirements, or actual application scenarios. The activity identifier is used to identify the to-be-processed activity, and different activity identifiers correspond to different activities.
[0054] Specifically, a to-be-processed activity corresponding to the current scenario can be created on the Hubble platform, specifically according to actual business requirements, actual product requirements, or actual application scenarios. Among them, a to-be-processed activity corresponding to the current scenario can also be created through other platforms, which is not limited herein.
[0055] Step 204, obtain the configured activity skin set.
[0056] Among them, the activity skin set includes at least one configured skin, that is, the activity skin set is a set of several configured skins. The configuration of the skin can be carried out on the skin configuration platform. The skin configuration platform provides a skin configuration page template, edits configurable attributes, generates personalized skins, and forms the configured skins into a configured activity skin set.
[0057] Step 206: Select a target activity skin that matches the activity to be processed from the activity skin set.
[0058] Specifically, after obtaining the configured activity skin set, select a target activity skin that matches the activity to be processed from the activity skin set. The specific selection can be combined with the scene data of the current scene, or select a matching target activity skin from the configured activity skin set according to actual business requirements, actual product requirements, or actual application scenarios. Among them, analyze the scene data of the current scene to obtain a scene analysis result, and select a matching target activity skin according to the scene analysis result.
[0059] Step 208: Pull the activity configuration data corresponding to the activity identifier.
[0060] Among them, the activity configuration data is the configuration data related to the activity corresponding to the activity identifier, including activity content, activity scene, activity configuration, etc. Specifically, pull all the configuration data related to the activity to be processed according to the activity identifier to obtain the activity configuration data.
[0061] Step 210: Render the target activity page corresponding to the current scene according to the activity configuration data and the target activity skin.
[0062] Specifically, after obtaining the activity configuration data and the target activity skin, fuse the target activity skin with the activity configuration data, and perform rendering after fusion to obtain the target activity page corresponding to the current scene, and provide the rendered target activity page for the user to view. Configure the activity skins in each scene through the platform, and you can select the skin that matches the activity from them for rendering to obtain the rendered target activity page, realizing personalized customization.
[0063] In the above activity processing method, a to-be-processed activity corresponding to the current scene is created. The to-be-processed activity is associated with a corresponding activity identifier. The configured activity skin set is obtained, and a target activity skin matching the to-be-processed activity is selected from the activity skin set. The activity configuration data corresponding to the activity identifier is pulled, and according to the activity configuration data and the target activity skin, the target activity page corresponding to the current scene is rendered. Therefore, by creating an activity that matches the current scene, selecting a matching skin for the activity, and fusing and rendering the selected skin with the activity configuration data of the activity, the target activity page corresponding to the current scene can be obtained, which can be flexibly configured. For the skins of different activities, there is no need for re-development, code changes, or testing, which can reduce the dependence on R & D personnel and reduce the maintenance cost.
[0064] In one embodiment, as Figure 3 shown, before creating the to-be-processed activity corresponding to the current scene, it includes:
[0065] Step 302: Create a to-be-processed activity, and the to-be-processed activity is associated with a corresponding activity identifier.
[0066] Step 304: Select the current scene corresponding to the to-be-processed activity.
[0067] Step 306: Edit the activity information of the to-be-processed activity to obtain the activity configuration data corresponding to the to-be-processed activity.
[0068] Step 308: Establish an association relationship among the activity identifier, the current scene, and the activity configuration data.
[0069] Among them, the activity creation platform can be used to create activities that need to be processed. Specifically, in the activity creation platform, activities that need to be processed are created according to actual business requirements, actual product requirements, or actual application scenarios, and each created activity is associated with a corresponding activity identifier.
[0070] Furthermore, after creating the to-be-processed activity, configure the current scene corresponding to the to-be-processed activity. The specific configuration can be to select the current scene corresponding to the to-be-processed activity from the candidate scenes and bind the to-be-processed activity to the current scene.
[0071] Specifically, after creating the to-be-processed activity, edit the activity information of the to-be-processed activity. Specifically, configure the to-be-processed activity, and the specific configuration of the activity can be carried out according to actual business requirements, actual product requirements, or actual application scenarios to obtain the activity configuration data of the to-be-processed activity. For example, in the online car-hailing scenario, the to-be-processed activity can be a marketing activity, and specific configurations such as activity content, activity users, activity time, and activity rewards are carried out for the marketing activity.
[0072] Finally, after obtaining the activity to be processed and the activity configuration data, bind the activity identifier, the current scenario, and the activity configuration data of the activity to be processed, and establish an association relationship between the activity identifier, the current scenario, and the activity configuration data.
[0073] In one embodiment, as Figure 4 shown, obtain the configured activity skin set, including:
[0074] Step 402, obtain the template page of the skin to be configured. The template page includes a block list area, a page preview area, and an attribute editing area.
[0075] Step 404, receive the user's operation in the block list area, and determine the target block in the block list area according to the operation.
[0076] Step 406, determine the target area corresponding to the target block in the skin template displayed in the page preview area.
[0077] Among them, the specific configuration of the activity skin set is configured on the skin configuration platform. Specifically, it can be to obtain the template page of the skin to be configured. The template page includes a block list area, a page preview area, and an attribute editing area, and flexibly configure the skin through the template page of the skin on the visualization platform.
[0078] Among them, the block list area is automatically generated based on the schema (a collection of the logical structures of data or schema objects), including global configuration items and single-block configuration items. Global configuration items apply to all blocks, such as font size, color, etc.; single-block configuration items are used for personalized settings for specific blocks. Specifically, the user can click on a certain block in the block list, and the corresponding page block in the middle preview area will be highlighted, and the relevant attributes of the block will be automatically loaded in the right-side attribute editing area for editing.
[0079] Among them, the page preview area consists of an i frame + an operation floating layer; the i frame is responsible for the display of the H5 preview page and supports the real-time refresh function; the operation floating layer is responsible for page operations. The structure of the H5 preview page is driven by JSON data, which describes the overall layout of the page and the parameter passing relationship of each component. Specifically, when the user operates the page preview area, determine the target block in the block list according to the operation. The target block is the block operated by the user, and then determine the target area corresponding to the target block in the skin template displayed in the page preview area. Among them, the display can be highlighting or reminding, such as highlighting the target area in the skin template that matches the target block in the page preview area.
[0080] Step 408, display the area attribute configuration items corresponding to the target area in the attribute editing area.
[0081] Step 410: Receive the user's editing operation on the regional attribute configuration item, and obtain the regional attribute configuration information corresponding to the regional attribute configuration item according to the editing operation.
[0082] Step 412: Generate a configured active skin page according to the regional attribute configuration information.
[0083] Among them, the attribute editing area provides various types of operation components, such as number input boxes, color pickers, switch buttons, text boxes, font selectors, background selectors, picture uploaders, box layouts, etc. Users can easily adjust the values of various attributes and perform data interaction with the preview area through the message events of the browser window to ensure that each modification can be immediately reflected in the H5 preview page.
[0084] Specifically, after determining the target area corresponding to the target block in the skin template displayed in the page preview area, the regional attribute configuration item corresponding to the target area is displayed in the attribute editing area. The regional attribute configuration item is used to configure the attributes of the target area. Users can perform editing operations in the attribute editing area and edit the regional attribute configuration item of the target area according to the actual business requirements, actual product requirements, or actual application scenarios. Further, obtain the regional attribute configuration information corresponding to the regional attribute configuration item through the editing operation, and generate a configured active skin page through the regional attribute configuration information.
[0085] Further, when saving the skin, the system will upload the configuration data and the dynamically generated skin preview image to the API (Application Programming Interface). And in the activity creation platform, users can view the configured active skin page and freely choose to use it.
[0086] For example, the template page of the skin to be configured can be as Figure 4-1 shown. Figure 4-1 It is a schematic diagram of the interface of the template page of the skin to be configured in an embodiment. The template page of the skin to be configured includes a block list area, a page preview area, and an attribute editing area. Specifically, users operate in the block list area, and the corresponding block information will be displayed in the page preview area, and the block information can be edited in the attribute editing area. Users can modify or adjust the block information in the attribute editing area.
[0087] In one embodiment, as Figure 5 shown, determining the target block in the block list area according to the operation includes:
[0088] Step 502: Determine the operation position of the user in the block list area according to the operation.
[0089] Step 504: Obtain the block identifier matching the operation position.
[0090] Step 506: Determine the target block in the block list area according to the block identifier.
[0091] Among them, determining the target block in the block list area according to the operation may be to determine the target block through the block identifier. Specifically, according to the user's operation, determine the operation position of the user in the block list area, then obtain the block identifier corresponding to the operation position, and finally determine the target block operated by the user in the block list area through the block identifier.
[0092] In one embodiment, as Figure 6 shown, before obtaining the block identifier matching the operation position, it further includes:
[0093] Step 602: Obtain the position information corresponding to each candidate block in the block list area.
[0094] Step 604: Generate a transparent operation floating layer above each candidate block according to each position information.
[0095] Step 606: Establish the relationship between each transparent operation floating layer and the candidate block identifier of each candidate block.
[0096] Among them, before obtaining the block identifier matching the operation position, it is necessary to establish the relationship between the position information and the block identifier, so that the block identifier can be obtained through the position of the user operation.
[0097] Specifically, determine the position information corresponding to each candidate block in the block list area, generate a transparent operation floating layer above each candidate block according to each position information. The transparent operation floating layer refers to a design method in user interface design that allows users to still interact with the main interface when the floating layer is displayed. This design method enables the floating layer not to completely block the content of the main interface, and users can continue to operate the main interface without closing the floating layer. Finally, establishing the transparent operation floating layer refers to a design method in user interface design that allows users to still interact with the main interface when the floating layer is displayed. This design method enables the floating layer not to completely block the content of the main interface, and users can continue to operate the main interface without closing the floating layer.
[0098] For example, the H5 preview page can obtain the position information of all blocks on the page, including the width and height of the blocks, the distance from the top / bottom / left / right of the page, the X / Y axis information, etc. Through this information, a transparent operation floating layer is generated above the same position of the blocks and corresponds one by one through the block identifier. Therefore, when the user clicks on the operation floating layer, the block identifier is obtained through the click event of the page, and the corresponding block information can be obtained, thus obtaining the target block.
[0099] In one embodiment, as Figure 7As shown, determining the operation position of the user in the block list area according to the operation includes:
[0100] Step 702, receiving the user's operation in the block list area.
[0101] Step 704: determine a matching target transparent operation floating layer according to the operation.
[0102] Step 706, obtaining the operation position corresponding to the target transparent operation floating layer.
[0103] After establishing the relationship between each transparent operation floating layer and the candidate block identifier of each candidate block, the target transparent operation floating layer where the user's operation is located can be determined, and then the operation position corresponding to the target transparent operation floating layer can be obtained through the relationship.
[0104] Specifically, the user's operation in the block list area is received. Since the user operation is performed on the transparent operation floating layer, the target transparent operation floating layer matching the user's operation is determined. Since the transparent operation floating layer is generated above the candidate block according to the position information, the matching operation position can be further determined according to the target transparent operation floating layer.
[0105] For example, the H5 preview page can obtain the position information of all blocks in the page, including the width and height of the block, the distance from the top / bottom / left / right side of the page, X / Y axis information, etc. With this information, a transparent operation floating layer is generated above the same position of the block and one-to-one correspondence is made through the block identifier. Therefore, when the user clicks on the operation floating layer, the corresponding target operation floating layer is obtained through the click event of the page, and then the corresponding operation position is obtained through the target operation floating layer.
[0106] In one embodiment, Figure 8 As shown, according to the activity configuration data and the target activity skin, the target activity page corresponding to the current scene is rendered, including:
[0107] Step 802: Merge the activity configuration data with the target activity skin to obtain an activity skin page.
[0108] Step 804, rendering the active skin page to obtain the target active page corresponding to the current scene.
[0109] Specifically, after obtaining the activity configuration data and the target activity skin, the activity configuration data and the target activity skin are merged to obtain a merged activity skin page, and finally, the merged activity skin page is rendered to obtain a target activity page corresponding to the current scene.
[0110] For example, in the online car-hailing industry, when a driver uses the car-hailing software, different activity list cards will be displayed according to the target population configured in the marketing campaign. When the driver clicks on a card to view the activity details, the configuration data of the activity is pulled through an interface, and different styles of activity skin pages are dynamically rendered to enhance the user experience and marketing effect.
[0111] It should be understood that although the steps in the above flowcharts are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential either, but can be executed alternately or in turn with at least some of the other steps or sub-steps or stages of the other steps.
[0112] In one embodiment, as Figure 9 shown, an activity processing device 900 is provided, including: a creation module 902, an acquisition module 904, a selection module 906, a pulling module 908, and a rendering module 910, where:
[0113] The creation module 902 is used to create a to-be-processed activity corresponding to the current scenario, and the to-be-processed activity is associated with a corresponding activity identifier.
[0114] The acquisition module 904 is used to acquire a configured set of activity skins.
[0115] The selection module 906 is used to select a target activity skin that matches the to-be-processed activity from the set of activity skins.
[0116] The pulling module 908 is used to pull the activity configuration data corresponding to the activity identifier.
[0117] The rendering module 910 is used to render a target activity page corresponding to the current scenario according to the activity configuration data and the target activity skin.
[0118] In one embodiment, the creation module 902 creates a to-be-processed activity, the to-be-processed activity is associated with a corresponding activity identifier, the current scenario corresponding to the to-be-processed activity is selected, the activity information of the to-be-processed activity is edited to obtain the activity configuration data corresponding to the to-be-processed activity, and an association relationship is established among the activity identifier, the current scenario, and the activity configuration data.
[0119] In one embodiment, the obtaining module 904 obtains a template page of the skin to be configured. The template page includes a block list area, a page preview area, and an attribute editing area. It receives the operations of the user in the block list area, determines the target block in the block list area according to the operations, determines the target area corresponding to the target block in the skin template displayed in the page preview area, displays the area attribute configuration items corresponding to the target area in the attribute editing area, receives the editing operations of the user on the area attribute configuration items, obtains the area attribute configuration information corresponding to the area attribute configuration items according to the editing operations, and generates a configured active skin page according to the area attribute configuration information.
[0120] In one embodiment, the obtaining module 904 determines the operation position of the user in the block list area according to the operations, obtains the block identifier that matches the operation position, and determines the target block in the block list area according to the block identifier.
[0121] In one embodiment, the obtaining module 904 obtains the position information corresponding to each candidate block in the block list area, generates a transparent operation floating layer above each candidate block according to the position information, and establishes the relationship between each transparent operation floating layer and the candidate block identifier of each candidate block.
[0122] In one embodiment, the obtaining module 904 receives the operations of the user in the block list area, determines the target transparent operation floating layer that matches according to the operations, and obtains the operation position corresponding to the target transparent operation floating layer.
[0123] In one embodiment, the rendering module 910 fuses the activity configuration data with the target active skin to obtain an active skin page, and renders the active skin page to obtain the target active page corresponding to the current scene.
[0124] For the specific limitations on the activity processing device, reference can be made to the limitations on the activity processing method in the foregoing text, which will not be elaborated here. Each module in the foregoing activity processing device can be implemented in whole or in part by software, hardware, and their combination. The foregoing modules can be embedded in the processor in the computer device in the form of hardware or be independent of it, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
[0125] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 10As shown in the figure. The computer device includes a processor, a memory, a network interface, and a database connected via 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 activity configuration data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements an activity processing method.
[0126] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 11 shown in the figure. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements an activity processing method. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, a touchpad, or a mouse, etc.
[0127] Those skilled in the art can understand that Figure 10 or Figure 11 the structure shown in the figure is only a block diagram of some structures 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 some components, or have different component arrangements.
[0128] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: creating a to-be-processed activity corresponding to the current scene, where the to-be-processed activity is associated with a corresponding activity identifier, obtaining a configured set of activity skins, selecting a target activity skin that matches the to-be-processed activity from the set of activity skins, pulling the activity configuration data corresponding to the activity identifier, and rendering a target activity page corresponding to the current scene according to the activity configuration data and the target activity skin.
[0129] In one embodiment, when the processor executes a computer program, the following steps are further implemented: creating a to-be-processed activity, where the to-be-processed activity is associated with a corresponding activity identifier, selecting a current scenario corresponding to the to-be-processed activity, editing activity information for the to-be-processed activity to obtain activity configuration data corresponding to the to-be-processed activity, and establishing an association relationship between the activity identifier, the current scenario, and the activity configuration data.
[0130] In one embodiment, when the processor executes a computer program, the following steps are further implemented: obtaining a template page of a skin to be configured, where the template page includes a block list area, a page preview area, and an attribute editing area, receiving an operation of the user in the block list area, determining a target block in the block list area according to the operation, determining a target area corresponding to the target block in the skin template displayed in the page preview area, and displaying area attribute configuration items corresponding to the target area in the attribute editing area; receiving an editing operation of the user on the area attribute configuration items, obtaining area attribute configuration information corresponding to the area attribute configuration items according to the editing operation, and generating a configured activity skin page according to the area attribute configuration information.
[0131] In one embodiment, when the processor executes a computer program, the following steps are further implemented: determining an operation position of the user in the block list area according to the operation, obtaining a block identifier matching the operation position, and determining a target block in the block list area according to the block identifier.
[0132] In one embodiment, when the processor executes a computer program, the following steps are further implemented: obtaining position information corresponding to each candidate block in the block list area, generating a transparent operation floating layer above each candidate block according to the position information, and establishing a relationship between each transparent operation floating layer and a candidate block identifier of each candidate block.
[0133] In one embodiment, when the processor executes a computer program, the following steps are further implemented: receiving an operation of the user in the block list area, determining a matching target transparent operation floating layer according to the operation, and obtaining an operation position corresponding to the target transparent operation floating layer.
[0134] In one embodiment, when the processor executes a computer program, the following steps are further implemented: fusing the activity configuration data with the target activity skin to obtain an activity skin page, and rendering the activity skin page to obtain a target activity page corresponding to the current scenario.
[0135] 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: creating a to-be-processed activity corresponding to the current scenario, where the to-be-processed activity is associated with a corresponding activity identifier, obtaining a configured set of activity skins, selecting a target activity skin that matches the to-be-processed activity from the set of activity skins, pulling activity configuration data corresponding to the activity identifier, and rendering a target activity page corresponding to the current scenario according to the activity configuration data and the target activity skin.
[0136] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: creating a to-be-processed activity, where the to-be-processed activity is associated with a corresponding activity identifier, selecting the current scenario corresponding to the to-be-processed activity, performing activity information editing on the to-be-processed activity to obtain activity configuration data corresponding to the to-be-processed activity, and establishing an association relationship between the activity identifier, the current scenario, and the activity configuration data.
[0137] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: obtaining a template page for the skin to be configured, where the template page includes a block list area, a page preview area, and an attribute editing area, receiving an operation of the user in the block list area, determining a target block in the block list area according to the operation, determining a target area corresponding to the target block in the skin template displayed in the page preview area, and displaying area attribute configuration items corresponding to the target area in the attribute editing area; receiving an editing operation of the user on the area attribute configuration items, obtaining area attribute configuration information corresponding to the area attribute configuration items according to the editing operation, and generating a configured activity skin page according to the area attribute configuration information.
[0138] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: determining the operation position of the user in the block list area according to the operation, obtaining a block identifier that matches the operation position, and determining a target block in the block list area according to the block identifier.
[0139] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: obtaining position information corresponding to each candidate block in the block list area, generating a transparent operation floating layer above each candidate block according to the position information, and establishing a relationship between each transparent operation floating layer and the candidate block identifier of each candidate block.
[0140] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: receiving an operation of the user in the block list area, determining a matching target transparent operation floating layer according to the operation, and obtaining the operation position corresponding to the target transparent operation floating layer.
[0141] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: fusing the active configuration data with the target active skin to obtain an active skin page, and rendering the active skin page to obtain a target active page corresponding to the current scene.
[0142] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. 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 methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0143] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered as the scope described in this specification.
[0144] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. An activity processing method, the method comprising: Creating a to-be-processed activity corresponding to the current scene, the to-be-processed activity being associated with a corresponding activity identifier; Obtaining a configured set of activity skins; Selecting a target activity skin that matches the to-be-processed activity from the set of activity skins; Pulling activity configuration data corresponding to the activity identifier; Rendering a target activity page corresponding to the current scene according to the activity configuration data and the target activity skin.
2. The method according to claim 1, wherein Before creating the to-be-processed activity corresponding to the current scene, it includes: Creating a to-be-processed activity, the to-be-processed activity being associated with a corresponding activity identifier; Selecting the current scene corresponding to the to-be-processed activity; Editing activity information for the to-be-processed activity to obtain activity configuration data corresponding to the to-be-processed activity; Establishing an association relationship between the activity identifier, the current scene, and the activity configuration data.
3. The method according to claim 1, characterized in that, The obtaining the configured set of activity skins includes: Obtaining a template page for the skin to be configured, the template page including a block list area, a page preview area, and an attribute editing area; Receiving an operation of the user in the block list area, and determining a target block in the block list area according to the operation; Determining a target area corresponding to the target block in the skin template displayed in the page preview area; Displaying area attribute configuration items corresponding to the target area in the attribute editing area; Receiving an editing operation of the user on the area attribute configuration items, and obtaining area attribute configuration information corresponding to the area attribute configuration items according to the editing operation; Generating a configured activity skin page according to the area attribute configuration information.
4. The method according to claim 3, characterized in that The determining the target block in the block list area according to the operation includes: Determining an operation position of the user in the block list area according to the operation; Obtaining a block identifier that matches the operation position; Determining the target block in the block list area according to the block identifier.
5. The method according to claim 4, characterized in that, Before obtaining the block identifier that matches the operation position, it further includes: Obtaining position information corresponding to each candidate block in the block list area; Generating a transparent operation floating layer above each candidate block according to each position information; Establishing a relationship between each transparent operation floating layer and a candidate block identifier of each candidate block.
6. The method according to claim 5, wherein The determining the operation position of the user in the block list area according to the operation includes: Receiving an operation of the user in the block list area; Determining a target transparent operation floating layer that matches according to the operation; Obtaining an operation position corresponding to the target transparent operation floating layer.
7. The method according to claim 1, characterized in that The rendering the target activity page corresponding to the current scene according to the activity configuration data and the target activity skin includes: Fusing the activity configuration data and the target activity skin to obtain an activity skin page; Rendering the activity skin page to obtain the target activity page corresponding to the current scene.
8. An activity processing device, characterized in that, The device includes: A creating module, configured to create a to-be-processed activity corresponding to the current scene, the to-be-processed activity being associated with a corresponding activity identifier; An obtaining module, configured to obtain a configured set of activity skins; A selection module for selecting a target activity skin that matches the to-be-processed activity from the set of active skins; A pulling module for pulling the activity configuration data corresponding to the activity identifier; A rendering module for rendering a target activity page corresponding to the current scene according to the activity configuration data and the target activity skin.
9. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.