A page interaction method, device, equipment, medium and program product

By setting up the preview area and configuration area in the configuration page, using the simulator to display the online page and receive user interactive operations, it solves the problem of operators having difficulty in quickly viewing the edited content to take effect, improves the efficiency and convenience of regression testing, and realizes preview Decoupling from real page logic.

CN113076499BActive Publication Date: 2024-09-10DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110486255.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-30
Publication Date
2024-09-10
Estimated Expiration
2041-04-30

AI Technical Summary

Technical Problem

After the operator edits the page content, it is difficult to quickly check whether the edited content is effective, resulting in low efficiency of regression testing, and reliance on third-party devices such as mobile phones for regression testing, making interaction inconvenient.

Method used

Provide a page interaction method. By setting the preview area and configuration area in the configuration page, use the simulator to display the online page, receive user interactive operations, display the interaction results, achieve rapid preview and regression testing, and get rid of the interference of third-party devices. bondage.

Benefits of technology

It improves the efficiency and convenience of online regression, reduces waiting costs, ensures that operators can quickly locate configuration effects, and realizes the decoupling of preview and real page logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113076499B
    Figure CN113076499B
Patent Text Reader

Abstract

The present application discloses a page interaction method, which includes: a page interaction system displays a configuration page, the configuration page includes a configuration area of ​​an online page and a preview area of ​​the online page, the configuration area is used to configure the content and / or style of the online page, the preview area is used to display the online page through a simulator, and then receive the interactive operation triggered by the user on the configuration page, and then display the interactive result in the configuration page according to the interactive operation. In this method, after the operator edits the content in the configuration page, the edited content can be quickly previewed, thereby improving the efficiency of online regression. Furthermore, this method gets rid of the constraints of third-party devices such as mobile phones, and improves the efficiency of regression testing and the convenience of regression.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a page interaction method, device, equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the advent of the information age, pages, such as the fifth version of the Hypertext Markup Language (HTML) page, are increasingly used to carry Internet traffic as a fast-iterable solution. In order to achieve better distribution effects, operators can manually edit the content of the page, for example, they can adjust the order of events or articles according to the attention of the event and the click-through rate (CTR) of the article, and then save and put it online.

[0003] Considering the online display effect, it is usually necessary to perform online regression before going online. Regression means retesting after modifying the old code to confirm that the modification has not introduced new errors or caused errors in other codes. At present, many applications usually use third-party devices such as mobile phones to perform content regression.

[0004] However, it is difficult for mobile phones to interact with the backend, and it is difficult for operators to quickly check whether the edited content is effective. The industry urgently needs to provide a page interaction method to improve the efficiency of regression testing. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a page interaction method, which can quickly preview the edited content after the operator edits the content in the configuration page, thereby improving the efficiency of online regression. It also gets rid of the constraints of third-party devices such as mobile phones, improves the efficiency of regression testing and the convenience of regression. The present application also provides devices, equipment, computer-readable storage media and computer program products corresponding to the above method.

[0006] In a first aspect, the present application provides a page interaction method, comprising:

[0007] Displaying a configuration page, the configuration page comprising a preview area of ​​the online page and a configuration area of ​​the online page, the configuration area being used to configure the content and / or style of the online page, and the preview area being used to display the online page through a simulator;

[0008] An interactive operation triggered by a user through the configuration page is received, and an interactive result is displayed in the configuration page according to the interactive operation.

[0009] In some possible implementations, the interactive operation includes an operation of selecting an object in the configuration area, and displaying the interactive result in the configuration page according to the interactive operation includes:

[0010] In the preview area of ​​the configuration page, page elements corresponding to the selected object are displayed by setting a style.

[0011] In some possible implementations, the interactive operation includes an operation of selecting a page element in the preview area, and displaying the interactive result in the configuration page according to the interactive operation includes:

[0012] In the configuration area of ​​the configuration page, the object corresponding to the selected page element is displayed by setting a style.

[0013] In some possible implementations, the interactive operation includes configuring at least one of voting information, picture size, and graphic style in the configuration area;

[0014] The displaying the interaction result in the configuration page according to the interaction operation includes:

[0015] In the preview area of ​​the configuration page, displaying a voting window according to the voting information; and / or,

[0016] In the preview area of ​​the configuration page, displaying a picture corresponding to the picture size; and / or,

[0017] In the preview area of ​​the configuration page, corresponding pictures and texts are displayed according to the graphic style.

[0018] In some possible implementations, the simulator includes a loader, and the display configuration page includes:

[0019] The source address of the online page configured by the user is received, the online page is loaded through a loader according to the source address, and the online page is displayed in the preview area of ​​the configuration page.

[0020] In some possible implementations, the simulator further includes an interaction engine, and the interaction engine includes at least one adapter;

[0021] The displaying the interaction result in the configuration page according to the interaction operation includes:

[0022] Determining an adapter corresponding to the interactive operation according to the interactive operation;

[0023] According to the interaction logic of the adapter corresponding to the interaction operation, the interaction result is displayed in the configuration page.

[0024] In some possible implementations, displaying the interaction result in the configuration page according to the interaction logic of the adapter corresponding to the interaction operation includes:

[0025] When the user identifier of the user triggering the interactive operation matches the preset identifier, the interactive logic of the adapter corresponding to the interactive operation is loaded, and the interactive result is displayed in the configuration page according to the interactive logic.

[0026] In some possible implementations, displaying the interaction result in the configuration page according to the interaction logic of the adapter corresponding to the interaction operation includes:

[0027] requesting interactive data from a target interface according to the interactive logic of the adapter corresponding to the interactive operation;

[0028] The loader is called to load the interactive data without caching according to the preconfigured loading parameters, so as to display the interactive results in the configuration page.

[0029] In some possible implementations, the online page includes a landing page.

[0030] In a second aspect, the present application provides a page interaction device, comprising:

