Search

CN-122019038-A - Page display method, device and equipment

CN122019038ACN 122019038 ACN122019038 ACN 122019038ACN-122019038-A

Abstract

The embodiment of the specification discloses a page display method, device and equipment. The scheme can include that after a user executes a first trigger operation on a first page of a first applet at the user terminal equipment, if the user terminal equipment is determined to meet a preset page display condition, a second page except the first applet and the first page at the first applet can be displayed in a screen of the user terminal equipment so as to cooperatively display the pages inside and outside the applet.

Inventors

  • LIN GUOTAO
  • ZHANG YUYE
  • ZHANG HAIBIN
  • LI TAO

Assignees

  • 支付宝(杭州)数字服务技术有限公司

Dates

Publication Date
20260512
Application Date
20220909

Claims (20)

  1. 1. A page presentation method, comprising: The method comprises the steps that a user terminal device obtains a first trigger operation of a first page of a first applet for a user, wherein the first trigger operation is used for requesting a second page and the first page to be displayed in a screen of the user terminal device; judging whether the user terminal equipment accords with a preset page display condition based on the first triggering operation to obtain a judging result, wherein the preset page display condition is used for indicating that the user terminal equipment has the capability and authority of cooperatively displaying the first page and the second page; And if the judging result shows that the user terminal equipment accords with the preset page display condition, displaying at least part of contents of the second page and the first page in the screen.
  2. 2. The method of claim 1, the second page being an application page of a second applet or the second page being a web page.
  3. 3. The method of claim 1 or 2, the first page having a business relevance to the content of the second page.
  4. 4. The method of claim 2, wherein the determining whether the user terminal device meets a preset page display condition specifically includes: Judging whether the application version of the host application of the first applet at the user terminal equipment is a first preset version, wherein the host application of the first preset version is provided with program files required for displaying the second page and the first page according to a non-full screen display form, or And judging whether the application version of the first applet is a second preset version or not, wherein the first applet of the second preset version is provided with a program file required for displaying the second page and the first page according to a non-full-screen display form.
  5. 5. The method of claim 4, further comprising: And if the application version of the host application of the first applet at the user terminal equipment is a first preset version and the application version of the first applet is a second preset version, generating a judgment result for indicating that the user terminal equipment accords with preset page display conditions.
  6. 6. The method of claim 2, wherein the determining whether the user terminal device meets a preset page display condition specifically includes: and judging whether the first page is an application page displayed in a non-full screen display mode.
  7. 7. The method of claim 6, further comprising: if the first page is an application page displayed in a non-full-screen display form, generating a judgment result for indicating that the user terminal equipment does not accord with preset page display conditions; If the first page is not the application page displayed in a non-full-screen display form, generating a judgment result for indicating that the user terminal equipment accords with a preset page display condition.
  8. 8. The method according to claim 6, wherein the determining whether the first page is an application page displayed in a non-full screen display form specifically includes: acquiring at least one of a starting parameter and a life cycle callback parameter of the first applet; and judging whether the first page is an application page displayed in a non-full-screen display mode according to at least one of the starting parameter and the life cycle callback parameter.
  9. 9. The method of claim 8, wherein the determining, according to at least one of the start parameter and the lifecycle callback parameter, whether the first page is an application page that is presented in a non-full screen presentation form, specifically includes: If the corresponding relation between the first page of the first applet and the non-full-screen display form display identifier is determined according to at least one of the starting parameter and the life cycle callback parameter, the first page is indicated to be the application page displayed in the non-full-screen display form, otherwise, the first page is indicated to be the application page not displayed in the non-full-screen display form.
  10. 10. The method of claim 1, the screen capable of presenting complete content in the first page and/or the second page in response to the user performing a page swipe operation on the first page and/or the second page.
  11. 11. The method of any one of claims 1 to 10, wherein if the second page is an application page of a second applet, the determining whether the user terminal device meets a preset page display condition specifically includes: Transmitting an operation authentication request for the first applet to display the second page of the second applet in a non-full screen display form to a server side device; and judging whether the second page and the first page are allowed to be displayed in the screen according to the operation authentication result fed back by the server-side equipment.
  12. 12. The method of claim 11, wherein the operation authentication request carries first program identification information of the first applet and second program identification information of the second applet; The server device is configured to generate an operation authentication result for reflecting permission to display the second page and the first page in the screen according to the non-full-screen display form after determining that the first applet and the second applet belong to the same mechanism according to the first program identification information and the second program identification information, and/or determining that the mechanism to which the second applet belongs has granted the first applet to display the second page through the non-full-screen display form.
  13. 13. The method of claim 2, wherein the displaying the second page and the first page in the screen specifically includes: Determining a first display area of the first page in an application interface of a host application of the first applet and a second display area of the second page in the application interface of the host application according to a preset application programming interface corresponding to a non-full screen display form called by the first trigger operation, wherein the first area of the application interface of the host application is larger than the second area of the second display area; and displaying at least part of page contents of the first page in the first display area, and displaying at least part of page contents of the second page in the second display area.
  14. 14. The method of claim 13, wherein the first presentation area is an area within an application interface of the host application that is less than or equal to the first area, and the second presentation area is an area within an application interface of the host application that is less than the first area; The displaying at least part of the page content of the first page in the first display area and displaying at least part of the page content of the second page in the second display area specifically includes: Displaying at least part of the page content of the first page in a floating layer form in the first display area in the application interface of the host application, and And displaying at least part of page content of the second page in a floating layer form in the second display area in the application interface of the host application.
  15. 15. The method according to claim 14, wherein the displaying, in the first display area in the application interface of the host application, at least part of the page content of the first page in a floating layer form specifically includes: The user terminal equipment performs page rendering on the first page by using a virtual machine created for the first applet according to the size information of a first display area in an application interface of the host application so as to generate an updated first page matched with the first display area; And displaying at least part of page content of the second page in a floating layer form in the second display area in the application interface of the host application, wherein the method specifically comprises the following steps: and the user terminal equipment performs page rendering on the second page by using a virtual machine created for the second applet according to the size information of a second display area in an application interface of the host application so as to generate a second page matched with the second display area, and displays the second page matched with the second display area in a floating layer at the second display area.
  16. 16. The method of claim 13, wherein the first display area is specifically an area where an application interface of the host application is located, and the second display area is an area within the application interface of the host application that is smaller than the first area; The displaying at least part of the page content of the first page in the first display area and displaying at least part of the page content of the second page in the second display area specifically includes: generating a background image according to the page content of the first page currently displayed in the application interface of the host application; displaying the background image in the area of an application interface of the host application; and displaying at least part of page content of the second page in a floating layer form in the second display area at the upper layer of the background image.
  17. 17. The method according to claim 16, wherein the generating a background image according to the page content of the first page currently displayed in the application interface of the host application specifically comprises: Performing screenshot processing on the page content of the first page currently displayed in an application interface of the host application to obtain a screenshot image; setting the screenshot image as a background image, or Carrying out Gaussian blur processing on the screenshot image to obtain a background image, or And according to the preset transparency, carrying out transparency adjustment processing on the screenshot image to obtain a background image.
  18. 18. The method of any one of claims 13-17, wherein if the second page is an application page of a second applet, the number of the second applet is a positive integer greater than or equal to 1, and the second display areas corresponding to different second applets are different; If the second page is a web page, the number of the web pages is a positive integer greater than or equal to 1, and the second display areas corresponding to different web pages are different.
  19. 19. The method of any of claims 14-17, after the second page and the first page are presented in the screen, further comprising: The user terminal equipment acquires a second trigger operation of a user for the second page, wherein the second trigger operation is used for requesting to close the second page; closing a floating layer for displaying the second page in response to the second triggering operation, and Determining the area of an application interface of the host application as a page display area of the first applet; and displaying the current page of the first applet in the page display area.
  20. 20. The method of claim 13, wherein the determining, according to the preset application programming interface corresponding to the non-full screen presentation form invoked by the first trigger operation, a second presentation area of the second page in the application interface of the host application specifically includes: and determining a second display area of the second page in the application interface of the host application according to target input parameter information carried in a call request of the first applet for the preset application programming interface, wherein the target input parameter information is carried in a program file of the first applet.

