CN112861044B - Page display control method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN112861044B
CN112861044B CN202110178509.5A CN202110178509A CN112861044B CN 112861044 B CN112861044 B CN 112861044B CN 202110178509 A CN202110178509 A CN 202110178509A CN 112861044 B CN112861044 B CN 112861044B
Authority
CN
China
Prior art keywords
page
parasitic
pop
component
host application
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
CN202110178509.5A
Other languages
Chinese (zh)
Other versions
CN112861044A (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.)
Suzhou Dajiaying Information Technology Co Ltd
Original Assignee
Suzhou Dajiaying Information 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 Suzhou Dajiaying Information Technology Co Ltd filed Critical Suzhou Dajiaying Information Technology Co Ltd
Priority to CN202110178509.5A priority Critical patent/CN112861044B/en
Publication of CN112861044A publication Critical patent/CN112861044A/en
Application granted granted Critical
Publication of CN112861044B publication Critical patent/CN112861044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a page display control method and device, computer equipment and a storage medium. The method for controlling the display of the page executed by the parasitic webpage end comprises the following steps: loading and displaying the web pages in the parasitic web page end in the host application end; when a page jump request of a host application end is received, judging whether each page in a parasitic webpage end comprises at least one pop-up component or not; if yes, detecting the display state of each pop-up component; if the display state of at least one pop-up component is detected to be the pop-up state, determining at least one closing component in the detected pop-up components; and adjusting the display state of each closing component from the pop-up state to the retracted state. The technical scheme of the embodiment of the invention provides a new page jump control mode triggered and controlled by a parasitic webpage end, and even if the URL of a page needing to be jumped is the same as that of a page before jumping, jump display of the page can be accurately realized when the page returns to the page before jumping.

Description