[0031] A display unit, used to display a configuration page, the configuration page including a preview area of ​​an online page and a configuration area of ​​the online page, the configuration area is used to configure the content and / or style of the online page, and the preview area is used to display the online page through a simulator;

[0032] A receiving unit, used to receive an interactive operation triggered by a user through the configuration page;

[0033] The display unit is further used to display the interaction result in the configuration page according to the interaction operation.

[0034] In some possible implementations, the interactive operation includes an operation of selecting an object in the configuration area, and the display unit is specifically configured to display page elements corresponding to the selected object in the preview area of ​​the configuration page by setting a style.

[0035] In some possible implementations, the interactive operation includes an operation of selecting a page element in the preview area, and the display unit is specifically configured to display an object corresponding to the selected page element in the configuration area of ​​the configuration page by setting a style.

[0036] In some possible implementations, the interactive operation includes configuring at least one of voting information, picture size, and graphic style in the configuration area;

[0037] The display unit is specifically used for:

[0038] In the preview area of ​​the configuration page, displaying a voting window according to the voting information; and / or,

[0039] In the preview area of ​​the configuration page, displaying a picture corresponding to the picture size; and / or,

[0040] In the preview area of ​​the configuration page, corresponding pictures and texts are displayed according to the graphic style.

[0041] In some possible implementations, the simulator includes a loader, and the receiving unit is further configured to receive the source address of the online page configured by the user;

[0042] The display unit is specifically configured to load the online page through a loader according to the source address, and display the online page in the preview area of ​​the configuration page.

[0043] In some possible implementations, the simulator also includes an interaction engine, which includes at least one adapter; the display unit is specifically used to determine the adapter corresponding to the interaction operation based on the interaction operation; and display the interaction result in the configuration page according to the interaction logic of the adapter corresponding to the interaction operation.

[0044] In some possible implementations, the display unit is specifically used to load the interaction logic of the adapter corresponding to the interactive operation when the user identifier of the user triggering the interactive operation matches a preset identifier, and display the interaction result in the configuration page according to the interaction logic.

[0045] In some possible implementations, the display unit is specifically used to request interactive data from the target interface according to the interactive logic of the adapter corresponding to the interactive operation; and call the loader to load the interactive data without cache according to preconfigured loading parameters to display the interactive results in the configuration page.

[0046] In some possible implementations, the online page includes a landing page.

[0047] In a third aspect, the present application provides a device, comprising a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory, so that the device performs the page interaction method in the first aspect or any implementation of the first aspect.

[0048] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, wherein the instructions instruct a device to execute the page interaction method described in the first aspect or any one of the implementations of the first aspect.

[0049] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a device, enables the device to execute the page interaction method described in the first aspect or any one of the implementations of the first aspect.

[0050] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 An architecture diagram of a page interaction system provided in an embodiment of the present application;

[0053] Figure 2 A flow chart of a page interaction method provided in an embodiment of the present application;

[0054] Figure 3 A diagram of instruction interaction between a simulator and a background processor provided in an embodiment of the present application;

[0055] FIG. 4A to FIG. 4D A schematic diagram of a configuration page provided in an embodiment of the present application;

[0056] Figure 5 A diagram of instruction interaction between a simulator and a background processor provided in an embodiment of the present application;

[0057] FIG. 6A to FIG. 6B A schematic diagram of a configuration page provided in an embodiment of the present application;

[0058] Figure 7 A schematic diagram of a page interaction device provided in an embodiment of the present application;

[0059] Figure 8 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0061] First, some technical terms involved in the embodiments of the present application are introduced.

[0062] In the computer field, a page refers to an interface that carries information and presents the content of the information to the user. Specifically, a device with a display function can load a file corresponding to a page to display the page to the user. The page file can be written in a computer language, and the computer language can specifically be the fifth version of Hyper Text Markup Language (HTML), also referred to as HTML5.

[0063] The same page can be accessed by multiple devices, and the number of times the page is accessed at the same time can be recorded as the traffic carried by the page. For pages with high traffic, such as ranking pages, landing pages, guide pages, and other landing pages, HTML5 can be used to achieve rapid iteration.

[0064] The information presented on the page may include hot events, hot topics, etc. The operator can manually edit the order or titles of multiple hot events or hot topics to achieve page iteration. In some examples, the operator can adjust the order of events or topics based on the attention, click-through rate (CTR), etc. of the event or topic, and then save and launch it.

[0065] In order to ensure the display effect after going online, operators can also perform online regression after editing and saving the content of the information presented on the page to preview the content of the information presented on the page. At present, operators usually use third-party devices such as mobile phones to perform online regression to retest whether the code modified during human intervention introduces new errors or causes other code errors.

[0066] However, third-party devices are difficult to interact with the backend, and operators find it difficult to quickly locate and check whether the edited content is effective.

[0067] In view of this, an embodiment of the present application provides a page interaction method. The method can be performed by a page interaction system. Specifically, the page interaction system displays a configuration page, which includes a configuration area of ​​an online page and a preview area of ​​the online page. The configuration area is used to configure the content and / or style of the online page, and the preview area is used to display the online page through a simulator. Then, the page interaction system receives the interactive operation triggered by the user on the configuration page, and displays the interactive result in the configuration page according to the interactive operation.

[0068] This method displays the results of the interaction in the configuration page, such as displaying the information in the page through highlighting or animation effects, so as to assist the operation personnel to quickly locate the content of the page editing, thereby improving the efficiency of online regression. Moreover, this method can realize the preview of online pages in the operation background of the page interaction system, get rid of the constraints of third-party devices such as mobile phones, and improve the efficiency and convenience of regression. In addition, the logic code of the previewed online page and the logic code for realizing page interaction are independent of the logic code of the real online page, and will not cause code pollution. The previewed online page does not need to be cached, and can take effect immediately after saving the edited content, reducing waiting costs.

