Disclosure of Invention
The embodiment of the disclosure at least provides a page display method, a page display device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a page display method, including:
displaying a first page on a screen interface, responding to a first trigger operation aiming at the first page, and displaying a floating window identifier at a target display position of the screen interface; wherein the target display position is related to a trigger position of the first trigger operation on the screen interface;
responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier;
and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode.
In a possible embodiment, the method further comprises determining the target display position according to the following method:
determining a trigger position of the first trigger operation on the screen interface;
and determining the target display position of the floating window identifier based on the trigger position of the first trigger operation on the screen interface and the relative position relation between the preset trigger position and the floating window identifier display position.
In one possible embodiment, the first trigger operation is a sliding operation;
the first trigger operation satisfies the following condition:
the ratio of the sliding distance to the screen size in the direction corresponding to the sliding operation is within a preset ratio range; and/or the sliding distance exceeds a preset distance; and/or the sliding speed is less than a preset speed value.
In one possible embodiment, the displaying the first page on the screen interface includes:
responding to a third trigger operation aiming at a target multimedia information card in an initial display page displayed on a screen interface, and displaying the first page on the screen interface; the target media information card is a card corresponding to the first page;
after the description information corresponding to the content triggered by the first trigger operation is added to the floating window identifier, the method further includes:
and returning to display the initial display page.
In one possible embodiment, the displaying a floating window identifier at a target display position of the screen interface in response to a first trigger operation for the first page includes:
responding to a first trigger operation aiming at the first page, displaying the first page and the initial display page on the screen interface based on the trigger position of the first trigger operation, and displaying a floating window identifier at the target display position of the screen interface.
In a possible implementation manner, the adding, in response to the second trigger operation for the floating window identifier, description information corresponding to content triggered by the first trigger operation to the floating window identifier includes:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to the first page to the floating window identifier.
In a possible embodiment, the responding to the first trigger operation for the first page includes:
responding to a first trigger operation aiming at any multimedia information card in the first page.
The responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier comprises the following steps:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to any multimedia information card to the floating window identifier.
In a possible implementation manner, the floating window identifier displayed at the target display position shows page quantity information which is currently added to the floating window identifier;
updating the quantity information after adding the description information to a floating window identifier.
In a possible embodiment, the displaying the floating window identifier on the screen interface includes:
displaying the floating window identification at a preset position of the screen interface; or,
and acquiring historical display position information of the floating window identification, and displaying the floating window identification at a position corresponding to the historical display position information.
In one possible embodiment, after the floating window identifier is presented on the screen interface, the method further includes:
responding to a fourth trigger operation aiming at the floating window identifier, adding a floating layer on the screen interface, and displaying the description information added to the floating window identifier on the floating layer;
and responding to a fifth trigger operation aiming at any description information, and displaying a page corresponding to the any description information on the screen interface.
In a possible implementation manner, in the case that the content triggered by the first trigger operation contains audio, a control button corresponding to the audio is further included in the floating window identifier;
the displaying of the description information added to the floating window identifier on the floating layer includes:
displaying the description information added into the floating window identifier and the control button on the floating layer;
and responding to the operation triggered based on the control button to control the audio playing or switching.
In a possible implementation, before adding the description information to the floating window identifier, the method further includes:
determining the number of the description information which is added into the floating window identifier currently;
and deleting the description information which is firstly added to the floating window identifier based on the sequence of adding the description information to the floating window identifier under the condition that the number exceeds the preset number.
In a possible implementation manner, the adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier includes:
determining the number of description information corresponding to target attribute information based on the attribute information of each description information which is added to the floating window identifier at present; the attribute information of the description information is used for representing the type of the media resource contained in the page corresponding to the description information, and the target attribute information is the attribute information of the content triggered by the first trigger operation;
and deleting the description information which is added firstly based on the sequence of adding the description information corresponding to the target attribute information to the floating window identifier and adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier under the condition that the number of the description information corresponding to the target attribute information exceeds a preset value.
In one possible embodiment, the first trigger operation and the second trigger operation are executed continuously.
In a possible embodiment, the second trigger operation for the floating window identifier includes at least one of:
triggering operation with the end position of the first triggering operation as an operation starting position and the floating window identifier as an end position;
taking the ending position of the first trigger operation as an operation starting position, and carrying out trigger operation including the floating window identifier in an operation path;
and triggering operation by taking the ending position of the first triggering operation as an operation starting position and taking any position in the triggering area corresponding to the floating window identifier as an ending position, wherein the triggering area corresponding to the floating window identifier is an area determined based on the ending position of the first triggering operation and the target display position.
In a possible embodiment, after the description information added to the floating window identifier is displayed on the floating layer, the method further includes:
and in response to the triggering operation of a deleting button aiming at any piece of description information, deleting the any piece of description information from the floating window identifier.
In a second aspect, an embodiment of the present disclosure further provides a page display apparatus, including:
the first display module is used for displaying a first page on a screen interface, responding to a first trigger operation aiming at the first page and displaying a floating window identifier at a target display position of the screen interface; wherein the target display position is related to a trigger position of the first trigger operation on the screen interface;
the adding module is used for responding to a second trigger operation aiming at the floating window identifier and adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier;
and the second display module is used for displaying the floating window identifier on the screen interface, and the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode.
In a possible embodiment, the first display module is further configured to determine the target display position according to the following method:
determining a trigger position of the first trigger operation on the screen interface;
and determining the target display position of the floating window identifier based on the trigger position of the first trigger operation on the screen interface and the relative position relation between the preset trigger position and the floating window identifier display position.
In one possible embodiment, the first trigger operation is a sliding operation;
the first trigger operation satisfies the following condition:
the ratio of the sliding distance to the screen size in the direction corresponding to the sliding operation is within a preset ratio range; and/or the sliding distance exceeds a preset distance; and/or the sliding speed is less than a preset speed value.
In one possible embodiment, the first presentation module, when presenting the first page on the screen interface, is configured to:
responding to a third trigger operation aiming at a target multimedia information card in an initial display page displayed on a screen interface, and displaying the first page on the screen interface; the target media information card is a card corresponding to the first page;
the adding module is further configured to, after adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier:
and returning to display the initial display page.
In one possible embodiment, the first presentation module, when presenting a floating window identifier at a target presentation position of the screen interface in response to a first trigger operation for the first page, is configured to:
responding to a first trigger operation aiming at the first page, displaying the first page and the initial display page on the screen interface based on the trigger position of the first trigger operation, and displaying a floating window identifier at the target display position of the screen interface.
In a possible implementation manner, when the adding module adds, in response to a second trigger operation for the floating window identifier, description information corresponding to content triggered by the first trigger operation to the floating window identifier, the adding module is configured to:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to the first page to the floating window identifier.
In one possible embodiment, the first presentation module, in response to a first trigger operation for the first page, is configured to:
responding to a first trigger operation aiming at any multimedia information card in the first page.
The adding module, when responding to a second trigger operation for the floating window identifier and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier, is configured to:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to any multimedia information card to the floating window identifier.
In a possible implementation manner, the floating window identifier displayed at the target display position shows page quantity information which is currently added to the floating window identifier;
after adding the description information to the floating window identifier, the adding module is further configured to:
and updating the quantity information.
In a possible embodiment, the second presentation module, when presenting the floating window identifier on the screen interface, is configured to:
displaying the floating window identification at a preset position of the screen interface; or,
and acquiring historical display position information of the floating window identification, and displaying the floating window identification at a position corresponding to the historical display position information.
In a possible embodiment, the apparatus further comprises a third display module;
the third display module, after displaying the floating window identifier on the screen interface, is configured to:
responding to a fourth trigger operation aiming at the floating window identifier, adding a floating layer on the screen interface, and displaying the description information added to the floating window identifier on the floating layer;
and responding to a fifth trigger operation aiming at any description information, and displaying a page corresponding to the any description information on the screen interface.
In a possible implementation manner, in the case that the content triggered by the first trigger operation contains audio, a control button corresponding to the audio is further included in the floating window identifier;
the third display module is configured to, when the description information added to the floating window identifier is displayed on the floating layer:
displaying the description information added into the floating window identifier and the control button on the floating layer;
and responding to the operation triggered based on the control button to control the audio playing or switching.
In a possible implementation manner, the adding module, before adding the description information to the floating window identifier, is further configured to:
determining the number of the description information which is added into the floating window identifier currently;
and deleting the description information which is firstly added to the floating window identifier based on the sequence of adding the description information to the floating window identifier under the condition that the number exceeds the preset number.
In a possible implementation manner, when the description information corresponding to the content triggered by the first trigger operation is added to the floating window identifier, the adding module is configured to:
determining the number of description information corresponding to target attribute information based on the attribute information of each description information which is added to the floating window identifier at present; the attribute information of the description information is used for representing the type of the media resource contained in the page corresponding to the description information, and the target attribute information is the attribute information of the content triggered by the first trigger operation;
and deleting the description information which is added firstly based on the sequence of adding the description information corresponding to the target attribute information to the floating window identifier and adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier under the condition that the number of the description information corresponding to the target attribute information exceeds a preset value.
In one possible embodiment, the first trigger operation and the second trigger operation are executed continuously.
In a possible embodiment, the second trigger operation for the floating window identifier includes at least one of:
triggering operation with the end position of the first triggering operation as an operation starting position and the floating window identifier as an end position;
taking the ending position of the first trigger operation as an operation starting position, and carrying out trigger operation including the floating window identifier in an operation path;
and triggering operation by taking the ending position of the first triggering operation as an operation starting position and taking any position in the triggering area corresponding to the floating window identifier as an ending position, wherein the triggering area corresponding to the floating window identifier is an area determined based on the ending position of the first triggering operation and the target display position.
In a possible embodiment, after displaying the description information added to the floating window identifier on the floating layer, the third display module is further configured to:
and in response to the triggering operation of a deleting button aiming at any piece of description information, deleting the any piece of description information from the floating window identifier.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
According to the page display method, the page display device, the computer equipment and the storage medium, a first page can be displayed on a screen interface, and a floating window identifier is displayed at a target display position of the screen interface in response to a first trigger operation aiming at the first page; responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier; and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode. Therefore, the user can directly pass through the floating window identifier, the content triggered by the first trigger operation is quickly opened, in addition, because the target display position of the floating window identifier is related to the trigger position of the first trigger operation on the screen interface, when the user adds the description information corresponding to the content triggered by the first trigger operation to the floating window identifier, the operation path is short, the operation is convenient, and the user experience is improved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Research shows that in actual use, the mobile terminal device displays media resources and also displays other emergencies such as message reply and the like, which need to be processed by a user in time, and when the user needs to continue to acquire the media resources again after the user finishes processing the emergencies, the user needs to perform the acquisition operation again according to a preset flow, so that the operation process is complicated, and the user experience is poor.
Based on the research, the present disclosure provides a page display method, an apparatus, a computer device, and a storage medium, which may display a first page on a screen interface, and display a floating window identifier at a target display position of the screen interface in response to a first trigger operation for the first page; responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier; and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode. Therefore, the user can directly pass through the floating window identifier, the content triggered by the first trigger operation is quickly opened, in addition, because the target display position of the floating window identifier is related to the trigger position of the first trigger operation on the screen interface, when the user adds the description information corresponding to the content triggered by the first trigger operation to the floating window identifier, the operation path is short, the operation is convenient, and the user experience is improved.
To facilitate understanding of the present embodiment, first, a page display method disclosed in the embodiments of the present disclosure is described in detail, where an execution main body of the page display method provided in the embodiments of the present disclosure is generally a terminal device having a display apparatus, and the terminal device includes: smart phones, tablet computers, smart watches, and the like.
Referring to fig. 1, which is a flowchart of a page display method provided in the embodiment of the present disclosure, the method includes steps S101 to S103, where:
s101: displaying a first page on a screen interface, responding to a first trigger operation aiming at the first page, and displaying a floating window identifier at a target display position of the screen interface; wherein the target display position is related to a trigger position of the first trigger operation on the screen interface.
S102: and responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier.
S103: and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode.
Each step and the corresponding implementation method in the embodiments of the present disclosure will be described in detail below.
For S101, the first page may include two types of pages, where the first page is a page showing media resources, and the media resources may include any one of pictures, texts, videos, and audios; when the first page of the type is displayed, after the target application program is started, an initial display page is displayed on the screen interface, a plurality of multimedia information cards are displayed in the initial display page, and the first page is displayed on the screen interface in response to a third trigger operation for the multimedia information cards corresponding to the first page in the initial display page displayed on the screen interface. For example, an initial presentation page may be as shown in fig. 2a, and after detecting a third trigger operation for any multimedia information card, a first page corresponding to the triggered multimedia information card may be presented, where the presentation interface is as shown in fig. 2 b. Here, the third trigger operation may be, for example, a single-click operation.
The second type of first page is a page on which a plurality of multimedia information cards are displayed, and the first page may be as shown in fig. 2a, that is, after the target application program is started, the initial display page displayed on the current screen interface is the second type of first page.
Next, the first trigger operation in S101 and the second trigger operation in S102 of the embodiment of the present disclosure will be described in detail from the viewpoint of the type of the first page.
When the type of the first page is the first type, the following is described with respect to the S101:
for S101, the first trigger operation may be a sliding operation, for example, a right sliding operation of sliding right on the left side of the screen.
For example, the sliding operation on the first page may be as shown in fig. 3a, a user performs a sliding operation on a current page, where the sliding operation does not satisfy a preset condition, and thus the content of the part of the first page and the content of the part of the initial presentation page exist in the current client page at the same time, but the floating window identifier is not presented.
In one possible implementation, when the first trigger operation is a sliding operation, whether the first trigger operation for the first page satisfies a preset condition may be determined from the following three determination conditions:
and the condition 1 is whether the ratio between the sliding distance and the screen size in the direction corresponding to the sliding operation is within a preset ratio range.
Here, the sliding distance is also a sliding length of the first trigger operation, and may refer to a straight distance between two points from an operation start position of the first trigger operation to an end position of the first trigger operation; or, a distance that slides in a sliding operation corresponding direction from an operation start position of the first trigger operation to an end position of the first trigger operation, wherein when the first trigger operation is a left/right sliding operation, the corresponding direction is a horizontal direction.
For example, taking the trigger path of the first trigger operation as a- - -B- - -C in sequence from left to right, that is, when the first trigger operation is performed, sliding the first trigger operation from left to right in the right direction, and then sliding the first trigger operation from left to right in the B- - -C direction, the sliding direction is 15 ° right, the sliding distance may be a straight distance AC from a to C, or a distance AB + BC × cos15 ° sliding from a to C in the horizontal direction, where BC × cos15 ° is the distance in the horizontal direction for calculating the sliding distance from B to C.
The proportion range between the sliding distance and the screen size in the direction corresponding to the sliding operation can be set to be 0.125-1, 0.25-0.5, 0.3-1 and the like, and when the sliding distance is detected to be within the preset proportion range, the first trigger operation can be determined to meet the condition 1.
Condition 2, whether the sliding distance exceeds a preset distance.
Wherein the preset distance may be 60px, 70px, 40dp, etc.; here, px is an abbreviation of Pixel (Pixel), and dp is an abbreviation of device independent Pixel (Density independent Pixel). When it is detected that the sliding distance exceeds the preset distance, it may be determined that the current first trigger operation satisfies the condition 2.
It should be noted that, the sliding distance described herein may refer to a straight-line distance between two points, i.e., the operation start position of the first trigger operation to the end position of the first trigger operation in the above condition 1; or, a distance slid in a horizontal direction from an operation start position of the first trigger operation to an end position of the first trigger operation.
And 3, judging whether the sliding speed is smaller than a preset speed value or not.
Here, the preset speed value may be 40dp per second, 30dp per second, or the like.
In a specific implementation, because operation intentions of users when using a terminal device to perform a sliding operation are different, for example, a part of users perform the sliding operation only to exit a current page, and do not want to add the current page to a floating window and review the current page later, for such a case, the preset speed value may be set to distinguish the operation intentions of the users, a sliding operation with a faster sliding speed may consider that the current user wants to exit the current page, and a sliding operation with a slower sliding speed may consider that the current user wants to add the current page to the floating window and review the current page later, that is, the sliding operation classifies the user's intentions according to the execution speed, so as to determine whether the user currently performing the sliding operation wants to exit the current page, or wants to add the current page to the floating window and review the current page later.
For example, taking the preset speed value of 40dp per second as an example, when the user performs the sliding operation, the sliding distance and the sliding time are determined based on the operation start position of the first trigger operation to the end position of the first trigger operation, and the sliding speed is further calculated, and when the sliding speed is less than the preset speed value of 40dp per second, it may be determined that the current first trigger operation satisfies the condition 3.
It should be noted that, when determining whether the first trigger operation for the first page satisfies the preset condition, any one or more of the above conditions may be used. For example, it is necessary to simultaneously satisfy the condition 1 and the condition 3, the condition 2 and the condition 3, and only the condition 3, etc., and different schemes may also be adopted in different application scenarios, which is not limited in the embodiment of the present disclosure.
In a possible implementation, when determining the target display position of the floating window identifier according to the current trigger position of the first trigger operation, as shown in fig. 4, the following steps may be performed:
s401: determining a trigger position of the first trigger operation on the screen interface.
S402: and determining the target display position of the floating window identifier based on the trigger position of the first trigger operation on the screen interface and the relative position relation between the preset trigger position and the floating window identifier display position.
Here, the current screen interface may be divided into a plurality of target areas, and different relative position relationships between the trigger position and the floating window identifier display position may be set for different target areas. Therefore, the position of the floating window identification displayed after the first trigger operation is triggered can be more reasonable, and the human-computer interaction experience of a user is improved.
For example, a schematic diagram of region division of a current screen interface may be as shown in fig. 3b, the current screen interface is divided into a first target region located above the screen interface and a second target region located below the screen interface, a user performs a first trigger operation on a current page, and a target region to which a current trigger position belongs may be determined according to a current trigger position of the user on the screen interface, and is the second target region.
Further, in different target areas, a relative positional relationship between the display position of the floating window identifier and the current trigger position of the first trigger operation may be set, for example, still taking the above-mentioned division of the current screen interface into the first target area and the second target area as an example, when the current trigger position of the first trigger operation is located in the second target area below the screen interface, the relative positional relationship is that the target display position of the floating window identifier is located at a certain distance above the current trigger position of the first trigger operation, for example, 50px above; when the current trigger position of the first trigger operation is located in a first target area above the screen interface, the relative position relationship is that the target display position of the floating window identifier is a certain distance below the current trigger position of the first trigger operation, for example, 50px below.
In a possible implementation manner, when the floating window identifier is displayed at the target display position of the screen interface, the first page and the initial display page may be displayed on the screen interface in response to a first trigger operation for the first page and based on a trigger position of the first trigger operation, and the floating window identifier is displayed at the target display position of the screen interface.
For example, the first trigger operation for the first page may be as shown in fig. 3c, where in fig. 3c, the user performs the first trigger operation on the current page, and at this time, the first trigger operation satisfies a preset condition, and the content of the part of the first page, the content of the part of the initial display page, and the floating window identifier coexist in the current screen interface, and the floating window identifier is at a position 50px above the current trigger position of the first trigger operation.
When the type of the first page is the second type, the following is described with respect to the S101:
for example, the first trigger operation for any multimedia information card in the first page may be a long press operation for any multimedia information card in the first page, and the press time of the long press operation may be set in advance, for example, if a current user presses 500ms for any multimedia information card in the first page, it is determined that the current user performs the long press operation for the multimedia information card. The disclosure is not limited to other operating methods for the multimedia information card.
Here, the method for determining the target display position of the floating window identifier may be performed by referring to the specific execution methods of S401 and S402, which are not described herein again.
For example, a schematic diagram of displaying the floating window identifier at the target display position may be as shown in fig. 5a, after the user completes the long-press operation on the multimedia information card, the floating window identifier is displayed at 50px above the current multimedia information card, and the floating window identifier is a trigger area with text information "see later".
In a specific implementation, after the floating window identifier is displayed according to S101, description information corresponding to the content triggered by the first trigger operation may be added to the floating window identifier according to S102, and a specific method is as follows.
S102: and responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier.
Here, when the first page is the first type of page, the content triggered by the first trigger operation is the first page, and when the first page is the second type of page, the content triggered by the first trigger operation is a multimedia information card on the first page.
In a possible implementation manner, when the first page is the above first type of page, after the description information corresponding to the content triggered by the first trigger operation is added to the floating window identifier, the current screen interface may return to display the initial display page.
In a possible implementation manner, the responding to the second trigger operation for the floating window identifier may be responding to a second trigger operation for the floating window identifier that is continuously executed after the first trigger operation is completed, where the continuously executed second trigger operation is that the second trigger operation for the floating window identifier is executed immediately without leaving the screen by the hand of the user after the first trigger operation is completed.
The second trigger operation for the floating window identifier may be the trigger operation shown in fig. 6a, 6b, 6c, and 6d, and will be described in detail below with reference to the drawings.
The first operation mode,
And triggering operation by taking the ending position of the first triggering operation as an operation starting position and taking the floating window mark as an ending position.
For example, a schematic diagram of executing the second trigger operation may be as shown in fig. 6a, where in fig. 6a, after a user executes a first trigger operation that satisfies a preset condition on a current page, the user immediately executes the second trigger operation, and the second trigger operation is an operation (for example, may be a top-stroke operation) that takes a position where the floating window identifier is located as an operation start point and a position area where the floating window identifier is located as an operation end point.
Further, after the floating window identifier is triggered by the second trigger operation, the floating window identifier display area can be changed; and/or, changing the background color of the floating window mark; and/or calling a vibration module of the terminal equipment to vibrate correspondingly to give an operation feedback to a user, wherein the vibration module comprises any one of a rotor motor, an X-axis linear motor and a Z-axis linear motor.
Thus, the user can be guided to better complete the second trigger operation by giving an operation feedback to the user, and meanwhile, the operation habit of the user can be developed, so that the viscosity of the user is enhanced.
For example, a schematic diagram giving the user operation feedback may be as shown in fig. 6b, the user performs the second trigger operation, at this time, the floating window identifier becomes larger relative to the display area in fig. 6a, the background color becomes gray, and the prompt text "loose-hand and retract" is added, so as to give the user who currently operates an explicit operation feedback.
The second operation mode,
And the ending position of the first trigger operation is an operation starting position, and the operation path comprises the trigger operation of the floating window identifier.
For example, another schematic diagram for executing the second trigger operation may be as shown in fig. 6c, where in fig. 6c, after the user executes a first trigger operation that satisfies a preset condition on the current page, the user immediately executes the second trigger operation, and the second trigger operation is an operation (for example, a top-stroke operation) that passes through an area where the floating window identifier is located in an operation path from an operation starting point to an operation ending point, with an ending position of a right slide of the first trigger operation as the operation starting point.
The operation mode III,
And triggering operation by taking the ending position of the first triggering operation as an operation starting position and taking any position in the triggering area corresponding to the floating window identifier as an ending position, wherein the triggering area corresponding to the floating window identifier is an area determined based on the ending position of the first triggering operation and the target display position.
For example, the trigger area of the floating window indicator may be located below the display position of the floating window indicator as shown in fig. 6 d.
In a possible implementation manner, when the type of the first page is the second type, as shown in fig. 5a, the operation of adding the description information corresponding to any one of the multimedia information cards to the floating window identifier may be completed by performing the second trigger operation in the target location area where the floating window identifier is located, i.e. the "see again later". The second trigger comprises any one of long press, selection, re-press, single-click and double-hit aiming at the target position area.
Furthermore, after the user completes the first trigger operation on the multimedia information card, besides displaying the floating window identifier at the target display position, a cancel display entry for the current multimedia information card can be displayed.
For example, a schematic diagram of a cancel display entry for the current multimedia information card may be as shown in fig. 5b, where in fig. 5b, the floating window identifier and the cancel display entry are displayed at the target display position, and the cancel display entry is a trigger area with text information "not interested", and the operation of canceling the display of the current multimedia information card may be completed by triggering the trigger area. The trigger comprises any one of long press, selection, re-press, single click and double hit aiming at the area.
In a possible implementation manner, the floating window identifier displayed at the target display position shows page quantity information which is currently added to the floating window identifier; here, the page number information added to the floating window identifier refers to the number of other first pages except for the first page displayed on the current screen interface.
For example, the page quantity information displayed by the floating window identifier may be as shown in fig. 3d, where in fig. 3d, the number of the first pages currently added to the floating window identifier is 1, and the page quantity information displayed by the floating window identifier is also 1.
In a specific implementation, after the description information corresponding to the content triggered by the first trigger operation is added to the floating window identifier according to the step S102, the floating window identifier may be displayed on the screen interface according to the step S103, and a specific method is as follows.
S103: and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode.
In a possible implementation manner, after floating a window identifier of description information corresponding to the content triggered by the first trigger operation, the floating window identifier shows updated page number information including the current description information.
For example, the updated page quantity information displayed by the floating window identifier may be as shown in fig. 6e, where in fig. 6e, if the number of the page quantity information including the current description information is 2, the page quantity information displayed by the floating window identifier is also 2. Different from the display effect that the page quantity information before the current description information is added is 1 in fig. 3d, the display effect that the page quantity information displayed by the floating window identifier is 2 after the current description information is added in fig. 6e is shown.
In a possible implementation manner, before the description information is added to the floating window identifier, since the number of the description information that can be added in the floating window identifier is limited, too much description information is inconvenient for a user to quickly search the description information that the user wants to view, on the other hand, since a page corresponding to the description information contains media resources, and part of the media resources, such as audio, does not pause playing after the corresponding description information is added to the floating window identifier, so that when two or more audio are played simultaneously, the playing effect of the audio is poor, and therefore, the description information in the floating window identifier can be deleted by any one of the following methods.
The first method,
Determining the number of the description information which is added into the floating window identifier currently; and deleting the description information which is firstly added to the floating window identifier based on the sequence of adding the description information to the floating window identifier under the condition that the number exceeds the preset number.
For example, the preset number may be set to 5, and when it is determined that the number of the description information currently added to the floating window identifier is 5, that is, the number of the description information added to the floating window identifier reaches a preset maximum value, the description information which is first added to the floating window identifier may be deleted according to the sequence in which the description information currently added is added to the floating window identifier, and the description information to be added is added to the floating window identifier.
The second method,
Determining the number of description information corresponding to target attribute information based on the attribute information of each description information which is added to the floating window identifier at present; the attribute information of the description information is used for representing the type of the media resource contained in the page corresponding to the description information, and the target attribute information is the attribute information of the content triggered by the first trigger operation; and deleting the description information which is added firstly based on the sequence of adding the description information corresponding to the target attribute information to the floating window identifier and adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier under the condition that the number of the description information corresponding to the target attribute information exceeds a preset value.
Here, the attribute information may be an article, a novel, a video, an audio, and the like. The attribute information is description information of an article, and the corresponding content is characters and pictures; the attribute information is description information of the novel, and the corresponding content is characters; the attribute information is description information of a video, and the corresponding content is the video; the attribute information is description information of audio, and the corresponding content is audio.
For different attribute information, different target numbers may be set, for example, for other attribute information except for audio, the total number of contents corresponding to the other attribute information is set to 5, and the total number is the target number, that is, in a case where the number of description information of attribute information added to the floating window identifier is less than 5, the description information of attribute information being non-audio may be directly added to the floating window identifier; when the number of the description information whose attribute information is added in the floating window identifier is other than audio is equal to 5, the description information that is added in the floating window identifier and whose attribute information is non-audio needs to be deleted first according to the order of addition.
Further, under the condition that the media resource corresponding to the description information contains audio, the playing progress of the audio can be determined; and then, after the description information is added to the floating window identifier, playing the audio based on the playing progress of the audio.
In practical application, the target number of the description information of the corresponding media resource including the audio may be set to 1, that is, in the case that the description information of the corresponding media resource including the audio is already added to the floating window identifier, when the description information to be added is the description information of the corresponding media resource including the audio, the description information of the corresponding media resource including the audio that has been added may be deleted, the description information of the corresponding media resource including the audio that is to be added is added to the floating window identifier, and the audio is played based on the playing progress of the corresponding audio.
In a possible implementation manner, when the floating window identifier is displayed on the screen interface, the floating window identifier can be displayed by any one of the following two methods:
and the method A is to display the floating window identification at the preset position of the screen interface.
Here, the preset position of the screen interface may be a fixed position, such as a fixed position at the lower right of the screen.
For example, the preset position of the screen interface displaying the floating window identifier may be as shown in fig. 6f, where in fig. 6f, the preset position of the screen interface is at the lower right of the screen.
And B, acquiring historical display position information of the floating window identifier, and displaying the floating window identifier at a position corresponding to the historical display position information.
Here, an initial display position may be set for the floating window indicator, that is, the floating window indicator is always displayed at the initial display position without additional operation.
Further, the display position of the floating window identifier may be changed in response to a display position change operation for the floating window identifier, for example, the floating window identifier is pressed for a long time and moved to a target position for display. After the floating window identifier is moved to the target position, the current position can be recorded, corresponding historical display position information is generated, and when the floating window identifier is displayed subsequently, the display position of the floating window identifier can be determined according to the latest historical display position information and displayed.
Therefore, the change permission of the position of the floating window identifier is opened for the user, so that the display position of the floating window identifier is more in line with the use habit of the user, and the human-computer interaction experience of the user is improved.
For example, the display position change operation for the floating window identifier may be as shown in fig. 6g, where the display position of the floating window identifier is shifted from the initial display position to the target position located at the upper right of the screen in fig. 6 g.
In a possible implementation manner, after the floating window identifier is displayed on the screen interface, referring to fig. 7, a page corresponding to the description information in the floating window identifier may be displayed through the following steps, where the page may be a first page corresponding to the first trigger operation.
S701: responding to a fourth trigger operation aiming at the floating window identifier, adding a floating layer on the screen interface, and displaying the description information added to the floating window identifier on the floating layer.
In one possible implementation, the display position of the floating layer may be determined based on the current display position of the floating window identifier in response to a fourth trigger operation for the floating window identifier, and the floating layer may be displayed at the determined display position.
Here, the fourth trigger operation is any one of selection, re-pressing, single-clicking and double-hitting of the floating window identifier; the description information includes: at least one of an icon, a title, a display progress and author information of a media resource contained in a page corresponding to the description information; when the corresponding media resources (namely the media resources contained in the page corresponding to the description information) contained in the floating layer are the description information of the audio, the default display sequence is the lowest part of the current floating layer; and if the corresponding media resources are the description information of other media resources except the audio, sequentially displaying the description information in the floating layer from bottom to top according to the sequence of adding the description information to the floating window identifier.
For example, the display effect map of the floating layer displaying the description information corresponding to the content triggered by the first trigger operation may be as shown in fig. 8a, the display position of the floating layer is determined based on the floating window identifier, the display position of the floating layer corresponding to the floating window identifier on the right side of the screen is also on the right side of the screen, and the display size of the floating layer is determined by the number of the description information currently included in the information.
In a possible implementation manner, in the case that the content triggered by the first trigger operation contains audio, a control button corresponding to the audio is further included in the floating window identifier; the control button is used for controlling the playing of the audio;
for example, in the case that the content triggered by the first triggering operation includes audio, the display effect map of the floating layer may be as shown in fig. 8b, and in fig. 8b, the control button is displayed in the floating layer, and the audio playing or switching may be controlled in response to the operation triggered based on the control button, for example, the audio playing, pausing, previous and next are controlled.
In a possible implementation manner, after a floating layer including description information corresponding to a first page added in the floating window identifier is displayed, any description information in the floating window identifier can be deleted in response to a trigger operation of a deletion button for any description information in the floating layer.
Specifically, a corresponding deletion button may be added behind each piece of description information in the floating layer, and the deletion button is used to delete any piece of description information from the floating window identifier after being triggered.
In a possible implementation manner, after all the description information in the floating layer is deleted, that is, when the floating layer is empty, the display of the floating window identifier may be cancelled on the current screen interface of the client; when the current floating layer is not empty, correspondingly, the floating window identifier can be always displayed on the current screen interface of the client, and when the client application program for displaying the floating window identifier is closed and restarted, the floating window identifier can be displayed at the position where the client application program was located when the client application program was closed last time, wherein the added description information is also the same as the description information contained when the client application program was closed last time.
For example, the operation diagram for deleting the description information from the floating window identifier may be as shown in fig. 8c, where in fig. 8c, the user performs the operation of deleting the description information in the floating window identifier by triggering the delete button.
S702: and responding to a fifth trigger operation aiming at any description information, and displaying a page corresponding to the any description information on the screen interface.
Here, the fifth trigger operation may be any one of a long press, a hit, a re-press, a single click, and a double hit with respect to any one of the pieces of description information in the floating layer.
In a possible implementation manner, the operation of canceling the display of the floating layer may be as shown in fig. 8d, where in fig. 8d, the user cancels the display of the floating layer by triggering operations on areas other than the display area of the floating layer in the current screen interface. The triggering operation on the other areas can be any one of long pressing, selection, re-pressing, clicking and double-hitting of the other areas except the display area of the floating layer in the current screen interface.
According to the page display method provided by the embodiment of the disclosure, a first page can be displayed on a screen interface, and a floating window identifier is displayed at a target display position of the screen interface in response to a first trigger operation for the first page; responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier; and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode. Therefore, the user can directly pass through the floating window identifier, the content triggered by the first trigger operation is quickly opened, in addition, because the target display position of the floating window identifier is related to the trigger position of the first trigger operation on the screen interface, when the user adds the description information corresponding to the content triggered by the first trigger operation to the floating window identifier, the operation path is short, the operation is convenient, and the user experience is improved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a page display apparatus corresponding to the page display method, and as the principle of the apparatus in the embodiment of the present disclosure for solving the problem is similar to the page display method in the embodiment of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 9, a schematic diagram of a page displaying apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes: a first display module 901, an adding module 902 and a second display module 903; wherein,
a first display module 901, configured to display a first page on a screen interface, and in response to a first trigger operation for the first page, display a floating window identifier at a target display position of the screen interface; wherein the target display position is related to a trigger position of the first trigger operation on the screen interface;
an adding module 902, configured to respond to a second trigger operation for the floating window identifier, and add description information corresponding to content triggered by the first trigger operation to the floating window identifier;
and a second display module 903, configured to display the floating window identifier on the screen interface, where the floating window identifier is used to open the content triggered by the first trigger operation in a shortcut manner.
In a possible implementation, the first display module 901 is further configured to determine the target display position according to the following method:
determining a trigger position of the first trigger operation on the screen interface;
and determining the target display position of the floating window identifier based on the trigger position of the first trigger operation on the screen interface and the relative position relation between the preset trigger position and the floating window identifier display position.
In one possible embodiment, the first trigger operation is a sliding operation;
the first trigger operation satisfies the following condition:
the ratio of the sliding distance to the screen size in the direction corresponding to the sliding operation is within a preset ratio range; and/or the sliding distance exceeds a preset distance; and/or the sliding speed is less than a preset speed value.
In a possible implementation manner, the first presentation module 901, when presenting the first page on the screen interface, is configured to:
responding to a third trigger operation aiming at a target multimedia information card in an initial display page displayed on a screen interface, and displaying the first page on the screen interface; the target media information card is a card corresponding to the first page;
the adding module 902, after adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier, is further configured to:
and returning to display the initial display page.
In a possible implementation manner, the first presentation module 901, when presenting a floating window identifier at a target presentation position of the screen interface in response to a first trigger operation for the first page, is configured to:
responding to a first trigger operation aiming at the first page, displaying the first page and the initial display page on the screen interface based on the trigger position of the first trigger operation, and displaying a floating window identifier at the target display position of the screen interface.
In a possible implementation manner, when the adding module 902 adds, in response to the second trigger operation for the floating window identifier, description information corresponding to content triggered by the first trigger operation to the floating window identifier, the adding module is configured to:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to the first page to the floating window identifier.
In a possible implementation manner, the first presentation module 901, when responding to the first trigger operation for the first page, is configured to:
responding to a first trigger operation aiming at any multimedia information card in the first page.
The adding module, when responding to a second trigger operation for the floating window identifier and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier, is configured to:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to any multimedia information card to the floating window identifier.
In a possible implementation manner, the floating window identifier displayed at the target display position shows page quantity information which is currently added to the floating window identifier;
after adding the description information to the floating window identifier, the adding module 902 is further configured to:
and updating the quantity information.
In a possible implementation manner, the second presentation module 903, when presenting the floating window identifier on the screen interface, is configured to:
displaying the floating window identification at a preset position of the screen interface; or,
and acquiring historical display position information of the floating window identification, and displaying the floating window identification at a position corresponding to the historical display position information.
In one possible embodiment, the apparatus further comprises a third display module 904;
the third displaying module 904, after displaying the floating window identifier on the screen interface, is configured to:
responding to a fourth trigger operation aiming at the floating window identifier, adding a floating layer on the screen interface, and displaying the description information added to the floating window identifier on the floating layer;
and responding to a fifth trigger operation aiming at any description information, and displaying a page corresponding to the any description information on the screen interface.
In a possible implementation manner, in the case that the content triggered by the first trigger operation contains audio, a control button corresponding to the audio is further included in the floating window identifier;
the third display module 904, when displaying the description information added to the floating window identifier on the floating layer, is configured to:
displaying the description information added into the floating window identifier and the control button on the floating layer;
and responding to the operation triggered based on the control button to control the audio playing or switching.
In a possible implementation manner, the adding module 902, before adding the description information to the floating window identifier, is further configured to:
determining the number of the description information which is added into the floating window identifier currently;
and deleting the description information which is firstly added to the floating window identifier based on the sequence of adding the description information to the floating window identifier under the condition that the number exceeds the preset number.
In a possible implementation manner, when the description information corresponding to the content triggered by the first trigger operation is added to the floating window identifier, the adding module 902 is configured to:
determining the number of description information corresponding to target attribute information based on the attribute information of each description information which is added to the floating window identifier at present; the attribute information of the description information is used for representing the type of the media resource contained in the page corresponding to the description information, and the target attribute information is the attribute information of the content triggered by the first trigger operation;
and deleting the description information which is added firstly based on the sequence of adding the description information corresponding to the target attribute information to the floating window identifier and adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier under the condition that the number of the description information corresponding to the target attribute information exceeds a preset value.
In one possible embodiment, the first trigger operation and the second trigger operation are executed continuously.
In a possible embodiment, the second trigger operation for the floating window identifier includes at least one of:
triggering operation with the end position of the first triggering operation as an operation starting position and the floating window identifier as an end position;
taking the ending position of the first trigger operation as an operation starting position, and carrying out trigger operation including the floating window identifier in an operation path;
and triggering operation by taking the ending position of the first triggering operation as an operation starting position and taking any position in the triggering area corresponding to the floating window identifier as an ending position, wherein the triggering area corresponding to the floating window identifier is an area determined based on the ending position of the first triggering operation and the target display position.
In a possible implementation, the third displaying module 904, after displaying the description information added to the floating window identifier on the floating layer, is further configured to:
and in response to the triggering operation of a deleting button aiming at any piece of description information, deleting the any piece of description information from the floating window identifier.
The page display device provided by the embodiment of the disclosure can display a first page on a screen interface, respond to a first trigger operation for the first page, and display a floating window identifier at a target display position of the screen interface; responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier; and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode. Therefore, the user can directly pass through the floating window identifier, the content triggered by the first trigger operation is quickly opened, in addition, because the target display position of the floating window identifier is related to the trigger position of the first trigger operation on the screen interface, when the user adds the description information corresponding to the content triggered by the first trigger operation to the floating window identifier, the operation path is short, the operation is convenient, and the user experience is improved.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the disclosure also provides computer equipment. Referring to fig. 10, a schematic structural diagram of a computer device 1000 provided in the embodiment of the present disclosure includes a processor 1001, a memory 1002, and a bus 1003. The memory 1002 is used for storing execution instructions, and includes a memory 10021 and an external memory 10022; the memory 10021 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 1001 and the data exchanged with the external memory 10022 such as a hard disk, the processor 1001 exchanges data with the external memory 10022 through the memory 10021, and when the computer device 1000 operates, the processor 1001 and the memory 1002 communicate through the bus 1003, so that the processor 1001 executes the following instructions:
displaying a first page on a screen interface, responding to a first trigger operation aiming at the first page, and displaying a floating window identifier at a target display position of the screen interface; wherein the target display position is related to a trigger position of the first trigger operation on the screen interface;
responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier;
and displaying the floating window identifier on the screen interface, wherein the floating window identifier is used for opening the content triggered by the first trigger operation in a shortcut mode.
In a possible implementation manner, the instructions of the processor 1001 further include determining the target display position according to the following method:
determining a trigger position of the first trigger operation on the screen interface;
and determining the target display position of the floating window identifier based on the trigger position of the first trigger operation on the screen interface and the relative position relation between the preset trigger position and the floating window identifier display position.
In a possible implementation manner, in the instruction of the processor 1001, the first trigger operation is a sliding operation;
the first trigger operation satisfies the following condition:
the ratio of the sliding distance to the screen size in the direction corresponding to the sliding operation is within a preset ratio range; and/or the sliding distance exceeds a preset distance; and/or the sliding speed is less than a preset speed value.
In a possible implementation, in the instructions of the processor 1001, the presenting a first page on the screen interface includes:
responding to a third trigger operation aiming at a target multimedia information card in an initial display page displayed on a screen interface, and displaying the first page on the screen interface; the target media information card is a card corresponding to the first page;
after the description information corresponding to the content triggered by the first trigger operation is added to the floating window identifier, the method further includes:
and returning to display the initial display page.
In a possible implementation manner, in the instructions of the processor 1001, the presenting a floating window identifier at a target presentation position of the screen interface in response to a first trigger operation for the first page includes:
responding to a first trigger operation aiming at the first page, displaying the first page and the initial display page on the screen interface based on the trigger position of the first trigger operation, and displaying a floating window identifier at the target display position of the screen interface.
In a possible implementation manner, in the instructions of the processor 1001, adding description information corresponding to content triggered by the first trigger operation to the floating window identifier in response to the second trigger operation for the floating window identifier includes:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to the first page to the floating window identifier.
In a possible implementation manner, in the instructions of the processor 1001, the responding to the first trigger operation for the first page includes:
responding to a first trigger operation aiming at any multimedia information card in the first page.
The responding to a second trigger operation aiming at the floating window identifier, and adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier comprises the following steps:
and responding to a second trigger operation aiming at the floating window identifier, and adding the description information corresponding to any multimedia information card to the floating window identifier.
In a possible implementation manner, in the instructions of the processor 1001, the floating window identifier displayed at the target display position shows information of the number of pages that have been currently added to the floating window identifier;
updating the quantity information after adding the description information to a floating window identifier.
In a possible implementation, in the instructions of the processor 1001, the displaying the floating window identifier on the screen interface includes:
displaying the floating window identification at a preset position of the screen interface; or,
and acquiring historical display position information of the floating window identification, and displaying the floating window identification at a position corresponding to the historical display position information.
In a possible implementation manner, the instructions of the processor 1001, after displaying the floating window identifier on the screen interface, further include:
responding to a fourth trigger operation aiming at the floating window identifier, adding a floating layer on the screen interface, and displaying the description information added to the floating window identifier on the floating layer;
and responding to a fifth trigger operation aiming at any description information, and displaying a page corresponding to the any description information on the screen interface.
In a possible implementation manner, in the instruction of the processor 1001, in a case that the content triggered by the first trigger operation includes audio, a control button corresponding to the audio is further included in the floating window identifier;
the displaying of the description information added to the floating window identifier on the floating layer includes:
displaying the description information added into the floating window identifier and the control button on the floating layer;
and responding to the operation triggered based on the control button to control the audio playing or switching.
In a possible implementation manner, the instructions of the processor 1001, before adding the description information to the floating-window identifier, further include:
determining the number of the description information which is added into the floating window identifier currently;
and deleting the description information which is firstly added to the floating window identifier based on the sequence of adding the description information to the floating window identifier under the condition that the number exceeds the preset number.
In a possible implementation manner, in the instructions of the processor 1001, adding description information corresponding to the content triggered by the first trigger operation to the floating window identifier includes:
determining the number of description information corresponding to target attribute information based on the attribute information of each description information which is added to the floating window identifier at present; the attribute information of the description information is used for representing the type of the media resource contained in the page corresponding to the description information, and the target attribute information is the attribute information of the content triggered by the first trigger operation;
and deleting the description information which is added firstly based on the sequence of adding the description information corresponding to the target attribute information to the floating window identifier and adding the description information corresponding to the content triggered by the first trigger operation to the floating window identifier under the condition that the number of the description information corresponding to the target attribute information exceeds a preset value.
In one possible implementation, in the instruction of the processor 1001, the first trigger operation and the second trigger operation are executed continuously.
In a possible implementation manner, in the instructions of the processor 1001, the second trigger operation for the floating window identifier includes at least one of:
triggering operation with the end position of the first triggering operation as an operation starting position and the floating window identifier as an end position;
taking the ending position of the first trigger operation as an operation starting position, and carrying out trigger operation including the floating window identifier in an operation path;
and triggering operation by taking the ending position of the first triggering operation as an operation starting position and taking any position in the triggering area corresponding to the floating window identifier as an ending position, wherein the triggering area corresponding to the floating window identifier is an area determined based on the ending position of the first triggering operation and the target display position.
In a possible implementation manner, the instructions of the processor 1001, after displaying the description information added to the floating window identifier on the floating layer, further include:
and in response to the triggering operation of a deleting button aiming at any piece of description information, deleting the any piece of description information from the floating window identifier.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the page display method in the foregoing method embodiments are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the page display method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.