Page generation method, device, equipment and storage medium based on custom module
Through the page generation method based on custom modules, the problems of cumbersome encoding and inefficient in traditional page generation methods are solved, and the flexible combination of page frameworks and modules is realized, pictures of different network states are generated, point burial processing is automatically improved, and page generation is improved Efficiency and reusability.
Patent Information
- Application Number
- CN202010037508.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-14
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2040-01-14
AI Technical Summary
The traditional page generation method is based on browser web page technology, resulting in cumbersome encoding and inefficient efficiency, making it difficult to achieve flexible reuse and efficient page generation.
Using a page generation method based on custom modules, the page generation instructions are received by receiving page generation, and the page framework is generated, and the operation terminal is allowed to select and adjust the controls in the module, generate pictures of different network states, automate point burial processing, reduce code writing, and improve pages Generation efficiency.
It simplifies page generation operations, improves page reuse and flexibility, reduces picture configuration difficulty, reduces workload and complexity, and improves page generation efficiency.
Smart Images

Figure CN111273904B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page generation method, device, equipment and storage medium based on a custom module. Background Art
[0002] With the development of computer technology, more and more businesses or e-commerce activities are processed online. In order to facilitate users, the backend server needs to generate corresponding pages for various businesses. After the backend server sends the page to the terminal, the user can process the business or participate in the e-commerce activities according to the page displayed on the terminal.
[0003] However, the traditional page generation method is to develop various card-type pages based on browser web page technology. Each card-type page needs to be written separately, which is cumbersome and inefficient. Summary of the invention
[0004] Based on this, it is necessary to provide a page generation method, device, equipment and storage medium based on a custom module that can simplify the operation in order to solve the above technical problems.
[0005] A page generation method based on a custom module, the method comprising:
[0006] Receiving a page generation instruction sent by an operation terminal, wherein the page generation instruction carries a page type identifier;
[0007] Generate a page identifier and a page frame according to the page type identifier;
[0008] The page frame is sent to the operation terminal for display, and a module selection instruction returned by the operation terminal is received, and the module selected by the module selection instruction is displayed at a corresponding position of the page frame, and the module includes an adjustable control;
[0009] Obtain the adjusted control of the operation terminal, and obtain the auto-increment sequence corresponding to the adjusted control, and concatenate the module identifier of the module, the control identifier of the control, and the auto-increment sequence to obtain the first burying point information corresponding to the control;
[0010] Acquire the picture information in the control, and compress the corresponding picture according to the picture information according to the preset scaling ratio corresponding to the different network states, so as to generate the pictures of the different network states;
[0011] The pictures of the different network states, the controls, the page frame, the page identifier, the module identifier and the embedding point information are associated and stored to obtain a page.
[0012] In one embodiment, after receiving the page generation instruction sent by the operation terminal, the method further includes:
[0013] Querying the stored pages according to the page type identifier, and sending the queried pages to the operation terminal;
[0014] Receiving a page copy instruction returned by the operation terminal, wherein the page copy instruction carries a copy page identifier;
[0015] Acquire a corresponding page according to the copied page identifier, and generate a new page according to the acquired page;
[0016] Rename the newly added page, and modify the page identifier and the second embedding point information of the newly added page;
[0017] Save the modified new page.
[0018] In one embodiment, after associating and storing the pictures of the different network states, the controls, the page frame, the page identifier, the module identifier, and the embedding point information to obtain a page, the method includes:
[0019] Generate a page audit instruction according to the page, and send the page audit instruction to the audit terminal;
[0020] Receiving the review information of the review terminal after previewing the page;
[0021] When the review information indicates that the review is passed, the status of the page is changed to a pending release status;
[0022] When the audit information indicates that the audit has not passed, the audit information indicating that the audit has not passed is sent to the operation terminal.
[0023] In one embodiment, after associating and storing the pictures of the different network states, the controls, the page frame, the page identifier, the module identifier, and the embedding point information to obtain a page, the method includes:
[0024] The page is stored in a database, a corresponding structured file is generated, and the structured file is pushed to a content distribution network;
[0025] The method further comprises:
[0026] Receiving a rendering request sent by a display terminal, wherein the rendering request carries a page identifier;
[0027] Querying the access interface corresponding to the page identifier;
[0028] If the interface is normal, a page is obtained from the database and the page is returned to the display terminal;
[0029] If the interface is abnormal, a structured file corresponding to the page identifier is obtained from the content distribution network, and the structured file is returned to the display terminal.
[0030] In one embodiment, the acquiring a page from the database and returning the page to the display terminal includes:
[0031] Acquire a page frame and a module identifier corresponding to the page identifier from the database;
[0032] According to the module identifier, the corresponding module, the control in the module and the tracking point information are obtained;
[0033] The page frame, the acquired modules, the controls in the modules and the embedded point information are returned to the display terminal.
[0034] In one embodiment, the acquiring a structured file corresponding to the page identifier from the content distribution network and returning the structured file to the display terminal includes:
[0035] Obtaining the network disk where the page is stored in the content distribution network according to the page identifier;
[0036] Reading a page frame and a module identifier corresponding to the page identifier from the network disk;
[0037] Obtaining the corresponding module, the control in the module, and the embedding point information from the network disk according to the module identifier;
[0038] The page frame, the acquired modules, the controls in the modules and the embedded point information are returned to the display terminal.
[0039] In one embodiment, after receiving the rendering request sent by the display terminal, the method further includes:
[0040] Extracting a user tag from the rendering request;
[0041] Before returning the page frame, the acquired module, the control in the module and the embedded point information to the display terminal, the method further includes:
[0042] Extracting the category labels of the acquired modules;
[0043] The acquired modules are filtered according to the user tag and the category tag.
[0044] A page generation device based on a custom module, the device comprising:
[0045] A first receiving module, configured to receive a page generation instruction sent by an operation terminal, wherein the page generation instruction carries a page type identifier;
[0046] A first generating module, used for generating a page identifier and a page frame according to the page type identifier;
[0047] A first sending module, used for sending the page frame to the operation terminal for display, receiving a module selection instruction returned by the operation terminal, and displaying the module selected by the module selection instruction at a corresponding position of the page frame, wherein the module includes an adjustable control;
[0048] The second generating module is used to obtain the adjusted control of the operation terminal, and obtain the auto-increment sequence corresponding to the adjusted control, and concatenate the module identifier of the module, the control identifier of the control, and the auto-increment sequence to obtain the first burying point information corresponding to the control;
[0049] A picture generation module, used for acquiring picture information in the control, and compressing the corresponding picture according to the picture information according to preset scaling ratios corresponding to different network states, so as to generate pictures of the different network states;
[0050] An association module is used to associate and store the pictures of different network states, the controls, the page frame, the page identifier, the module identifier and the embedding point information to obtain a page.
[0051] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0052] A computer-readable storage medium stores a computer program, which implements the steps of any of the above methods when executed by a processor.
[0053] The above-mentioned page generation method, device, equipment and storage medium based on custom modules, after receiving the page generation instruction, sends the corresponding page frame to the operation terminal, so that the operation terminal can select the corresponding module to add to the page frame, and adjust the controls in the frame, etc., to generate corresponding point information and generate pictures of different network states according to the picture information, without writing a lot of code, which can simplify the operation. The operation terminal is only responsible for the configuration of the content, pictures and specific styles of the page, so that a page can be rendered on different platforms, and through the building block method, the page reuse is higher and more flexible, the uploading and compression of pictures also reduces the difficulty of picture configuration, and the automatic processing of point embedding can reduce the workload, and there is no need to encode for each page, which reduces the complexity and improves the efficiency of page generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 An application scenario diagram of a page generation method based on a custom module in one embodiment;
[0055] Figure 2 A schematic diagram of a process of a page generation method based on a custom module in an embodiment;
[0056] Figure 3 A schematic diagram of a generated page in one embodiment;
[0057] Figure 4 A flowchart of steps for obtaining pictures of different network states in one embodiment;
[0058] Figure 5 is a flow chart of the audit steps in one embodiment;
[0059] Figure 6 An architectural diagram of a page output in one embodiment;
[0060] Figure 7 is a timing diagram of an http interface mode in an embodiment;
[0061] Figure 8 is a timing diagram of a CDN degradation mode in an embodiment;
[0062] Fig. 9 is a flowchart of a rendering step in one embodiment;
[0063] Fig.10 It is a structural block diagram of a page generation device based on a custom module in one embodiment;
[0064] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0065] 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.
[0066] The page generation method based on the custom module provided in this application can be applied to Figure 1 In the application environment shown. Among them, the operation terminal 102 communicates with the server 104 through the network. The operation terminal 102 sends a page generation instruction to the server 104, and the page generation instruction carries a page type identifier. The server 104 generates a page identifier and a page frame according to the page type identifier, and sends the page frame to the operation terminal 102. The operation terminal displays the page frame and module and inputs a module selection instruction to display the corresponding module at the corresponding position of the page frame, and can adjust the controls in the module, and send the adjusted controls to the server 104. The server 104 obtains the adjusted controls of the operation terminal, and obtains the self-increment sequence corresponding to the adjusted controls, splices the module identifier of the module, the control identifier of the control, and the self-increment sequence to obtain the first buried point information corresponding to the control; obtains the picture information in the control, and compresses the corresponding picture according to the preset scaling ratio corresponding to different network states according to the picture information to generate pictures of different network states; associates and stores pictures, controls, page frames, page identifiers, module identifiers and buried point information of different network states to obtain a page. The operation terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0067] In one embodiment, Figure 2 As shown, a page generation method based on a custom module is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0068] S202: Receive a page generation instruction sent by the operation terminal, where the page generation instruction carries a page type identifier.
[0069] Specifically, the page generation instruction is obtained by the operation personnel after opening the software for creating a new page in the operation terminal through the operation of the software, for example, the page type can be selected, and the operation terminal generates the page generation instruction according to the page type and sends the obtained page generation instruction to the server. The page type can be associated with the business.
[0070] S204: Generate a page identifier and a page frame according to the page type identifier.
[0071] Specifically, the server may generate a new page identifier based on previous page identifiers of the page type, for example, by expressing it in an increasing sequence to ensure the uniqueness of the page identifier, and then the server obtains the corresponding page frame, which may be a blank page.
[0072] S206: Send the page frame to the operation terminal for display, and receive the module selection instruction returned by the operation terminal, display the module selected by the module selection instruction at the corresponding position of the page frame, and include adjustable controls in the module.
[0073] Specifically, before generating a page, the server extracts the common styles and business display areas from many previous pages and summarizes them into custom modules, such as grid modules, product modules, page header modules, and flash sale modules, etc. Each module has a different combination of controls, including pictures, text, links, style values, and labels. In this way, operators can select different modules through the operation terminal and build the prototype of the page in a similar way to building blocks, such as Figure 3 The 1 2..N shown are all modules. Optionally, the server can define rules, for example, the module needs to build the page from top to bottom. Figure 3 A schematic diagram of a generated page in one embodiment.
[0074] After building the prototype of the page, the operator can adjust the controls in the module through the operation terminal, such as replacing the displayed pictures, texts, links, style values and labels, etc. These controls need to be adjusted according to the actual application.
[0075] S208: Obtain the adjusted control of the operation terminal, and obtain the auto-increment sequence corresponding to the adjusted control, and concatenate the module identifier of the module, the control identifier of the control, and the auto-increment sequence to obtain the first burying point information corresponding to the control.
[0076] Specifically, the controls in the module, such as pictures, are specific activities or commodities, so that when users view an activity page or an activity picture, they click to view the details. In this way, buried point statistics are required here to conduct business customer acquisition click analysis, so buried points need to be provided here. The buried points in this embodiment are automatically generated. The server can generate buried point information based on the module identifier and space identifier. For example, a unique identifier is generated through the module identifier id+different controls (picture identifier id|link identifier id|...)+self-increment sequence. For example, the buried point identifier produced by a certain picture in the grid module is (1001 (grid identifier)+2001 (grid picture identifier)+self-increment sequence number) to ensure uniqueness. The front end gets this identification data. Every time the user clicks, the front end uploads it to the big data system to count the number of times, and finally performs summary analysis.
[0077] S210: Obtaining picture information in the control, and compressing the corresponding picture according to the picture information at preset scaling ratios corresponding to different network states, so as to generate pictures of different network states.
[0078] Specifically, when there is image information in the control, different terminals need to download the control when obtaining the page. Therefore, in order to ensure the stability of subsequent front-end downloads, when generating the page, the server directly generates image information of different network states, allowing the front-end to switch and select images according to 4G wifi. For details, please refer to Figure 4 As shown, Figure 4 This is a flowchart of the steps for obtaining pictures in different network states in an embodiment. The server performs data anti-duplication according to the address where the picture is uploaded and the millisecond time of the upload. That is, after the server receives the picture, it will obtain the upload time and store the upload time and picture address in association.
[0079] When generating images of different network states, the compression method of the images will be generated according to the preset ratio and preset name, such as the ratio and name in the following table. App refers to the mobile terminal, and h5 refers to the PC terminal:
[0080]
[0081]
[0082] The app platform generates 19 images (3*6+1 original image) in one compression operation, and the h5 platform generates 23 images (3*7+1 original image+1 pad) in one compression operation. Each image includes a jpg format for the mobile network, a jpg format for the wifi network, and a webp format for the mobile network, which can facilitate the switching of network status and save bandwidth to accelerate image loading. In this way, when the display terminal loads the page, the server can return the corresponding image according to the current network status of the display terminal.
[0083] S212: The pictures, controls, page frames, page identifiers, module identifiers and embedding point information of different network states are associated and stored to obtain a page.
[0084] Specifically, after the above processing, the server can store pictures, controls, page frames, page identifiers, module identifiers, and embedded point information according to different network states to obtain corresponding pages.
[0085] The above-mentioned page generation method based on custom modules, after receiving the page generation instruction, sends the corresponding page frame to the operation terminal, so that the operation terminal can select the corresponding module to add to the page frame, and adjust the controls in the frame, etc., to generate the corresponding point information and generate pictures of different network states according to the picture information, without writing a lot of code, which can simplify the operation. The operation terminal is only responsible for the configuration of the content, pictures and specific styles of the page, so that a page can be rendered on different platforms, and through the building block method, the page reuse is higher and more flexible, the uploading and compression of pictures also reduces the difficulty of picture configuration, and the automatic processing of point can reduce the workload, and there is no need to encode for each page, which reduces the complexity and improves the efficiency of page generation.
[0086] In one of the embodiments, after receiving the page generation instruction sent by the operation terminal, it also includes: querying the stored pages according to the page type identifier, and sending the queried pages to the operation terminal; receiving the page copy instruction returned by the operation terminal, the page copy instruction carries the copy page identifier; obtaining the corresponding page according to the copy page identifier, and generating a new page according to the obtained page; renaming the new page, and modifying the page identifier and the second buried point information of the new page; saving the modified new page.
[0087] After receiving the new page creation instruction sent by the operation terminal, the server can also query the stored pages according to the page type identifier carried by the new page creation instruction, and display the stored pages on the operation terminal, so that the operation terminal can select one of them to copy, without the need to build them one by one. Specifically, after the server queries the stored page corresponding to the page type identifier, it displays the stored page on the operation terminal and receives the page copy instruction sent by the operation terminal. According to the page copy instruction, the server queries the corresponding page and generates a new page, renames the new page and obtains the buried point information in the new page, and changes the buried point information according to the page identifier of the new page to obtain the second buried point information. This can reduce the workload of manual operations.
[0088] In the above embodiment, the page corresponding to the generated page type identifier is fully utilized, and a new page can be generated by simply copying it, thereby reducing the workload of manual operations.
[0089] In one of the embodiments, after the pictures, controls, page frames, page identifiers, module identifiers and tracking point information of different network states are associated and stored to obtain a page, it includes: generating a page review instruction according to the page, and sending the page review instruction to the review terminal; receiving the review information of the review terminal after previewing the page; when the review information indicates that the review is passed, modifying the status of the page to a pending release status; when the review information indicates that the review is not passed, sending the review information that has not passed the review to the operation terminal.
[0090] Specifically, see Figure 5 As shown, Figure 5 It is a flowchart of the review steps in an embodiment. The operation terminal can operate on the page, that is, add, delete, and modify, and then submit it to the server for review. The server generates a page review instruction based on the review submitted by the operation terminal, and sends the page review instruction to the review terminal, for example, to the leader of the corresponding page, so that the leader can review it. During the review, the review terminal can preview the page. When the review information indicates that the review is passed, the status of the page is changed to a pending release status, so that the page can be packaged into the corresponding App for online release; when the review information indicates that the review has not passed, the review information of the failed review is sent to the operation terminal.
[0091] In the above embodiment, the online preview function is also supported during the audit process, and the audit terminal does not need to download the page to the local computer, which can improve the audit efficiency.
[0092] In one of the embodiments, after the pictures, controls, page frames, page identifiers, module identifiers and embedding point information of different network states are associated and stored to obtain the page, it includes: storing the page in a database, generating a corresponding structured file, and pushing the structured file to a content distribution network; the above method also includes: receiving a rendering request sent by a display terminal, the rendering request carries a page identifier; querying an access interface corresponding to the page identifier; if the interface is normal, obtaining the page from the database and returning the page to the display terminal; if the interface is abnormal, obtaining the structured file corresponding to the page identifier from the content distribution network, and returning the structured file to the display terminal.
[0093] Specifically, see Figure 6 As shown, Figure 6This is an architecture diagram of page output in an embodiment. In this embodiment, after the page is generated, two output modes are provided. Specifically, the pictures, controls, page frames, page identifiers, module identifiers and embedded point information of different network states are associated and stored to obtain the page, including associating and storing the pictures, controls, page frames, page identifiers, module identifiers and embedded point information of different network states in the database, and generating a corresponding structured file, i.e., a json file, and pushing the json file to the content distribution network cdn. Thus, the service provides two page output modes, i.e., the http interface and the content distribution network cdn file form (downgrade solution), i.e., the constructed page data will fall into the database, and a json file will also be generated and pushed to the cdn.
[0094] Specifically, the service receives a rendering request sent by the display terminal, which carries a page identifier, and queries the corresponding access interface through the rendering request. If the interface is normal, the basic information of the page and the template identifier of the template set are obtained through the page identifier. The basic information of the page includes the page frame, and then the template details are obtained through the template identifier polling and rendering, where the template details include modules, controls in the module, and tracking point information. If the interface is abnormal, the json file corresponding to the page identifier is obtained to achieve downgrade, and the template details are obtained through the template identifier in the json file. Polling and rendering.
[0095] Specifically, the first method, i.e., in the http interface mode, a page is obtained from a database and returned to a display terminal, including: obtaining a page frame and a module identifier corresponding to the page identifier from a database; obtaining the corresponding module, the controls in the module, and the tracking point information according to the module identifier; and returning the page frame, the obtained module, the controls in the module, and the tracking point information to the display terminal.
[0096] The first method is the CDN degradation mode, in which a structured file corresponding to a page identifier is obtained from a content distribution network, and the structured file is returned to a display terminal, including: obtaining a network disk where the page is stored in the content distribution network according to the page identifier; reading a page frame and a module identifier corresponding to the page identifier from the network disk; obtaining a corresponding module, a control in the module, and embedded point information from the network disk according to the module identifier; and returning the page frame, the obtained module, the control in the module, and the embedded point information to the display terminal.
[0097] Specifically, see Figure 7 and Figure 8 ,in Figure 7 is a timing diagram of the http interface mode in one embodiment, Figure 8 A timing diagram of a CDN degradation mode in one embodiment.
[0098] See also Figure 7 , the display terminal sends the page identifier pageId to the server, and the server obtains the basic information of the page and the template identifier of the template set according to the page identifier, that is, first query whether the cache layer exists. If the cache layer exists, the obtained basic information of the page and the template identifier of the template set are returned to the display terminal. If the cache layer does not exist, continue to query the database, obtain the basic information of the page and the template identifier of the template set from the database, and put them into the cache for the next call, and then return the obtained basic information of the page and the template identifier of the template set to the display terminal. The display terminal displays the page frame according to the basic information of the page, and then continues to query the server according to the template identifier. The server determines whether there is a template corresponding to the template identifier in the cache. If so, it obtains the template corresponding to the template identifier and queries the controls and embedded point information in the module, that is, obtains the page details information, and feeds back the queried page details information to the display terminal, so that the display terminal continues to render the module, the controls in the module, the image links and the text content, etc. If it does not exist in the cache, continue to query the database to obtain the template corresponding to the template identifier, and query the controls and tracking information in the module, that is, obtain the page details, store the queried page details in the cache, and feed back to the display terminal, so that the display terminal can continue to render the module, the controls in the module, the image links, and the text content, etc.
[0099] See also Figure 8 When the interface is abnormal, you can first calculate the directory value of 0-999 based on the page identifier, that is, pageId, and then obtain the corresponding file from the cdn. If it does not exist in the cdn, query the original site. You can query it through load balancing, that is, directly read the network drive letter file and return it, and store the content in the cdn, and feed it back to the display terminal. The file obtained is page.json, and the content obtained in this file is the basic information of the page, the template identifier, and the template type field. The display terminal sends the template identifier to the server to continue to obtain the template details file. Specifically, the server first queries whether it exists in the cdn. If it does not exist, it queries the network disk through load balancing, and then returns the module details file queried from the network disk to the cdn cache and sends it to the display terminal, so that the display terminal can render the template details file.
[0100] In the above embodiment, the rendering scheme is implemented in two ways, the interface and file dual output mode, which has a higher fault tolerance rate, and the file output prevents the display terminal from having a white screen.
[0101] In one of the embodiments, after receiving the rendering request sent by the display terminal, it also includes: extracting a user tag from the rendering request; before returning the page frame, the acquired module, the controls in the module, and the embedding point information to the display terminal, it also includes: extracting the category tag of the acquired module; and filtering the acquired module according to the user tag and the category tag.
[0102] Specifically, see Fig. 9 , Fig. 9 This is a flowchart of the rendering steps in an embodiment. When the operation terminal adjusts the controls in the module, it also includes a step in which the operation terminal tags the module, and the server receives the tags of different modules returned by the operation terminal. Therefore, after the server receives the rendering instruction, the user tag is extracted from the rendering instruction, and then after the server obtains the module set identifier, the module is filtered by the module tag corresponding to the user tag and the module set identifier, and then only the filtered modules are sent to the display terminal for display, so that different content can be displayed for different groups of people according to the business support big data analysis.
[0103] For example, if the tag set of template 1 is 1001 and 1002, and template 2 is 2001 and 1001, the front end passes in the user tag when requesting the http interface to obtain data, and the user tag found is 1002. At this time, the intelligent system filters the tags, and the data of template 2 will not be returned because the user does not match the tag set of template 2.
[0104] In the above embodiment, by comparing the user tag and the module tag, only the module corresponding to the module tag matching the user tag is returned to the terminal for display. In this way, the configuration function for each individual can achieve better precision marketing for the business side.
[0105] It should be understood that although Figure 2-9 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-9 At least part of the steps 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, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0106] In one embodiment, Fig.10As shown, a page generation device based on a custom module is provided, comprising: a first receiving module 100, a first generating module 200, a first sending module 300, a second generating module 400, a picture generating module 500 and an associating module 600, wherein:
[0107] The first receiving module 100 is used to receive a page generation instruction sent by an operation terminal, where the page generation instruction carries a page type identifier.
[0108] The first generating module 200 is used to generate a page identifier and a page frame according to the page type identifier.
[0109] The first sending module 300 is used to send the page frame to the operation terminal for display, and receive the module selection instruction returned by the operation terminal, and display the module selected by the module selection instruction at the corresponding position of the page frame, and the module includes adjustable controls.
[0110] The second generation module 400 is used to obtain the adjusted control of the operation terminal and the auto-increment sequence corresponding to the adjusted control, and concatenate the module identifier of the module, the control identifier of the control and the auto-increment sequence to obtain the first burial point information corresponding to the control.
[0111] The picture generation module 500 is used to obtain the picture information in the control, and compress the corresponding picture according to the preset scaling ratio corresponding to different network states according to the picture information to generate pictures of different network states.
[0112] The association module 600 is used to associate and store pictures, controls, page frames, page identifiers, module identifiers and embedding point information of different network states to obtain a page.
[0113] In one embodiment, the above-mentioned page generation device based on the custom module may include:
[0114] The second sending module is used to query the stored pages according to the page type identifier and send the queried pages to the operation terminal.
[0115] The second receiving module is used to receive a page copy instruction returned by the operation terminal, where the page copy instruction carries a copy page identifier.
[0116] The copy module is used to obtain the corresponding page according to the copy page identifier, and generate a new page according to the obtained page.
[0117] The first modification module is used to rename the newly added page and modify the page identifier and the second embedding point information of the newly added page.
[0118] The first storage module is used to save the modified newly added page.
[0119] In one embodiment, the above-mentioned page generation device based on the custom module may include:
[0120] The audit module is used to generate a page audit instruction according to the page and send the page audit instruction to the audit terminal.
[0121] The feedback module is used to receive the review information after the review terminal previews the page.
[0122] The second modification module is used to modify the status of the page to a pending release status when the review information indicates that the review is passed.
[0123] The third sending module is used to send the audit information of failed audit to the operation terminal when the audit information indicates that the audit has not passed.
[0124] In one embodiment, the above-mentioned page generation device based on the custom module may include:
[0125] The second storage module is used to store the page in the database, generate a corresponding structured file, and push the structured file to the content distribution network.
[0126] The third receiving module is used to receive a rendering request sent by the display terminal, where the rendering request carries a page identifier.
[0127] The query module is used to query the access interface corresponding to the page identifier.
[0128] The fourth sending module is used to obtain the page from the database and return the page to the display terminal if the interface is normal; if the interface is abnormal, obtain the structured file corresponding to the page identifier from the content distribution network and return the structured file to the display terminal.
[0129] In one embodiment, the fourth sending module includes:
[0130] The first acquisition unit is used to acquire the page frame and module identifier corresponding to the page identifier from the database.
[0131] The second acquisition unit is used to acquire the corresponding module, the controls in the module and the tracking point information according to the module identifier.
[0132] The first sending unit is used to return the page frame, the acquired module, the controls in the module and the embedded point information to the display terminal.
[0133] In one embodiment, the fourth sending module includes:
[0134] The third acquisition unit is used to obtain the network disk where the page is stored in the content distribution network according to the page identifier.
[0135] The fourth acquisition unit is used to read the page frame and module identifier corresponding to the page identifier from the network disk.
[0136] The fifth acquisition unit is used to acquire the corresponding module, the controls in the module and the embedding point information from the network disk according to the module identifier.
[0137] The second sending unit is used to return the page frame, the acquired module, the controls in the module and the embedded point information to the display terminal.
[0138] In one embodiment, the above-mentioned page generation device based on the custom module may include:
[0139] The user tag extraction module is used to extract user tags from rendering requests.
[0140] The category label extraction module is used to extract the category label of the acquired module.
[0141] The filtering module is used to filter the obtained modules according to user tags and category tags.
[0142] For the specific definition of the page generation device based on the custom module, please refer to the definition of the page generation method based on the custom module above, which will not be repeated here. Each module in the above-mentioned page generation device based on the custom module can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0143] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, a network interface and a database 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 modules, controls, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a page generation method based on a custom module is implemented.
[0144] Those skilled in the art will understand that Fig.11The 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.
[0145] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: receiving a page generation instruction sent by an operation terminal, the page generation instruction carrying a page type identifier; generating a page identifier and a page frame according to the page type identifier; sending the page frame to the operation terminal for display, and receiving a module selection instruction returned by the operation terminal, displaying the module selected by the module selection instruction at a corresponding position of the page frame, and the module including an adjustable control; obtaining the control adjusted by the operation terminal, and obtaining an auto-increment sequence corresponding to the adjusted control, splicing the module identifier of the module, the control identifier of the control and the auto-increment sequence to obtain the first buried point information corresponding to the control; obtaining the picture information in the control, and compressing the corresponding picture according to the picture information according to the preset zoom ratio corresponding to different network states to generate pictures of different network states; associating and storing the pictures, controls, page frames, page identifiers, module identifiers and buried point information of different network states to obtain a page.
[0146] In one embodiment, after the processor executes the computer program to implement receiving the page generation instruction sent by the operation terminal, it also includes: querying the stored pages according to the page type identifier, and sending the queried pages to the operation terminal; receiving the page copy instruction returned by the operation terminal, the page copy instruction carries the copy page identifier; obtaining the corresponding page according to the copy page identifier, and generating a new page according to the obtained page; renaming the new page, and modifying the page identifier and the second buried point information of the new page; saving the modified new page.
[0147] In one embodiment, after the processor executes a computer program to associate and store pictures, controls, page frames, page identifiers, module identifiers, and tracking point information of different network states to obtain a page, it includes: generating a page review instruction based on the page, and sending the page review instruction to the review terminal; receiving the review information of the review terminal after previewing the page; when the review information indicates that the review is passed, modifying the status of the page to a pending release status; when the review information indicates that the review is not passed, sending the review information of the failed review to the operation terminal.
[0148] In one embodiment, after the processor executes a computer program to obtain a page by associating and storing pictures, controls, page frames, page identifiers, module identifiers, and embedding point information in different network states, the process includes: storing the page in a database, generating a corresponding structured file, and pushing the structured file to a content distribution network; the processor also implements the following steps when executing the computer program: receiving a rendering request sent by a display terminal, the rendering request carrying a page identifier; querying an access interface corresponding to the page identifier; if the interface is normal, obtaining the page from the database and returning the page to the display terminal; if the interface is abnormal, obtaining the structured file corresponding to the page identifier from the content distribution network, and returning the structured file to the display terminal.
[0149] In one embodiment, when a processor executes a computer program, the process of obtaining a page from a database and returning the page to a display terminal includes: obtaining a page frame and a module identifier corresponding to the page identifier from a database; obtaining the corresponding module, the control in the module, and the embedding point information according to the module identifier; and returning the page frame, the obtained module, the control in the module, and the embedding point information to the display terminal.
[0150] In one embodiment, the processor executes a computer program to obtain a structured file corresponding to a page identifier from a content distribution network and return the structured file to a display terminal, including: obtaining a network disk where the page is stored in the content distribution network according to the page identifier; reading a page frame and a module identifier corresponding to the page identifier from the network disk; obtaining a corresponding module, a control in the module, and embedded point information from the network disk according to the module identifier; and returning the page frame, the obtained module, the control in the module, and the embedded point information to the display terminal.
[0151] In one embodiment, after receiving the rendering request sent by the display terminal when the processor executes the computer program, it also includes: extracting a user tag from the rendering request; before returning the page frame, the acquired module, the controls in the module, and the tracking point information to the display terminal when the processor executes the computer program, it also includes: extracting the category tag of the acquired module; and filtering the acquired module according to the user tag and the category tag.
[0152] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program implements the following steps when executed by a processor: receiving a page generation instruction sent by an operation terminal, the page generation instruction carrying a page type identifier; generating a page identifier and a page frame according to the page type identifier; sending the page frame to the operation terminal for display, and receiving a module selection instruction returned by the operation terminal, displaying the module selected by the module selection instruction at a corresponding position of the page frame, and the module including an adjustable control; obtaining the control adjusted by the operation terminal, and obtaining an auto-increment sequence corresponding to the adjusted control, splicing the module identifier of the module, the control identifier of the control and the auto-increment sequence to obtain the first burying point information corresponding to the control; obtaining image information in the control, and compressing the corresponding image according to the image information according to a preset scaling ratio corresponding to different network states to generate images of different network states; associating and storing the images, controls, page frames, page identifiers, module identifiers and burying point information of different network states to obtain a page.
[0153] In one embodiment, after receiving the page generation instruction sent by the operation terminal, the computer program implemented when executed by the processor also includes: querying the stored pages according to the page type identifier, and sending the queried pages to the operation terminal; receiving the page copy instruction returned by the operation terminal, the page copy instruction carries the copy page identifier; obtaining the corresponding page according to the copy page identifier, and generating a new page according to the obtained page; renaming the new page, and modifying the page identifier and the second buried point information of the new page; saving the modified new page.
[0154] In one embodiment, after the computer program is executed by the processor and the pictures, controls, page frames, page identifiers, module identifiers and tracking point information of different network states are associated and stored to obtain the page, it includes: generating a page review instruction according to the page, and sending the page review instruction to the review terminal; receiving the review information of the review terminal after previewing the page; when the review information indicates that the review is passed, modifying the status of the page to a pending release status; when the review information indicates that the review is not passed, sending the review information of the failed review to the operation terminal.
[0155] In one embodiment, after the computer program is executed by the processor and the pictures, controls, page frames, page identifiers, module identifiers and embedding point information of different network states are associated and stored to obtain the page, the steps include: storing the page in a database, generating a corresponding structured file, and pushing the structured file to a content distribution network; the computer program also implements the following steps when executed by the processor: receiving a rendering request sent by a display terminal, the rendering request carries a page identifier; querying an access interface corresponding to the page identifier; if the interface is normal, obtaining the page from the database and returning the page to the display terminal; if the interface is abnormal, obtaining the structured file corresponding to the page identifier from the content distribution network, and returning the structured file to the display terminal.
[0156] In one embodiment, the computer program executed by the processor obtains a page from a database and returns the page to a display terminal, including: obtaining a page frame and a module identifier corresponding to the page identifier from the database; obtaining the corresponding module, the control in the module, and the embedded point information according to the module identifier; and returning the page frame, the obtained module, the control in the module, and the embedded point information to the display terminal.
[0157] In one embodiment, the computer program implemented when executed by the processor obtains a structured file corresponding to a page identifier from a content distribution network and returns the structured file to a display terminal, including: obtaining a network disk where the page is stored in the content distribution network according to the page identifier; reading a page frame and a module identifier corresponding to the page identifier from the network disk; obtaining a corresponding module, a control in the module, and embedded point information from the network disk according to the module identifier; and returning the page frame, the obtained module, the control in the module, and the embedded point information to the display terminal.
[0158] In one embodiment, after receiving the rendering request sent by the display terminal, the computer program implemented when the processor is executed also includes: extracting a user tag from the rendering request; before returning the page frame, the acquired module, the controls in the module, and the tracking point information to the display terminal when the processor executes the computer program, it also includes: extracting the category tag of the acquired module; and filtering the acquired module according to the user tag and the category tag.
[0159] 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 memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0160] 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.
[0161] The above-mentioned 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 invention patent. 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 patent of the present application shall be subject to the attached claims.
Claims
1. A page generation method based on a custom module, the method comprising: Receiving a page generation instruction sent by an operation terminal, wherein the page generation instruction carries a page type identifier; Generate a page identifier and a page frame according to the page type identifier; The page frame is sent to the operation terminal for display, and a module selection instruction returned by the operation terminal is received, and the module selected by the module selection instruction is displayed at a corresponding position of the page frame, and the module includes an adjustable control; Obtain the adjusted control of the operation terminal, and obtain the auto-increment sequence corresponding to the adjusted control, and concatenate the module identifier of the module, the control identifier of the control, and the auto-increment sequence to obtain the first burying point information corresponding to the control; Acquire the picture information in the control, and compress the corresponding picture according to the picture information according to the preset scaling ratio corresponding to the different network states, so as to generate the pictures of the different network states; The pictures of the different network states, the controls, the page frame, the page identifier, the module identifier and the first embedding point information are associated and stored to obtain a page; After receiving the page generation instruction sent by the operation terminal, the method further includes: Querying the stored pages according to the page type identifier, and sending the queried pages to the operation terminal; Receiving a page copy instruction returned by the operation terminal, wherein the page copy instruction carries a copy page identifier; Acquire a corresponding page according to the copied page identifier, and generate a new page according to the acquired page; Rename the newly added page, and modify the page identifier and the second embedding point information of the newly added page; Save the modified new page.
2. The method according to claim 1, characterized in that After associating and storing the pictures of the different network states, the controls, the page frame, the page identifier, the module identifier, and the first embedding point information to obtain a page, the method includes: Generate a page audit instruction according to the page, and send the page audit instruction to the audit terminal; Receiving the review information of the review terminal after previewing the page; When the review information indicates that the review is passed, the status of the page is changed to a pending release status; When the audit information indicates that the audit has not passed, the audit information indicating that the audit has not passed is sent to the operation terminal.
3. The method according to claim 2, characterized in that After associating and storing the pictures of the different network states, the controls, the page frame, the page identifier, the module identifier, and the first embedding point information to obtain a page, the method includes: The page is stored in a database, a corresponding structured file is generated, and the structured file is pushed to a content distribution network; The method further comprises: Receiving a rendering request sent by a display terminal, wherein the rendering request carries a page identifier; Querying the access interface corresponding to the page identifier; If the interface is normal, a page is obtained from the database and the page is returned to the display terminal; If the interface is abnormal, a structured file corresponding to the page identifier is obtained from the content distribution network, and the structured file is returned to the display terminal.
4. The method according to claim 3, characterized in that The acquiring a page from the database and returning the page to the display terminal comprises: Acquire a page frame and a module identifier corresponding to the page identifier from the database; Obtain the corresponding module, the control in the module and the first embedding point information according to the module identifier; The page frame, the acquired module, the controls in the module and the first embedding point information are returned to the display terminal.
5. The method according to claim 3, characterized in that: The acquiring a structured file corresponding to the page identifier from the content distribution network and returning the structured file to the display terminal comprises: Obtaining the network disk where the page is stored in the content distribution network according to the page identifier; Reading a page frame and a module identifier corresponding to the page identifier from the network disk; Acquire the corresponding module, the control in the module and the first embedding point information from the network disk according to the module identifier; The page frame, the acquired module, the controls in the module and the first embedding point information are returned to the display terminal.
6. The method according to claim 4 or 5, characterized in that: After receiving the rendering request sent by the display terminal, the method further includes: Extracting a user tag from the rendering request; Before returning the page frame, the acquired module, the control in the module and the first embedding point information to the display terminal, the method further includes: Extracting the category labels of the acquired modules; The acquired modules are filtered according to the user tag and the category tag.
7. A page generation device based on a custom module, characterized in that: The device comprises: A first receiving module, configured to receive a page generation instruction sent by an operation terminal, wherein the page generation instruction carries a page type identifier; A first generating module, used for generating a page identifier and a page frame according to the page type identifier; A first sending module, used for sending the page frame to the operation terminal for display, receiving a module selection instruction returned by the operation terminal, and displaying the module selected by the module selection instruction at a corresponding position of the page frame, wherein the module includes an adjustable control; The second generating module is used to obtain the adjusted control of the operation terminal, and obtain the auto-increment sequence corresponding to the adjusted control, and concatenate the module identifier of the module, the control identifier of the control, and the auto-increment sequence to obtain the first burying point information corresponding to the control; A picture generation module, used for acquiring picture information in the control, and compressing the corresponding picture according to the picture information according to preset scaling ratios corresponding to different network states, so as to generate pictures of the different network states; An association module, used for associating and storing the pictures of the different network states, the controls, the page frame, the page identifier, the module identifier and the first embedding point information to obtain a page; A second sending module, used to query the stored pages according to the page type identifier, and send the queried pages to the operation terminal; A second receiving module is used to receive a page copy instruction returned by the operation terminal, wherein the page copy instruction carries a copy page identifier; A copy module, used to obtain a corresponding page according to the copy page identifier, and generate a new page according to the obtained page; A first modification module is used to rename the newly added page and modify the page identifier and the second embedding point information of the newly added page; The first storage module is used to save the modified newly added page.
8. The device according to claim 7, characterized in that The device also includes: An audit module, used for generating a page audit instruction according to the page, and sending the page audit instruction to an audit terminal; A feedback module, used for receiving the review information of the review terminal after previewing the page; A second modification module is used to modify the status of the page to a pending release status when the review information indicates that the review is passed; The third sending module is used to send the audit information of failed audit to the operation terminal when the audit information indicates that the audit has failed.
9. 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.
10. 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.