[0069] In order to make the technical solution of the present application clearer and easier to understand, the architecture of the page interaction system provided in the embodiment of the present application is introduced below with reference to the accompanying drawings.

[0070] See also Figure 1 The schematic diagram of the architecture of the page interactive system 100 shown in the figure includes a client 10 and a server 20. The client 10 is deployed on a terminal, and the terminal includes but is not limited to a smart phone, a tablet computer, a laptop computer, a personal digital assistant (PDA) or a smart wearable device. The server 20 can be a cloud server, such as a central server in a central cloud computing cluster, or an edge server in an edge cloud computing cluster. Of course, the server 20 can also be a local server in a local data center, and the local data center refers to a data center directly controlled by the user.

[0071] The client 10 is used to display the configuration page. For example, the client 10 receives data sent back by the server 20 and displays the configuration page in the client 10. The client 10 is also used to receive the interactive operation triggered by the user through the configuration page, and then send it to the server 20. The server 20 sends back the data corresponding to the interactive operation to the client 10 according to the interactive operation, so that the client 10 can display the interactive result on the configuration page according to the data corresponding to the interactive operation.

[0072] In some embodiments, a simulator 220 and an operation subsystem 240 are deployed in the server 20. The simulator 220 is used to display the online page in the preview area of ​​the configuration page through the client 10, and is also used to receive interactive operations triggered by the user through the configuration page displayed by the client 10, interact with the operation subsystem 240 according to the interactive operations, and the operation subsystem 240 displays the interactive results in the configuration area of ​​the configuration page through the client 10. The operation subsystem 240 is also used to receive interactive operations triggered by the user through the configuration page displayed by the client 10, interact with the simulator 220 according to the interactive operations, and then the simulator 120 displays the interactive results in the preview area of ​​the configuration page through the client 10.

[0073] In some examples, the simulator 220 includes a loader 222 and an interaction engine 224. The loader 222 is used to display the online page in the preview area of ​​the configuration page through the client 10, and the interaction engine 224 is used to interact with the operation subsystem 240. The interaction engine 224 includes a message processing module 2242 and multiple adapters 2241. The multiple adapters 2241 can be deployed in a centralized manner or in a distributed manner. The message processing module 2242 is used to interact with the operation subsystem 240, receive data transmitted by the operation subsystem 240, and convert the format of the data. The adapter 2241 is used to provide corresponding interaction logic according to the data processed by the message processing module 2242. The loader 222 displays the interaction result in the preview area of ​​the configuration page through the client 10 according to the interaction logic provided by the adapter 2241. It should be noted that the number of adapters 2241 can be multiple, and the functions of different adapters 2241 are different. For example, different adapters 2241 display the interaction results in different ways in the configuration page. In some embodiments, the adapter 2241 is also used to receive interactive operations triggered by the user in the preview area of ​​the configuration page displayed by the client 10, and then transmit data related to the interactive operation to the operation subsystem 240 through the message processing module 2242.

[0074] The operation subsystem 240 includes a logic processing module 242 and a message processing module 244. The message processing module 244 is used to receive data related to interactive operations transmitted by the message processing module 242, and convert the format of the data, etc. The logic processing module 242 is used to display the interactive results in the configuration area of ​​the configuration page through the client 10 according to the data processed by the message processing module 244. In some embodiments, the logic processing module 242 is also used to receive interactive operations triggered by users through the client 10 in the configuration area of ​​the configuration page, and transmit them to the simulator 220 through the message processing module 244, so that the simulator 220 displays the interactive results in the preview area of ​​the configuration page through the client 10. In this way, users (such as operators) can quickly locate and determine whether the configuration they made on the configuration page is effective based on the interactive results.

[0075] The above is an introduction to the page interaction system 100. Next, the page interaction method provided in the embodiment of the present application will be described in detail from the perspective of the page interaction system 100.

[0076] See also Figure 2 The flowchart of the page interaction method shown in FIG. 1 includes:

[0077] S202: The page interaction system 100 displays a configuration page.

[0078] The configuration page can be a page presented by the client to the user and supports user operations. The configuration page includes a preview area of ​​the online page and a configuration area of ​​the online page. The configuration area is used to configure the content and style of the online page, and the preview area is used to display the online page through the simulator 220, for example, to display the online page in real time.

[0079] The online page refers to a page that is officially provided to users after going online. The online page can be directly displayed in a user device with a display function such as a terminal, or can be previewed through the modeler 220 in the client of the operator.

[0080] Taking an online page as a hot search list page as an example, the content of the online page includes the hot events presented by the online page. In some embodiments, when the online page presents multiple hot events, the content of the online page also includes the sorting information of the multiple hot events. The style of the online page refers to the presentation style of the online page. The presentation style may include any one or more combinations of picture style, text style and video style. For example, the presentation style may be a video style, or a graphic style, etc. In some embodiments, the presentation style may also be the style of the content of the online page, such as the hot event title style (centered display, bold display, enlarged display, etc.).

[0081] In some embodiments, the page interaction system 100 can load and present the online page according to the source address of the online page. Specifically, the page interaction system 100 receives the source address of the online page configured by the user, loads the online page through the loader 222 according to the source address, and displays the online page in the preview area of ​​the configuration page. Among them, the source address can be represented by a Uniform Resource Locator (URL). In some implementations, the page interaction system 100 receives the URL configured by the user, and the URL can be a URL pointing to an online page (such as an html 5 page). The page interaction system 100 loads the online page through the loader 222 according to the URL through an iframe tag, and displays the online page in the preview area of ​​the configuration page.

[0082] In some embodiments, when the page interaction system 100 loads an online page, it also carries parameters for characterizing user identity information. User identities can be divided into operators and non-operators. The simulator 220 can determine the identity of the user who loads the online page based on the parameter. For example, when the parameter is "from end", it indicates that the user identity is an operator. When the simulator 220 determines that the user identity is an operator, the simulator 220 mounts the interaction engine 224, that is, loads the code related to the interaction engine 224. The interaction engine 224 is used to interact with the operation subsystem 240 to assist the operator in configuring and previewing online pages.