Page display control method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a page display control method and device, computer equipment and a storage medium.
Background
With the continuous development of computer software technology, functions integrated in application programs (APPs) are more and more abundant, and at present, many APPs have a webpage loading display function. Generally, a webpage pushed to an APP is composed of multiple pages, and a user can browse the multiple pages in a page switching manner to meet actual information acquisition requirements.
In the prior art, in order to facilitate a user to browse a web page, when the user clicks an entity or virtual return key in a terminal, a terminal operating system may skip from a current display page B to a previous display page a for display without the user directly clicking a return control in the current display page to return. The specific implementation mode is as follows: firstly, the URL (Uniform Resource Locator) of the page a is pushed into a stack, then the URL of the page B is opened, and when the page a needs to be returned from the page B, the URL of the page a in the stack can be popped up and opened correspondingly, so as to return to the page a.
In the process of implementing the invention, the inventor finds that the prior art has the following technical defects: when the user selects to open a pop-up component (particularly, a pop-up component that can be displayed full screen) in the currently displayed page, the user may mistake the pop-up component as a page. At this point, when the user wishes to return to the page bearing the pop-up component for re-browsing, the user also typically chooses to return using the return button. Because the URL of the pop-up component and the URL of the page bearing the pop-up component are the same, when the pop-up component is unfolded and displayed, the stack pressing operation of the URL of the bearing page cannot be carried out. At this time, the page return mode by the return key cannot correctly display the page that the user actually desires to display.
Disclosure of Invention
The embodiment of the invention provides a page display control method and device, computer equipment and a storage medium, so as to realize accurate and efficient page skip display.
In a first aspect, an embodiment of the present invention provides a method for controlling display of a page, where the method is executed by a parasitic web page end, and the method includes:
loading and displaying the web page in the parasitic web page end in the host application end, wherein the parasitic web page end comprises a plurality of web pages;
when a page jump request of the host application end is received, judging whether each page in the parasitic webpage end comprises at least one pop-up component or not; if yes, detecting the display state of each pop-up component;
determining at least one closing component in each detected pop-up component if the display state of at least one pop-up component is detected as the pop-up state;
and adjusting the display state of each closing component from the popup state to the stowing state so as to close the display of the popup component in the host application.
In a second aspect, an embodiment of the present invention further provides a method for controlling display of a page, where the method is executed by a host application, and the method includes:
receiving a parasitic webpage end issued by a server, wherein the parasitic webpage end comprises a plurality of pages;
loading and displaying the page in the parasitic webpage end;
when a page return request is detected, detecting a pop-up component in a current display page, generating a page jump request according to the detection result of the pop-up component, and sending the page jump request to the parasitic webpage end;
and the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page.
In a third aspect, an embodiment of the present invention further provides a device for controlling display of a page, where the device is executed by a parasitic web page end, and the device includes:
the loading display control module is used for loading and displaying the web page in the parasitic web page end in the host application end, and the parasitic web page end comprises a plurality of web pages;
the display state detection module is used for judging whether each page in the parasitic webpage end comprises at least one pop-up component or not when receiving a page jump request of the host application end; if yes, detecting the display state of each pop-up component;
a closing component determining module, configured to determine at least one closing component among the detected pop-up components if the display state of the at least one pop-up component is detected as the pop-up state;
and the display state adjusting module is used for adjusting the display state of each closing assembly from a popup state to a stowing state so as to close the display of the popup assembly in the host application terminal.
In a fourth aspect, an embodiment of the present invention further provides a device for controlling display of a page, which is executed by a host application end, and includes:
the parasitic webpage end receiving module is used for receiving a parasitic webpage end issued by the server, and the parasitic webpage end comprises a plurality of pages;
the loading display module is used for loading and displaying the page in the parasitic webpage end;
the page jump request sending module is used for detecting the pop-up component in the current display page when a page return request is detected, generating a page jump request according to the detection result of the pop-up component and sending the page jump request to the parasitic webpage end;
and the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page.
In a fifth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling presentation of a page according to any embodiment of the present invention, or implement the method for controlling presentation of a page according to any embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for controlling presentation of a page according to any embodiment of the present invention, or implements the method for controlling presentation of a page according to any embodiment of the present invention.
After the parasitic webpage end loads and displays the webpage in the host application end, at least one popup component with a popup state in each page in the parasitic webpage end is adjusted from a popup state to a retracted state according to a page jump request sent by the host application end, and on the premise of meeting the normal page jump requirement of a user, when the user selects a return key to return the page by using the currently displayed popup component as an independent page, the actual intention of the user can be accurately grasped, the popup component which needs to be closed actually by the user is correspondingly closed, the page jump function on the user experience level is realized, and under the condition that the user does not sense, the misoperation of the user is corrected, the frequent operation of the user can be reduced, the probability of triggering the page jump is reduced, and the intelligence and the high efficiency of man-machine interaction are improved. The technical scheme of the embodiment of the invention effectively supplements the defects of the existing page returning scheme, and provides a new page skipping control mode realized by a parasitic webpage end, so that even if the page (pop-up component) needing skipping is the same as the URL of the page before skipping, skipping display of the page can be efficiently and accurately realized when the page returns to the page before skipping.
Drawings
Fig. 1a is a flowchart of an implementation of a method for controlling a display of a page according to a first embodiment of the present invention;
FIG. 1b is a schematic illustration showing a pop-up component for displaying a page in an overlaid manner, according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation of a method for controlling a display of a page according to a second embodiment of the present invention;
fig. 3 is a flowchart of an implementation of a method for controlling a page display according to a third embodiment of the present invention;
fig. 4 is a flowchart of an implementation of a method for controlling a display of a page according to a fourth embodiment of the present invention;
FIG. 5 is a block diagram of a display control apparatus for a page according to a fifth embodiment of the present invention;
fig. 6 is a structural diagram of a display control device of a page according to a sixth embodiment of the present invention;
fig. 7 is a block diagram of a computer device in the seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of an implementation of a method for controlling a display of a page according to an embodiment of the present invention, where this embodiment is applicable to a case where multiple pages included in a parasitic web page are jump-displayed in a host application, and the method can be executed by the parasitic web page, and specifically includes the following steps:
s110, loading and displaying the web page in the parasitic web page end in the host application end, wherein the parasitic web page end comprises a plurality of web pages.
In this embodiment, the host application specifically refers to an APP installed in the mobile terminal for executing the setting function. The host application end has the functions of loading and displaying a webpage, and for example, the host application end may be a browser APP, an e-commerce APP or a social APP.
Specifically, for example, an Android system is used, a Webview component may be built in the host application terminal, and the host application terminal may have functions of loading and displaying a web page through the Webview component. The Webview component is a control which is based on a webkit engine and used for loading and displaying a web page.
When the host application end needs to display the webpage, the host application end can correspondingly trigger to generate a webpage display request and send the webpage display request to the server, and then the webpage fed back by the server can be received and displayed for display. The page display request may be triggered and generated by a click or touch operation of a user, or may be automatically generated by the host application according to an internal execution logic, which is not limited in this embodiment.
Or, the server may also issue a web page to the host application periodically, and the host application displays the received web page correspondingly.
In this embodiment, the parasitic web page end may be a special type of web page that is issued by the server to the host application end and needs to be parasitic in the host application end for display. The parasitic webpage end comprises a plurality of pages, all or part of the pages in the plurality of pages have a jump relation, and each page can be rendered and displayed in the host application end.
The parasitic web page is called a special type of web page because the parasitic web page includes one or more pieces of executable code, typically Javascript (JS) code, in addition to various types of resources (e.g., text, pictures, audio, or video) that can be rendered and displayed. Accordingly, when the parasitic web page is successfully loaded to the host application, the executable code may be triggered to execute, so as to implement the page display control method in the embodiments of the present invention. That is, the method of the present embodiment is implemented by the parasitic web page. Optionally, the parasitic webpage end may be an H5 (HTML 5) page with JS code written in advance.
In this embodiment, at least one of the pages in the parasitic webpage end may bear the pop-up component, or all the pages do not bear the pop-up component, which is not limited in this embodiment. When at least one page in each page bears the pop-up assembly, the scheme of the embodiment of the invention can realize accurate and effective page jump display when one or more pop-up assemblies are in a pop-up state, and when all pages do not bear the pop-up assemblies, the scheme of the embodiment of the invention can achieve the same page jump effect as the prior art. That is, in the technical solution of the embodiment of the present invention, in an application scenario that at least one page of the pages in the parasitic webpage end bears the pop-up component, when the user mistakenly thinks that the pop-up component is an independent page and the wrong page returns to the previous page through the return key, the user may correct the misoperation without perception, so that an accurate page jump effect is achieved on the user experience level, and the user does not need to correct the error through another operation.
The popup component is a special display control which cannot exist as an independent page, needs to be attached to a certain page and shares the same URL with the page. The pop-up component has two states of pop-up and retraction, when the pop-up component is popped up (in the pop-up state) in a page, the pop-up component can be partially or completely covered on the page for display, and when the pop-up component is retracted (in the retraction state) in the page, the pop-up component can be hidden in the page. Wherein, pop-up subassembly can include: the pop-up window assembly, the drawer assembly, the pop-up menu, the pop-up panel assembly, and other assemblies having the above characteristics are not limited in this embodiment.
By way of example and not limitation, a pictorial illustration of an overlay display pop-up assembly in a page to which embodiments of the present invention are applicable is shown in FIG. 1 b. The left side of the arrow in fig. 1b shows a display diagram of the page when the pop-up window assembly is in the retracted state, and the right side of the arrow in fig. 1b shows a display diagram of the page when the pop-up window assembly is in the pop-up state.
S120, when a page jump request of the host application end is received, judging whether each page in the parasitic webpage end comprises at least one pop-up component or not; and if so, detecting the display state of each pop-up component.
In this embodiment, after the parasitic Web page is delivered to the host application in the terminal device, the Web page display control built in the host application may render and display each page included in the parasitic Web page. Typically, each page in the parasitic web page end may include a first page and a lower page having one or more jump relationships with the first page. The first page or one or more lower pages may or may not include one or more pop-up components.
After the host application end finishes loading each page in the parasitic webpage end, the first page included in the parasitic webpage end can be rendered and displayed. And subsequently, one or more lower pages included in the parasitic webpage end can be displayed according to the operation of the user on the parasitic webpage end. When one or more pop-up components are included in the current display page, the one or more pop-up components can be popped up or put back in the current display page in the parasitic webpage end.
It should be noted that the operation performed by the user with respect to the parasitic webpage end can be directly identified and detected by the parasitic webpage end. Therefore, the user can be directly identified by the parasitic webpage end by clicking the control for jumping to the previous page or the next page in the current display page in the parasitic webpage end, and can correctly execute the corresponding jump. As described above, in the application scenario of this embodiment, the user does not directly operate the parasitic web page, but generates a page return request in the terminal operating system by clicking an entity or a virtual key on the terminal, and sends the page return request to the parasitic web page via the host application (for example, pressing an entity key for implementing a return function in the terminal device).
Under the condition, the parasitic webpage end can accurately identify the actual user requirement of the page return request according to the current page display state. Typically, if the current page display state is that a popup window is displayed in a full screen in a page, at this time, when a page return request of a user is received by a parasitic web page end, it may be determined that the user does not really want to jump from a current page to a previous page for presentation, but only wants to close the popup window in the current page. At this time, the parasitic webpage end can directly execute the operation of closing the pop-up window, and further correct the misoperation of the user under the condition that the user does not sense the operation.
Optionally, the actual user requirement of the user for the page return request sent by the parasitic web page end may include: the method comprises the steps of requesting the parasitic webpage end to return to a previous-stage page of a current display page, exiting or minimizing a host application end, requesting the parasitic webpage end to close one or more pop-up components in a pop-up state, and the like. The parasitic webpage end can select to execute the matched page jump operation according to the current page state.
The host application terminal is pre-installed in the terminal device, so that the host application terminal can communicate with the operating system adapted to the terminal device according to the preset communication rule. Correspondingly, when a user generates a page return request based on the terminal device trigger, the page return request can be captured by the host application terminal, and the host application terminal can further generate a page jump request based on the page return request and send the page jump request to the parasitic webpage terminal. After receiving the page jump request, the parasitic webpage end can determine a matched page jump display strategy based on the display state of each current page.
The inventor finds that when one or more pop-up components in the currently displayed page of the parasitic webpage end are currently in a pop-up state, a user triggers a generated page return request to hope to close the currently displayed one or more pop-up components. Based on this, after the parasitic web page end receives the page jump request, the display state of each pop-up component needs to be detected first to determine whether the actual demand of the user is to close the display of the pop-up component. Wherein the presentation state may include: an ejected state and a stowed state. The pop-up component in the pop-up state is displayed in the current display page (typically, partially translucent overlay display), and the pop-up component in the collapsed state is hidden in the current display page.
In an optional implementation manner of this embodiment, the parasitic webpage end may modify the switch flag of the target pop-up component in real time in response to the display state adjustment instruction for the target pop-up component; wherein the switch state in the switch mark is used for identifying the display state of the pop-up component.
The user can directly send a display state adjusting instruction to the parasitic webpage end so as to modify the switch marks of one or more pop-up components in the parasitic webpage end. Typically, a switch mark attribute may be set in advance for each pop-up component in the parasitic webpage end, and the switch mark attribute of each pop-up component is initialized to false, that is, the collapsed state. In the process of displaying each page in the parasitic webpage end, the switch marking attribute of each pop-up component can be dynamically adjusted according to a display state adjusting instruction sent by a user, and when the switch marking attribute of one pop-up component is true, the pop-up component is in a pop-up state.
Correspondingly, the parasitic webpage end can determine the display state of each pop-up component by detecting the switch mark of each pop-up component.
Further, if the parasitic web page end judges that each page in the parasitic web page end does not include the pop-up component, the page return request is not a request for closing the pop-up component, but is a request for jumping from the current display page to the previous page, or a request for directly closing the host application end.
Accordingly, the parasitic web page may feed back the page return request to the host application again, and the host application calls an operating system providing method (interface) to implement a jump from the currently displayed page to the previous page (typically, the page jump is implemented in a stack pop-in or pop-out manner), or directly quits or runs the host application in the background.
Or, the parasitic webpage end may first query a routing configuration table stored in itself, and determine whether the current display page is a main page in the parasitic webpage end, if not, the parasitic webpage end may directly control the host application end to perform skip display on a higher-level page of the current display page, and if so, the parasitic webpage end may trigger to call an application program return interface in the host application end to close or operate the host application end in a background.
S130, if the display state of at least one pop-up component is detected to be the pop-up state, determining at least one closing component in each detected pop-up component.
And if one or more pop-up components are found to be in the pop-up state after the display states of the pop-up components are obtained, determining that the actual demand of the user is to close the display of at least one of the pop-up components in the pop-up state. Therefore, it is necessary to first determine one or more closing members among the plurality of ejecting members in the ejected state.
In this embodiment, the closing component may be determined by a preset processing logic, which is not limited in this embodiment. In a specific example, when only one presentation state of the pop-up assembly is detected as the pop-up state, the pop-up assembly can be directly determined as the closing assembly; when the display state of the plurality of pop-up assemblies is detected to be the pop-up state, and the plurality of pop-up assemblies have a stacking (partial or full covering) relationship, one pop-up assembly at the uppermost layer can be determined as a closing assembly and the like; when it is detected that the plurality of pop-up assemblies do not have any stacked relationship therebetween, all of the pop-up assemblies in the pop-up state may be determined as the closing assembly or the like.
S140, adjusting the display state of each closing assembly from the pop-up state to the retracted state so as to close the display of the pop-up assembly in the host application end.
In this embodiment, the display state of the closing component can be adjusted from the pop-up state to the stow state by modifying the switch flag of the closing component (modifying the switch flag from true to false). Furthermore, the effect that the display of the popup component is closed in the host application can be achieved.
It should be noted again that a preset rendering method is written in the parasitic webpage end in advance, and the rendering function is automatically triggered when the state of each page in the parasitic webpage end is changed, so as to update and render the changed state.
After the parasitic webpage end loads and displays the webpage in the host application end, at least one popup component with a popup state in each page in the parasitic webpage end is adjusted from a popup state to a retracted state according to a page jump request sent by the host application end, and on the premise of meeting the normal page jump requirement of a user, when the user selects a return key to return the page by using the currently displayed popup component as an independent page, the actual intention of the user can be accurately grasped, the popup component which needs to be closed actually by the user is correspondingly closed, the page jump function on the user experience level is realized, and under the condition that the user does not sense, the misoperation of the user is corrected, the frequent operation of the user can be reduced, the probability of triggering the page jump is reduced, and the intelligence and the high efficiency of man-machine interaction are improved. The technical scheme of the embodiment of the invention effectively supplements the defects of the existing page returning scheme, and provides a new page skipping control mode realized by a parasitic webpage end, so that even if the page (pop-up component) needing skipping is the same as the URL of the page before skipping, skipping display of the page can be efficiently and accurately realized when the page returns to the page before skipping.
On the basis of the above embodiments, determining at least one closing component among the detected pop-up components may include:
if the number of the detected pop-up assemblies is multiple, judging whether the multiple pop-up assemblies have a stacking relation or not;
if yes, acquiring a top-level assembly in the pop-up assemblies as the closing assembly; if not, all the pop-up assemblies are taken as the closing assemblies.
In this alternative embodiment, the inventor further thinks that if the actual requirement of the user is to close pop-up components in the current presentation page (the user mistakenly recognizes the pop-up components as a page and selects to trigger the return of the return key in the terminal device), when a plurality of pop-up components are included in the current presentation page, the actual closing requirement of the user is associated with the current stacking relationship of the pop-up components.
Specifically, if the current display page includes a plurality of pop-up assemblies that do not have a stacking relationship, it indicates that the plurality of pop-up assemblies are displayed in a pop-up manner to meet different information acquisition requirements of the user, at this time, the page return requirement of the user should be directly returned to the common carrier page of the plurality of pop-up assemblies for display, and at this time, the plurality of pop-up assemblies may be simultaneously closed as a closing assembly.
If the current display page comprises a plurality of pop-up components with a stacking relation, the pop-up components are displayed in a pop-up mode so as to meet the progressive information acquisition requirement of the user, at this time, the page return requirement of the user should be returned to the pop-up component on the upper layer of the pop-up component for display, and at this time, the top-layer component can be used as the closing component for closing.
Example two
Fig. 2 is a flowchart of a page display control method according to a second embodiment of the present invention, where this embodiment is a further refinement of the foregoing embodiment, and the same or corresponding terms as those in the foregoing embodiment are explained, and this embodiment is not repeated again, and the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments. As shown in fig. 2, the method provided in the embodiment of the present invention may further include:
s210, loading and displaying the web page in the parasitic web page end in the host application end, wherein the parasitic web page end comprises a plurality of web pages.
S220, registering a page internal hop interface at the host application end so as to enable the host application end to call the page internal hop interface.
In this embodiment, the parasitic web page further includes an intra-page hop interface, and the parasitic web page exposes the intra-page hop interface to the host application side, and the host application side can send a page hop request to the parasitic web page by calling the intra-page hop interface, so that the method for controlling the display of the page according to the embodiments of the present invention is implemented.
Correspondingly, after the webpage in the parasitic webpage end is loaded and displayed in the host application end, the executable code in the parasitic webpage end is triggered and executed, and the in-page jump interface is registered to the host application end, wherein the registration refers to mounting the in-page jump interface in the host application end, or exposing the in-page jump interface to the host application end, so that the calling capability of the host application end on the in-page jump interface is enabled. Correspondingly, a corresponding implementation code may be added to the host application end, so that whenever a user sends a page return request to the host application end, the host application end will correspondingly trigger the call to the intra-page jump interface.
Optionally, detecting that the intra-page hop interface in the parasitic web page is triggered and called by the host application side may include:
when a first call request sent by the host application terminal is received through a first channel in the bridge component, it is determined that the call of the intra-page jump interface in the parasitic webpage terminal is triggered by the host application terminal. The bridge component is used for establishing communication connection between the parasitic webpage end and the host application end.
In other words, receiving the page jump request of the host application may include:
when a first call request which is sent by a host application end and aims at a page internal jump interface in a parasitic webpage end is received through a first channel in a bridge component, the page jump request of the host application end is determined to be received.
Optionally, for example, the host application end is an Android application, and the parasitic webpage end is an H5 page, the bridge component may be a component for establishing a communication connection between the Android application and the H5 page. Typically, the bridge component may be a DBbridge.
S230, when detecting that the intra-page jump interface in the parasitic webpage end is triggered and called by the host application end, judging whether each page in the parasitic webpage end comprises at least one pop-up component; and if so, detecting the display state of each pop-up component.
In this embodiment, application scenarios of the embodiments of the present invention are further enriched. In the previous example, if it is first determined that each page in the parasitic webpage end includes a pop-up page, the page jump request sent by the user through the mobile terminal may be that one or more pop-up components are closed in the current page (wrong user operation) in addition to the previous page that is expected to return to the current page (correct user operation), and therefore, the display states of the pop-up components need to be further detected to determine what manner of page jump is specifically performed.
Correspondingly, after the display state of each pop-up component is obtained, if one or more pop-up components are found to be in the pop-up state, the actual requirement of the user is determined to be that the display of at least one of the pop-up components in the pop-up state is closed. Therefore, it is necessary to determine one or more closing components among the plurality of pop-up components in the pop-up state;
if all the pop-up components are found to be in the retracted state after the display states of all the pop-up components are obtained, the actual requirement of the user can be determined to jump from the current display page in the parasitic webpage end to the previous page, or the host application end is closed or minimized.
It can be understood that, if the current display page is a homepage, the current display page no longer has an upper page, and therefore, the actual requirement of the user is to close or minimize the host application; and if the current display page is not the main page, determining that the actual demand of the user is to jump from the current display page to the upper page.
S240, judging whether the display state of at least one pop-up assembly is detected to be a pop-up state: if yes, executing S250; otherwise, S260 is performed.
S250, determining at least one closing component in each detected pop-up component, and executing S270.
And S260, acquiring the current display page in the host application end, and executing S280.
S270, adjusting the display state of each closing assembly from the pop-up state to the retraction state so as to close the display of the pop-up assembly in the host application end.
S280, judging whether the current display page is a homepage in the parasitic webpage end: if yes, go to S290; otherwise, S2100 is performed.
In an optional implementation manner of this embodiment, the manner of determining whether the current display page is a main page in the parasitic web page end may be:
inquiring a routing configuration table corresponding to each page, and judging whether the current display page is a homepage in the parasitic webpage end; the routing configuration table is used for indicating the routing relation of each page in the parasitic webpage end.
In this embodiment, a routing configuration table indicating a routing relationship of each page in the parasitic webpage is built in the parasitic webpage, where the routing relationship specifically refers to routing information pointing from a main page in each page to each subordinate page, and different pages have different page identifiers (typically, URL addresses of the pages).
By obtaining the page identifier of the current display page and inquiring the routing configuration table based on the page identifier, whether the current display page is a homepage can be determined quickly and accurately.
And S290, triggering and calling an application program return interface in the host application end to close or run the host application end in a background mode.
When the current display page is determined to be the main page, the host application end needs to be closed or minimized, and the operations cannot be directly executed by the parasitic webpage end. Therefore, the parasitic webpage end can trigger and call an application program return interface provided by the host application end so as to realize the control of the host application end. Namely, the host application end is controlled to execute the matched closing operation or the background running operation.
The specific implementation of which return function is implemented by calling the application return interface is determined by the execution logic involved in the application return interface, which is not limited in this embodiment.
In an optional implementation manner of this embodiment, the triggering and calling an application program return interface in the host application end includes: and sending a second calling request aiming at the application program return interface to the host application end through a second channel in the bridge component.
And when the application program return interface is triggered and called, indicating the host application end to close the application program or run in the background.
And S2100, in the host application end, performing skip display on the upper page of the current display page.
After the parasitic webpage end loads and displays the webpage in the host application end, at least one popup component with a popup state in each page in the parasitic webpage end is adjusted from a popup state to a retracted state according to a page jump request sent by the host application end, and on the premise of meeting the normal page jump requirement of a user, when the user selects a return key to return the page by using the currently displayed popup component as an independent page, the actual intention of the user can be accurately grasped, the popup component which needs to be closed actually by the user is correspondingly closed, the page jump function on the user experience level is realized, and under the condition that the user does not sense, the misoperation of the user is corrected, the frequent operation of the user can be reduced, the probability of triggering the page jump is reduced, and the intelligence and the high efficiency of man-machine interaction are improved. The technical scheme of the embodiment of the invention effectively supplements the defects of the existing page returning scheme, and provides a new page skipping control mode realized by a parasitic webpage end, so that even if the page (pop-up component) needing skipping is the same as the URL of the page before skipping, skipping display of the page can be efficiently and accurately realized when the page returns to the page before skipping.
EXAMPLE III
Fig. 3 is a flowchart of an implementation of a page display control method according to a third embodiment of the present invention, where this embodiment is applicable to a case where a parasitic web page includes multiple pages and is displayed by skipping in a host application, and the method may be executed by the host application, and this embodiment is a method executed by the parasitic web page adapted to the host application in the foregoing embodiments, and is the same as or explained in terms corresponding to the foregoing embodiments, which is not described again in detail in this embodiment, and the method in this embodiment specifically includes the following steps:
s310, receiving a parasitic webpage end issued by the server, wherein the parasitic webpage end comprises a plurality of pages.
In an optional implementation manner of this embodiment, the parasitic web page may first trigger to generate a page display request in response to a click or touch operation of a user, and after sending the page display request to the server, receive the parasitic web page sent by the server for the page display request.
And S320, loading and displaying the page in the parasitic webpage end.
S330, detecting the pop-up component in the current display page when the page return request is detected, generating a page jump request according to the detection result of the pop-up component, and sending the page jump request to the parasitic webpage end.
The parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state included in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page so as to close the display of the pop-up component in the host application end.
In this embodiment, the detecting a page return request may include at least one of the following: when a user input return gesture is monitored, determining that the page return request is detected; when it is monitored that a user presses an entity return key, determining that the page return request is detected; and when the fact that the user presses a virtual return key is monitored, determining that the page return request is detected.
That is, when the host application detects a page return request of the user, a page jump request may be generated by corresponding triggering, so as to control the parasitic webpage end to close the display of the pop-up component currently in the pop-up state.
Optionally, when receiving the page return request, the host application terminal may directly generate a matched page jump request based on the page return request, and directly send the matched page jump request to the parasitic web page terminal, where the parasitic web page terminal executes a matched page jump control operation. In this embodiment, in order to further reduce the workload of the parasitic webpage end and improve the rendering and displaying efficiency of the webpage, the host application end may first detect the pop-up component included in the current display page, add the corresponding detection result to the page jump request, and then send the page jump request to the parasitic webpage end, and the parasitic webpage end determines, in combination with the detection result, whether the closing operation of the pop-up component or the page jump operation with the current display page is specifically executed.
Correspondingly, the detection result may include: the detection result of the pop-up component is included or not included in the current display page, and when it is determined that the pop-up component is included in the current display page, the detection result may further include: and identifying the component identification of each pop-up component in the current display page.
When the parasitic webpage end receives a detection result that the current display page comprises the pop-up components, the display state of the pop-up components corresponding to the component identifications in the detection result can be directly detected, and at least one pop-up component with the display state being the pop-up state is correspondingly adjusted to be the retraction state from the pop-up state.
When the parasitic webpage end receives the detection result that the pop-up component is not included in the current display page, a built-in routing configuration table indicating the routing relationship of each page in the parasitic webpage end can be directly inquired, and whether the current display page is a homepage or not is judged: if not, the parasitic webpage end can directly control the host application end to carry out skip display on the upper-level page of the current display page, and if so, the parasitic webpage end can trigger and call an application program return interface in the host application end to close or run the host application end in a background mode.
Of course, the detection result may further include other information, for example, whether the current display page is a homepage of the parasitic webpage end, when the current display page includes a plurality of pop-up components, a stacking relationship between the plurality of pop-up components, and the like. It can be understood that the more information included in the detection result, the less identification operations need to be performed in the parasitic web page end, and the faster the jump update speed of the page.
According to the technical scheme of the embodiment of the invention, the host application terminal receives the parasitic webpage terminal issued by the server, and the page in the parasitic webpage terminal is loaded and displayed; when a page return request is detected, a mode of sending a page jump request to a parasitic webpage end can trigger and control the parasitic webpage end to adjust at least one pop-up component with a display state as a pop-up state into a retracted state according to the page jump request, on the premise of meeting the normal page jump requirement of a user, when the user takes the currently displayed pop-up component as an independent page and selects to use a return key for page return, the actual intention of the user can be accurately grasped, the pop-up component which needs to be closed actually by the user is closed correspondingly, the page jump function on the user experience level is realized, under the condition that the user does not sense, the misoperation of the user is corrected, further, the frequent operation of the user can be reduced, the page jump probability is triggered, and the intelligence and the efficiency of man-machine interaction are improved. The technical scheme of the embodiment of the invention effectively supplements the defects of the existing page returning scheme, and provides a new page skipping control mode realized by a parasitic webpage end, so that even if the page (pop-up component) needing skipping is the same as the URL of the page before skipping, skipping display of the page can be efficiently and accurately realized when the page returns to the page before skipping.
Example four
Fig. 4 is a flowchart of a page display control method according to a fourth embodiment of the present invention, where this embodiment is a further refinement of the foregoing embodiment, and the same or corresponding terms as those in the foregoing embodiment are explained, and this embodiment is not repeated again, and the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments. As shown in fig. 4, the method provided in the embodiment of the present invention may further include:
s410, receiving a parasitic webpage end issued by the server, wherein the parasitic webpage end comprises a plurality of pages.
And S420, loading and displaying the page in the parasitic webpage end.
S430, responding to a registration request of the parasitic webpage end to the jump interface in the page, and locally mounting the jump interface in the page so as to call the jump interface in the page.
S440, when a page return request is detected, detecting a pop-up component in the current display page, and triggering and calling a page internal jump interface in the parasitic webpage end according to a detection result of the pop-up component so as to send a page jump request to the host application end.
And the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page.
S450, if the application program return interface in the host application end is detected to be triggered and called by the parasitic webpage end, closing the host application end or running the host application end in a background mode.
And when the parasitic webpage end determines that the current display page matched with the page jump request is a main page in the parasitic webpage end, triggering and calling an application program return interface in the host application end.
According to the technical scheme of the embodiment of the invention, the host application terminal receives the parasitic webpage terminal issued by the server, and the page in the parasitic webpage terminal is loaded and displayed; when a page return request is detected, a page jump request is sent to a parasitic webpage end, the parasitic webpage end can be triggered and controlled to adjust at least one popup component with a popup state from a popup state to a retracted state according to the page jump request, on the premise that a normal page jump requirement of a user is met, when the user takes the currently displayed popup component as an independent page and selects a return key to return the page, the actual intention of the user can be accurately grasped, the popup component which needs to be closed actually by the user is correspondingly closed, a page jump function on a user experience level is realized, under the condition that the user does not sense, misoperation of the user is corrected, frequent operation of the user can be reduced, the probability of page jump is triggered, and the intelligence and the efficiency of man-machine interaction are improved. The technical scheme of the embodiment of the invention effectively supplements the defects of the existing page returning scheme, and provides a new page skipping control mode realized by a parasitic webpage end, so that even if the page (pop-up component) needing skipping is the same as the URL of the page before skipping, skipping display of the page can be efficiently and accurately realized when the page returns to the page before skipping.
EXAMPLE five
Fig. 5 is a structural diagram of a device for controlling display of a page according to a fifth embodiment of the present invention, where the device is configured in a parasitic web page, and the device includes: a loading display control module 510, a presentation state detection module 520, a closing component determination module 530, and a presentation state adjustment module 540.
A loading display control module 510, configured to load and display a web page in a parasitic web page end in a host application end, where the parasitic web page end includes multiple web pages;
a display state detection module 520, configured to determine whether each page in the parasitic web page includes at least one pop-up component when receiving a page jump request of the host application; if yes, detecting the display state of each pop-up component;
a closing component determining module 530, configured to determine at least one closing component in each detected pop-up component if the presentation state of the at least one pop-up component is detected as the pop-up state;
a display state adjusting module 540, configured to adjust the display state of each closing component from the pop-up state to the retracted state, so as to close the display of the pop-up component in the host application.
After the parasitic webpage end loads and displays the webpage in the host application end, at least one popup component with a popup state in each page in the parasitic webpage end is adjusted from a popup state to a retracted state according to a page jump request sent by the host application end, and on the premise of meeting the normal page jump requirement of a user, when the user selects a return key to return the page by using the currently displayed popup component as an independent page, the actual intention of the user can be accurately grasped, the popup component which needs to be closed actually by the user is correspondingly closed, the page jump function on the user experience level is realized, and under the condition that the user does not sense, the misoperation of the user is corrected, the frequent operation of the user can be reduced, the probability of triggering the page jump is reduced, and the intelligence and the high efficiency of man-machine interaction are improved. The technical scheme of the embodiment of the invention effectively supplements the defects of the existing page returning scheme, and provides a new page skipping control mode realized by a parasitic webpage end, so that even if the page (pop-up component) needing skipping is the same as the URL of the page before skipping, skipping display of the page can be efficiently and accurately realized when the page returns to the page before skipping.
On the basis of the foregoing embodiments, the display state detection module 520 may be specifically configured to:
when a first call request which is sent by a host application end and aims at a page internal jump interface in a parasitic webpage end is received through a first channel in a bridge component, determining that a page jump request of the host application end is received;
the bridge component is used for establishing communication connection between the parasitic webpage end and the host application end.
On the basis of the foregoing embodiments, the method may further include an interface registration module, configured to:
after the webpage in the parasitic webpage end is loaded and displayed in the host application end, the intra-page jump interface is registered in the host application end, so that the host application end can call the intra-page jump interface.
On the basis of the above embodiments, the method may further include:
the current display page acquisition module is used for acquiring a current display page in the host application end after detecting the display state of each pop-up component and if the display state of each pop-up component is determined to be the retracted state;
the homepage judging module is used for judging whether the current display page is the homepage in the parasitic webpage end;
and the skip display module is used for performing skip display on the upper page of the current display page in the host application end when the current display page is determined not to be the main page in the parasitic webpage end.
On the basis of the foregoing embodiments, the method may further include an interface calling module, configured to:
after judging whether the current display page is the homepage in the parasitic webpage end or not, when the current display page is determined to be the homepage in the parasitic webpage end, triggering and calling an application program return interface in the host application end so as to close or operate the host application end in a background mode.
On the basis of the foregoing embodiments, the homepage determining module may be specifically configured to:
inquiring a routing configuration table corresponding to each page, and judging whether the current display page is a homepage in the parasitic webpage end;
the routing configuration table is used for indicating the routing relation of each page in the parasitic webpage end.
On the basis of the foregoing embodiments, the switch mark modification apparatus may further include:
after the webpage in the parasitic webpage end is loaded and displayed in the host application end, responding to a display state adjustment instruction of a target pop-up component, and modifying a switch mark of the target pop-up component;
wherein the switch state in the switch mark is used for identifying the display state of the pop-up component.
On the basis of the foregoing embodiments, the closing component determining module 530 may be specifically configured to:
if the number of the detected pop-up assemblies is multiple, judging whether the multiple pop-up assemblies have a stacking relation or not;
if so, acquiring a top-level assembly in the plurality of pop-up assemblies as the closing assembly; and if not, taking the plurality of pop-up assemblies as the closing assemblies.
On the basis of the foregoing embodiments, the interface calling module may be specifically configured to:
sending a second calling request aiming at the application program return interface to the host application end through a second channel in the bridge component;
the bridge component is used for establishing communication connection between the parasitic webpage end and the host application end, and when the application program return interface is triggered and called, the host application end is instructed to close the application program or run in a background.
The page display control device provided by the embodiment of the invention can execute the page display control method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a structural diagram of a display control apparatus for a page according to a sixth embodiment of the present invention, where the apparatus is configured in a host application, and the apparatus includes: a parasitic webpage end receiving module 610, a loading display module 620 and a page jump request sending module 630.
The parasitic webpage end receiving module 610 is configured to receive a parasitic webpage end issued by a server, where the parasitic webpage end includes multiple pages;
a loading display module 620, configured to load and display a page in the parasitic web page end;
a page jump request sending module 630, configured to detect a pop-up component in a current display page when a page return request is detected, and generate a page jump request according to a detection result of the pop-up component, and send the page jump request to the parasitic web page end;
and the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page.
According to the technical scheme of the embodiment of the invention, the host application terminal receives the parasitic webpage terminal issued by the server, and the page in the parasitic webpage terminal is loaded and displayed; when a page return request is detected, a page jump request is sent to a parasitic webpage end, the parasitic webpage end can be triggered and controlled to adjust at least one popup component with a popup state from a popup state to a retracted state according to the page jump request, on the premise that a normal page jump requirement of a user is met, when the user takes the currently displayed popup component as an independent page and selects a return key to return the page, the actual intention of the user can be accurately grasped, the popup component which needs to be closed actually by the user is correspondingly closed, a page jump function on a user experience level is realized, under the condition that the user does not sense, misoperation of the user is corrected, frequent operation of the user can be reduced, the probability of page jump is triggered, and the intelligence and the efficiency of man-machine interaction are improved. The technical scheme of the embodiment of the invention effectively supplements the defects of the existing page returning scheme, and provides a new page jump control mode realized by a parasitic webpage end, so that even if the page (pop-up component) needing to be jumped is the same as the URL of the page before jumping, the jump display of the page can be efficiently and accurately realized when the page returns to the page before jumping.
On the basis of the foregoing embodiments, the method may further include an interface registration module, configured to, after loading and displaying the page in the parasitic webpage end, respond to a registration request of the parasitic webpage end to a page internal hop forwarding interface, and locally mount the page internal hop forwarding interface, so as to enable calling of the page internal hop interface;
the page jump request sending module 630 may be specifically configured to:
and triggering and calling a page internal jump interface in the parasitic webpage end so as to send a page jump request to the parasitic webpage end.
On the basis of the foregoing embodiments, the page jump request sending module 630 may be further configured to:
when a user input return gesture is monitored, determining that the page return request is detected;
when the fact that a user presses an entity return key is monitored, determining that the page return request is detected;
and when the fact that the user presses a virtual return key is monitored, determining that the page return request is detected.
On the basis of the foregoing embodiments, the method may further include an interface calling module, configured to, after triggering and calling the intra-page jump interface in the parasitic web page end, if it is detected that the application program return interface in the host application end is triggered and called by the parasitic web page end, close the host application end, or run the host application end in the background;
and when the parasitic webpage end determines that the current display page matched with the page jump request is a main page in the parasitic webpage end, triggering and calling an application program return interface in the host application end.
The page display control device provided by the embodiment of the invention can execute the page display control method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a computer device according to embodiment 7 of the present invention, and as shown in fig. 7, the device/terminal/server includes a processor 710, a memory 720, an input device 730, and an output device 740; the number of the processors 710 in the device/terminal/server may be one or more, and one processor 710 is taken as an example in fig. 7; the processor 710, the memory 720, the input device 730 and the output device 740 in the device/terminal/server may be connected by a bus or other means, which is exemplified in fig. 7.
The memory 720 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the page display control method in the embodiment of the present invention (for example, the loading display control module 510, the display state detection module 520, the closing component determination module 530, and the display state adjustment module 540 in the display control device of one page; and for example, the parasitic netpage terminal receiving module 610, the loading display module 620, and the page jump request sending module 630 in the display control device of another page). The processor 70 executes various functional applications and data processing of the computer device, i.e., realizes the above-mentioned presentation control of the page, by executing the software programs, instructions and modules stored in the memory 720.
That is, the program when executed by the processor implements: a method for controlling the display of a page executed by a parasitic webpage end comprises the following steps:
loading and displaying the web page in the parasitic web page end in the host application end, wherein the parasitic web page end comprises a plurality of web pages;
when a page jump request of the host application end is received, judging whether each page in the parasitic webpage end comprises at least one pop-up component or not; if yes, detecting the display state of each pop-up component;
determining at least one closing component in each detected pop-up component if the display state of at least one pop-up component is detected as the pop-up state;
and adjusting the display state of each closing component from the popup state to the stowing state so as to close the display of the popup component in the host application.
Alternatively, the program when executed by the processor implements: another method for controlling the display of a page executed by a host application terminal includes:
receiving a parasitic webpage end issued by a server, wherein the parasitic webpage end comprises a plurality of pages;
loading and displaying the page in the parasitic webpage end;
when a page return request is detected, detecting a pop-up component in a current display page, generating a page jump request according to the detection result of the pop-up component, and sending the page jump request to the parasitic webpage end;
and the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page.
The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 720 may further include memory located remotely from the processor 710, which may be connected to the computer devices via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 740 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for controlling presentation of a page executed by a parasitic web page, where the method includes:
loading and displaying the web page in the parasitic web page end in the host application end, wherein the parasitic web page end comprises a plurality of web pages;
when a page jump request of the host application end is received, judging whether each page in the parasitic webpage end comprises at least one pop-up component or not; if yes, detecting the display state of each pop-up component;
determining at least one closing component in each detected pop-up component if the display state of at least one pop-up component is detected as the pop-up state;
and adjusting the display state of each closing component from the popup state to the stowing state so as to close the display of the popup component in the host application.
Alternatively, the computer-executable instructions, when executed by a computer processor, are for performing another method for controlling the presentation of pages by a host application, the method comprising:
receiving a parasitic webpage end issued by a server, wherein the parasitic webpage end comprises a plurality of pages;
loading and displaying the page in the parasitic webpage end;
when a page return request is detected, detecting the pop-up component in the current display page, generating a page jump request according to the detection result of the pop-up component, and sending the page jump request to the parasitic webpage end;
and the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page. Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the presentation control of the page provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the search apparatus, each included unit and each included module are merely divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (17)

1. A display control method of a page is executed by a parasitic webpage end, and is characterized by comprising the following steps:
loading and displaying the web page in the parasitic web page end in the host application end, wherein the parasitic web page end comprises a plurality of web pages;
when a page jump request of the host application end is received, judging whether each page in the parasitic webpage end comprises at least one pop-up component or not; if yes, detecting the display state of each pop-up assembly;
determining at least one closing component in each detected pop-up component if the display state of at least one pop-up component is detected as the pop-up state;
and adjusting the display state of each closing component from the popup state to the stowing state so as to close the display of the popup component in the host application.
2. The method of claim 1, wherein receiving a page jump request from the host application comprises:
when a first call request which is sent by a host application end and aims at a page internal jump interface in a parasitic webpage end is received through a first channel in a bridge component, determining that a page jump request of the host application end is received;
the bridge component is used for establishing communication connection between the parasitic webpage end and the host application end.
3. The method of claim 2, after loading and displaying the web page in the parasitic web page side in the host application side, further comprising:
and registering the intra-page jump interface at the host application end so as to enable the host application end to call the intra-page jump interface.
4. The method of claim 1, further comprising, after detecting the presentation status of each ejection assembly:
if the display states of the pop-up assemblies are all the retracting states, acquiring a current display page in the host application end;
judging whether the current display page is a homepage in the parasitic webpage end;
if not, skipping display is carried out on the upper-level page of the current display page in the host application end.
5. The method of claim 4, after determining whether the currently displayed page is a main page of the parasitic webpage end, further comprising:
if yes, triggering and calling an application program return interface in the host application end to close or run the host application end in a background mode.
6. The method according to claim 4 or 5, wherein determining whether the currently displayed page is a main page in the parasitic webpage end comprises:
inquiring a routing configuration table corresponding to each page, and judging whether the current display page is a main page in the parasitic webpage end;
the routing configuration table is used for indicating the routing relation of each page in the parasitic webpage end.
7. The method according to any one of claims 1 to 5, wherein after loading and displaying the web page in the parasitic web page side in the host application side, the method further comprises:
modifying a switch mark of a target pop-up component in response to a display state adjustment instruction for the target pop-up component;
wherein the switch state in the switch mark is used for identifying the display state of the pop-up component.
8. The method of any of claims 1-5, wherein determining at least one closing assembly among the detected pop-up assemblies comprises:
if the number of the detected pop-up assemblies is multiple, judging whether the multiple pop-up assemblies have a stacking relation or not;
if so, acquiring a top-level assembly in the plurality of pop-up assemblies as the closing assembly; and if not, taking the plurality of pop-up assemblies as the closing assemblies.
9. The method of claim 5, wherein triggering the invocation of the application return interface in the host application comprises:
sending a second calling request aiming at the application program return interface to the host application end through a second channel in the bridge component;
the bridge component is used for establishing communication connection between the parasitic webpage end and the host application end, and when the application program return interface is triggered and called, the host application end is instructed to close the application program or run in a background.
10. A page display control method is executed by a host application terminal, and is characterized by comprising the following steps:
receiving a parasitic webpage end issued by a server, wherein the parasitic webpage end comprises a plurality of pages;
loading and displaying the page in the parasitic webpage end;
when a page return request is detected, detecting a pop-up component in a current display page, generating a page jump request according to the detection result of the pop-up component, and sending the page jump request to the parasitic webpage end;
the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state included in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page so as to close the display of the pop-up component in the host application end.
11. The method of claim 10, further comprising, after loading and exposing the page in the hosted webpage end:
responding to a registration request of the parasitic webpage end to the jump switching interface in the page, and locally mounting the jump switching interface in the page so as to call the jump switching interface in the page;
generating a page jump request and sending the page jump request to the parasitic webpage end, wherein the page jump request comprises the following steps:
and triggering and calling an in-page jump interface in the parasitic webpage end so as to send a page jump request to the parasitic webpage end.
12. The method of claim 10, wherein detecting a page return request comprises at least one of:
when a user input return gesture is monitored, determining that the page return request is detected;
when it is monitored that a user presses an entity return key, determining that the page return request is detected;
and when the fact that the user presses a virtual return key is monitored, determining that the page return request is detected.
13. The method of claim 10, after triggering the invocation of an intra-page hop interface in the parasitic web page peer, further comprising:
if the application program return interface in the host application end is detected to be triggered and called by the parasitic webpage end, closing the host application end or running the host application end in a background;
and when the parasitic webpage end determines that the current display page matched with the page jump request is a main page in the parasitic webpage end, triggering and calling an application program return interface in the host application end.
14. A display control device of a page is executed by a parasitic web page end, and is characterized by comprising:
the loading display control module is used for loading and displaying the webpage in the parasitic webpage end in the host application end, and the parasitic webpage end comprises a plurality of pages;
the display state detection module is used for judging whether each page in the parasitic webpage end comprises at least one pop-up component or not when receiving a page jump request of the host application end; if yes, detecting the display state of each pop-up component;
the closing component determining module is used for determining at least one closing component in each detected ejecting component if the display state of at least one ejecting component is detected to be the ejecting state;
and the display state adjusting module is used for adjusting the display state of each closing component from a popup state to a stowing state so as to close the display of the popup component in the host application terminal.
15. A device for controlling the display of a page, executed by a host application, comprising:
the parasitic webpage end receiving module is used for receiving a parasitic webpage end issued by the server, and the parasitic webpage end comprises a plurality of pages;
the loading display module is used for loading and displaying the page in the parasitic webpage end;
the page jump request sending module is used for detecting the pop-up component in the current display page when a page return request is detected, generating a page jump request according to the detection result of the pop-up component and sending the page jump request to the parasitic webpage end;
the parasitic webpage end is used for adjusting at least one pop-up component with a pop-up display state included in the current display page from the pop-up state to a retracted state according to the detection result in the page jump request, or executing a page jump operation matched with the current display page so as to close the display of the pop-up component in the host application end.
16. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a presentation control method for a page as claimed in any one of claims 1 to 9, or to implement a presentation control method for a page as claimed in any one of claims 10 to 13.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a presentation control method for a page according to any one of claims 1 to 9, or a presentation control method for a page according to any one of claims 10 to 13.
CN202110178509.5A 2021-02-09 2021-02-09 Page display control method and device, computer equipment and storage medium Active CN112861044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110178509.5A CN112861044B (en) 2021-02-09 2021-02-09 Page display control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110178509.5A CN112861044B (en) 2021-02-09 2021-02-09 Page display control method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112861044A CN112861044A (en) 2021-05-28
CN112861044B true CN112861044B (en) 2022-10-28