Description

Page display method, device and equipment The application relates to a page display method, a page display device and page display equipment (application date: 2022, 9 and 202211106058.5). Technical Field The present application relates to the field of applet technologies, and in particular, to a method, an apparatus, and a device for displaying a page. Background With the rapid development of software technology, applets are widely used. The applet is an application program which can be used without downloading and installing, and a user can call the applet on a host application, so that the applet is very convenient to use. The host application will generally support the starting and running of various applets, so as to better meet the use requirements of users for various applets. At present, when a user needs to look at a page outside a certain applet in the process of using the applet, the user is usually required to close an application page of the applet and display the page outside the applet in a full screen mode, and the two pages cannot be presented at the same time, so that inconvenience is brought to the user using the applet easily. Based on this, how to cooperatively display the pages in the applet and other pages outside the applet in the process of using the applet by the user becomes a technical problem to be solved. Disclosure of Invention The page display method, the device and the equipment provided by the embodiment of the specification can cooperatively display the pages in the applet and other pages outside the applet in the process of using the applet by a user, thereby being beneficial to improving the page information display efficiency and the user experience. In order to solve the above technical problems, the embodiments of the present specification are implemented as follows: the page display method provided by the embodiment of the specification comprises the following steps: The method comprises the steps that a user terminal device obtains a first trigger operation of a first page of a first applet for a user, wherein the first trigger operation is used for requesting a second page and the first page to be displayed in a screen of the user terminal device; Judging whether the user terminal equipment accords with a preset page display condition or not based on the first triggering operation, and obtaining a judging result; And if the judging result shows that the user terminal equipment accords with the preset page display condition, displaying the second page and the first page in the screen. The embodiment of the specification provides a page display device, including: the system comprises a first acquisition module, a first triggering operation and a second triggering module, wherein the first acquisition module is used for enabling user terminal equipment to acquire a first triggering operation of a first page of a first applet for a user; the judging module is used for judging whether the user terminal equipment accords with a preset page display condition or not based on the first triggering operation to obtain a judging result; And the first page display module is used for displaying the second page and the first page in the screen if the judging result shows that the user terminal equipment accords with the preset page display condition. The embodiment of the specification provides a page display device, which comprises: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor, the instructions are executable by the at least one processor to enable the at least one processor to: The method comprises the steps that a user terminal device obtains a first trigger operation of a first page of a first applet for a user, wherein the first trigger operation is used for requesting a second page and the first page to be displayed in a screen of the user terminal device; Judging whether the user terminal equipment accords with a preset page display condition or not based on the first triggering operation, and obtaining a judging result; And if the judging result shows that the user terminal equipment accords with the preset page display condition, displaying the second page and the first page in the screen. At least one embodiment provided in this specification enables the following benefits: After a user executes a first triggering operation on a first page of a first applet at a user terminal device, if the user terminal device is judged to meet a preset page display condition, displaying the first page and a second page outside an application page of the first applet in a screen of the user terminal device, so that the pages inside and outside the applet can be cooperatively displayed in the screen of the user terminal device in the process of using the applet by the user. In the scheme, the user can review the information in the pages in the applet and the pa