[0083] In some implementations, after the operator configures the online page, the page interaction system 100 can also carry loading parameters when loading the online page for preview, and the simulator 220 can determine the logic of the loader 122 loading the online page based on the loading parameters. In some examples, the loading parameter can be "nocache", and the simulator 220 can determine that the loader 122 loads the online page in a non-cache manner based on the loading parameter. In this way, the page interaction system 100 can load the online page without cache, so that after the user reconfigures the content or style of the online page, the page interaction system 100 can quickly respond to the user's configuration operation, such as displaying the configured online page in the preview area.

[0084] It should be noted that the online page is an online page previewed by the page interaction system 100, which is different from the real online page. The real online page can be a page that is actually displayed in a web page. When the user reconfigures the previewed page, the page interaction system 100 will not change the real online page. In this way, the method can achieve the decoupling of the logic code of the previewed online page from the logic code of the real online page.

[0085] In some embodiments, when loading an online page, the page interaction system 100 will also carry parameters of user personalized information. The simulator 220 can load the online page according to the parameters of the user personalized information. In this way, the online page includes the user's personalized settings, such as regional settings and interest settings.

[0086] In some embodiments, after the page interaction system 100 displays the online page in the preview area, the user can configure the content or style of the online page in the configuration area, which are described below.

[0087] In some examples, the user can configure the content of the online page. For example, the online page includes 10 hot events. As the popularity of the hot events changes, the user can configure the title of the hot events, the order of the hot events, and other contents in the configuration area. In some embodiments, the user can also put the hot event with the highest popularity at the top of the online page to highlight the hot event.

[0088] Continuing with the above example, the user can also configure the style of the online page. In some embodiments, the user can modify the style of presenting hot events from text style to graphic style in the configuration area. In other embodiments, the user can modify the style of presenting hot events from graphic style to video style in the configuration area. The user can modify the style of presenting hot events according to the relevant information of the hot events. For example, when the relevant information of the hot events includes pictures and text, the user can modify the style of presenting the hot events in graphic style, picture style, and text style.

[0089] In other examples, the user may configure both the content and the style of the online page. For details, please refer to the introduction in the above embodiments, which will not be described again here.

[0090] After the user configures the content or style of the online page in the configuration area, the page interaction system 100 can display the configured online page in the preview area through the simulator 220 to achieve real-time preview of the online page configured by the user.

[0091] S204: The page interaction system 100 receives an interaction operation triggered by the user through the configuration page.

[0092] The interactive operation refers to the operation of interaction between the user and the client 10. For example, the interactive operation may be an operation of selecting an object in the configuration area, and the object may be an object corresponding to the hot event in the configuration area. Another example is that the interactive operation may be an operation of selecting a page element in the preview area, and the page element may be an element corresponding to the hot event in the online page.

[0093] In some implementations, the user can perform click operations in the configuration page displayed by the page interaction system, such as clicking an object in the configuration area or a page element in the preview area. The page interaction system 100 can receive the click operations triggered by the user on the configuration page.

[0094] In some embodiments, the interactive operation may also be configuring at least one of voting information, image size, and graphic style in the configuration area. The user may perform configuration operations on objects in the configuration area of ​​the configuration page displayed by the client 10, such as configuring voting information to add a voting window to the online page, configuring image size to display an image corresponding to the image size on the online page, configuring graphic style to display corresponding images and text on the online page, etc. The page interactive system 100 may receive configuration operations triggered by the user on the configuration page.

[0095] S206: The page interaction system 100 displays the interaction result in the configuration page according to the interaction operation.

[0096] The interaction result refers to the result displayed by the client 10 after the user triggers an interaction operation in the configuration page displayed on the client 10. Different interaction operations will result in different results displayed by the client 10.

[0097] In some embodiments, when the interactive operation is an operation of selecting an object in the configuration area, the page interactive system 100 displays the page element corresponding to the selected object in the preview area of ​​the configuration page by setting a style. The set style can be a style personalized by the user, or a style set by default by the page interactive system 100. In other embodiments, when the interactive operation is an operation of selecting a page element in the preview area, the page interactive system 100 displays the object corresponding to the selected page element in the configuration area of ​​the configuration page by setting a style. In some examples, the set style can be a highlight or a special mark (such as a five-pointed star mark or a circle around the selected object).

[0098] In some embodiments, when the interactive operation is to configure voting information in the configuration area, the page interactive system 100 can display a voting window in the preview area of ​​the configuration page according to the voting information, so that non-operating personnel can vote for the content of the online page, such as selecting different opinions in the voting window for hot events. When the interactive operation is to configure the image size in the configuration area, the page interactive system 100 can display an image corresponding to the image size in the preview area of ​​the configuration page, so that the user can configure the image size of the image in the content of the online page. When the interactive operation is to configure the graphic style in the configuration area, the page interactive system 100 displays the corresponding image and text in the preview area of ​​the configuration page according to the graphic style. In this way, the user can configure the style of the image and text in the content of the online page.

[0099] In some embodiments, the page interaction system 100 can determine the adapter 2241 corresponding to the interaction operation according to the interaction operation, and then display the interaction result in the configuration page according to the interaction logic of the adapter 2241. In some implementations, at least one adapter 2241 is encapsulated in the interaction engine 224, for example, two adapters, a first adapter and a second adapter, are encapsulated in the interaction engine 224. The first adapter and the second adapter have different functions.

[0100] In some embodiments, when the interactive operation is to configure voting information in the configuration area, the first adapter is used to provide interactive logic for the voting information, and the simulator 220 calls the first adapter to display the voting window corresponding to the voting information in the preview area of ​​the configuration page through the client 10. In other embodiments, when the interactive operation is to select an object in the configuration area, the second adapter is used to provide interactive logic for highlighting, and the simulator 10 calls the second adapter to highlight the page element corresponding to the object in the preview area of ​​the configuration page through the client 10.

