A method, device and system for building a page
By acquiring and utilizing page information to build a page, the problem of inaccurate page element identification in the prior art is solved, the accuracy of page element identification and construction is improved, and the integrity of data collection is enhanced.
Patent Information
- Application Number
- CN202010622985.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-07-01
AI Technical Summary
In the existing page construction methods, when the server identifies page elements through image recognition, there is a possibility of inaccurate or incorrect identification, making it difficult to guarantee the accuracy of page element identification and page construction accuracy.
The server obtains the page information from the terminal, determines the page elements and their layout relationships based on the page information, constructs the page, and ensures that the page elements are arranged according to the layout relationships on the page, thereby improving the accuracy of identifying page elements and building the page.
By obtaining page information to build a page, the accuracy of page element identification and page construction is improved, the associated information of page elements is retained, and the flexibility of setting circle selection rules and the integrity of data collection are enhanced.
Smart Images

Figure CN111931102B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and in particular, to a method, device and system for constructing a page. Background Art
[0002] Big data analysis is a common application based on big data technology. Through big data analysis, we can obtain information such as user behavior and the degree of user dependence on products, thereby guiding merchants to optimize products (for example, optimizing product functions or pages based on user feedback). It can also guide merchants to optimize operational strategies (for example, formulate corresponding operational strategies for specific groups of people to improve return on investment).
[0003] The basis of big data analysis is data collection. For example, if you need to obtain information such as user behavior and the degree of user dependence on the product, you need to collect user-related data for big data analysis. Among them, user-related data includes demographic information (for example, age, gender, city, order address, etc.), user device information (for example, brand, model, operating system, operator, application, etc.), user behavior (recent purchases, active time, application use, etc.), business areas (payment, posting, video playback, music playback, etc.), life cycle (registration, activity, retention, churn, etc.), real-time events (search, click, install, browse, add to cart, purchase, etc.).
[0004] In order to collect data, the server needs to build a page that can set the tracking point information. In the existing page construction method, the server generally identifies the page elements in the page based on the screenshot corresponding to the page reported by the terminal. Then, the server builds the page based on the identified page elements. Since the server uses image recognition to identify the page elements in the screenshot, there is a possibility that the page elements cannot be identified or are identified incorrectly. Therefore, the recognition accuracy of the page elements is difficult to guarantee. Summary of the invention
[0005] The embodiments of the present application provide a method, device and system for constructing a page, which can improve the accuracy of page element recognition.
[0006] In a first aspect, a method for constructing a page is provided, comprising: a server obtains page information corresponding to an application from a first terminal, the page information being used to determine one or more page elements and a layout relationship between the one or more page elements; the server constructs a page of the application according to the page information, the page including the one or more page elements, and the one or more page elements are arranged in the page according to the layout relationship; the server updates the page, and determines the updated page as a target page corresponding to the application.
[0007] In the above embodiment, the server obtains page information corresponding to the application from the first terminal, and constructs the page of the application according to the page information. Since the page information is used to determine one or more page elements and the layout relationship between one or more page elements, the page constructed by the server includes one or more page elements, and the one or more page elements are arranged in the page according to the layout relationship. Therefore, compared with identifying page elements in the screenshot through image recognition methods, the accuracy of page element recognition is improved, and the accuracy of the constructed page is further improved.
[0008] In a possible implementation of the first aspect, the page information includes the one or more page elements and layout information, and the layout information is used to indicate the layout relationship between the one or more page elements. The page elements in the page can be directly identified based on the page information, thereby improving the accuracy of page element identification.
[0009] In a possible implementation of the first aspect, the page information is a resource file of the application, the resource file includes the one or more page elements and layout information, and the layout information is used to indicate the layout relationship between the one or more page elements. The server constructs the page of the application according to the page information, including: the server parses the resource file to obtain the one or more page elements and layout information; the server constructs the page of the application according to the one or more page elements and layout information. The server parses the resource file to obtain the one or more page elements and layout information, and then constructs the page according to the one or more page elements and layout information, thereby improving the accuracy of page element recognition in the process of page construction.
[0010] In a possible implementation of the first aspect, the page information is also used to determine association information between the one or more page elements, and / or association information between the one or more page elements and the target page, so that the association information of the page elements is retained in the constructed page, and more selection rules can be set when setting selection rules for the constructed page.
[0011] In a possible implementation manner of the first aspect, the method further includes:
[0012] The server determines that the second terminal has the authority to visually circle the embedding point, and the server has the target page that the second terminal requests to circle, and sends a web page corresponding to the target page for display on the interface of the second terminal to the second terminal, so that the user can view the target page through the second terminal and set the circling rule in the second terminal. After the user sets the circling rule, the server receives the circling rule of the target page from the second terminal, and the circling rule is used to determine the page element to be circled among the one or more page elements, and the embedding point information corresponding to the circled page element.
[0013] In a possible implementation of the first aspect, the embedding information corresponding to the circled page element includes event information corresponding to the circled page element and event parameters corresponding to the event information.
[0014] In a possible implementation of the first aspect, the event parameters corresponding to the event information include at least one of a parameter identifier, a parameter name, a parameter type, a parameter source, and a parameter value, so that more embedding information can be set for the circled page element.
[0015] In a possible implementation manner of the first aspect, before the server determines that the second terminal has permission to visually circle the embedding point, and the server has the target page requested to be circled by the second terminal, the method further includes:
[0016] The server receives a request message from the second terminal, and the request message includes the page identifier of the page requested to be circled by the second terminal, and the identifier of the second terminal. Correspondingly, the server determines that the second terminal has the authority to visually circle the buried points, and that the server has the target page, including: the server determines that the second terminal has the authority to circle the target page based on the identifier of the second terminal, and the server determines that the server has the target page based on the page identifier. The server can determine whether the second terminal has the authority to circle the target page based on the identifier of the second terminal. If the second terminal has the authority to circle the target page, it can further query the server whether it has the target page requested to be circled by the second terminal, without the need for other steps to trigger the circle request, thereby improving the efficiency of setting the circle rule.
[0017] In a possible implementation manner of the first aspect, the method further includes: the server sending the selection rule to a third terminal, and the server receiving data collected according to the selection rule and sent by the third terminal, so that data of corresponding page elements can be collected according to the selection rule.
[0018] In a second aspect, a method for constructing a page is provided, comprising:
[0019] The first terminal determines page information corresponding to the application, where the page information is used to determine one or more page elements included in the page of the application and a layout relationship between the one or more page elements;
[0020] The first terminal sends the page information to a server.
[0021] In a possible implementation manner of the second aspect, the page information is a resource file of the application, and the resource file includes one or more page elements and a layout relationship between the one or more page elements.
[0022] In a possible implementation manner of the second aspect, the page information is one or more page elements and a layout relationship between the one or more page elements.
[0023] In a possible implementation manner of the second aspect, the first terminal determines page information corresponding to the application, including:
[0024] The first terminal parses a resource file of the application program, and determines the one or more page elements and a layout relationship between the one or more page elements from the resource file.
[0025] In a third aspect, a device for constructing a page is provided, comprising:
[0026] An acquisition module, used to acquire page information corresponding to the application from the first terminal, wherein the page information is used to determine one or more page elements and a layout relationship between the one or more page elements;
[0027] A construction module, configured to construct a page of the application according to the page information, wherein the page includes the one or more page elements, and the one or more page elements are arranged in the page according to the layout relationship;
[0028] An update module is used to update the page and determine the updated page as a target page corresponding to the application. In a possible implementation of the third aspect, the page information is the one or more page elements and layout information, and the layout information is used to indicate a layout relationship between the one or more page elements.
[0029] In a possible implementation manner of the third aspect, the page information is a resource file of the application, the resource file includes the one or more page elements and layout information, and the layout information is used to indicate a layout relationship between the one or more page elements;
[0030] The construction module is specifically used for: the server to parse the resource file to obtain the one or more page elements and layout information, and the server to construct the page of the application according to the one or more page elements and layout information.
[0031] In a possible implementation manner of the third aspect, the page information is further used to determine association information between the one or more page elements, and / or association information between the one or more page elements and the target page.
[0032] In a possible implementation of the third aspect, the device for constructing a page also includes a circling module, which is used to: determine whether the second terminal has the authority to visually circle the embedding points, and that the server has the target page that the second terminal requests to circle; send a web page corresponding to the target page for display on an interface of the second terminal to the second terminal; receive a circling rule for the target page from the second terminal, the circling rule being used to determine the circled page elements among the one or more page elements, and the embedding point information corresponding to the circled page elements.
[0033] In a possible implementation of the third aspect, the embedding information corresponding to the circled page element includes event information corresponding to the circled page element and event parameters corresponding to the event information.
[0034] In a possible implementation manner of the third aspect, the event parameter corresponding to the event information includes at least one of a parameter identifier, a parameter name, a parameter type, a parameter source, and a parameter value.
[0035] In a possible implementation manner of the third aspect, the apparatus for constructing a page further includes a verification module, configured to receive a request message from a second terminal, wherein the request message includes a page identifier of a page requested to be circled by the second terminal and an identifier of the second terminal;
[0036] Correspondingly, the circle selection module is further specifically used to: determine, according to the identifier of the second terminal, that the second terminal has the authority to circle the target page, and determine, according to the page identifier, that the server has the target page.
[0037] In a possible implementation manner of the third aspect, the apparatus for constructing a page further includes a data collection module, configured to send the selection rule to a third terminal, and receive data collected according to the selection rule and sent by the third terminal.
[0038] In a fourth aspect, a device for constructing a page is provided, comprising:
[0039] A determination module, used to determine page information corresponding to an application, wherein the page information is used to determine one or more page elements included in a page of the application and a layout relationship between the one or more page elements;
[0040] The sending module is used to send the page information to the server.
[0041] In a possible implementation manner of the fourth aspect, the page information is a resource file of the application, and the resource file includes one or more page elements and a layout relationship between the one or more page elements.
[0042] In a possible implementation manner of the fourth aspect, the page information is one or more page elements and a layout relationship between the one or more page elements.
[0043] In a possible implementation manner of the fourth aspect, the determination module is specifically used to parse a resource file of the application, and determine the one or more page elements and a layout relationship between the one or more page elements from the resource file.
[0044] In a fifth aspect, a server is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for constructing a page as described in the first aspect above is implemented.
[0045] In a sixth aspect, a terminal is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for constructing a page as described in the second aspect above is implemented.
[0046] In a seventh aspect, a system for constructing a page is provided, wherein the system for constructing a page comprises the server as described in the fifth aspect above, and the terminal as described in the sixth aspect above.
[0047] In an eighth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for constructing a page as described in the first aspect above or the method for constructing a page as described in the second aspect above is implemented.
[0048] In a ninth aspect, a computer program product is provided. When the computer program product is run on a terminal device, the terminal device executes the method for constructing a page as described in the first aspect or implements the method for constructing a page as described in the second aspect.
[0049] It can be understood that the beneficial effects of the second to ninth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a system for constructing a page provided in an embodiment of the present application;
[0051] Figure 2 An architectural diagram of a system for building pages provided in an embodiment of the present application;
[0052] Figure 3 A flow chart of a method for constructing a page provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of a page of an application provided in an embodiment of the present application;
[0054] Figure 5 A schematic diagram of a page of an application provided by another embodiment of the present application;
[0055] Figure 6 A schematic diagram of page elements on a page of an application provided in an embodiment of the present application;
[0056] Figure 7 A schematic diagram of page elements on a page of an application provided by another embodiment of the present application;
[0057] Figure 8 A flow chart of a method for constructing a page provided in another embodiment of the present application;
[0058] Fig. 9 A schematic diagram of a page for setting circle selection rules provided in an embodiment of the present application;
[0059] Fig.10 A schematic diagram of setting event information of a circled page element provided in an embodiment of the present application;
[0060] Fig.11 A schematic diagram of setting event parameters provided in the first embodiment of the present application;
[0061] Fig.12 A schematic diagram of setting event parameters provided in the second embodiment of the present application;
[0062] Fig.13 A schematic diagram of setting event parameters provided in the third embodiment of the present application;
[0063] Fig.14 A schematic diagram of setting event parameters provided in the fourth embodiment of the present application;
[0064] Fig.15A schematic diagram of a page for setting circle selection rules provided in an embodiment of the present application;
[0065] Fig.16 A flow chart of a method for constructing a page provided in yet another embodiment of the present application;
[0066] Fig.17 A schematic diagram of the structure of a server provided in an embodiment of the present application;
[0067] Fig.18 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0069] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0070] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0071] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0072] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0073] At present, visual tracking technology is widely used in data collection. Visual tracking refers to an independent software development kit (SDK) provided by the analysis service provider, which provides the ability to visually circle tracking on the cloud side. After the developer integrates this SDK during the development process, there is no need to manually write the code for reporting data. Instead, the developer can circle specific locations on the cloud side to set tracking rules when needed, and then the SDK will automatically collect data according to the rules set by the developer and report it to the analysis server on the cloud side for analysis. Compared with the existing tracking technology, visual tracking does not require manual code writing. When adding new data items, there is no need to release a new version. Developers only need to circle and set collection rules. The operation is not complicated, and the collected data items can be dynamically adjusted as needed to avoid collecting invalid data and occupying user traffic and server resources.
[0074] In the existing data collection method based on visual point-of-sale, the user triggers the visual selection function on the terminal through a preset trigger method, wherein the preset trigger method may be a specific gesture or a method in which the application scans a preset QR code. After the visual selection function is triggered, the terminal captures the image of the application page and reports the captured image to the server through the SDK. The server identifies the page elements in the captured image by an image recognition method, wherein the page elements may be buttons, text boxes, input boxes, etc. After identifying the page elements, the server constructs the page according to the identified page elements. Since the page elements used to construct the page are obtained by identifying the images captured by the terminal through an image recognition method, there may be page elements that cannot be identified or are incorrectly identified, further resulting in low accuracy of the constructed page. On the other hand, the server cannot parse the associated information of the page elements based on the captured image. For example, for the "Submit Order" button on the page, it can only record the event of clicking the "Submit Order" button, and cannot obtain the product information and page information related to the submitted order. Therefore, when the subsequent terminal sets the selection rule according to the selected page elements and the corresponding point-of-sale information, it can only set a simple selection rule, so that the complete page data cannot be collected. On the other hand, the terminal needs to trigger the visual selection function through a preset trigger method, and the selection operation has many steps and is not efficient.
[0075] In order to solve the above problems, an embodiment of the present application provides a method for constructing a page. In this method, a server constructs a page of an application based on page information, and determines a target page corresponding to the application based on the constructed page. Since the page information is used to determine one or more page elements and the layout relationship between one or more page elements, when the server constructs the page of the application, it can accurately identify the page elements in the page of the application and the layout of the page elements in the page. Compared with identifying page elements in a screenshot through image recognition methods, the accuracy of page element recognition is improved, and the accuracy of the constructed target page is further improved.
[0076] like Figure 1 As shown, Figure 1 A system for constructing a page to which the method for constructing a page provided in an embodiment of the present application is applicable is shown, and the system includes a first terminal 100 and a server 400. The first terminal 100 can communicate with the server 400.
[0077] In a possible implementation, the system may further include: a second terminal 200 and a third terminal 300 , and both the second terminal 200 and the third terminal 300 are capable of communicating with the server 400 .
[0078] The communication method between the first terminal 100, the second terminal 200, and the third terminal 300 and the server 400 can be a wired method or a wireless method, which is not limited in the embodiment of the present application.
[0079] The server 400 at least has the function of constructing a target page corresponding to a certain application. The first terminal 100 is used to provide the server 400 with the page information of the application. The description of the page information of the application is referred to the description in the following embodiment and will not be repeated here.
[0080] The second terminal 200 is used to request the server 400 to circle the target page, and to set a circle selection rule on the target page.
[0081] The third terminal 300 is used to obtain the selection rule of the target page from the server 400 , collect data according to the selection rule, and then send the collected data to the server 400 .
[0082] The first terminal 100, the second terminal 200 and the third terminal 300 may be the same terminal or different terminals. It should be understood that when the first terminal 100, the second terminal 200 and the third terminal 300 are the same terminal, the system may not have the second terminal 200 and the third terminal 300. In this case, the first terminal 100 also has the functions of the second terminal 200 and the third terminal 300. When the second terminal 200 and the third terminal 300 are the same terminal, but the first terminal 100 and the second terminal 200 are not the same terminal, the system may not have the third terminal 300. And so on, no further description is given here.
[0083] Exemplarily, the first terminal 100, the second terminal 200 and the third terminal 300 in the embodiment of the present application can be operable devices such as mobile phones, tablet computers, handheld computers, personal digital assistants (PDAs), etc. The embodiment of the present application does not impose any special restrictions on the specific form / type of the terminal devices.
[0084] The server 400 may be an independent physical server or a server cluster composed of multiple physical servers. For example, the developer of an application or web page uses the first terminal 100 to access the server 400, the operator of the application or web page uses the second terminal 200 to access the server 400, and the terminal user of the application or web page uses the third terminal 300 to access the server.
[0085] like Figure 2As shown, the first terminal includes a page information identification plug-in, which is installed in the integrated development environment (IDE) of the application. The page information identification plug-in is used to obtain the resource file of the application, parse the resource file of the application, and obtain the page information. The first terminal can send page information or resource files to the server, and the server includes a page construction module, a selection user management module, a visual selection rule management module, an event receiving module, and a reporting module. The page construction module is used to receive the page information sent by the first terminal, and build the target page corresponding to the application according to the page information. The selection user management module is used to determine whether the second terminal that sends the selection request has the authority to select the target page. If the second terminal has the authority to select the target page, the second terminal is allowed to access the target page. The visual selection rule management module is used to receive the selection rule set for the target page from the second terminal, and send the selection rule to the third terminal. The event receiving module is used to receive the event reported by the third terminal according to the selection rule, and the reporting module is used to analyze the event received by the event receiving module. The second terminal is installed with an application corresponding to the constructed target page, and the IDE of the application is installed with a visual tracking software development kit (SDK). The second terminal logs in to the server through the application, and the server sends the target page for display on the second terminal to the second terminal, and the visual selection module of the visual tracking SDK sends the selection rules set by the user to the server. The third terminal is installed with an application corresponding to the constructed target page, and the IDE of the application is installed with a visual tracking SDK. If the third terminal accesses the server, the event collection agent module of the visual tracking SDK obtains the selection rules from the server and reports events to the server according to the selection rules.
[0086] Combining the above systems, such as Figure 3 As shown, Figure 3 A flow chart of a method for constructing a page provided in an embodiment of the present application, the method comprising:
[0087] S101. A first terminal sends page information corresponding to an application to a server. Correspondingly, the server obtains page information corresponding to the application from the first terminal. The page information is used to determine one or more page elements and a layout relationship between the one or more page elements.
[0088] On the one hand, the first terminal can actively send the page information corresponding to the application to the server. On the other hand, the first terminal can send the page information corresponding to the application to the server based on the trigger of the server. This embodiment of the application does not limit this.
[0089] It should be understood that before the first terminal sends the page information corresponding to the application to the server, a communication connection has been established between the first terminal and the server. For example, the first terminal uses the page information identification plug-in in the IDE to communicate with the server.
[0090] For the specific content of the page information, please refer to the description in the following embodiment, which will not be repeated here.
[0091] S102: The server constructs a page of the application according to the page information. The page includes one or more page elements, and the one or more page elements are arranged in the page according to a layout relationship.
[0092] For example, Figure 4 The page of the constructed application includes page element 41, page element 42, page element 43, page element 44, page element 45 and page element 46, and each page element is arranged according to a position determined by a layout relationship.
[0093] In one possible implementation, if the page information is also used to indicate association information between one or more page elements, and association information between one or more page elements and a page, then association information exists between the page elements in the page of the application built by the server and other page elements or other pages.
[0094] For example, Figure 5 (A) and Figure 5 (B) in the figure shows two pages of the application. Figure 5 The jump page corresponding to the page element 51 in (A) is Figure 5 In the page (B), page element 51 and Figure 5 There is related information on the page (B) in Figure 5 The page element 52 in (B) and Figure 5 The page corresponding to (A) in the above table contains related information. Figure 5 There is an association relationship between the page element 52 and the page element 53 in (B).
[0095] S103: The server updates the page, and determines the updated page as the target page corresponding to the application.
[0096] In a possible implementation, step S103 in the embodiment of the present application may be implemented in the following manner: the server uses the page for constructing the application as the target page corresponding to the application.
[0097] In another possible implementation, after the server constructs the page of the application, the user accesses the page constructed by the server through the first terminal. If the user determines that the page construction is wrong, the server can update the constructed page according to the adjustment instruction input by the user. The server then determines the updated page as the target page corresponding to the application.
[0098] For example, if the identifier of one of the page elements in the constructed page is wrong, the server receives the identifier of the adjusted page element input by the user, updates the constructed page, and obtains the target page.
[0099] In the above embodiment, the server constructs the page of the application according to the page information. Since the page information is used to determine one or more page elements and the layout relationship between one or more page elements, the server can accurately identify the page elements in the page of the application when constructing the page of the application. Compared with identifying the page elements in the screenshot by the image recognition method, the accuracy of the page element recognition is improved, and the accuracy of the constructed page is further improved. Furthermore, in addition to the page elements and layout information, the page information also includes the association information between one or more page elements, and the association information between one or more page elements and the page. Therefore, the page constructed according to the page information can retain more information related to the page elements, for example, the page identifier of the page after the jump corresponding to the current button can be obtained, and the web link corresponding to the text in the text box can be obtained, so that the user can set more buried point information in the constructed page to generate more circle selection rules and improve the completeness of data collection.
[0100] Example 1) The first terminal parses the resource file of the application to obtain one or more page elements and layout information. The layout information is used to indicate the layout relationship between the one or more page elements.
[0101] In this example 1), the method provided by the embodiment of the present application may also include before S101: the first terminal obtains a resource file of the application through a page information identification plug-in in the IDE, and the resource file includes one or more page elements and layout information, and the layout information is used to indicate the layout relationship between the one or more page elements. The first terminal parses the above resource file to obtain one or more page elements and layout information. Specifically, Figure 2As shown, the resource file includes *.m file and layout file, *.m file is M file, layout file is page layout file, the first terminal parses *.m file and layout file to obtain one or more page elements and layout information corresponding to the Android system. The resource file also includes *.storyboard file, the first terminal parses *.storyboard file to obtain one or more page elements and layout information corresponding to the IOS system.
[0102] Correspondingly, in example 1), the page information is one or more page elements and layout information. That is, in step S101, the first terminal sends one or more page elements and layout information to the server.
[0103] Optionally, the resource file also includes: association information between one or more page elements, and association information between one or more page elements and the page, then the first terminal can also parse the resource file to obtain the association information between one or more page elements, and association information between one or more page elements and the page. Then, the first terminal can also send the association information between one or more page elements, and association information between one or more page elements and the page to the server.
[0104] Specifically, Figure 2 As shown, the resource file includes a strings.xml file and an AndroidManifest.xml file. The strings.xml file is used to define the string information corresponding to the page elements, such as the name, logo, link and other information corresponding to the page elements. The AndroidManifest.xml file is an application entry file that defines the page information of the application. The first terminal parses the strings.xml and AndroidManifest.xml files to obtain the association information between one or more page elements corresponding to the Android system, and the association information between one or more page elements and the page. The resource file also includes a *.storyboard file. The first terminal parses the *.storyboard file to obtain the association information between one or more page elements corresponding to the IOS system, and the association information between one or more page elements and the page.
[0105] For example, the page elements may be controls such as buttons, text boxes, and input boxes on the page of the application.
[0106] For example, Figure 6 A page is constructed based on the page information of the application. The constructed page corresponds to the page of the client application. Figure 6 In the figure, text box 61, text box 62, text box 63 and button 64 are page elements. Figure 7A page is constructed based on the page information of the application. The constructed page corresponds to the page in the web version of the application. Figure 7 In the figure, button 71, text box 72, button 73, and text box 74 are page elements.
[0107] Example 2) The server parses the resource file of the application to obtain one or more page elements and layout information.
[0108] In this example 2), the page information is a resource file of an application program. The resource file includes one or more page elements and layout information. The layout information is used to indicate a layout relationship between one or more page elements.
[0109] Accordingly, step S102 in the embodiment of the present application can be implemented in the following manner: the server parses the resource file to obtain the one or more page elements and layout information. The server constructs the page of the application according to the one or more page elements and layout information.
[0110] In another possible implementation, the resource file may further include association information between one or more page elements, and association information between one or more page elements and a page.
[0111] It should be understood that in example 2), what the first terminal sends to the server in step S101 is actually the resource file of the application.
[0112] To describe example 2) in detail, an example is given below: Figure 2 As shown, in an embodiment of the present application, during the compilation stage of the application's page, the first terminal identifies the plug-in to package the resource files of the application through the page information in the IDE, and sends the resource files of the application to the server. Among them, the resource file is a file from which the page information of the application can be read. Exemplarily, the resource files of the application include the activity_main.xml, strings.xml, styles.xml, AndroidManifest.xml and other files used to describe the page information of the application in the Android system, and the *.storyboard file of the application in the iOS system. Among them, activity_main.xml is a page layout file, strings.xml is used to describe the mapping relationship between resource identifiers and text content, styles.xml is a page style file used to describe page style information, and AndroidManifest.xml is the entry file of the Android application. Similarly, the storyboard file is used to describe the page information of the application in the iOS system.
[0113] After receiving the resource file of the application, the server parses the resource file to obtain one or more page elements and layout information, where the layout information is used to indicate the layout relationship between the one or more page elements.
[0114] For example, page elements include corresponding page identifiers (e.g., page 1, page 2, page 3, etc.), types of page elements (e.g., text boxes, buttons, drop-down lists, check boxes, radio buttons, etc.), identifiers of page elements (e.g., text box 1, text box 2, button 1, button 2, etc.), text content corresponding to page elements (e.g., web page links corresponding to text boxes, button names corresponding to buttons, etc.), and states of page elements (e.g., whether page elements are selected). The layout relationship between one or more page elements includes the position of the page elements and the positional relationship between each page element. In a possible implementation, the server parses the resource file and also obtains association information between one or more page elements, association information between one or more page elements and pages, etc.
[0115] In one possible implementation, Figure 8 As shown, the method provided in the embodiment of the present application may also include:
[0116] S104: The second terminal sends a request message to the server. The request message includes the page identifier of the page requested to be circled by the second terminal and the identifier of the second terminal. Correspondingly, the server receives the request message from the second terminal.
[0117] Specifically, when the second terminal detects the operator's circle setting instruction, the page identifier of the page currently displayed on the second terminal is obtained, and the page identifier and the identifier of the second terminal are sent to the server. The page displayed on the second terminal is the page of the application installed on the second terminal, and the application installed on the second terminal corresponds to the page of the application constructed by the server, that is, the page information of the application installed on the second terminal is the same as the page information sent by the first terminal and received by the server.
[0118] The identifier of the second terminal may be the account information of the user logging into the application or the device identifier of the second terminal. The device identifier of the second terminal may be the International Mobile Equipment Identity (IMEI), the Unique Device Identifier (UDID), the anonymous device identifier or the advertising identifier of the second terminal.
[0119] S105: The server determines, according to the request information, that the second terminal has permission to visually circle the embedding point, and the server has the target page requested to be circled by the second terminal;
[0120] Specifically, a preset list of circled users is stored in the server, and the preset list of circled users is used to store a user whitelist that can be circled. After receiving the request information sent by the second terminal, the server queries whether there is an identifier of the second terminal in the user whitelist. If not, it is determined that the second terminal does not have the authority to circle the target page. Further, if the server determines that the second terminal does not have the authority to circle the target page, it sends a first prompt message to the second terminal to prompt that the second terminal does not have the authority to circle the target page, and prompts the user to switch users or devices. If the identifier of the second terminal exists in the user whitelist, it is determined that the second terminal has the authority to circle the target page. After determining that the second terminal has the authority to circle the target page, the server queries whether there is a target page corresponding to the page identifier sent by the second terminal on the server. If the server does not have a target page corresponding to the page identifier, a second prompt message is sent to the second terminal to prompt that the page requested to be circled by the second terminal is not found. If the server has a target page corresponding to the page identifier, it is determined that there is a page requested to be circled by the second terminal. Since the server can determine whether the second terminal has the authority to circle the target page based on the user whitelist and the identifier of the second terminal, the user can be allowed to set the circle selection rules for the target page through the second terminal without the need for specific gestures or scanning and other triggering operations. Therefore, the operation steps of the operator before the circle selection setting are reduced, thereby improving the efficiency of the circle selection setting.
[0121] In other possible implementations, the preset circled user list includes a user whitelist that can be circled and a corresponding identification type. After obtaining the identification and identification type of the second terminal sent by the second terminal, the server queries whether the identification of the second terminal exists in the user whitelist. If so, it is determined whether the identification type sent by the second terminal is the same as the identification type corresponding to the user whitelist. If they are the same, it is determined that the second terminal has the authority to circle the target page, thereby improving the accuracy of identity authentication.
[0122] S106: The server sends a web page corresponding to the target page for display on the interface of the second terminal to the second terminal. Correspondingly, the second terminal receives the target page and displays the target page on the interface.
[0123] Specifically, if the second terminal has the authority to circle the target page, and the server has the target page that the second terminal requests to circle, the user is allowed to log in to the server through the second terminal and access the target page corresponding to the page identifier. In an embodiment of the present application, the server sends the web page corresponding to the target page to the second terminal according to the page identifier. After receiving the web page corresponding to the target page, the second terminal opens a preset browser and displays the web page corresponding to the target page on the interface of the second terminal through the preset browser. In a possible implementation, after the user logs in to the server through the second terminal, he can access the circled user list on the server, and the server modifies the user whitelist of the circled user list according to the modification instruction sent by the second terminal.
[0124] S107: The second terminal receives the selection rule set by the user on the target page.
[0125] Specifically, when the web page corresponding to the target page is displayed on the interface of the second terminal, the user can set the circle selection rule on the web page corresponding to the target page through the second terminal.
[0126] S108: The second terminal sends the target page selection rule to the server, and the server receives the target page selection rule from the second terminal. The selection rule is used to determine the page element to be selected from one or more page elements, and the embedding information corresponding to the selected page element.
[0127] Exemplarily, when the second terminal detects that the user selects a page element on the web page corresponding to the target page, it obtains the identifier of the selected page element, sends the identifier of the selected page element to the server, and the server determines the selected page element based on the identifier of the selected page element, marks the selected page element as a circled page element, and receives the burying point information set by the user for the circled page element.
[0128] For example, Fig. 9 As shown, if the second terminal detects that the "Next Question" button is selected, the identifier corresponding to the "Next Question" button is sent to the server, and the server uses the "Next Question" button as the circled page element to receive the embedding information set by the operator for the "Next Question" button.
[0129] In a possible implementation, the tracking point information includes the event information corresponding to the circled page element and the event parameters corresponding to the event information. Specifically, when the server marks the selected page element as the circled page element, it sends an instruction to add event information and event parameters to the second terminal to prompt the operator to add the corresponding event information and event parameters. Among them, the event information corresponding to the circled page element includes an event identifier and an event name, and the event parameters corresponding to the event information include at least one of a parameter identifier, a parameter name, a parameter type, a parameter source, and a parameter value.
[0130] For example, Fig.10 As shown, after the server marks the "Next Question" button as a circled page element, it sends instructions for adding event information and event parameters to the second terminal. A prompt box for adding the circled event pops up on the interface of the second terminal, and the event identifier and event name entered by the operator are received. For example, an event identifier "Click next question" and an event name "Next question" can be added to the "Next Question" button. If the second terminal detects that the "Submit" button is selected, the event identifier and event name entered by the operator are sent to the server. If the second terminal detects the operation of clicking the "Add Parameters" button, a prompt box for adding the circled event parameters pops up on the interface of the second terminal, and the event parameters corresponding to the event information entered by the operator are received. Exemplarily, as Fig.11 As shown, the event parameters corresponding to the event information input by the operator may include parameter identification, parameter name, parameter type, parameter source and parameter value. Among them, the parameter identification is the identification of the page element set by the operator or the identification corresponding to the data to be collected, the parameter name is the name corresponding to the data to be collected set by the operator, the parameter type is the data type of the data to be collected, the parameter source includes any one of the page element, rule, fixed value and built-in variable, and the parameter source corresponds to the parameter value.
[0131] For example, if the selected parameter source is a page element of the current page, the corresponding parameter value is an attribute value of the page element of the current page, for example, a text attribute of the page element of the current page or an identifier of the page element, and the set embedding information is to collect one of the attribute values of the page element of the current page. Fig.11 As shown in the figure, in the event parameters added for the "Next Question" button, the parameter identifier is "Title", the parameter source is the page element of the current page, and the parameter value is "Text Attribute". The set tracking point information is that when the operation of clicking the "Next Question" button is detected, the text corresponding to the page element "Title" is collected.
[0132] If the selected parameter source is a fixed value, the corresponding parameter value is the parameter value entered by the user, and the set tracking point information is to collect data when the parameter value is the parameter value entered by the user. For example, Fig.12 In the event parameter added for the "Next Question" button, the parameter is identified as "Test Parameter", the parameter source is a fixed value, and the parameter value is "Test Value". The set tracking point information is that when the operation of clicking the "Next Question" button is detected, if the value of the "Test Parameter" of the page element is "Test Value", data collection is performed.
[0133] If the selected parameter source is a rule, the corresponding parameter value is the edit expression corresponding to the page element of the current page, and the set tracking point information is to collect data when the edit expression is met. For example, Fig.13 In the event parameter added for the "Next Question" button, the parameter source is the rule, and the parameter value is "Question == The largest planet in the solar system is Jupiter". The set tracking point information is that when the operation of clicking the "Next Question" button is detected, if "Question == The largest planet in the solar system is Jupiter" is satisfied, data collection is performed.
[0134] If the selected parameter source is a built-in variable, the corresponding parameter value is the name of the built-in variable, and the set tracking point information is to collect the value corresponding to the name of the built-in variable, where the name of the built-in variable can be set by the operator or selected by the operator from the built-in variables pre-stored on the server. For example, Fig.14 In the event parameter added for the "Next Question" button, the parameter source is the built-in variable, and the parameter value is the user level. The set tracking point information is to collect the user level information of the current user when the operation of clicking the "Next Question" button is detected.
[0135] After receiving the event parameters corresponding to the event information input by the operator, the second terminal associates the event parameters with the event information. Fig.15 In the interface for adding circled events shown, if the second terminal detects the operation of clicking the "Add Parameters" button, a prompt box for adding circled event parameters will continue to pop up to receive the event parameters corresponding to the event information entered by the operator. If the operation of clicking the "Submit" button is detected, the associated event parameters and event information will be sent to the server. Since the buried point information associated with the circled page element can be set when setting the buried point information for the circled page element, more circle selection rules can be set, thereby improving the completeness of data collection.
[0136] For example, Figure 6As shown, the web page corresponding to the target page displayed by the second terminal is the "Fill in the order" page. If the second terminal detects the operation of clicking "Submit order", it prompts the user to set the tracking information for the "Submit order" button. For example, the event identifier in the event information is set to "Click to submit order" and the event name is "Transaction". In the event parameters set for the event information, the parameter sources include page elements, rules, fixed values and built-in variables. The parameter values corresponding to the page elements are the text attributes of the text box 62. The text in the text box 62 is the product information. The parameter values corresponding to the rules are "Enter the current page by clicking the link", the parameter values corresponding to the fixed values are "User == Member", and the parameter values corresponding to the built-in variables are the product categories. Compared with constructing a page by identifying a page screenshot and setting circle selection rules on the constructed page, the embodiment of the present application can set more tracking information, thereby improving the completeness of data collection.
[0137] Please continue reading Figure 2 After the server obtains the selection rules set by the operator through the second terminal, if it detects that the third terminal accesses the server, the selection rules are sent to the third terminal through the visual tracking SDK. The third terminal collects data according to the selection rules and sends the collected data to the server through the visual tracking SDK to complete the data collection.
[0138] For example, the selection rule received by the third terminal is as follows: Fig.15 As shown, the event parameter corresponding to the parameter identifier "title" is as follows Fig.11 As shown, the event parameters corresponding to the parameter identifier "test parameter" are as follows Fig.12 As shown, the event parameters corresponding to the parameter identifier "rule parameter" are as follows Fig.13 As shown, the event parameters corresponding to the parameter identifier "built-in variable parameter" are as follows Fig.14 As shown, when the third terminal detects the operation of clicking the "Next Question" button, if it satisfies "Question == The largest planet in the solar system is Jupiter" and the value of the page element "Test Parameter" is "Test Value", the text corresponding to the page element "Question" is collected, and the user level information is collected through the built-in variables.
[0139] For another example, the selection rule obtained by the server is the above Figure 6 The selection rules set on the "Fill in the order" page shown are sent to the terminal device when the third terminal accesses the server. When the terminal device detects the operation of clicking "Submit order", it obtains the user's login identity. If the user's login identity is a member and the current page is entered by clicking a link, the text in the text box 62, that is, the product information, is obtained, and the product category is obtained according to the built-in variable, and the obtained data is sent to the server.
[0140] In the above embodiment, the server constructs the page of the application according to the page information. In addition to the page elements and layout information, the page information also includes the association information between one or more page elements, and the association information between one or more page elements and the page. Therefore, the page constructed according to the page information can retain more information related to the page elements. Therefore, when the user accesses the page of the constructed application, more embedding information can be set to generate more selection rules, and then the selection rules are sent to the terminal, so that when the terminal collects data according to the selection rules, more comprehensive data can be collected, thereby improving the completeness of data collection.
[0141] Fig.16 A flow chart of a method for constructing a page provided in another embodiment of the present application, such as Fig.16 As shown, the method for constructing a page provided in the embodiment of the present application includes:
[0142] S201: A first terminal determines page information corresponding to an application, where the page information is used to determine one or more page elements included in a page of the application and a layout relationship between the one or more page elements.
[0143] In a possible implementation, the page information is a resource file of an application program, and the resource file includes one or more page elements and a layout relationship between the one or more page elements.
[0144] In another possible implementation, the page information is one or more page elements and the layout relationship between the one or more page elements. The first terminal parses the resource file of the application through the page information identification plug-in installed in the IDE to obtain the one or more page elements and the layout relationship between the one or more page elements.
[0145] S202: The first terminal sends page information to the server.
[0146] Specifically, the first terminal sends the page information to the server through the page information identification plug-in installed in the IDE, and the server constructs the page of the application according to the page information.
[0147] In the above embodiment, the first terminal sends page information to the server, and the server builds the page of the application according to the page information. Since the page information is used to determine one or more page elements included in the page of the application and the layout relationship between the one or more page elements, when the server builds the page of the application according to the page information, it can improve the accuracy of identifying page elements, thereby further improving the accuracy of the constructed page.
[0148] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0149] Based on the same inventive concept, an embodiment of the present application also provides a server. Fig.17 A schematic diagram of the structure of the server provided in the embodiment of the present application, such as Fig.17 As shown, the server provided in this embodiment may include: a processor 210 , a memory 220 , and a network interface 230 . The processor 210 , the memory 220 , and the network interface 230 are connected via a communication bus 240 .
[0150] The processor 210 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Optionally, the processor 210 may include one or more processing units.
[0151] The memory 220 may be an internal storage unit of the server, such as a hard disk or memory of the server. The memory 220 may also be an external storage device of the server, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server. Furthermore, the memory 220 may also include both an internal storage unit of the server and an external storage device. The memory 220 is used to store computer programs and other programs and data required by the server. The memory 220 may also be used to temporarily store data that has been output or is to be output.
[0152] The network interface 230 can be used to send and receive information, and may include a wired interface and / or a wireless interface, and is generally used to establish a communication connection between the server and other electronic devices. For example, in the present application, the network interface 230 can receive location information sent by a terminal device, send an access token to the terminal device, etc.
[0153] Optionally, the server may further include a user interface 250, which may include a display, an input unit such as a keyboard, and the optional user interface 250 may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the server and to display a visualized user page.
[0154] Those skilled in the art will understand that Fig.17 The server is merely an example and does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0155] The server provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0156] The embodiment of the present application also provides a terminal, Fig.18 FIG. 1 shows a schematic diagram of the structure of the terminal. Fig.18 As shown, the terminal may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0157] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal. In other embodiments of the present application, the terminal may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0158] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0159] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0160] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0161] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0162] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the terminal.
[0163] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the terminal. In other embodiments of the present application, the terminal may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0164] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0165] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0166] The wireless communication function of the terminal can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0167] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied on the terminal. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0168] The terminal implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0169] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0170] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0171] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0172] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the terminal, which is different from the position of the display screen 194.
[0173] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The terminal may receive key input and generate key signal input related to user settings and function control of the terminal.
[0174] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0175] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0176] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0179] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0180] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method of building a page, It is characterized in that include: The server obtains page information corresponding to the application from the first terminal, where the page information is used to determine one or more page elements and a layout relationship between the one or more page elements; The server constructs a page of the application according to the page information, wherein the page includes the one or more page elements, and the one or more page elements are arranged in the page according to the layout relationship; The server updates the page, and determines the updated page as a target page corresponding to the application; The server determines that the second terminal has permission to visually circle the embedding point, and the server has the target page requested to be circled by the second terminal; The server sends a webpage corresponding to the target page for display on an interface of the second terminal to the second terminal, so that the second terminal receives the selection rule set by the user on the target page; The server receives a selection rule of the target page from the second terminal, where the selection rule is used to determine a circled page element among the one or more page elements, and burying point information corresponding to the circled page element.
2. The method according to claim 1, It is characterized in that The page information includes the one or more page elements and layout information, and the layout information is used to indicate the layout relationship between the one or more page elements.
3. The method according to claim 1, It is characterized in that The page information is a resource file of the application, the resource file includes the one or more page elements and layout information, and the layout information is used to indicate the layout relationship between the one or more page elements; The server constructs a page of the application according to the page information, including: The server parses the resource file to obtain the one or more page elements and layout information; The server constructs a page of the application according to the one or more page elements and the layout information.
4. The method according to any one of claims 1 to 3, It is characterized in that The page information is also used to determine association information between the one or more page elements and / or association information between the one or more page elements and the target page.
5. The method according to claim 4, It is characterized in that The embedding point information corresponding to the circled page element includes event information corresponding to the circled page element and event parameters corresponding to the event information.
6. The method according to claim 5, It is characterized in that The event parameter corresponding to the event information includes at least one of a parameter identifier, a parameter name, a parameter type, a parameter source, and a parameter value.
7. The method according to any one of claims 1 or 5 to 6, It is characterized in that Before the server determines that the second terminal has the authority to visually circle the embedding point, and the server has the target page requested to be circled by the second terminal, the method further includes: The server receives a request message from the second terminal, wherein the request message includes a page identifier of the target page and an identifier of the second terminal; Correspondingly, the server determines that the second terminal has the authority to visually circle the embedding point, and the server has the target page requested to be circled by the second terminal, including: The server determines, according to the identifier of the second terminal, that the second terminal has the authority to circle the target page, and the server determines, according to the page identifier, that the target page is located at the server.
8. The method according to any one of claims 1 or 5 to 6, It is characterized in that The method further comprises: The server sends the selection rule to the third terminal; The server receives data from the third terminal, where the data is collected according to the selection rule.
9. A method of constructing a page, It is characterized in that include: The first terminal determines page information corresponding to the application, where the page information is used to determine one or more page elements included in the page of the application and a layout relationship between the one or more page elements; The first terminal sends the page information to the server; The server obtains page information corresponding to the application from the first terminal, wherein the page information is used to determine one or more page elements and a layout relationship between the one or more page elements; The server constructs a page of the application according to the page information, wherein the page includes the one or more page elements, and the one or more page elements are arranged in the page according to the layout relationship; The server updates the page, and determines the updated page as a target page corresponding to the application; The server determines that the second terminal has permission to visually circle the embedding point, and the server has the target page requested to be circled by the second terminal; The server sends a webpage corresponding to the target page for display on an interface of the second terminal to the second terminal, so that the second terminal receives the selection rule set by the user on the target page; The server receives a selection rule of the target page from the second terminal, where the selection rule is used to determine a circled page element among the one or more page elements, and burying point information corresponding to the circled page element.
10. The method according to claim 9, It is characterized in that The page information is a resource file of the application program, and the resource file includes one or more page elements and a layout relationship between the one or more page elements.
11. The method according to claim 9, It is characterized in that The page information includes one or more page elements and the layout relationship between the one or more page elements.
12. The method according to claim 11, It is characterized in that The first terminal determines page information corresponding to the application, including: The first terminal parses the resource file of the application to obtain the one or more page elements and the layout relationship between the one or more page elements.
13. A server, It is characterized in that It includes a processor, which is used to execute a computer program stored in a memory to implement the method for constructing a page as described in any one of claims 1 to 8.
14. A terminal comprising a processor, wherein the processor is used to execute a computer program stored in a memory to implement the method for constructing a page as described in any one of claims 9 to 12.
15. A system for building pages, It is characterized in that The system for constructing a page includes the server as claimed in claim 13 and the terminal as claimed in claim 14.
16. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method for constructing a page as described in any one of claims 1 to 8 or the method for constructing a page as described in any one of claims 9 to 12 is implemented.
Citation Information
Patent Citations
Method and apparatus used for dynamic layout of interface elements of mobile application
CN108509526A
Page loading method, device and equipment
CN109614545A
