Search

CN-114003838-B - Page display method, page display device, electronic equipment and computer readable storage medium

CN114003838BCN 114003838 BCN114003838 BCN 114003838BCN-114003838-B

Abstract

The present disclosure provides a page display method, apparatus, electronic device, and computer-readable storage medium. The page display method comprises the steps of obtaining a small window display instruction aiming at a target view page, responding to the small window display instruction, obtaining and holding a view controller of the target view page so that the view controller of the target view page is not destroyed, and controlling the target view page to be displayed in the small window through the view controller. According to the embodiment of the invention, the target view page can be subjected to small window display through the view controller of the obtained target view page, so that the view page is not required to be pulled again to be generated during the small window display, and the purposes of saving resources and improving efficiency are realized.

Inventors

  • Sun Daoran

Assignees

  • 天九共享网络科技集团有限公司

Dates

Publication Date
20260508
Application Date
20211029

Claims (7)

  1. 1. A page display method, characterized by comprising: The method comprises the steps that a target application runs on terminal equipment, an operating system on the terminal equipment generates a target view stack for the target application, the target view stack is a path stack for recording a page jump record of the target application, the target application comprises a target view page, and a view controller of the target view page is included in the target view stack; the operating system controls the target view page to be displayed on a large screen through the view controller in the target view stack; The target application acquires a small window display instruction aiming at the target view page; Responding to the small window display instruction, and sending view controller acquisition information to the operating system by an intermediate controller in the target application aiming at the target view page so that the intermediate controller acquires and holds the view controller of the target view page from the operating system so that the view controller of the target view page is not destroyed, wherein the intermediate controller is a plug-in the target application; The intermediate controller controls the target view page to be displayed in a small window through the view controller; When the large screen reducing event is triggered, the target application returns the view controller of the target view page to the view stack of the operating system, so that the operating system controls the target view page to be displayed on a large screen through the view controller.
  2. 2. The method of claim 1, wherein the target view page comprises an interaction control to be displayed and an interaction control to be hidden, wherein controlling, by the view controller, the target view page to be displayed in a widget comprises: determining the interaction control to be displayed and the interaction control to be hidden in the target view page through the view controller; And when the view controller controls the target view page to be displayed in the small window, displaying the interaction control to be displayed and hiding the interaction control to be hidden.
  3. 3. The method of claim 2, wherein the target view page comprises a plurality of interaction controls, wherein determining, by the view controller, the interaction controls to be displayed and the interaction controls to be hidden in the target view page comprises: determining whether each interaction control in the target view page carries a target mark or not through the view controller; the view controller determines the interaction control carrying the target mark as the interaction control to be displayed; And the view controller determines the interaction control which does not carry the target mark as the interaction control to be hidden.
  4. 4. The method of claim 1, wherein obtaining a widget display instruction for a target view page comprises: Acquiring a leaving instruction for leaving the target view page; Acquiring a target white list, wherein the target white list is used for recording a small window display list; and determining that the target white list comprises the target view page, and determining that a small window display instruction aiming at the target view page is obtained.
  5. 5. The page display device is characterized in that a target application runs on terminal equipment, an operating system on the terminal equipment generates a target view stack for the target application, the target view stack is a path stack for recording page jump records of the target application, the target application comprises a target view page, the target view stack comprises a view controller of the target view page, the operating system controls the target view page to display a large screen through the view controller in the target view stack, and the device comprises: The small window display instruction acquisition module is used for acquiring a small window display instruction aiming at a target view page through a target application; A view controller acquisition module, configured to send, by an intermediate controller in the target application, view controller acquisition information for the operating system for the target view page in response to the widget display instruction, so that the intermediate controller acquires and holds a view controller of the target view page from the operating system so that the view controller of the target view page is not destroyed; the small window display module is used for controlling the target view page to be displayed in a small window through the view controller; And the large screen display module is used for when the large screen restoring event is triggered, the target application returns the view controller of the target view page to the view stack of the operating system, so that the operating system controls the target view page to be displayed on a large screen through the view controller.
  6. 6. An electronic device, comprising: Memory, and A processor coupled to the memory, the processor being configured to perform the page display method of any of claims 1-4 based on instructions stored in the memory.
  7. 7. A computer readable storage medium having stored thereon a program which when executed by a processor implements the page display method according to any of claims 1-4.

Description

Page display method, page display device, electronic equipment and computer readable storage medium Technical Field The disclosure relates to the technical field of computers and the internet, and in particular relates to a page display method and device, electronic equipment and a computer readable storage medium. Background In the related art, when a user views a certain view page (for example, views streaming media in the view page through a large screen), the view page is limited to a current screen display page, and other view pages cannot be operated while the user views the view page, and page interaction of the user with the view is limited to relevant operations on the current page. For example, when a user views a live video of a garment on a shopping page, the user cannot view related information of other shoe products at the same time. If the user wants to view or operate other pages, the user can only close the current page (such as the current streaming media page) and enter other pages to operate. In the related art, if it is desired to enter other pages from the current page (for example, a streaming page), and then return to the current page, the following steps are required 1. And exiting the current streaming media page. 2. Closing the current streaming media, destroying and releasing the occupation of the current streaming media to system resources. 3. Destroying the current page and releasing the occupation of the current page to related system resources. 4. And entering other pages to operate. 5. And (4) exiting other pages, re-entering the current streaming media page of the current page, and performing a series of related initialization work. 6. And redisplaying the streaming media information. The whole process can cause great waste on system resource occupation and system overhead, for example, the system is initialized when the current page is reentered, on one hand, certain network resources are occupied for initialization information acquisition, and on the other hand, the system is required to reallocate the resources for displaying the current page, so that the load of the system is increased. And moreover, the related interaction of entering the streaming media page is complicated, and a series of initialization operation waiting time is long, so that the user experience is poor. Meanwhile, to destroy the system resource occupation and reenter the streaming media page, a lot of business logic codes are required to be written on the business level, so that the existing logic is infringed. Disclosure of Invention The disclosure aims to provide a page display method, a device, an electronic device and a computer readable storage medium, which can display a current page through a small window when entering other pages without destroying related information of the current page, thereby saving system resources and system overhead. Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure. The embodiment of the disclosure provides a page display method, which comprises the steps of obtaining a widget display instruction aiming at a target view page, responding to the widget display instruction, obtaining and holding a view controller of the target view page so that the view controller of the target view page is not destroyed, and controlling the target view page to be displayed in the widget through the view controller. In some embodiments, the target view page comprises an interaction control to be displayed and an interaction control to be hidden, wherein the control of the target view page to be displayed in a small window through the view controller comprises the steps of determining the interaction control to be displayed and the interaction control to be hidden in the target view page through the view controller, and displaying the interaction control to be displayed and hiding the interaction control to be hidden when the control of the target view page to be displayed in the small window through the view controller. In some embodiments, the target view page is a view page in a target application, and the target system determines a page jump path in the target application through a target view stack, wherein the method further comprises responding to a large screen display instruction aiming at the target view page, and delivering the view controller to the target view stack of the target system so that the target system displays the interaction control to be displayed and the interaction control to be hidden when controlling the target view page to be displayed on a large screen through the view controller. In some embodiments, the target view page comprises a plurality of interaction controls, wherein determining the interaction controls to be displayed and the interaction controls to be hidden in the target view page through the view controller comprises dete