[0101] In some embodiments, the page interaction system 100 may also compare the user identifier of the user who triggered the interactive operation with a preset identifier. When the user identifier matches the preset identifier, the interaction logic of the adapter corresponding to the interactive operation is loaded, and the interaction result is displayed in the configuration page according to the interaction logic. Among them, the user identifier can be a user name, a user identity number (identity, ID), etc. The preset identifier can be the identifier of an operator. In other embodiments, when the page interaction system 100 determines that the user identifier of the user who triggered the interactive operation does not match the preset identifier, it is determined that the user is a non-operator, and the interaction result will not be displayed to the non-operator in the configuration page.

[0102] In some implementations, the page interaction system 100 may request interaction data from a target interface according to the interaction logic of an adapter corresponding to the interaction operation. The target interface may be a cacheless interface, through which the interaction data may be directly obtained without caching. The interaction data may be data corresponding to an operation triggered by a user in a configuration page, such as data corresponding to a configuration operation performed on a page element in an online page. Then, the page interaction system 100 calls the loader to load the interaction data without caching according to preset loading parameters. The preconfigured loading parameters may be "nocache", which means cacheless loading. In this way, in this method, after the operator edits the content and / or style in the configuration page, the edited preview result can be quickly displayed in the configuration page, thereby improving the efficiency of online regression.

[0103] Next, the page interaction method provided in the embodiment of the present application is introduced using the scenario of configuring a landing page.

[0104] See also Figure 3 The instruction interaction diagram of the page interaction method shown, and FIG. 4A to FIG. 4D The configuration page of the client 10 is shown. The following describes the preview result of the page element corresponding to the object in the configuration area in the preview area viewed by the user through the client 10, such as Figure 3 As shown, the method includes:

[0105] S302: The client 10 receives a selection operation of an object in the configuration area by a user.

[0106] Figure 4A A schematic diagram of a configuration page 40 of a client 10 is shown. In some embodiments, the client 10 can pop up a source address input window 41 above the configuration page 40. The input window 41 includes an input area 411 and a confirmation control 412. The user can enter the source address of the landing page in the input area 411 and submit it to the client 10 through the confirmation control 412. In this way, the client 10 can receive the source address of the landing page configured by the user.

[0107] It should be noted that the client 10 receiving the source address input by the user by means of a pop-up window above the configuration page 40 is merely an illustration, and this application does not limit this. Those skilled in the art may choose other methods according to actual needs to enable the client 10 to receive the source address configured by the user, such as receiving the source address sent by the user through other clients.

[0108] See also Figure 4B After the client 10 receives the source address of the landing page configured by the user, the landing page 421 can be displayed in the preview area 42 of the configuration page 40, and the configurable content can be displayed in the configuration area 43, such as setting the top group, modifying the order of objects in the top group, editing the top content, etc.

[0109] The preview area 42 includes a plurality of page elements (such as Figure 4B In the dashed box), such as page element 4211, page element 4212, page element 4213, page element 4214, etc. Each page element corresponds to a corresponding hot event, for example, page element 4211 corresponds to "Ms. Zhang sponsors many poor students".

[0110] Configuration area 43 includes top group configuration area 431 and page content configuration area 432. The user can modify the order of page elements in the landing page in top group configuration area 431, and can also add new page elements (such as page elements corresponding to new hot events) in the landing page. The page content configuration area 432 displays objects corresponding to the page elements in the landing page 421. Figure 4B4321, object 4322 and object 4323 are shown. In the page content configuration area 432, the user is also supported to quickly search for objects in the page content configuration area 321.

[0111] The object in the configuration area 43 may be an object corresponding to a hot event in an online page, and the user may configure the object in the configuration area 43. In some embodiments, the user may configure different contents by selecting different tags in the page configuration area 432. For example, when the user selects event details, the user may configure the object 4321 in the configuration area 43, such as editing the title and summary of the object 4321.

[0112] In some implementations, the user can modify the title of object 4321 to "Quickly understand the content of XX Summit Forum", add relevant pictures to object 4321, edit object 4321 to a graphic style, and further, the user can edit the position of page element 4213 corresponding to object 4321 in the landing page, for example, configure page element 4213 to be displayed at the head of the landing page. In other embodiments, the user can also slide the page in the page content configuration area 432 to configure other objects.

[0113] In other embodiments, the user may also add a new object in the configuration area 43, and the new object may be an object corresponding to a newly added hot event. For example, the user may add an object corresponding to a hot event titled "XX mobile phone is online today" in the configuration area 43, and configure the style of the object in the preview area (e.g., text style).

[0114] See also Figure 4C After the user completes the configuration of the object 4321, the client 10 can preview the preview effect of the page element 4213 corresponding to the configured object 4321 in the preview area 42 in real time, and can also preview the page element 4215 corresponding to the new object 4324 in the preview area 42. Taking the user selecting the object 4321 as an example, the user can click the object 4321 in the configuration area 43 to select the object 4321, so that the client 10 can receive the user's selection operation on the object in the configuration area 43, so that the client 10 can display the page element 4213 corresponding to the object 4321 in the preview area 42 according to the selection operation.

[0115] S304 : the client 10 sends the identifier of the selected object to the operation subsystem 240 .

[0116] In some embodiments, the client 10 may exchange information with the server 20 through a postMessage function, for example, the client 10 sends the identifier of the selected object to the operation subsystem 240 of the server 20 .

[0117] In some embodiments, the client 10 stores a correspondence between an object and an identifier. After the user selects the object 4321 in the configuration area 43, the client 10 obtains the identifier of the object 4321 according to the correspondence. The identifier is used to mark the object 4321. For example, the identifier may be a group ID. In some embodiments, when the hot event is an article, the identifier may be the group ID of the article.

