CN110297635B - Page display method, device, equipment and storage medium - Google Patents

Page display method, device, equipment and storage medium Download PDF

Info

Publication number
CN110297635B
CN110297635B CN201910570594.2A CN201910570594A CN110297635B CN 110297635 B CN110297635 B CN 110297635B CN 201910570594 A CN201910570594 A CN 201910570594A CN 110297635 B CN110297635 B CN 110297635B
Authority
CN
China
Prior art keywords
page
display
host application
configuration information
target page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910570594.2A
Other languages
Chinese (zh)
Other versions
CN110297635A (en
Inventor
陈都
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910570594.2A priority Critical patent/CN110297635B/en
Publication of CN110297635A publication Critical patent/CN110297635A/en
Application granted granted Critical
Publication of CN110297635B publication Critical patent/CN110297635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The embodiment of the invention discloses a page display method, device and equipment and a storage medium. The method comprises the following steps: the host application end starts and runs the accessory application end; the host application terminal acquires display configuration information matched with a target page when receiving display trigger information corresponding to the target page and sent by the accessory application terminal; and the host application terminal generates the target page for display according to the display configuration information. Based on the technical scheme, programming workload of the auxiliary application end and auditing workload of the host application platform are reduced, display consistency of different auxiliary application ends in the host application end for the same target page is ensured, and consistency of user experience is also ensured.

Description

Page display method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to a page display technology, in particular to a page display method, device and equipment and a storage medium.
Background
With the continuous development of mobile internet technology, various types of application programs are emerging, and the programs are becoming more familiar and widely used by the public because of the characteristic that the programs can be directly used without installation. When the applet is used, the applet needs to be started and run in an opened application program (also called a host application program).
After the applet developer writes the applet code and uploads the applet code to the service platform of the host application program, the service platform can go on line with the applet after auditing the applet code, and further the user can open and run the corresponding applet by using the host application program. To achieve the desired application functionality, the developer of the applet may set different display pages for the applet. There may be a display page (e.g., payment page or operations page, etc.) for a common function in different applets, but different applet developers need to develop their respective display pages for each applet.
The inventors have found that the following drawbacks exist in the prior art in the process of implementing the present invention: even if aiming at a display page with a certain general function, different developers need to develop and add the display page into respective applet codes independently, the workload is high, and meanwhile, a service platform of a host application program also needs to carry out multiple auditing on the display page with the general function aiming at different applets, so that the workload of the platform is high; in addition, since the display pages of the general functions are customized and developed by different developers for different applets, the page display mode and the page interaction mode cannot be unified, and the consistency of user experience cannot be ensured.
Disclosure of Invention
The embodiment of the invention provides a page display method, device, equipment and storage medium, which are used for reducing programming and auditing workload and ensuring the consistency of user experience of the same target page displayed in different applets.
In a first aspect, an embodiment of the present invention provides a method for displaying a page, including:
the host application end starts and runs the accessory application end;
the host application terminal acquires display configuration information matched with a target page when receiving display trigger information corresponding to the target page and sent by the accessory application terminal;
and the host application terminal generates the target page for display according to the display configuration information.
In a second aspect, an embodiment of the present invention further provides a display apparatus for a page, applied to a host application side, including:
the accessory application terminal triggering module is used for starting and running the accessory application terminal;
the display configuration information acquisition module is used for acquiring display configuration information matched with the target page when receiving display trigger information corresponding to the target page sent by the accessory application terminal;
and the target page display module is used for generating the target page for display according to the display configuration information.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements a method for displaying a page according to any one of the embodiments of the present invention when the processor executes the program.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for displaying a page according to any of the embodiments of the present invention.
In the embodiment of the invention, the host application terminal starts and runs the auxiliary application terminal, and if the display trigger information corresponding to the target page sent by the auxiliary application terminal is received, the display configuration information matched with the target page is obtained, and then the corresponding target page is generated according to the display configuration information for display. Based on the technical scheme, aiming at the target page, developers of all the accessory application terminals do not need to independently develop, write codes and upload the codes to a developer platform for auditing, so that programming workload of the developers of the accessory application terminals and auditing workload of the developer platform are reduced, consistency of page display modes and page interaction modes of different accessory application terminals aiming at the same target page in a host application terminal is ensured, and consistency of user experience is also ensured.
Drawings
FIG. 1 is a flow chart of a method for displaying a page according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for displaying a page in a second embodiment of the present invention;
FIG. 3 is a flow chart of a method for displaying a page in accordance with a third embodiment of the present invention;
FIG. 4 is a flowchart of a method for displaying a page in accordance with a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of a workflow to which a method for displaying a page in the fourth embodiment of the present invention is applicable;
fig. 6 is a schematic structural diagram of a display device for a page in the fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device in a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a flowchart of a page display method provided in an embodiment of the present invention, where the embodiment may be suitable for a case of performing unified configuration display on the same target page of different applets, the method may be performed by a page display device provided in the embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, and the device may be integrated in a client running the applets.
As shown in fig. 1, the method in this embodiment specifically includes:
s110, starting and running the accessory application end by the host application end.
An accessory application, also called an accessory application, is an application that can be used without downloading and installing, and is attached to other applications to run, commonly called applets. And after the accessory application program is started and operated in other programs, the interactive operation matched with the user operation can be executed.
In contrast, an Application program affiliated to the accessory Application terminal is a host Application terminal, which is also called a host APP (Application), and is used for providing a program running platform for the accessory Application program.
S120, when the host application terminal receives the display trigger information corresponding to the target page sent by the accessory application terminal, the host application terminal acquires the display configuration information matched with the target page.
When the auxiliary application end needs to display the target page, sending display trigger information corresponding to the target page to the host application end, wherein the target page can be a page corresponding to any activity in the auxiliary application end.
After the host application end receives the display trigger information of the target page, display configuration information matched with the target page is obtained, wherein the display configuration information is the basis for the host application end to generate the target page, and the display configuration information can be stored in the host application end and can also be stored in a background server end corresponding to the host application end.
As an optional implementation manner of this embodiment, the host application may receive display trigger information corresponding to the target page sent by the accessory application, which specifically includes: the host application end receives display trigger information corresponding to a target page, which is sent by a trigger plug-in integrated in advance in the accessory application end; and the triggering plug-in unit and the host application end establish communication connection through a set port.
The trigger plug-in refers to a program automatically executed along with the starting of the accessory application end and used for sending trigger information after receiving specific operation of a user on the accessory application end. The triggering plug-in establishes communication connection with the host application end through the set port, and then the triggering plug-in sends triggering information after receiving specific operation of a user aiming at the accessory application end, and sends the triggering information to the host application end through the set port.
Specifically, the function of generating and displaying the target page at the host application end can be started or closed through the triggering plug-in, and the operation event related to generating and displaying the target page at the host application end is monitored. Furthermore, the accessory application end can determine whether to generate the target page through the host application end according to actual requirements, and if the target page is determined to be generated through the host application end, the function of generating and displaying the target page through the host application end can be started through service logic configured in the accessory application end.
In this embodiment, the trigger plug-in integrated in advance in the accessory application end is specifically configured to send, after receiving an operation corresponding to the display target page by the user, display trigger information corresponding to the display target page to the host application end, where the display trigger information is used to instruct the host application end to generate and display the target page.
Specifically, the target page may be a page having a set general function. Wherein, the general function may refer to one or more functions commonly used for most accessory application terminals, typically, the general function may be an operation function, and the corresponding target page may be an operation activity page, for example, a favorite page or a shared gift page, etc.
Further, as an optional implementation manner of this embodiment, the host application may further obtain display configuration information matched with the target page, which specifically includes: and the host application end acquires the display configuration information matched with the target page from the server. Wherein, the display configuration information includes: the system comprises a page element and positioning information of a page configuration template matched with the page element, wherein a plurality of page configuration templates are prestored in a server.
The server referred to in this implementation refers to a developer platform of an accessory application (i.e. applet) for receiving program codes and other data related to applet services uploaded by the applet developer, and the host application may perform data interaction after establishing a communication connection with the applet.
The page element refers to content information included in the target page, and may be, for example, information such as text or pictures. The page configuration template refers to a template for bearing page elements, wherein a plurality of page configuration templates stored in a server in advance are respectively matched with different page elements. The location information of the page configuration template may specifically refer to an online access address of the page configuration template in the server, for example, a URL (Uniform Resource Locator ) address.
And S130, the host application terminal generates a target page according to the display configuration information to display.
After obtaining the display configuration information matched with the target page, the host application generates the target page according to the display configuration information, for example, the page elements included in the display configuration information and the page configuration templates corresponding to the page elements, and displays the target page to the user through the host application.
In the embodiment of the invention, the host application terminal starts and runs the auxiliary application terminal, and if the display trigger information corresponding to the target page sent by the auxiliary application terminal is received, the display configuration information matched with the target page is obtained, and then the corresponding target page is generated according to the display configuration information for display. Based on the technical scheme, aiming at the target page, developers of all the accessory application terminals do not need to independently develop, write codes and upload the codes to a developer platform for auditing, so that programming workload of the developers of the accessory application terminals and auditing workload of the developer platform are reduced, consistency of page display modes and page interaction modes of different accessory application terminals aiming at the same target page in a host application terminal is ensured, and consistency of user experience is also ensured.
On the basis of the technical scheme, after the host application terminal generates the target page according to the display configuration information for display, the method further comprises the following steps:
the host application end executes interactive operation matched with the user operation according to the user operation aiming at the target page, and sends interactive events matched with the user operation to the auxiliary application end; the interactive event is used for indicating the accessory application end to execute business logic matched with the interactive event.
For example, when the general function interface is "favorite interface", the user operation of the user on this target page may be "favorite" or "closing or ignoring" (other operation corresponding to not favorite).
When the user operation for the target page is "collection", the host application end responds to the user operation of "collection", such as prompting the user that collection is successful. At the same time, the host application sends an interaction event matched with the user operation to the accessory application, that is, the host application informs the accessory application that the user collection is successful, so as to instruct the accessory application to execute business logic matched with the user collection success, such as adding the user to a collection user list, or issuing an incentive item (such as issuing a coupon) corresponding to the collection success to the user, and the like.
When the user operation on the target page is "closing or ignoring", the host application end responds to the user operation of "closing or ignoring", for example, returning to the previous layer display interface from the target page. Meanwhile, the host application end sends an interaction event matched with the user operation to the accessory application end, namely, the host application end informs the accessory application end that the user does not collect, so as to instruct the accessory application end to execute business logic matched with 'user does not collect', for example, the user is added into a push list to be collected, and the 'collect gift' activity is pushed to the user again at a set time.
As an optional implementation manner of this embodiment, the host application may further execute, according to a user operation for the target page, an interaction operation matched with the user operation, specifically:
when detecting user operation aiming at a target page, the host application end acquires a target operation type corresponding to the user operation; the host application end obtains a target application program interface matched with the target operation type according to the mapping relation between the operation type and the application program interface; the host application end calls the target application program interface and executes the interactive operation matched with the user operation.
If the host application side detects the user operation aiming at the target page, the host application side firstly obtains the target operation type corresponding to the user operation, wherein the user confirmation operation (relative non-confirmation operation, such as collection, sharing and the like) aiming at the target page is different from the target page, the operation type corresponding to the user operation is also different from the operation type corresponding to the target page, and the host application side can specifically determine the target operation type corresponding to the user operation according to the corresponding relation of the operation type and the target page. And then, according to the determined target operation type, inquiring the mapping relation between the operation type and the application program interface, determining the target application program interface matched with the target operation type, further calling the target application program interface pre-integrated in the host application end, executing the interaction operation matched with the user operation, namely responding to the user operation, for example, when the target operation type is sharing, calling the pre-integrated sharing application program interface in the host application end to complete the sharing operation, and distributing the interaction event determined according to the sharing application program interface to the accessory application end.
In the above technical solution, for the general functions of different accessory application ends, after the host application end generates the target page based on the display configuration information corresponding to the target page stored in the server in advance, and displays the target page, the host application end also executes the interactive operation matched with the user operation, and simultaneously sends the interactive event matched with the user operation to the accessory application end. Therefore, the host application terminal further unifies the processing mode of the universal function of the accessory application terminal, so that the page display mode and the page interaction mode are unified.
The display configuration information for the same general function of different accessory application ends may be the same or different, which is not limited in this embodiment.
Example two
Fig. 2 is a flowchart of a target page display method provided in a second embodiment of the present invention, where the optimization is performed based on the foregoing embodiment, and a host application obtains display configuration information matched with a target page from a server, specifically:
the host application terminal extracts the identification information matched with the display configuration information from the display trigger information;
the host application terminal obtains display configuration information matched with the target page from the server according to the identification information;
The display configuration information matched with the target page is uploaded to the server in advance and is stored corresponding to the identification information of the display configuration information.
Specifically, the display configuration information is uploaded to the server in advance by a developer of the accessory application terminal.
As shown in fig. 2, the method of the present embodiment may include:
s210, starting and running an accessory application end by a host application end, wherein a trigger plug-in is integrated in the accessory application end in advance, and the trigger plug-in and the host application end establish communication connection through a set port.
S220, when the host application terminal receives the display trigger information of the target page sent by the trigger plug-in, the identification information matched with the display configuration information is extracted from the display trigger information.
In this embodiment, the display trigger information of the target page sent by the trigger plug-in of the accessory application end specifically includes identification information, where the identification information is identification information for distinguishing different display configuration information. That is, when the trigger plug-in of the accessory application end sends the display trigger information for instructing the host application end to generate and display the target page matched with the general function, the identification information corresponding to the accessory application end and the general function type is added in the display trigger information, so that the host application end can obtain the matched display configuration information according to the identification information.
S230, the host application side obtains display configuration information matched with the target page from the server according to the identification information.
The display configuration information matched with the target page is uploaded to the server in advance and is stored corresponding to the identification information of the display configuration information. Optionally, the display configuration information is uploaded to the server in advance by a developer of the accessory application end.
Before implementing the technical scheme provided by the embodiment, the developer of the accessory application terminal uploads the display configuration information matched with different target pages and the identification information corresponding to each display configuration information one by one to the server in advance.
Specifically, the display configuration information includes: the system comprises a page element and positioning information of page configuration templates matched with the page element, wherein a plurality of page configuration templates are prestored in a server.
In the server, the display configuration information and the identification information are stored in a one-to-one correspondence manner, and further, after the host application end obtains the identification information from the display trigger information, the identification information is sent to the server, and the server can inquire the corresponding relation between the display configuration information and the identification information according to the identification information, and further, the matched display configuration information is fed back to the host application end.
As an alternative implementation manner of this embodiment, S230 may be specifically S231-S232:
s231, the host application side requests the server for a validity verification identifier matched with the identification information according to the identification information.
After the host application terminal acquires the identification information from the display trigger information, the host application terminal firstly transmits the identification information to a server to acquire a validity verification result of the server on the display configuration information corresponding to the identification information.
The server is configured to perform validity verification on the page element in the display configuration information after receiving the display configuration information uploaded by the developer of the accessory application, for example, verify whether the page element includes a sensitive vocabulary, a sensitive picture, and the like, and store a validity verification identifier obtained by the verification in correspondence with the display configuration information. If the page element in the display configuration information passes the validity verification, the validity verification mark stored corresponding to the display configuration information is verified; if the page element in the display configuration information does not pass the validity verification, the validity verification mark stored corresponding to the display configuration information is not passed the verification.
After receiving the identification information, the server acquires the display configuration information according to the corresponding relation between the display configuration information and the identification information, further acquires a validity verification identifier stored corresponding to the display configuration information, and feeds the validity verification identifier back to the host application end.
And S232, if the host application terminal determines that the received validity verification mark passes verification, the host application terminal acquires display configuration information matched with the identification information from the server.
After receiving a validity verification identifier fed back by the server aiming at the identification information, the host application sends an acquisition request of display configuration information matched with the identification information to the server and acquires corresponding display configuration information from the server if the validity verification identifier is determined to pass verification; if the validity verification mark is determined to be not verified, the corresponding display configuration information is not required to be acquired from the server, and then the target page cannot be generated for the accessory application terminal to display.
S240, the host application terminal generates a target page according to the display configuration information to display.
The present embodiment is not explained in detail herein, and reference is made to the foregoing embodiments.
In the technical scheme, the server performs validity verification on the display configuration information uploaded by the developers of different accessory application ends, and the host application end generates a target page for the accessory application end according to the display configuration information and displays the target page only when the display configuration information passes the validity verification, so that the validity authentication of general functions (such as operation functions and the like) of different accessory application ends is realized.
Example III
Fig. 3 is a flowchart of a target page display method provided by a third embodiment of the present invention, where the target page is specifically a page with a set general function based on the foregoing embodiment, and further a host application obtains display configuration information matched with the target page from a server, specifically:
the host application terminal extracts a target general function identifier from the display trigger information;
the host application terminal obtains display configuration information matched with the target page from a server according to the target general function identifier;
the server stores the mapping relation between the universal function identification and the display configuration information in advance.
As shown in fig. 3, the method of the present embodiment may include:
s310, the host application end starts and runs the accessory application end, a trigger plug-in is integrated in the accessory application end in advance, and the trigger plug-in and the host application end establish communication connection through a set port.
S320, when the host application terminal receives the display trigger information of the target page sent by the trigger plug-in, the target general function identifier is extracted from the display trigger information.
The general function identifier refers to identification information corresponding to display configuration information which is common to different accessory application terminals aiming at the same target page.
If the display configuration information of the auxiliary application terminal aiming at the target page is universal to the host application terminal and is not uploaded by a developer of the auxiliary application terminal independently in advance, the identification information included in the display trigger information sent by the trigger plug-in is a universal function identification.
S330, the host application terminal obtains display configuration information matched with the target page from the server according to the target general function identifier.
Wherein, the mapping relation between the general function identification and the display configuration information is prestored in the server.
Specifically, the display configuration information includes: the system comprises a page element and positioning information of page configuration templates matched with the page element, wherein a plurality of page configuration templates are prestored in a server.
Because the display configuration information corresponding to the universal function identifier is universal for different host application ends and is uniformly configured by the server, the validity check is not needed. And after receiving the target general function identifier provided by the host application end, the server provides the queried display configuration information corresponding to the target general function identifier to the host application end according to the corresponding relation between the general function identifier and the display configuration information, so that the host application end can generate a target page according to the display configuration information for display.
And S340, the host application terminal generates a target page according to the display configuration information to display.
The present embodiment is not explained in detail herein, and reference is made to the foregoing embodiments.
The difference between the present embodiment and the second embodiment is that the display configuration information in the second embodiment is uploaded in advance by the developer of the affiliated application end, and security check is required, and the display configuration information in the present embodiment is uniformly configured by the server, and security check is not required.
It is worth pointing out that, the developer of the accessory application end not only can upload the display configuration information which is solely developed in advance, but also can select at least one display configuration information from the display configuration information which is uniformly configured by the server and add the display configuration information to the accessory application end so as to realize the display of the target page corresponding to the display configuration information in the accessory application end.
According to the technical scheme provided by the embodiment, the display configuration information of the target page is uniformly configured, so that the uniformity of the page display mode and the page interaction mode of the general function is further ensured, and the management and control force on the operation activities of the accessory application terminal is also improved.
Example IV
Fig. 4 is a flowchart of a target page display method provided in a fourth embodiment of the present invention, where the present embodiment optimizes based on the foregoing embodiment, and the host application generates and displays a target page according to display configuration information, specifically:
The host application end obtains page elements included in the display configuration information and positioning information of a page configuration template; the host application end obtains the page configuration template from the server according to the positioning information;
and the host application terminal generates a target page for display according to the page configuration template and the page elements.
As shown in fig. 4, the method in this embodiment specifically includes:
s410, the host application end starts and runs the accessory application end, a triggering plug-in is integrated in the accessory application end in advance, and the triggering plug-in and the host application end establish communication connection through a set port.
S420, when the host application terminal receives the display trigger information of the target page sent by the trigger plug-in, the host application terminal obtains display configuration information matched with the target page from the server.
Specifically, the display configuration information includes: the system comprises a page element and positioning information of page configuration templates matched with the page element, wherein a plurality of page configuration templates are prestored in a server.
S430, the host application side obtains page elements included in the display configuration information and positioning information of the page configuration template.
After the host application obtains the display configuration information from the server, the display configuration information is analyzed to obtain page elements included in the display configuration information, for example, operation characters or operation pictures, and the positioning information of the page configuration template, for example, the URL address of the page configuration template.
S440, the host application side obtains the page configuration template from the server according to the positioning information.
The host application accesses the URL address of the page configuration template to acquire the page configuration template from the server.
S450, the host application terminal generates a target page for display according to the page configuration template and the page elements.
Typically, the host application may add the page element to the page configuration template to generate a target page, and display the target page to the user through the host application.
As a specific implementation manner of this embodiment, S450 may be specifically S451 to S452:
s451, a host application end background creates a WebView, and asynchronously loads a page configuration template and page elements in the WebView.
S452, the host application generates a target page for display according to the loaded WebView.
WebView is a control for exposing Web pages, which benefits the extensibility and dynamics of version 5 of HTML (Hyper Text Markup Language ).
In order to ensure that the user experience is not impaired, the WebView is invisible when the page configuration template and the page elements are loaded, and the Web bView is displayed to the user asynchronously after the page configuration template and the page elements are loaded.
In addition, the asynchronous presentation scheme of the target page can be realized by using technologies such as reactive or Flutter.
In the technical scheme, the technical means of asynchronously displaying the target page is realized by asynchronously loading the page configuration template and the page elements, so that the user experience is ensured not to be damaged. Meanwhile, the page configuration template is fixed, and the similar functions of the accessory application end can be ensured to adopt a uniform interaction mode.
Typically, the method for displaying the target page provided in this embodiment is suitable for a workflow shown in fig. 5, and a developer at the accessory application end pre-configures an integrated universal operation plug-in (i.e. a trigger plug-in) in an applet (i.e. an accessory application end), and pre-uploads operation materials (i.e. display configuration information) to an applet developer platform (i.e. a server). When a user uses a general function (such as sharing operation) in the applet, the applet service logic invokes the operation popup capability, triggers the host application end of the applet to display a corresponding general operation function page, pulls materials in the applet developer platform, loads and displays the materials to the user in an asynchronous mode, and simultaneously performs interactive operation with the user and feeds back generated operation data to the applet.
Example five
Fig. 6 is a schematic structural diagram of a target page display device according to a fifth embodiment of the present invention, where the device may be implemented in software and/or hardware, and the device may be integrated in a client running an applet. As shown in fig. 6, the device is applied to a host application end, and specifically includes: an accessory application trigger module 510, a display configuration information acquisition module 520, and a target page display module 530. Wherein, the liquid crystal display device comprises a liquid crystal display device,
an accessory application triggering module 510, configured to start and run an accessory application;
the display configuration information obtaining module 520 is configured to obtain display configuration information matched with a target page when receiving display trigger information corresponding to the target page sent by the accessory application terminal;
and the target page display module 530 is configured to generate the target page for display according to the display configuration information.
In the embodiment of the invention, the host application terminal starts and runs the auxiliary application terminal, and if the display trigger information corresponding to the target page sent by the auxiliary application terminal is received, the display configuration information matched with the target page is obtained, and then the corresponding target page is generated according to the display configuration information for display. Based on the technical scheme, aiming at the target page, developers of all the accessory application terminals do not need to independently develop, write codes and upload the codes to a developer platform for auditing, so that programming workload of the developers of the accessory application terminals and auditing workload of the developer platform are reduced, consistency of page display modes and page interaction modes of different accessory application terminals aiming at the same target page in a host application terminal is ensured, and consistency of user experience is also ensured.
Further, the display configuration information obtaining module 520 is specifically configured to receive, by the host application, display trigger information corresponding to a target page sent by a trigger plug-in integrated in advance in the accessory application;
the triggering plug-in unit and the host application end establish communication connection through a set port.
Further, the display configuration information obtaining module 520 is specifically configured to obtain, from the server, display configuration information matched with the target page by using the host application;
wherein, the display configuration information includes: the system comprises a page element and positioning information of a page configuration template matched with the page element, wherein a plurality of page configuration templates are prestored in a server.
As a specific implementation manner of this embodiment, the display configuration information obtaining module 520 includes:
the identification information extraction unit is used for extracting the identification information matched with the display configuration information from the display trigger information by the host application terminal;
the display configuration information matched with the target page is uploaded to the server in advance and is stored corresponding to the identification information of the display configuration information;
the display configuration information acquisition unit is used for the host application end to acquire the display configuration information matched with the target page from the server according to the identification information.
Further, a display configuration information obtaining unit is specifically configured to request, from the host application end, a validity verification identifier matched with the identification information to the server according to the identification information; the host application terminal acquires the display configuration information matched with the identification information from a server if the received validity verification mark is determined to pass verification;
and the server is used for carrying out validity verification on the page element in the display configuration information after receiving the uploaded display configuration information, and storing a validity verification identifier obtained by verification and the display configuration information correspondingly.
As a specific implementation manner of this embodiment, the target page is a page with a general function setting function; the display configuration information acquisition module 520 is configured to: the host application terminal extracts a target general function identifier from the display trigger information; the host application terminal obtains display configuration information matched with the target page from a server according to the target general function identifier;
the server stores the mapping relation between the universal function identification and the display configuration information in advance.
Further, the target page display module 530 specifically includes:
the host application end is used for acquiring the page elements included in the display configuration information and the positioning information of the page configuration template;
the page configuration template acquisition unit is used for acquiring the page configuration template from the server according to the positioning information by the host application terminal;
the target page generation display unit is used for generating the target page for display by the host application terminal according to the page configuration template and the page elements.
Further, a target page generation display unit is specifically used for creating a WebView in the background of the host application end, and asynchronously loading the page configuration template and the page elements in the WebView; and the host application terminal generates the target page for display according to the loaded WebView.
Further, the display device of the target page further includes: the interaction module is used for executing interaction operation matched with the user operation according to the user operation aiming at the target page by the host application end after the target page is generated and displayed according to the display configuration information, and sending interaction events matched with the user operation to the auxiliary application end;
The interactive event is used for indicating the accessory application end to execute business logic matched with the interactive event.
Further, the interaction module is specifically configured to, when the host application end detects a user operation for the target page, obtain a target operation type corresponding to the user operation; the host application end obtains a target application program interface matched with the target operation type according to the mapping relation between the operation type and the application program interface; and the host application terminal calls the target application program interface and executes the interactive operation matched with the user operation.
Specifically, the target page includes: and operating the active page.
The page display device can execute the page display method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executed page display method.
Example six
Fig. 7 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. Fig. 7 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 7 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the invention.
As shown in fig. 7, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown in fig. 7, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the page display method provided by the embodiment of the present invention.
Namely: the processing unit implements when executing the program: the host application end starts and runs the accessory application end;
the host application terminal acquires display configuration information matched with a target page when receiving display trigger information corresponding to the target page and sent by the accessory application terminal;
and the host application terminal generates the target page for display according to the display configuration information.
Example seven
A seventh embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for displaying pages as provided in all the embodiments of the present invention:
namely: the program when executed by the processor implements: the host application end starts and runs the accessory application end;
the host application terminal acquires display configuration information matched with a target page when receiving display trigger information corresponding to the target page and sent by the accessory application terminal;
And the host application terminal generates the target page for display according to the display configuration information.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (14)

1. A method for displaying a page, comprising:
the host application end starts and runs the accessory application end;
the host application terminal acquires display configuration information matched with a target page when receiving display trigger information corresponding to the target page and sent by the accessory application terminal; the target page is a page with a set general function; the general function is one or more functions commonly used for a plurality of accessory application terminals;
and the host application terminal generates the target page for display according to the display configuration information.
2. The method of claim 1, wherein the host application receives display trigger information corresponding to the target page sent by the accessory application, and the method comprises:
the host application end receives display trigger information corresponding to a target page, which is sent by a trigger plug-in integrated in advance in the accessory application end;
the triggering plug-in unit and the host application end establish communication connection through a set port.
3. The method of claim 1, wherein the host application obtaining display configuration information matched with the target page comprises:
The host application end obtains display configuration information matched with the target page from a server;
wherein, the display configuration information includes: the system comprises a page element and positioning information of a page configuration template matched with the page element, wherein a plurality of page configuration templates are prestored in a server.
4. The method of claim 3, wherein the host application obtaining display configuration information matched with the target page from a server includes:
the host application terminal extracts the identification information matched with the display configuration information from the display trigger information;
the display configuration information matched with the target page is uploaded to the server in advance and is stored corresponding to the identification information of the display configuration information;
and the host application terminal acquires display configuration information matched with the target page from a server according to the identification information.
5. The method of claim 4, wherein the host application obtains display configuration information matched with the target page from a server according to the identification information, and the method comprises the following steps:
the host application end requests a validity verification identifier matched with the identification information to the server according to the identification information;
The server is used for carrying out validity verification on the page element in the display configuration information after receiving the uploaded display configuration information, and storing a validity verification identifier obtained by verification and the display configuration information correspondingly;
and if the host application terminal determines that the received validity verification mark passes verification, acquiring the display configuration information matched with the identification information from a server.
6. A method according to claim 3, wherein the target page is a page having a set general function;
the host application side obtains display configuration information matched with the target page from a server, and the method comprises the following steps:
the host application terminal extracts a target general function identifier from the display trigger information;
the host application terminal obtains display configuration information matched with the target page from a server according to the target general function identifier;
the server stores the mapping relation between the universal function identification and the display configuration information in advance.
7. The method according to any one of claims 1-6, wherein the host application generating the target page for display according to the display configuration information includes:
The host application end obtains page elements included in the display configuration information and positioning information of a page configuration template;
the host application end obtains the page configuration template from a server according to the positioning information;
and the host application terminal generates the target page for display according to the page configuration template and the page element.
8. The method of claim 7, wherein the host application generating the target page for display according to the page configuration template and the page element comprises:
the host application end background creates a WebView, and asynchronously loads the page configuration template and the page element in the WebView;
and the host application terminal generates the target page for display according to the loaded WebView.
9. The method according to any one of claims 1-6, further comprising, after the host application generates the target page for display according to the display configuration information:
the host application end executes interaction operation matched with the user operation according to the user operation aiming at the target page, and distributes interaction events matched with the user operation to the auxiliary application end;
The interactive event is used for indicating the accessory application end to execute business logic matched with the interactive event.
10. The method of claim 9, wherein the host application performs an interaction operation matching the user operation according to the user operation for the target page, including:
when the host application side detects user operation aiming at the target page, acquiring a target operation type corresponding to the user operation;
the host application end obtains a target application program interface matched with the target operation type according to the mapping relation between the operation type and the application program interface;
and the host application terminal calls the target application program interface and executes the interactive operation matched with the user operation.
11. The method of claim 1, wherein the target page comprises: and operating the active page.
12. A display device of a page, applied to a host application end, comprising:
the accessory application terminal triggering module is used for starting and running the accessory application terminal;
the display configuration information acquisition module is used for acquiring display configuration information matched with the target page when receiving display trigger information corresponding to the target page sent by the accessory application terminal; the target page is a page with a set general function; the general function is one or more functions commonly used for a plurality of accessory application terminals;
And the target page display module is used for generating the target page for display according to the display configuration information.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-11 when the program is executed by the processor.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-11.
CN201910570594.2A 2019-06-27 2019-06-27 Page display method, device, equipment and storage medium Active CN110297635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910570594.2A CN110297635B (en) 2019-06-27 2019-06-27 Page display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910570594.2A CN110297635B (en) 2019-06-27 2019-06-27 Page display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110297635A CN110297635A (en) 2019-10-01
CN110297635B true CN110297635B (en) 2023-05-16

Family

ID=68029188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910570594.2A Active CN110297635B (en) 2019-06-27 2019-06-27 Page display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110297635B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112230914B (en) * 2019-07-15 2023-09-15 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for producing small program
CN111176960B (en) * 2019-10-22 2022-02-18 腾讯科技(深圳)有限公司 User operation behavior tracking method, device, equipment and storage medium
CN112734453B (en) * 2019-10-28 2024-02-02 腾讯科技(深圳)有限公司 Electronic coupon pickup method, electronic coupon issuing device, electronic coupon pickup apparatus, electronic coupon issuing apparatus, and storage medium
CN111124390B (en) * 2019-12-17 2023-02-24 东软集团股份有限公司 Rechecking page generation method and device, storage medium and electronic equipment
CN111290737B (en) * 2020-01-20 2023-03-21 北京字节跳动网络技术有限公司 Method and device for application program development and electronic equipment
CN111338714A (en) * 2020-02-19 2020-06-26 北京百度网讯科技有限公司 Applet material processing method, device, electronic equipment and medium
KR102647732B1 (en) * 2020-02-19 2024-03-15 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Mini App material processing methods, devices, electronic equipment and media
CN113553522A (en) * 2020-04-24 2021-10-26 北京金山云网络技术有限公司 Page display method and device, electronic equipment and storage medium
CN111625465B (en) * 2020-05-29 2024-04-12 中国工商银行股份有限公司 Program generation method, device and system and electronic equipment
CN112068914B (en) * 2020-08-26 2024-03-05 北京百度网讯科技有限公司 Material content processing method and device, electronic equipment and storage medium
CN114003412A (en) * 2021-12-27 2022-02-01 支付宝(杭州)信息技术有限公司 Method and device for communicating small program and host program
CN114238821B (en) * 2022-02-18 2022-04-29 北京金堤科技有限公司 Popup window processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475720A (en) * 2013-09-12 2013-12-25 世纪龙信息网络有限责任公司 Application push method and system of intelligent terminal
CN107402755A (en) * 2017-07-03 2017-11-28 天脉聚源(北京)传媒科技有限公司 The modular showing method and device of the small application of wechat
CN109034907A (en) * 2018-08-06 2018-12-18 北京三快在线科技有限公司 Ad data put-on method and device, electronic equipment, storage medium
CN109712340A (en) * 2017-10-25 2019-05-03 王永平 A kind of method of everybody the self-service distributing electronic screen advertisement of energy

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741844B (en) * 2016-08-22 2020-12-01 腾讯科技(深圳)有限公司 Method and device for generating application installation package
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN109271239A (en) * 2018-08-10 2019-01-25 北京达佳互联信息技术有限公司 Method, apparatus, system, equipment and the medium of data processing
CN109522501B (en) * 2018-11-26 2021-10-26 腾讯科技(深圳)有限公司 Page content management method and device
CN109828756A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 The method and electronic device of the code of insurance page are generated based on wechat small routine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475720A (en) * 2013-09-12 2013-12-25 世纪龙信息网络有限责任公司 Application push method and system of intelligent terminal
CN107402755A (en) * 2017-07-03 2017-11-28 天脉聚源(北京)传媒科技有限公司 The modular showing method and device of the small application of wechat
CN109712340A (en) * 2017-10-25 2019-05-03 王永平 A kind of method of everybody the self-service distributing electronic screen advertisement of energy
CN109034907A (en) * 2018-08-06 2018-12-18 北京三快在线科技有限公司 Ad data put-on method and device, electronic equipment, storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"试析微信小程序前端界面与网站前端界面实现技术的异同";陈世宇 等;《电脑编程技巧与维护》;第5-8,13页 *

Also Published As

Publication number Publication date
CN110297635A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
CN110297635B (en) Page display method, device, equipment and storage medium
CN101911075B (en) Browser-based proxy server for customization and distribution of existing applications
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN109542427B (en) System customization method and device, electronic equipment and storage medium
US20230308504A9 (en) Method and system of application development for multiple device client platforms
CN109857506B (en) Method and device for realizing guide information, electronic equipment and storage medium
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
CN111950249B (en) Message generation method and device, electronic equipment and storage medium
CN108845810B (en) Method and device for dynamically updating application, electronic equipment and storage medium
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
US20130081010A1 (en) Template and server content download using protocol handlers
CN115268854A (en) Service expansion implementation method, system, electronic equipment and readable storage medium
CN111367531A (en) Code processing method and device
CN112328272B (en) Algorithm upgrading method, device, equipment and storage medium
CN106095886B (en) Data processing method and device
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
US9992528B2 (en) System and methods thereof for displaying video content
CN112445473A (en) Client layout method and device, storage medium and electronic equipment
CN112416455B (en) Data processing method, device, terminal and storage medium
CN111931465B (en) Method and system for automatically generating user manual based on user operation
CN110262813B (en) Method and apparatus for installing applications
CN112288452B (en) Advertisement previewing method and device, electronic equipment and storage medium
CN112367348A (en) Data acquisition method, device, equipment and medium
CN113495952A (en) Information processing apparatus, control method therefor, and recording medium
CN113315831A (en) Cloud game playing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant