Search

CN-121996339-A - Page display method and device

CN121996339ACN 121996339 ACN121996339 ACN 121996339ACN-121996339-A

Abstract

The embodiment of the specification provides a page display method and device, wherein the page display method comprises the steps of responding to operation of a current WebView page to generate a target plug-in call request, wherein the target plug-in call request carries a target plug-in identification, determining target plug-in display information based on the target plug-in identification through an application plug-in integration component, wherein the target plug-in display information represents information to be displayed related to a target plug-in the process of processing the target plug-in call request, and updating the current WebView page based on the target plug-in display information through a page management component to obtain the target WebView page. The plug-in expansion function is provided by the application plug-in integration component, the WebView-based page display function is provided by the page management component, and the isolation of page display and plug-in capability is realized.

Inventors

  • LI HAIXIANG
  • XIE XUEHUI

Assignees

  • 优视科技(中国)有限公司

Dates

Publication Date
20260508
Application Date
20251215

Claims (11)

  1. 1. The method is applied to a business application of mobile terminal equipment, an application plugin integration component and a page management component are deployed in the business application, the application plugin integration component is used for providing plugin expansion functions for the business application, and the page management component is used for displaying a web-based page and comprises the following steps: generating a target plug-in call request in response to the operation of the current WebView page, wherein the target plug-in call request carries a target plug-in identifier; determining, by the application plug-in integration component, target plug-in display information based on the target plug-in identifier, wherein the target plug-in display information characterizes information to be displayed related to a target plug-in a process of processing a target plug-in call request; And updating the current WebView page based on the target plug-in display information by the page management component to obtain a target WebView page.
  2. 2. The method of claim 1, generating a target plug-in call request in response to an operation on a current WebView page, comprising: And responding to the operation of the current application page, generating a target plug-in call request by a page management component, and sending the target plug-in call request to the application plug-in integration component.
  3. 3. The method of claim 2, the application plug-in integration component comprising a plug-in interface module and a kernel module; sending the target plug-in call request to the application plug-in integration component, including: and calling a first interface provided by the plug-in interface module through the page management component, and transmitting the target plug-in calling request to the kernel module, wherein the first interface is used for providing a plug-in expansion function of the kernel module.
  4. 4. The method of claim 1, determining, by the application plug-in integration component, target plug-in display information based on the target plug-in identification, comprising: And determining target plug-in display information corresponding to the target plug-in identification in a preset mapping relation table of the plug-in identification and the display information through the application plug-in integration component.
  5. 5. The method of claim 1, the application plug-in integration component comprising a plug-in interface module and a kernel module; Determining, by the application plug-in integration component, target plug-in display information based on the target plug-in identification, including: And determining target plug-in display information based on the target plug-in identifier through the kernel module, and calling a second interface provided by the plug-in interface module to transmit the target plug-in display information to the page management component, wherein the second interface is used for providing the capacity of the page management component to update a WebView page.
  6. 6. The method of claim 1, wherein updating, by the page management component, the current WebView page based on the target plug-in display information to obtain a target WebView page comprises: Rendering, by the page management component, the target plug-in display information in the current WebView page under the condition that the target plug-in display information is determined to be the first type information, to obtain a target WebView page; And rendering a target WebView page independent of the current WebView page based on the target plug-in display information under the condition that the target plug-in display information is determined to be the second type information.
  7. 7. The method of claim 6, determining that the target plug-in display information is a first type of information, comprising: Determining that the target plug-in display information is first display type information under the condition that the target plug-in call request is a target plug-in registration request or a target plug-in uninstallation request; Determining that the target plug-in display information is a second type of information comprises: and under the condition that the target plug-in call request is a target plug-in operation request, determining that the target plug-in display information is the second type information.
  8. 8. The page display device is deployed on a business application of mobile terminal equipment and comprises an application plugin integration component and a page management component, wherein the application plugin integration component is used for providing plugin expansion functions for the business application, and the page management component is used for displaying a page based on WebView; the response unit is configured to respond to the operation of the current WebView page to generate a target plug-in call request, wherein the target plug-in call request carries a target plug-in identifier; A determining unit configured to determine, by the application plug-in integration component, target plug-in display information based on the target plug-in identifier, wherein the target plug-in display information characterizes information to be displayed related to a target plug-in a process of processing a target plug-in call request; And the updating unit is configured to update the current WebView page based on the target plug-in display information through the page management component to obtain a target WebView page.
  9. 9. A computing device, comprising: A memory and a processor; The memory is adapted to store a computer program/instruction, the processor being adapted to execute the computer program/instruction, which when executed by the processor performs the steps of the method according to any one of claims 1 to 7.
  10. 10. A computer readable storage medium storing a computer program/instruction which, when executed by a processor, implements the steps of the method of any one of claims 1 to 7.
  11. 11. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any of claims 1 to 7.

Description

Page display method and device Technical Field The embodiment of the specification relates to the technical field of computers, in particular to a page display method. And to a page display device, a computing apparatus, a computer-readable storage medium and a computer program product. Background With the rapid development of technology, users have increasingly demanded a variety of browser functions. The third-party plug-in can be used for expanding functions of the browser, such as advertisement interception, webpage translation and the like, so that user experience is improved. The current third-party plug-in is widely applied to a computer-side browser, but a mobile-side browser or a mobile-side application also has the requirement of installing the third-party plug-in. For the mobile terminal application, web page content can be displayed through a WebView component. Specifically, in the case that the mobile terminal application needs to display the web content, the web content can be displayed in the user interface thereof through the WebView component without jumping to an external browser. Disclosure of Invention In view of this, the present embodiment provides a page display method. One or more embodiments of the present specification are also directed to a page display device, a computing apparatus, a computer-readable storage medium, and a computer program product that address the shortcomings of the prior art. According to a first aspect of embodiments of the present disclosure, there is provided a page display method, where the method is applied to a service application of a mobile terminal device, where an application plug-in integration component and a page management component are deployed in the service application, where the application plug-in integration component is configured to provide a plug-in extension function for the service application, and the page management component is configured to display a WebView-based page, and includes: generating a target plug-in call request in response to the operation of the current WebView page, wherein the target plug-in call request carries a target plug-in identifier; determining, by the application plug-in integration component, target plug-in display information based on the target plug-in identifier, wherein the target plug-in display information characterizes information to be displayed related to a target plug-in a process of processing a target plug-in call request; And updating the current WebView page based on the target plug-in display information by the page management component to obtain a target WebView page. According to a second aspect of embodiments of the present disclosure, there is provided a page display device, where the page display device is deployed on a service application of a mobile terminal device, and the page display device includes an application plugin integration component and a page management component, where the application plugin integration component is configured to provide a plugin extension function for the service application, and the page management component is configured to display a WebView-based page; the response unit is configured to respond to the operation of the current WebView page to generate a target plug-in call request, wherein the target plug-in call request carries a target plug-in identifier; A determining unit configured to determine, by the application plug-in integration component, target plug-in display information based on the target plug-in identifier, wherein the target plug-in display information characterizes information to be displayed related to a target plug-in a process of processing a target plug-in call request; And the updating unit is configured to update the current WebView page based on the target plug-in display information through the page management component to obtain a target WebView page. According to a third aspect of embodiments of the present specification, there is provided a computing device comprising: A memory and a processor; The memory is adapted to store a computer program/instruction, and the processor is adapted to execute the computer program/instruction, which when executed by the processor, implements the steps of the method described above. According to a fourth aspect of embodiments of the present description, there is provided a computer readable storage medium storing a computer program/instruction which, when executed by a processor, performs the steps of the above method. According to a fifth aspect of embodiments of the present description, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the above method. The page display method provided by the specification can be used for generating a target plug-in call request in service application of mobile terminal equipment based on WebView in response to operation of a current WebView page, wherein t