[0118] S306: The operation subsystem 240 sends the identifier of the selected object to the simulator 220.

[0119] After the operation subsystem 240 receives the identifier of the selected object 4321 sent by the client 10, the operation subsystem 240 transmits the identifier to the simulator 220 so that the simulator 220 determines the page element corresponding to the object 4321 according to the identifier.

[0120] S308: The simulator 220 determines the page element corresponding to the identifier.

[0121] In some embodiments, the simulator 220 stores the correspondence between the page elements and the identifiers. The simulator 220 determines the page element corresponding to the object 4321 (eg, Figure 4C Page element 4213).

[0122] S310: The simulator 220 generates loading information of the page element according to the set style.

[0123] Taking setting the style to highlight as an example, the simulator 220 can generate loading information of the page element 4213 according to the style to highlight the page element 4213.

[0124] S312 : The simulator 220 sends the loading information of the page element to the operation subsystem 240 .

[0125] S314 : the operation subsystem 240 sends the loading information of the page element to the client 10 .

[0126] In some embodiments, the simulator 220 may first transmit the loading information of the page element to the operation subsystem 240, and then the operation subsystem 240 transmits the loading information of the page element to the client 10. In other embodiments, the simulator 220 may also directly transmit the loading information of the page element to the client 10. The embodiments of the present application are not limited to this, and those skilled in the art may set the mode in which the simulator 220 transmits the loading information of the page element to the client 10 according to actual needs.

[0127] S316: The client 10 displays the page elements corresponding to the object in the preview area according to the set style based on the loading information.

[0128] The loading information is obtained according to the setting style, and the client 10 can determine the setting style according to the received loading information of the page element 4213. Then the client 10 displays the page element 4213 in the preview area 42 according to the setting style.

[0129] like Figure 4D As shown, the client 10 highlights the page element 4213 in the preview area 42 to highlight the page element 4213 corresponding to the object 4321 in the preview area 42. In some implementations, if the current page of the preview area 42 does not include the page element 4213, the client 10 may scroll the current page to a state including the page element 4213, so that the user can promptly view the position of the page element 4213 corresponding to the object 4321 in the preview area 42. In this way, the user can quickly locate the position of the page element 4213 in the preview area 42 through the highlighted page element 4213, thereby viewing the preview result of the page element 4213 corresponding to the object 4321 in the preview area 42, thereby improving the efficiency of regression testing.

[0130] Furthermore, the online page displayed in the preview area 42 is the online page previewed by the simulator 220. The logic code of the previewed online page and the logic code for realizing page interaction are independent of the logic code of the real online page and will not affect the real online page, thereby realizing the decoupling of the logic code of the previewed online page and the logic code for realizing page interaction from the logic code of the real online page.

[0131] In some embodiments, the simulator 220 determines that there is no page element corresponding to the identifier in the preview area 42, that is, there is no preview result of the page element corresponding to the object 4321 in the preview area. At this time, it can be determined that the preview of the object has failed, and a prompt message is fed back through the client 10 to indicate the preview failure.

[0132] Based on the above description, the method receives the user's selection operation on the object in the configuration area 43 through the configuration page 40 of the client 10, and sends the identifier of the selected object to the server 20, so that the server 20 determines the page element corresponding to the identifier, generates the loading information of the page element according to the set style, and then transmits it back to the client 10. The client 10 displays the page element corresponding to the selected object in the preview area 42 according to the loading information, for example, by highlighting or displaying the page element with animation effect, so as to assist the operator to quickly locate the position of the page element corresponding to the selected object in the preview area 42, thereby improving the efficiency of online regression. In addition, the previewed online page does not need to be cached, and can be displayed in real time on the client 10 after saving the edited content, reducing the waiting cost, getting rid of the constraints of third-party devices such as mobile phones, and improving the convenience of regression testing. Furthermore, the logic code of the previewed online page, the logic code for realizing page interaction and the logic code of the real online page are independent of each other, realizing logical decoupling.

[0133] Next, combine Figure 5 The instruction interaction diagram of the page interaction method shown, and FIG. 6A to FIG. 6B The configuration page of the client 10 shown in FIG. 1 shows the position of the object corresponding to the page element in the preview area 42 in the configuration area 43 viewed by the user through the client 10. Figure 5 As shown, the method includes:

[0134] S502: The client 10 receives a user's selection operation on a page element in the preview area.

[0135] The page element may be an element corresponding to the hot event in the online page. In some embodiments, the client 10 displays the online page (such as the landing page) in the preview area 42, and the user can click on the page element in the preview area 42 to select the page element. Fig. 6A As shown, the user can click on the page element 4214 in the preview area 42 , so that the client 10 can receive the user's selection operation on the page element 4214 in the preview area 42 .

[0136] S504: The client 10 sends the identifier of the selected page element to the simulator 220 .

[0137] In some embodiments, the simulator 220 stores a correspondence between page elements and identifiers. After the user selects the page element 4214 in the preview area 42 , the simulator 220 obtains the identifier of the page element 4214 according to the correspondence.

[0138] S506 : The simulator 220 sends the identifier of the selected page element to the operation subsystem 240 .

[0139] The simulator 220 sends the identifier to the operation subsystem 240 so that the operation subsystem 240 determines the object 4323 corresponding to the selected page element 4214 according to the identifier.

[0140] In some embodiments, the client 10 may also directly send the identifier of the page element 4214 to the operation subsystem 240. This embodiment of the present application is not limited to this, and those skilled in the art may set the method for the client 10 to transmit the identifier of the page element 4214 to the server 20 according to actual needs.

[0141] S508: The operation subsystem 240 determines the object corresponding to the identifier.

[0142] In some embodiments, the correspondence between the object and the identifier is stored in the operation subsystem 240 , and the operation subsystem can determine the object corresponding to the identifier based on the identifier sent by the simulator 220 .

[0143] S510: The operation subsystem 240 generates loading information of the object according to the set style.