Family

ID=75989621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110178509.5A Active CN112861044B (en) 2021-02-09 2021-02-09 Page display control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112861044B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113391856B (en) * 2021-06-25 2022-04-15 北京字节跳动网络技术有限公司 Cross-task-stack page processing method, device, equipment and medium
CN114238821B (en) * 2022-02-18 2022-04-29 北京金堤科技有限公司 Popup window processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815276B (en) * 2015-11-27 2020-06-16 阿里巴巴集团控股有限公司 Page skipping method and device
CN108345481B (en) * 2017-01-22 2023-04-18 腾讯科技(深圳)有限公司 Page display method and device, client and server
CN110851064B (en) * 2019-10-20 2024-05-28 阿里巴巴集团控股有限公司 Information display method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112861044A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US20210073058A1 (en) Message processing method and apparatus, storage medium, and computer device
CN110020292B (en) Webpage content extraction method and terminal equipment
CN111193599B (en) Message processing method and device
EP3407221A1 (en) Methods and devices for searching and displaying information on a terminal
CN112861044B (en) Page display control method and device, computer equipment and storage medium
CA2911764C (en) Web application management method and apparatus
CN102929924A (en) Method and device for generating word selecting searching result based on browsing content
CN102929925A (en) Search method and device based on browsing content
CN102929926A (en) Word-taking search method and device based on browsed contents
US10606900B2 (en) Intelligent searching method and system based on mobile device
CN107105336B (en) Data processing method and data processing device
CN112486451B (en) Voice broadcasting method, computing device and computer storage medium
CN103678307A (en) Page display method and client-side
CN102945243A (en) Contact information identification method based on browsing contents
CN104461512A (en) Method and device for starting application program quickly
CN113194200B (en) Message display method and device and electronic equipment
CN107908679B (en) Script statement conversion method and device and computer readable storage medium
CN113360062A (en) Display control method and device, electronic equipment and readable storage medium
CN110971424B (en) Message processing method, device and system, computer equipment and storage medium
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN107220377B (en) Search method, electronic device, and computer storage medium
CN108958855B (en) Page jump method, device and system
CN114489913A (en) Interaction method, interaction device and electronic equipment
WO2015014262A1 (en) Method, system and terminal for performing search in browser
WO2021221827A1 (en) Combined local and server context menus

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