[0144] Taking setting the style to highlight as an example, the operation subsystem 240 can generate loading information of the object 4323 according to the style so that the client can highlight the object 4323.

[0145] S512 : The operation subsystem 240 sends object loading information to the client 10 .

[0146] The operation subsystem 240 sends the loading information of the object 4323 to the client 10 so that the client 10 loads the object 4323 in the configuration area 43 according to the set style based on the loading information.

[0147] S514: The client 10 displays the object corresponding to the page element in the configuration area according to the set style based on the loaded information.

[0148] The loading information is obtained according to the setting style, and the client 10 can determine the setting style according to the received loading information of the object 4323. Then the client 10 displays the object 4323 in the configuration area 43 according to the setting style.

[0149] like Figure 6BAs shown, the client 10 highlights the object 4323 in the configuration area 43 to highlight the object 4323 corresponding to the page element 4214 in the configuration area 43. In other implementations, if the current page of the configuration area 43 does not include the object 4323, the client can scroll the current page to a state including the object 4323, so that the user can view the object 4323 corresponding to the page element 4214 in the configuration area 43 in a timely manner. In this way, the user can quickly locate the position of the object 4323 corresponding to the page element 4214 in the configuration area 43 through the highlighted object 4323, so that the user can configure the object 4323 and other operations, thereby improving the configuration efficiency of the online page.

[0150] Based on the above description, the method receives the user's selection operation on the page element in the preview area 42 through the configuration page 40 of the client 10, and sends the identifier of the selected page element to the server 20, so that the server 20 determines the object corresponding to the identifier, generates the loading information of the object according to the set style, and then transmits it back to the client 10. The client 10 displays the object corresponding to the selected page element in the configuration area 43 according to the loading information, for example, by highlighting or animating the object, thereby assisting the operator to quickly locate the position of the object corresponding to the selected page element in the configuration area 43, so that the operator can configure the object, thereby improving the configuration efficiency of the operator. In addition, after the user selects the page element in the preview area 42, the object corresponding to the page element is displayed in real time on the client 10, reducing the waiting cost.

[0151] Combination of the above Figures 1 to 6B The page interaction method provided in the embodiment of the present application is introduced in detail. The device and equipment provided in the embodiment of the present application will be introduced in conjunction with the accompanying drawings.

[0152] See also Figure 7 The schematic diagram of the structure of the page interaction device shown in FIG. 700 includes:

[0153] A display unit 702, used to display a configuration page, the configuration page including a preview area of ​​the online page and a configuration area of ​​the online page, the configuration area is used to configure the content and / or style of the online page, and the preview area is used to display the online page through a simulator;

[0154] The receiving unit 704 is used to receive an interactive operation triggered by a user through the configuration page;

[0155] The display unit 702 is further configured to display the interaction result in the configuration page according to the interaction operation.

[0156] In some possible implementations, the interactive operation includes an operation of selecting an object in the configuration area, and the display unit 702 is specifically configured to display page elements corresponding to the selected object in the preview area of ​​the configuration page by setting a style.

[0157] In some possible implementations, the interactive operation includes an operation of selecting a page element in the preview area, and the display unit 702 is specifically configured to display an object corresponding to the selected page element in the configuration area of ​​the configuration page by setting a style.

[0158] In some possible implementations, the interactive operation includes configuring at least one of voting information, picture size, and graphic style in the configuration area;

[0159] The display unit 702 is specifically used for:

[0160] In the preview area of ​​the configuration page, displaying a voting window according to the voting information; and / or,

[0161] In the preview area of ​​the configuration page, displaying a picture corresponding to the picture size; and / or,

[0162] In the preview area of ​​the configuration page, corresponding pictures and texts are displayed according to the graphic style.

[0163] In some possible implementations, the simulator includes a loader, and the receiving unit 704 is further configured to receive the source address of the online page configured by the user;

[0164] The display unit 702 is specifically configured to load the online page through a loader according to the source address, and display the online page in the preview area of ​​the configuration page.

[0165] In some possible implementations, the simulator also includes an interaction engine, which includes at least one adapter; the display unit 702 is specifically used to determine the adapter corresponding to the interaction operation based on the interaction operation; and display the interaction result in the configuration page according to the interaction logic of the adapter corresponding to the interaction operation.

[0166] In some possible implementations, according to the interaction logic of the adapter corresponding to the interactive operation, the display unit 702 is specifically used to load the interaction logic of the adapter corresponding to the interactive operation when the user identifier of the user triggering the interactive operation matches a preset identifier, and display the interaction result in the configuration page according to the interaction logic.

[0167] In some possible implementations, the display unit 702 is specifically used to request interactive data from the target interface according to the interactive logic of the adapter corresponding to the interactive operation; and call the loader to load the interactive data without caching according to preconfigured loading parameters to display the interactive results in the configuration page.

[0168] In some possible implementations, the online page includes a landing page.

[0169] According to the embodiment of the present application, the page interaction device 700 can correspond to executing the method described in the embodiment of the present application, and the above and other operations and / or functions of each module / unit of the page interaction device 700 are for realizing the process of the method in the above method embodiment, which will not be repeated here for the sake of brevity.

[0170] The embodiment of the present application also provides a page interaction device. The page interaction device may be a device running a client 10, and the page interaction device is used to implement the following Figure 7 Functions of the page interaction device 700 in the illustrated embodiment. The hardware architecture of the page interaction device is described below by taking a device running the client 10 as an example.

[0171] Figure 8 A schematic diagram of the structure of a device running a client 10 is provided, such as Figure 8 As shown, the device includes a bus 801, a processor 802, a communication interface 803 and a memory 804. The processor 802, the memory 804 and the communication interface 803 communicate with each other via the bus 801.

[0172] The bus 801 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0173] The processor 802 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0174] The communication interface 803 is used for external communication. For example, the communication interface 803 can be used to communicate with the server 20. The communication interface is used to send the identifier of the selected object to the server 20, so that the server 20 determines the page element corresponding to the object according to the identifier of the object, generates loading information of the page element and sends it to the terminal, and the client 10 running on the terminal can display the page element corresponding to the object in the preview area according to the set style according to the loading information.

[0175] The memory 804 may include a volatile memory, such as a random access memory (RAM). The memory 804 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0176] The memory 804 stores executable codes, and the processor 802 executes the executable codes to perform the page interaction method in the aforementioned embodiment.

[0177] Specifically, in implementing Figure 7 In the case of the embodiment shown, and Figure 7 When each module or unit of the page interaction device 700 described in the embodiment is implemented by software, the execution Figure 7 The software or program code required for the functions of each module / unit in the embodiment may be partially or completely stored in the memory 804. The processor 802 executes the program code corresponding to each unit stored in the memory 804 to execute the page interaction method in the above-mentioned embodiment.

[0178] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the page interaction method applied to the page interaction device 700.

[0179] The embodiment of the present application further provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part.

[0180] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer or data center to another website, computer or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0181] When the computer program product is executed by a computer, the computer executes any one of the page interaction methods in the embodiments of the present application. The computer program product may be a software installation package, and when any one of the page interaction methods in the embodiments of the present application needs to be used, the computer program product may be downloaded and executed on a computer.

[0182] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

Claims

1. A page interaction method, characterized in that: include: Displaying a configuration page, the configuration page comprising a preview area of ​​the online page and a configuration area of ​​the online page, the configuration area being used to configure the content and / or style of the online page, and the preview area being used to display the online page through a simulator; Receiving an interactive operation triggered by a user through the configuration page, and displaying an interactive result in the configuration page according to the interactive operation; The interactive operation includes an operation of selecting an object in the configuration area, and the displaying of the interactive result in the configuration page according to the interactive operation includes: The simulator determines the corresponding page element based on the object identifier of the object selected in the configuration area, generates loading information of the page element according to a set style, and the client displays the page element corresponding to the selected object in the preview area of ​​the configuration page according to the loading information of the page element by using a set style; The interactive operation includes an operation of selecting a page element in the preview area, and displaying the interactive result in the configuration page according to the interactive operation includes: The client sends the identifier of the page element selected in the preview area to the simulator, and the client displays the object corresponding to the selected page element in the configuration area of ​​the configuration page by setting a style according to the loading information of the object, wherein the object loading information is obtained by first determining the object corresponding to the identifier of the page element and then generating it according to the set style; The loading information is also used to indicate whether to display the interactive results in the configuration page in a non-cache manner.

2. The method according to claim 1, characterized in that: The interactive operation includes configuring at least one of voting information, picture size, and graphic style in the configuration area; The displaying the interaction result in the configuration page according to the interaction operation includes: In the preview area of ​​the configuration page, displaying a voting window according to the voting information; and / or, In the preview area of ​​the configuration page, displaying a picture corresponding to the picture size; and / or, In the preview area of ​​the configuration page, corresponding pictures and texts are displayed according to the graphic style.

3. The method according to claim 1 or 2, characterized in that: The simulator includes a loader, and the display configuration page includes: The source address of the online page configured by the user is received, the online page is loaded through a loader according to the source address, and the online page is displayed in the preview area of ​​the configuration page.

4. The method according to claim 3, characterized in that The simulator further comprises an interaction engine, wherein the interaction engine comprises at least one adapter; The displaying the interaction result in the configuration page according to the interaction operation includes: Determining an adapter corresponding to the interactive operation according to the interactive operation; According to the interaction logic of the adapter corresponding to the interaction operation, the interaction result is displayed in the configuration page.

5. The method according to claim 4, characterized in that The displaying the interaction result in the configuration page according to the interaction logic of the adapter corresponding to the interaction operation includes: When the user identifier of the user triggering the interactive operation matches the preset identifier, the interactive logic of the adapter corresponding to the interactive operation is loaded, and the interactive result is displayed in the configuration page according to the interactive logic.

6. The method according to claim 4 or 5, characterized in that: The displaying the interaction result in the configuration page according to the interaction logic of the adapter corresponding to the interaction operation includes: requesting interactive data from a target interface according to the interactive logic of the adapter corresponding to the interactive operation; The loader is called to load the interactive data without caching according to the preconfigured loading parameters, so as to display the interactive results in the configuration page.

7. The method according to claim 1 or 2, characterized in that: The online pages include landing pages.

8. A page interaction device, characterized in that: include: A display unit, used to display a configuration page, the configuration page including a preview area of ​​an online page and a configuration area of ​​the online page, the configuration area is used to configure the content and / or style of the online page, and the preview area is used to display the online page through a simulator; A receiving unit, used to receive an interactive operation triggered by a user through the configuration page; The display unit is further used to display the interaction result in the configuration page according to the interaction operation; The interactive operation includes an operation of selecting an object in the configuration area, and the display unit is specifically used to: the simulator determines the corresponding page element based on the object identifier of the object selected in the configuration area, generates loading information of the page element according to a set style, and the client displays the page element corresponding to the selected object in the preview area of ​​the configuration page according to the loading information of the page element in a set style; Alternatively, the interactive operation includes an operation of selecting a page element in the preview area, and the display unit is specifically configured to: the client sends an identifier of the selected page element in the preview area to the simulator, and the client displays the object corresponding to the selected page element in the configuration area of ​​the configuration page by setting a style according to the loading information of the object, and the process of obtaining the loading information of the object is: first determining the object corresponding to the identifier of the page element, and then generating it according to the set style; The loading information is also used to indicate whether to display the interactive results in the configuration page in a non-cache manner.

9. A page interaction device, characterized in that: The page interaction device includes a processor and a memory; The processor is used to execute instructions stored in the memory so that the page interaction device executes the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a page interaction device to execute a method as claimed in any one of claims 1 to 7.

11. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.