WO2019184786A1 - Floating window processing method and apparatus - Google Patents

Floating window processing method and apparatus Download PDF

Info

Publication number
WO2019184786A1
WO2019184786A1 PCT/CN2019/078989 CN2019078989W WO2019184786A1 WO 2019184786 A1 WO2019184786 A1 WO 2019184786A1 CN 2019078989 W CN2019078989 W CN 2019078989W WO 2019184786 A1 WO2019184786 A1 WO 2019184786A1
Authority
WO
WIPO (PCT)
Prior art keywords
floating window
data
target data
instruction
floating
Prior art date
Application number
PCT/CN2019/078989
Other languages
French (fr)
Chinese (zh)
Inventor
邵俊艳
吕新胜
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019184786A1 publication Critical patent/WO2019184786A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements

Definitions

  • the present invention relates to the field of computer control, and in particular to a floating window processing method and apparatus.
  • the data in the floating window needs to be acquired and modified by the remote server, resulting in poor data transmission efficiency and large floating window display delay when the floating window is switched.
  • Embodiments of the present invention provide a floating window processing method and apparatus.
  • a floating window processing method includes: receiving a trigger instruction for indicating switching from a first floating window to a second floating window; Obtaining target data for opening the second floating window in the data corresponding to the first floating window; opening the second floating window according to the target data, wherein the target data is displayed in the second floating window.
  • a floating window processing apparatus including: a receiving unit, configured to receive a trigger instruction, where the trigger instruction is used to indicate switching from a first floating window to a second floating window; a processing unit, configured to acquire target data for opening the second floating window from data corresponding to the first floating window according to the triggering instruction; and a control unit, configured to open the second floating according to the target data a window, wherein the target data is displayed in the second floating window.
  • a storage medium comprising a stored program, wherein a device in which the storage medium is located is controlled to execute the above-described floating window processing method while the program is running.
  • a processor for running a program wherein the program is executed while the floating window processing method is executed.
  • a floating window processing apparatus comprising: a processor; and a memory coupled to the processor for providing the processor with an instruction to process the following processing steps: Receiving a triggering instruction, the triggering instruction is configured to switch from the first floating window to the second floating window; and acquiring, according to the triggering instruction, a target for opening the second floating window from data corresponding to the first floating window Data; opening the second floating window according to the target data, wherein the target data is displayed in the second floating window.
  • a floating window processing method comprising: a floating window control component receiving a trigger instruction, the triggering instruction instructing a first floating window to switch to a second floating window;
  • the control component acquires target data corresponding to the second floating window from data corresponding to the first floating window in the data storage space; the floating window control component retrieves the target data to be based on the The target data opens the second floating window.
  • a floating window processing apparatus comprising: a processor; and a memory coupled to the processor for providing the processor with an instruction to process the following processing steps: Receiving a triggering instruction, the triggering instruction instructing the first floating window to switch to the second floating window; acquiring, from the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window; The target data is taken to open the second floating window based on the target data.
  • the data in the floating window to be displayed is directly obtained from the data corresponding to the floating window before the switching, so that the transparent transmission of data between the floating windows is realized.
  • the acquisition time of the data corresponding to the floating window can be reduced from the server, and the floating window display efficiency can be improved; and at the same time, since the data between the floating windows can be transparently transmitted, the data modification between the floating windows can be updated locally, and the pair is reduced.
  • Server interaction In short, the application can realize the data transmission between the floating windows, achieves the purpose of transparent transmission of data between the floating windows without interaction with the server, thereby achieving the technical effect of improving data transmission efficiency.
  • FIG. 1 is a block diagram showing the hardware structure of an optional computer terminal (or mobile device) for implementing a floating window processing method according to an embodiment of the present invention
  • FIG. 2 is a flow chart of an alternative floating window processing method in accordance with an embodiment of the present invention.
  • FIG. 3a is a schematic diagram of an optional main page in accordance with an embodiment of the present invention.
  • Figure 3b is a schematic illustration of an alternative floating window a in accordance with an embodiment of the present invention.
  • Figure 3c is a schematic illustration of an alternative floating window b in accordance with an embodiment of the present invention.
  • 3d is a schematic diagram of another alternative main page in accordance with an embodiment of the present invention.
  • 4a is a schematic diagram of an optional product flow according to an embodiment of the present invention.
  • 4b is a schematic diagram showing the relationship between an optional multi-level floating window according to an embodiment of the present invention.
  • 4c is a schematic diagram of data flow between an optional multi-level floating window according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of an optional floating window processing method according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an optional floating window processing apparatus according to an embodiment of the present invention.
  • FIG. 7 is a block diagram showing the structure of an optional computer terminal in accordance with an embodiment of the present invention.
  • DrawerBox Drawer scene control component, is the manager of the floating window, used to control the switching or display of the floating window.
  • Floating window Also known as a floating window, you can display the data you want to view or process on top of the main page.
  • a floating window processing method wherein the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 1 shows a hardware block diagram of a computer terminal (or mobile device) for implementing a floating window processing method.
  • computer terminal 10 may include one or more (shown in the figures 102a, 102b, ..., 102n) processor 102 (processor 102 may include, but is not limited to, micro A processing device such as a processor MCU or a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions.
  • processor 102 may include, but is not limited to, micro A processing device such as a processor MCU or a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions.
  • FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • computer terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • processors 102 and/or other data processing circuits may be referred to herein generally as "data processing circuits.”
  • the data processing circuit may be embodied in whole or in part as software, hardware, firmware or any other combination.
  • the data processing circuitry can be a single, separate processing module, or incorporated in whole or in part into any of the other components in computer terminal 10 (or mobile device).
  • the data processing circuit is controlled as a processor (e.g., selection of a variable resistance terminal path connected to the interface).
  • the memory 104 can be used to store software programs and modules of the application software, such as the program instructions/data storage devices corresponding to the floating window processing method in the embodiment of the present invention, and the processor 102 runs the software programs and modules stored in the memory 104, thereby Perform various function applications and data processing, that is, implement the floating window processing method of the above application.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be coupled to computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is for receiving or transmitting data via a network.
  • the network specific examples described above may include a wireless network provided by a communication provider of the computer terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module for communicating wirelessly with the Internet.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • the display can be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of computer terminal 10 (or mobile device).
  • LCD liquid crystal display
  • the computer device (or mobile device) shown in FIG. 1 above may include hardware components (including circuits), software components (including computers stored on a computer readable medium). Code), or a combination of both hardware and software components.
  • FIG. 1 is only one example of a specific embodiment, and is intended to show the types of components that may be present in the above-described computer device (or mobile device).
  • the computer device (or mobile device) shown in FIG. 1 described above has a touch display (also referred to as a "touch screen” or “touch display”).
  • the computer device (or mobile device) shown in FIG. 1 described above has an image user interface (GUI) that a user can interact with by the touch of a finger on a touch-sensitive surface, and/or a gesture.
  • GUI image user interface
  • the human-computer interaction function here includes the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, talking interfaces, playing digital videos, playing digital music and/or Executable instructions for performing the human-machine interaction functions described above, such as web browsing, are configured/stored in one or more processor-executable computer program products or readable storage media.
  • FIG. 2 is a flow chart of a floating window processing method according to a first embodiment of the present invention.
  • Step S202 receiving a trigger instruction for indicating switching from the first floating window to the second floating window.
  • the triggering instruction includes at least one of the following: a floating window opening instruction, a floating window closing instruction, wherein the floating window opening instruction is used to indicate that the second floating window is opened in the first floating window; the floating window closing instruction It is used to indicate that the first floating window in the second floating window is closed and the second floating window is opened.
  • the first floating window and the second floating window are in a series relationship.
  • the serial relationship described herein means that the data between the floating windows is related. For example, the data displayed in the second floating window is the first floating window corresponding to the data. Part of the data of the data.
  • the main body of the floating window processing method in this embodiment may be a floating window control component, and the floating window control component may be a DrawerBox, which is disposed in the main page, is used for managing each floating window, and controls switching between the floating windows and data transmission. pass.
  • the control component can also realize the rendering of the floating window, etc., to display a complete floating window on the current page.
  • Step S204 Acquire, according to the trigger instruction, the target data for opening the second floating window from the data corresponding to the first floating window.
  • step S204 of the present application an internal data data is maintained in the floating window control component, and its initial value is null, that is, ⁇ .
  • the switching button may be a button for indicating that the second floating window is opened in the first floating window, it may also be A trigger command is generated for indicating that the first floating window in the second floating window is closed and the second floating window is opened.
  • the DrawerBox will perform the action of opening the second floating window (for example, the floating window b); at the same time, the DrawerBox will store the internal data in the internal data. Add the ⁇ a:1 ⁇ attribute for floating window b.
  • This modification will be performed inside the DrawerBox.
  • the DrawerBox maintains the data corresponding to the floating window a in the data maintained by the internal data storage space.
  • the floating window can be obtained from the data corresponding to the floating window a. b corresponding data, and add the data corresponding to the floating window b in the data, so that when the DrawerBox opens the floating window b, the data is obtained for the rendering display of the floating window b.
  • acquiring the target data for opening the second floating window from the data corresponding to the first floating window comprising: acquiring target data for opening the second floating window from the data corresponding to the first floating window; adding an identifier to the target data, The identifier is used to indicate a correspondence between the target data and the second floating window, so as to acquire the target data based on the identifier when the second floating window is opened.
  • Step S206 opening the second floating window according to the target data.
  • step S206 of the present application the target data is displayed in the second floating window.
  • the floating window processing method of the embodiment adopts a frivolous window mode, and maintains an internal data data in the floating window control component, and realizes data transmission between the floating windows by modifying the internal data when performing floating window switching. It achieves the purpose of transparent data transmission between floating windows without interaction with the server, thereby achieving the technical effect of improving data transmission efficiency, and further solving the problem of frequent interaction with the server when switching between floating windows. Technical problems with low data transmission efficiency.
  • the method in this embodiment further includes:
  • Step S10 receiving a first closing instruction
  • the first closing instruction is for instructing to close the second floating window and open the first floating window.
  • the floating window for example, the floating window b
  • the control component receives the first close command.
  • Step S12 Determine, according to the first closing instruction, the data modified by the target data from the second floating window, and update the corresponding data in the first floating window.
  • the DrawerBox After receiving the first shutdown instruction, the DrawerBox updates the internal data stored in the internal data again, that is, the data modified by the target data from the floating window b is updated to the data corresponding to the floating window a. Thus, when the floating window a is displayed again, it is displayed with the updated data.
  • Step S14 Open the first floating window according to the data corresponding to the updated first floating window.
  • the floating window b when the floating window b is closed, the floating window a originally under the floating window b is redisplayed, and the internal data stored in the DrawerBox is obtained through the payloads parameter (this parameter is used to obtain the value of the data) (at this time, data) The value of the data is used after the update.
  • the internal data data of this embodiment may adopt a redundancy mechanism to retain data of all states.
  • the original data corresponding to the floating window is a:1, and b:1 is the modified data to ensure the integrity of the data.
  • the method for opening and closing the floating window may be: pushing and pushing the control data corresponding to the floating window in the stack corresponding to the floating window, so that the DrawerBox opens and closes the floating window according to the control data in the stack.
  • the embodiment only illustrates the switching between the floating window a and the floating window b.
  • the data control method of the floating window of the embodiment can be applied to the task creation, editing, and access of the multi-level depth.
  • the floating window c and the like can be further opened in the floating window b, and the execution steps are the same as the above method, and are not described here again, and should be in this embodiment.
  • the execution steps are the same as the above method, and are not described here again, and should be in this embodiment.
  • the method in this embodiment further includes:
  • Step S20 receiving a second close instruction
  • the second close instruction is used to instruct to close the first floating window and switch to the main page.
  • Step S22 the updated data corresponding to the first floating window is sent to the server, so that the main page acquires and displays the updated data from the server.
  • the method in this embodiment further includes:
  • Step S30 receiving a first open command, the first open command is used to indicate that the first floating window is opened on the main page.
  • Step S32 acquiring data corresponding to the first floating window from the server.
  • Step S34 Open the first floating window according to the data corresponding to the first floating window to display data in the first floating window.
  • the focus form C1 is called out from the list page B1 (corresponding to the main page shown in FIG. 3a) (corresponding to FIG. 3b
  • the floating window a) in the multi-level flick window serial path, calls out the focus form C2 from the focus form C1 (corresponding to the floating window b shown in FIG. 3c), and after performing modification or access in the focus form C2, returning The focus form C1, back to the list page B1, is refreshed in the list page B1 to obtain the list page result B2 (corresponding to the main page as shown in FIG. 3d).
  • the user clicks on the "Modify" in the first row of the list, which triggers the opening of the first floating window (floating window a) as shown in Figure 3b.
  • the DrawerBox receives After the first open instruction triggered by the user acquires the display data of the floating window a from the server, the floating window a is opened, and the display data is displayed in the floating window a, wherein the internal data data is maintained in the DrawerBox, and its initial value is Empty, ie ⁇ .
  • the DrawerBox will Receiving a floating window open command triggered by the user, acquiring target data (a: 1) from the data corresponding to the floating window a according to the floating window open command, and adding a: 1 to the internal data data.
  • the user clicks "OK” in the lower right corner to trigger the closing of the floating window b, and opens the floating window a as shown in Fig. 3b.
  • the DrawerBox receives the user trigger.
  • the first closing instruction acquires the modified data (b: 1) from the floating window b according to the first closing instruction, and updates the data (a: 1) in the original data corresponding to the floating window a to (b: 1) In this way, according to the data in the updated data, the floating window a is opened, and the floating window a displays the modified or updated data.
  • the second closing instruction sends the value of the data to the server, so that the main page obtains and displays the updated data corresponding to the first floating window from the server, that is, when the main page needs to be returned, the DrawerBox only needs to input the internal data. It can be submitted to the server at one time, which simplifies the user's operation.
  • the onChange event on the DrawerBox is triggered, and the internal data of the DrawerBox is transmitted.
  • the user of the DrawerBox only needs to listen to the onChange event of the DrawerBox, and can obtain the latest data and save it when the internal data of the DrawerBox changes.
  • the relationship between the multi-level floating windows can be regarded as a tree relationship as shown in FIG. 4b.
  • the data flow can be as shown in FIG. 4c.
  • the user only needs to declare the operation relationship of each floating window when opening or closing when using the data.
  • the DrawerBox internally updates the data every time it is opened or closed according to the declaration. The user gets the latest data.
  • the display method for switching from the first floating window to the second floating window comprises at least one of the following: an intermediate pop-up window, a side-sliding floating window.
  • the manner of occurrence between the multi-level floating windows can be realized by covering a plurality of interactive manners such as a side slip, an intermediate pop-up window, and the like in the up, down, left, and right directions.
  • the frivolous window is used to solve the phenomenon that the current flow type task is more and the execution task will leave the current page.
  • the output is visible on the current page, and the principle uses the three levels of the main path and the branch path.
  • the level of floating window communication at the same time, the multi-level floating layer carries out layer-to-layer information interworking, and finally the information is presented to the main path to present the result.
  • a floating window processing method is further provided. As shown in FIG. 5, the method includes:
  • Step S502 the floating window control component receives a trigger instruction, and the trigger instruction instructs the first floating window to switch to the second floating window.
  • the triggering instruction includes at least one of the following: a floating window opening instruction, a floating window closing instruction, wherein the floating window opening instruction is used to indicate that the second floating window is opened in the first floating window; and the floating window closing instruction is used to instruct to close the first
  • the first floating window in the two floating windows opens the second floating window.
  • the first floating window and the second floating window are in a series relationship.
  • the floating window control component may be a DrawerBox, which is disposed in the main page, is used to manage each floating window, and controls switching between the floating windows and data transparent transmission.
  • Step S504 the floating window control component acquires target data corresponding to the second floating window from data corresponding to the first floating window in the data storage space.
  • the floating window control component After receiving the trigger instruction, acquires target data corresponding to the second floating window from the data corresponding to the first floating window in the data storage space, and the data storage space can be maintained by the floating window control component. And control.
  • the target data corresponding to the second floating window is obtained from the data corresponding to the first floating window in the data storage space, and specifically includes: a floating window control component, where the data corresponding to the first floating window in the data storage space is Obtaining target data corresponding to the second floating window; storing the target data in the data storage space, the identifier corresponding to the second floating window; and the floating window control component, capturing the target data to open the second floating based on the target data
  • the window specifically includes: a floating window control component, when the second floating window is opened, the target data under the corresponding identifier is queried from the data storage space; and the floating window control component opens the second floating window based on the target data.
  • Step S506 the floating window control component retrieves the target data to open the second floating window based on the target data.
  • the floating window control component acquires the target data corresponding to the second floating window from the data corresponding to the first floating window in the data storage space, and opens the second floating window based on the target data.
  • the data transmission between floating windows is realized, and the purpose of transparent data transmission between floating windows is realized without interaction with the server, thereby realizing the technical effect of improving data transmission efficiency, thereby solving the problem of switching between floating windows.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the floating window processing apparatus includes:
  • the receiving unit 602 is configured to receive a triggering instruction, where the triggering instruction is used to switch from the first floating window to the second floating window, and the processing unit 604 is configured to: correspond to the first floating window according to the triggering instruction.
  • the target data for opening the second floating window is obtained in the data; the control unit 606 is configured to open the second floating window according to the target data, wherein the target data is displayed in the second floating window.
  • the receiving unit 602, the processing unit 604, and the control unit 606 correspond to steps S202 to S204 in Embodiment 1, and the three modules are the same as the examples and application scenarios implemented by the corresponding steps, but not It is limited to the content disclosed in the above embodiment 1. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the triggering instruction includes at least one of: a floating window open instruction, a floating window close instruction, wherein the floating window open instruction is used to indicate that the second floating window is opened in the first floating window
  • the floating window closing command is for indicating closing the first floating window in the second floating window and opening the second floating window.
  • the receiving unit 602 is further configured to receive a first closing instruction, where the first closing instruction is used to indicate that the second floating window is closed;
  • the processing unit 604 is further configured to: determine the modified data of the target data from the second floating window according to the first closing instruction, and update corresponding data in the first floating window; and the control unit 606 And is further configured to open the first floating window according to the updated data corresponding to the first floating window.
  • the receiving unit 602 is further configured to receive a second close instruction, where the second close instruction is used to indicate that the first floating window is closed and switch to a main page; and the floating window processing apparatus further includes: sending And a unit, configured to send the updated data corresponding to the first floating window to a server, so that the main page acquires and displays the updated data from the server.
  • the receiving unit 602 is further configured to receive a first open instruction, where the first open instruction is used to indicate that the first floating window is opened on a main page, and the processing unit 604 is further configured to acquire the The data corresponding to the first floating window; the control unit 606 is further configured to open the first floating window according to the data corresponding to the first floating window, to display the data in the first floating window.
  • the display method for switching from the first floating window to the second floating window comprises at least one of the following: an intermediate pop-up window, a side-sliding floating window.
  • the processing unit 604 is configured to: obtain, by using data corresponding to the first floating window, target data for opening the second floating window: obtaining an open location from data corresponding to the first floating window Determining target data of the second floating window; adding an identifier to the target data, the identifier being used to indicate a correspondence between the target data and the second floating window, so as to be based on the opening of the second floating window The identifier acquires the target data.
  • a floating window processing apparatus for implementing the above floating window processing method, comprising: a processor; and a memory connected to the processor for providing processing to the processor An instruction of the processing step: receiving a triggering instruction, the triggering instruction instructing the first floating window to switch to a second floating window; and acquiring, from the data corresponding to the first floating window in the data storage space, The target data corresponding to the two floating windows; the target data is retrieved to open the second floating window based on the target data.
  • Embodiments of the present invention may provide a computer terminal, which may be any one of computer terminal groups.
  • the foregoing computer terminal may also be replaced with a terminal device such as a mobile terminal.
  • the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
  • the computer terminal may execute the program code of the following steps in the floating window processing method of the application program: receiving a trigger instruction, the triggering instruction is used to indicate switching from the first floating window to the second floating window; a triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; opening the second floating window according to the target data, wherein the second floating window is displayed The target data.
  • the computer terminal may execute the program code of the following steps in the floating window processing method of the application: the floating window control component receives the trigger instruction, and the trigger instruction instructs the first floating window to switch to the second floating window; the floating window control And acquiring, from the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window; the floating window control component, retrieving the target data, based on the The target data opens the second floating window.
  • FIG. 7 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
  • the computer terminal A may include one or more (only one shown in the figure) processor, memory.
  • the memory can be used to store software programs and modules, such as the floating window processing method and the program instruction/module corresponding to the device in the embodiment of the present invention, and the processor executes various functions by running a software program and a module stored in the memory.
  • Application and data processing that is, the above floating window processing method is implemented.
  • the memory may include a high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • the memory can further include memory remotely located relative to the processor, which can be connected to terminal A via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the processor may call the memory stored information and the application program by the transmission device to perform the steps of: receiving a trigger instruction, the triggering instruction is used to indicate switching from the first floating window to the second floating window; according to the triggering instruction, Obtaining target data for opening the second floating window from data corresponding to the first floating window; opening the second floating window according to the target data, wherein the target data is displayed in the second floating window .
  • the processor may further execute the following steps: receiving a first close instruction, where the first close instruction is used to indicate that the second floating window is closed; according to the first close instruction, from the The second floating window determines the modified data of the target data, and updates the corresponding data in the first floating window; and opens the first floating window according to the updated data corresponding to the first floating window .
  • the processor may further execute the following steps: receiving a second close instruction, where the second close instruction is used to instruct to close the first floating window and switch to a main page;
  • the updated data corresponding to the window is sent to the server, so that the main page acquires and displays the updated data from the server.
  • the foregoing processor may further execute the following steps: receiving a first open instruction, where the first open instruction is used to indicate that the first floating window is opened on a main page; and the first And corresponding data of the floating window; according to the data corresponding to the first floating window, opening the first floating window to display the data in the first floating window.
  • the data of the floating window is realized by acquiring the target data of the second floating window from the data corresponding to the first floating window, thereby achieving Under the premise of server interaction, the purpose of transparent data transmission between floating windows is realized, thereby realizing the technical effect of improving data transmission efficiency, thereby solving the problem of low data transmission efficiency caused by frequent interaction with the server when switching between floating windows. technical problem.
  • the processor may call the memory stored information and the application program by the transmission device to perform the steps of: receiving a trigger instruction, the triggering instruction instructing the first floating window to switch to the second floating window; from the data storage space And acquiring, by the data corresponding to the first floating window, target data corresponding to the second floating window; and the target data is retrieved to open the second floating window based on the target data.
  • the processor may further execute the following steps: acquiring, from the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window;
  • the data is stored in the data storage space, and the identifier is associated with the second floating window;
  • the target data is retrieved to open the second floating window based on the target data, specifically:
  • the floating window control component opens the second floating window based on the target data.
  • FIG. 7 is only an illustration, and the computer terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID). ), PAD and other terminal devices.
  • FIG. 7 does not limit the structure of the above electronic device.
  • computer terminal A may also include more or fewer components (such as a network interface, display device, etc.) than shown in FIG. 7, or have a different configuration than that shown in FIG.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be used to save the program code executed by the floating window processing method provided in Embodiment 1 above.
  • the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
  • the storage medium is configured to store program code for performing the step of: receiving a trigger instruction for indicating switching from the first floating window to the second floating window; a triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; opening the second floating window according to the target data, wherein the second floating window is displayed The target data.
  • the storage medium is further configured to store program code for performing the step of: receiving a first close instruction, the first close instruction is for indicating to close the second floating window; Determining, by the first floating instruction, data modified by the target data from the second floating window, and updating corresponding data in the first floating window; corresponding to the updated first floating window The data opens the first floating window.
  • the storage medium is further configured to store program code for performing the step of: receiving a second close instruction, the second close instruction is for indicating to close the first floating window and switch Up to the main page; sending the updated data corresponding to the first floating window to the server, so that the main page acquires and displays the updated data from the server.
  • the storage medium is further configured to store program code for performing the step of: receiving a first open instruction, the first open instruction being used to indicate that the first a floating window; acquiring data corresponding to the first floating window from a server; opening the first floating window according to data corresponding to the first floating window to display the data in the first floating window.
  • the storage medium is configured to store program code for performing the step of: receiving a trigger instruction, the triggering instruction instructing the first floating window to switch to a second floating window; And acquiring, in the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window; and the target data is retrieved to open the second floating window based on the target data.
  • the storage medium is further configured to store program code for performing the following steps: acquiring the second float from data corresponding to the first floating window in the data storage space Target data corresponding to the window; the target data is identified and stored in the data storage space, the identifier corresponds to the second floating window; and the target data is retrieved to open the first data based on the target data
  • the second floating window specifically includes: when the second floating window instruction is opened, querying the target data under the corresponding identifier from the data storage space; the floating window control component opens the second based on the target data Floating window.
  • An embodiment of the present invention further provides a floating window processing apparatus, including: a processor; and a memory coupled to the processor, configured to provide the processor with an instruction to process a process of: receiving a trigger instruction, The triggering instruction is configured to switch from the first floating window to the second floating window; according to the triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; The target data opens the second floating window, wherein the target data is displayed in the second floating window.
  • a floating window processing apparatus including: a processor; and a memory coupled to the processor, configured to provide the processor with an instruction to process a process of: receiving a trigger instruction, The triggering instruction is configured to switch from the first floating window to the second floating window; according to the triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; The target data opens the second floating window, wherein the target data is displayed in the second floating window.
  • the disclosed technical contents may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a floating window processing method and apparatus. The method comprises: receiving a trigger instruction, wherein the trigger instruction is used for indicating that a first floating window is switched to a second floating window; according to the trigger instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; and opening the second floating window according to the target data, wherein the second floating window displays the target data. According to the present invention, the problem of low data transmission efficiency caused due to the fact that interaction with a server needs to be frequently performed during switching between floating windows is solved.

Description

浮窗处理方法及装置Floating window processing method and device
本申请要求2018年03月31日递交的申请号为201810278527.9、发明名称为“浮窗处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application Serial No. 20 181 027 852, filed on March 31, 2010, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及计算机控制领域,具体而言,涉及一种浮窗处理方法及装置。The present invention relates to the field of computer control, and in particular to a floating window processing method and apparatus.
背景技术Background technique
目前,在执行流程式任务时,会存在执行任务会离开当前页面的现象,例如,用户在某个页面(例如a页面)中打开一个任务时,会离开当前页面,跳转到另一个页面(例如b页面),该b页面需要显示的数据需要从服务器中获取,如果用户在第二个页面中修改了数据,那么b页面需要将修改数据发给服务器,当关闭b页面后,此时的a页面中并不会显示该修改数据,用户需要在a页面中点击刷新,从服务器获取该修改数据进行显示。Currently, when executing a process-based task, there is a phenomenon that the execution task will leave the current page. For example, when a user opens a task in a certain page (for example, a page), the user will leave the current page and jump to another page ( For example, b page), the data that the b page needs to display needs to be obtained from the server. If the user modifies the data in the second page, then the b page needs to send the modified data to the server, when the b page is closed, at this time The modified data is not displayed in the a page. The user needs to click refresh in the a page to obtain the modified data from the server for display.
目前这种浮窗显示方式中,浮窗中的数据都需要与远端的服务器获取和修改,导致浮窗切换时,数据传输效率较差,浮窗显示延迟较大。In the current floating window display mode, the data in the floating window needs to be acquired and modified by the remote server, resulting in poor data transmission efficiency and large floating window display delay when the floating window is switched.
发明内容Summary of the invention
本发明实施例提供了一种浮窗处理方法及装置。Embodiments of the present invention provide a floating window processing method and apparatus.
根据本发明实施例的一个方面,提供了一种浮窗处理方法,包括:接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。According to an aspect of an embodiment of the present invention, a floating window processing method includes: receiving a trigger instruction for indicating switching from a first floating window to a second floating window; Obtaining target data for opening the second floating window in the data corresponding to the first floating window; opening the second floating window according to the target data, wherein the target data is displayed in the second floating window.
根据本发明实施例的另一方面,还提供了一种浮窗处理装置,包括:接收单元,用于接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;处理单元,用于根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;控制单元,用于根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。According to another aspect of the present invention, a floating window processing apparatus is provided, including: a receiving unit, configured to receive a trigger instruction, where the trigger instruction is used to indicate switching from a first floating window to a second floating window; a processing unit, configured to acquire target data for opening the second floating window from data corresponding to the first floating window according to the triggering instruction; and a control unit, configured to open the second floating according to the target data a window, wherein the target data is displayed in the second floating window.
根据本发明实施例的另一方面,还提供了一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行上述浮窗处理方法。According to another aspect of an embodiment of the present invention, there is also provided a storage medium comprising a stored program, wherein a device in which the storage medium is located is controlled to execute the above-described floating window processing method while the program is running.
根据本发明实施例的另一方面,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述浮窗处理方法。According to another aspect of an embodiment of the present invention, there is also provided a processor for running a program, wherein the program is executed while the floating window processing method is executed.
根据本发明实施例的另一方面,还提供了一种浮窗处理装置,包括:处理器;以及存储器,与所述处理器连接,用于为所述处理器提供处理以下处理步骤的指令:接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。According to another aspect of an embodiment of the present invention, there is also provided a floating window processing apparatus comprising: a processor; and a memory coupled to the processor for providing the processor with an instruction to process the following processing steps: Receiving a triggering instruction, the triggering instruction is configured to switch from the first floating window to the second floating window; and acquiring, according to the triggering instruction, a target for opening the second floating window from data corresponding to the first floating window Data; opening the second floating window according to the target data, wherein the target data is displayed in the second floating window.
根据本发明实施例的另一方面,还提供了一种浮窗处理方法,包括:浮窗控制组件接收触发指令,所述触发指令指示第一浮窗切换至第二浮窗;所述浮窗控制组件,从数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;所述浮窗控制组件,调取所述目标数据,以基于所述目标数据打开所述第二浮窗。According to another aspect of the embodiments of the present invention, there is also provided a floating window processing method, comprising: a floating window control component receiving a trigger instruction, the triggering instruction instructing a first floating window to switch to a second floating window; The control component acquires target data corresponding to the second floating window from data corresponding to the first floating window in the data storage space; the floating window control component retrieves the target data to be based on the The target data opens the second floating window.
根据本发明实施例的另一方面,还提供了一种浮窗处理装置,包括:处理器;以及存储器,与所述处理器连接,用于为所述处理器提供处理以下处理步骤的指令:接收触发指令,所述触发指令指示第一浮窗切换至第二浮窗;从数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;调取所述目标数据,以基于所述目标数据打开所述第二浮窗。According to another aspect of an embodiment of the present invention, there is also provided a floating window processing apparatus comprising: a processor; and a memory coupled to the processor for providing the processor with an instruction to process the following processing steps: Receiving a triggering instruction, the triggering instruction instructing the first floating window to switch to the second floating window; acquiring, from the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window; The target data is taken to open the second floating window based on the target data.
在本发明实施例中,采用在切换浮窗时,直接从切换前的浮窗对应的数据中,获取待显示的浮窗中的数据,这样,实现了浮窗之间的数据的透传,可以减少从服务器获取浮窗对应的数据的获取时间,提高浮窗展示效率;同时由于浮窗之间的数据可以透传,这样,浮窗之间的数据修改可以在本地就实现更新,减少对服务器交互。总之,本申请可以实现浮窗间的数据传递,达到了在无需与服务器交互的前提下,实现浮窗间数据透传的目的,从而实现了提高数据传输效率的技术效果。In the embodiment of the present invention, when the floating window is switched, the data in the floating window to be displayed is directly obtained from the data corresponding to the floating window before the switching, so that the transparent transmission of data between the floating windows is realized. The acquisition time of the data corresponding to the floating window can be reduced from the server, and the floating window display efficiency can be improved; and at the same time, since the data between the floating windows can be transparently transmitted, the data modification between the floating windows can be updated locally, and the pair is reduced. Server interaction. In short, the application can realize the data transmission between the floating windows, achieves the purpose of transparent transmission of data between the floating windows without interaction with the server, thereby achieving the technical effect of improving data transmission efficiency.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的一种可选的用于实现浮窗处理方法的计算机终端(或移动设备)的硬件结构框图;1 is a block diagram showing the hardware structure of an optional computer terminal (or mobile device) for implementing a floating window processing method according to an embodiment of the present invention;
图2是根据本发明实施例的一种可选的浮窗处理方法的流程图;2 is a flow chart of an alternative floating window processing method in accordance with an embodiment of the present invention;
图3a是根据本发明实施例的一种可选的主页面的示意图;3a is a schematic diagram of an optional main page in accordance with an embodiment of the present invention;
图3b是根据本发明实施例的一种可选的浮窗a的示意图;Figure 3b is a schematic illustration of an alternative floating window a in accordance with an embodiment of the present invention;
图3c是根据本发明实施例的一种可选的浮窗b的示意图;Figure 3c is a schematic illustration of an alternative floating window b in accordance with an embodiment of the present invention;
图3d是根据本发明实施例的另一种可选的主页面的示意图;3d is a schematic diagram of another alternative main page in accordance with an embodiment of the present invention;
图4a是根据本发明实施例的一种可选的产品流程示意图;4a is a schematic diagram of an optional product flow according to an embodiment of the present invention;
图4b是根据本发明实施例的一种可选的多级浮窗之间的关系示意图;4b is a schematic diagram showing the relationship between an optional multi-level floating window according to an embodiment of the present invention;
图4c是根据本发明实施例的一种可选的多级浮窗之间的数据流转示意图;4c is a schematic diagram of data flow between an optional multi-level floating window according to an embodiment of the present invention;
图5是根据本发明实施例的一种可选的浮窗处理方法的流程图;FIG. 5 is a flowchart of an optional floating window processing method according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的一种可选的浮窗处理装置的结构示意图;6 is a schematic structural diagram of an optional floating window processing apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的一种可选的计算机终端的结构框图。7 is a block diagram showing the structure of an optional computer terminal in accordance with an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:First, some of the nouns or terms that appear in the process of describing the embodiments of the present application are applicable to the following explanations:
DrawerBox:抽屉场景控制组件,是浮窗的管理者,用来控制浮窗的切换或显示。DrawerBox: Drawer scene control component, is the manager of the floating window, used to control the switching or display of the floating window.
浮窗:也可称为悬浮窗口,可以在主页面上方显示需要查看或处理的数据。Floating window: Also known as a floating window, you can display the data you want to view or process on top of the main page.
实施例1Example 1
根据本发明实施例,还提供了一种浮窗处理方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行,并且, 虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, there is also provided a method embodiment of a floating window processing method, wherein the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。图1示出了一种用于实现浮窗处理方法的计算机终端(或移动设备)的硬件结构框图。如图1所示,计算机终端10(或移动设备10)可以包括一个或多个(图中采用102a、102b,……,102n来示出)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输模块106。除此以外,还可以包括:显示器、输入/输出接口(I/O接口)、通用串行总线(USB)端口(可以作为I/O接口的端口中的一个端口被包括)、网络接口、电源和/或相机。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. FIG. 1 shows a hardware block diagram of a computer terminal (or mobile device) for implementing a floating window processing method. As shown in FIG. 1, computer terminal 10 (or mobile device 10) may include one or more (shown in the figures 102a, 102b, ..., 102n) processor 102 (processor 102 may include, but is not limited to, micro A processing device such as a processor MCU or a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it can also include: display, input/output interface (I/O interface), universal serial bus (USB) port (which can be included as one of the ports of the I/O interface), network interface, power supply And / or camera. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, computer terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
应当注意到的是上述一个或多个处理器102和/或其他数据处理电路在本文中通常可以被称为“数据处理电路”。该数据处理电路可以全部或部分的体现为软件、硬件、固件或其他任意组合。此外,数据处理电路可为单个独立的处理模块,或全部或部分的结合到计算机终端10(或移动设备)中的其他元件中的任意一个内。如本申请实施例中所涉及到的,该数据处理电路作为一种处理器控制(例如与接口连接的可变电阻终端路径的选择)。It should be noted that one or more of the above-described processors 102 and/or other data processing circuits may be referred to herein generally as "data processing circuits." The data processing circuit may be embodied in whole or in part as software, hardware, firmware or any other combination. Moreover, the data processing circuitry can be a single, separate processing module, or incorporated in whole or in part into any of the other components in computer terminal 10 (or mobile device). As referred to in the embodiments of the present application, the data processing circuit is controlled as a processor (e.g., selection of a variable resistance terminal path connected to the interface).
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的浮窗处理方法对应的程序指令/数据存储装置,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的应用程序的浮窗处理方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules of the application software, such as the program instructions/data storage devices corresponding to the floating window processing method in the embodiment of the present invention, and the processor 102 runs the software programs and modules stored in the memory 104, thereby Perform various function applications and data processing, that is, implement the floating window processing method of the above application. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be coupled to computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF) 模块,其用于通过无线方式与互联网进行通讯。Transmission device 106 is for receiving or transmitting data via a network. The network specific examples described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module for communicating wirelessly with the Internet.
显示器可以例如触摸屏式的液晶显示器(LCD),该液晶显示器可使得用户能够与计算机终端10(或移动设备)的用户界面进行交互。The display can be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of computer terminal 10 (or mobile device).
此处需要说明的是,在一些可选实施例中,上述图1所示的计算机设备(或移动设备)可以包括硬件元件(包括电路)、软件元件(包括存储在计算机可读介质上的计算机代码)、或硬件元件和软件元件两者的结合。应当指出的是,图1仅为特定具体实例的一个实例,并且旨在示出可存在于上述计算机设备(或移动设备)中的部件的类型。It should be noted that, in some optional embodiments, the computer device (or mobile device) shown in FIG. 1 above may include hardware components (including circuits), software components (including computers stored on a computer readable medium). Code), or a combination of both hardware and software components. It should be noted that FIG. 1 is only one example of a specific embodiment, and is intended to show the types of components that may be present in the above-described computer device (or mobile device).
此处需要说明的是,在一些实施例中,上述图1所示的计算机设备(或移动设备)具有触摸显示器(也被称为“触摸屏”或“触摸显示屏”)。在一些实施例中,上述图1所示的计算机设备(或移动设备)具有图像用户界面(GUI),用户可以通过触摸触敏表面上的手指接触和/或手势来与GUI进行人机交互,此处的人机交互功能可选的包括如下交互:创建网页、绘图、文字处理、制作电子文档、游戏、视频会议、即时通信、收发电子邮件、通话界面、播放数字视频、播放数字音乐和/或网络浏览等、用于执行上述人机交互功能的可执行指令被配置/存储在一个或多个处理器可执行的计算机程序产品或可读存储介质中。It should be noted herein that in some embodiments, the computer device (or mobile device) shown in FIG. 1 described above has a touch display (also referred to as a "touch screen" or "touch display"). In some embodiments, the computer device (or mobile device) shown in FIG. 1 described above has an image user interface (GUI) that a user can interact with by the touch of a finger on a touch-sensitive surface, and/or a gesture. The human-computer interaction function here includes the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, talking interfaces, playing digital videos, playing digital music and/or Executable instructions for performing the human-machine interaction functions described above, such as web browsing, are configured/stored in one or more processor-executable computer program products or readable storage media.
在上述运行环境下,本申请提供了如图2所示的浮窗处理方法。图2是根据本发明实施例一的浮窗处理方法的流程图。In the above operating environment, the present application provides a floating window processing method as shown in FIG. 2. 2 is a flow chart of a floating window processing method according to a first embodiment of the present invention.
步骤S202,接收触发指令,触发指令用于指示从第一浮窗切换至第二浮窗。Step S202, receiving a trigger instruction for indicating switching from the first floating window to the second floating window.
本申请上述步骤S202中,触发指令包括以下至少之一:浮窗打开指令、浮窗关闭指令,其中,浮窗打开指令用于指示在第一浮窗中打开第二浮窗;浮窗关闭指令用于指示关闭第二浮窗中的第一浮窗并打开第二浮窗。第一浮窗与第二浮窗之间为串联关系,这里所述的串联关系,是指浮窗之间的数据是有关联的,例如第二浮窗中展示的数据是第一浮窗对应的数据的一部分数据。In the above step S202, the triggering instruction includes at least one of the following: a floating window opening instruction, a floating window closing instruction, wherein the floating window opening instruction is used to indicate that the second floating window is opened in the first floating window; the floating window closing instruction It is used to indicate that the first floating window in the second floating window is closed and the second floating window is opened. The first floating window and the second floating window are in a series relationship. The serial relationship described herein means that the data between the floating windows is related. For example, the data displayed in the second floating window is the first floating window corresponding to the data. Part of the data of the data.
本实施例中执行浮窗处理方法的主体可以为浮窗控制组件,该浮窗控制组件可以为DrawerBox,设置在主页面中,用于管理各个浮窗,控制浮窗之间的切换及数据透传。该控制组件同时可以实现浮窗的渲染等,以在当前页面显示出一个完整的浮窗。The main body of the floating window processing method in this embodiment may be a floating window control component, and the floating window control component may be a DrawerBox, which is disposed in the main page, is used for managing each floating window, and controls switching between the floating windows and data transmission. pass. The control component can also realize the rendering of the floating window, etc., to display a complete floating window on the current page.
步骤S204,根据触发指令,从第一浮窗对应的数据中获取打开第二浮窗的目标数据。Step S204: Acquire, according to the trigger instruction, the target data for opening the second floating window from the data corresponding to the first floating window.
本申请步骤S204中,浮窗控制组件中会维护一个内部数据data,它的初始值为空,即{}。在第一浮窗(例如浮窗a)中,当用户(也就是使用者)点击切换按钮(该切换按钮可以是用于指示在第一浮窗中打开第二浮窗的按钮,也可以是用于指示关闭第二浮 窗中的第一浮窗并打开第二浮窗的按钮),生成触发指令。In step S204 of the present application, an internal data data is maintained in the floating window control component, and its initial value is null, that is, {}. In the first floating window (eg, floating window a), when the user (ie, the user) clicks the switching button (the switching button may be a button for indicating that the second floating window is opened in the first floating window, it may also be A trigger command is generated for indicating that the first floating window in the second floating window is closed and the second floating window is opened.
以触发指令为浮窗打开指令为例,DrawerBox在接收到浮窗打开指令之后,DrawerBox会执行打开第二浮窗(例如浮窗b)的动作;同时,DrawerBox会向内部存储的内部数据data中添加{a:1}这一属性来供浮窗b使用。DrawerBox内部会执行这次修改。例如,当前浮窗为a时,DrawerBox会在内部的数据存储空间维护的数据Data维护浮窗a对应的数据,当要切换到浮窗b时,可以从浮窗a对应的数据中获取浮窗b对应的数据,并在data中添加浮窗b对应的数据,以便DrawerBox打开浮窗b时,获取该数据进行浮窗b的渲染展示。Taking the trigger instruction as the floating window open command as an example, after the DrawerBox receives the floating window open command, the DrawerBox will perform the action of opening the second floating window (for example, the floating window b); at the same time, the DrawerBox will store the internal data in the internal data. Add the {a:1} attribute for floating window b. This modification will be performed inside the DrawerBox. For example, when the current floating window is a, the DrawerBox maintains the data corresponding to the floating window a in the data maintained by the internal data storage space. When switching to the floating window b, the floating window can be obtained from the data corresponding to the floating window a. b corresponding data, and add the data corresponding to the floating window b in the data, so that when the DrawerBox opens the floating window b, the data is obtained for the rendering display of the floating window b.
可选地,从第一浮窗对应的数据中获取打开第二浮窗的目标数据,包括:从第一浮窗对应的数据中获取打开第二浮窗的目标数据;对目标数据添加标识,标识用于指示目标数据与第二浮窗的对应关系,以便基于打开第二浮窗时基于标识获取目标数据。Optionally, acquiring the target data for opening the second floating window from the data corresponding to the first floating window, comprising: acquiring target data for opening the second floating window from the data corresponding to the first floating window; adding an identifier to the target data, The identifier is used to indicate a correspondence between the target data and the second floating window, so as to acquire the target data based on the identifier when the second floating window is opened.
步骤S206,根据目标数据打开第二浮窗。Step S206, opening the second floating window according to the target data.
本申请上述步骤S206中,第二浮窗中显示目标数据。In the above step S206 of the present application, the target data is displayed in the second floating window.
本实施例的浮窗处理方法,采用轻浮窗的方式,通过在浮窗控制组件内部维护一个内部数据data,在进行浮窗切换时,通过修改该内部数据data,实现浮窗间的数据传递,达到了在无需与服务器交互的前提下,实现浮窗间数据透传的目的,从而实现了提高数据传输效率的技术效果,并进而解决了浮窗之间进行切换时,需要频繁与服务器交互造成的数据传输效率低的技术问题。The floating window processing method of the embodiment adopts a frivolous window mode, and maintains an internal data data in the floating window control component, and realizes data transmission between the floating windows by modifying the internal data when performing floating window switching. It achieves the purpose of transparent data transmission between floating windows without interaction with the server, thereby achieving the technical effect of improving data transmission efficiency, and further solving the problem of frequent interaction with the server when switching between floating windows. Technical problems with low data transmission efficiency.
可选地,在触发指令为浮窗打开指令的情况下,根据目标数据打开第二浮窗之后,本实施例的方法还包括:Optionally, after the triggering instruction is a floating window open instruction, after the second floating window is opened according to the target data, the method in this embodiment further includes:
步骤S10,接收第一关闭指令,第一关闭指令用于指示关闭第二浮窗并打开第一浮窗。Step S10, receiving a first closing instruction, the first closing instruction is for instructing to close the second floating window and open the first floating window.
其中,在第二浮窗(例如浮窗b)中,当用户(也就是使用者)点击用于指示关闭第二浮窗中的第一浮窗并打开第二浮窗的按钮时,浮窗控制组件(DrawerBox)会接收到第一关闭指令。Wherein, in the second floating window (for example, the floating window b), when the user (that is, the user) clicks a button for instructing to close the first floating window in the second floating window and open the second floating window, the floating window The control component (DrawerBox) receives the first close command.
步骤S12,根据第一关闭指令,从第二浮窗确定目标数据修改后的数据,并对第一浮窗中对应的数据进行更新。Step S12: Determine, according to the first closing instruction, the data modified by the target data from the second floating window, and update the corresponding data in the first floating window.
其中,DrawerBox接收到第一关闭指令之后,会对自己内部存储的内部数据data进行再次更新,即从浮窗b确定目标数据修改后的数据对浮窗a原来对应的数据进行更新。这样,浮窗a再显示时就是以更新后的数据进行显示。After receiving the first shutdown instruction, the DrawerBox updates the internal data stored in the internal data again, that is, the data modified by the target data from the floating window b is updated to the data corresponding to the floating window a. Thus, when the floating window a is displayed again, it is displayed with the updated data.
步骤S14,根据更新后的第一浮窗对应的数据,打开第一浮窗。Step S14: Open the first floating window according to the data corresponding to the updated first floating window.
其中,当浮窗b关闭后,原本在浮窗b下面的浮窗a会重新显示,并且通过payloads参数(该参数用于获取data的值)获取到DrawerBox内部存储的内部数据data(此时data的值为更新后的数据)进行使用。Wherein, when the floating window b is closed, the floating window a originally under the floating window b is redisplayed, and the internal data stored in the DrawerBox is obtained through the payloads parameter (this parameter is used to obtain the value of the data) (at this time, data) The value of the data is used after the update.
需要说明的是,本实施例的内部数据data,可以采用冗余机制,保留所有状态的数据,例如浮窗对应的原始数据为a:1,b:1为修改后数据,以保证数据的完整性及可重复修改。It should be noted that the internal data data of this embodiment may adopt a redundancy mechanism to retain data of all states. For example, the original data corresponding to the floating window is a:1, and b:1 is the modified data to ensure the integrity of the data. Sexual and repeatable modifications.
本实施例中,打开、关闭浮窗的方法可以为,在浮窗对应的栈中推入、推出浮窗对应的控制数据,以便DrawerBox根据栈中的控制数据打开、关闭浮窗。In this embodiment, the method for opening and closing the floating window may be: pushing and pushing the control data corresponding to the floating window in the stack corresponding to the floating window, so that the DrawerBox opens and closes the floating window according to the control data in the stack.
需要补充说明的是,本实施例仅以浮窗a与浮窗b之间的切换为例进行说明,本实施例的浮窗的数据控制方法可以应用于多层级深度的任务创建、编辑、访问等等行为,例如,在浮窗a中打开浮窗b后,进一步可以在浮窗b中打开浮窗c等,其执行步骤与上述方法相同,此处不再赘述,均应在本实施例的保护范围之内。It should be noted that the embodiment only illustrates the switching between the floating window a and the floating window b. The data control method of the floating window of the embodiment can be applied to the task creation, editing, and access of the multi-level depth. For example, after the floating window b is opened in the floating window a, the floating window c and the like can be further opened in the floating window b, and the execution steps are the same as the above method, and are not described here again, and should be in this embodiment. Within the scope of protection.
可选地,根据更新后的第一浮窗对应的数据,打开第一浮窗之后,本实施例的方法还包括:Optionally, after the first floating window is opened according to the data corresponding to the updated first floating window, the method in this embodiment further includes:
步骤S20,接收第二关闭指令,第二关闭指令用于指示关闭第一浮窗并切换至主页面。Step S20, receiving a second close instruction, the second close instruction is used to instruct to close the first floating window and switch to the main page.
步骤S22,将第一浮窗对应的更新后的数据发送至服务器,以便主页面从服务器获取并显示更新后的数据。Step S22, the updated data corresponding to the first floating window is sent to the server, so that the main page acquires and displays the updated data from the server.
本申请上述步骤S20至S22中,当需要返回主页面时,DrawerBox只需将内部数据data一次性提交至服务器即可,简化了用户的操作。In the above steps S20 to S22 of the present application, when it is necessary to return to the main page, the DrawerBox only needs to submit the internal data data to the server at one time, which simplifies the operation of the user.
可选地,接收触发指令之前,本实施例的方法还包括:Optionally, before receiving the triggering instruction, the method in this embodiment further includes:
步骤S30,接收第一打开指令,第一打开指令用于指示在主页面上打开第一浮窗。Step S30, receiving a first open command, the first open command is used to indicate that the first floating window is opened on the main page.
步骤S32,从服务器获取第一浮窗对应的数据。Step S32, acquiring data corresponding to the first floating window from the server.
步骤S34,根据第一浮窗对应的数据,打开第一浮窗,以在第一浮窗中显示数据。Step S34: Open the first floating window according to the data corresponding to the first floating window to display data in the first floating window.
下面,结合图3a、图3b、图3c、图3d及图4a,对本实施例的浮窗处理方法进行说明:Hereinafter, the floating window processing method of the present embodiment will be described with reference to FIGS. 3a, 3b, 3c, 3d and 4a:
首先,如图4a所示,为本实施例的产品流程图,在当前页主路径中,从列表页B1(对应如图3a所示的主页面)中呼出焦点表单C1(对应如图3b所示的浮窗a),在多级轻浮窗串联路径中,从焦点表单C1呼出焦点表单C2(对应如图3c所示的浮窗b), 在焦点表单C2中执行修改或访问后,回到焦点表单C1,再回到列表页B1,再列表页B1中刷新,得到列表页结果B2(对应如图3d所示的主页面)。First, as shown in FIG. 4a, in the product flow chart of the embodiment, in the current page main path, the focus form C1 is called out from the list page B1 (corresponding to the main page shown in FIG. 3a) (corresponding to FIG. 3b The floating window a), in the multi-level flick window serial path, calls out the focus form C2 from the focus form C1 (corresponding to the floating window b shown in FIG. 3c), and after performing modification or access in the focus form C2, returning The focus form C1, back to the list page B1, is refreshed in the list page B1 to obtain the list page result B2 (corresponding to the main page as shown in FIG. 3d).
进而,结合图3a、图3b、图3c、图3d,详细描述浮窗处理方法:Furthermore, the floating window processing method is described in detail in conjunction with FIGS. 3a, 3b, 3c, and 3d:
在如图3a所示的主页面中,用户点击列表中第一排的“修改”,会触发打开如图3b所示的第一浮窗(浮窗a),在此过程中,DrawerBox会接收到用户触发的第一打开指令,从服务器获取浮窗a的显示数据后,打开浮窗a,并在浮窗a中显示显示数据,其中,DrawerBox中会维护一个内部数据data,它的初始值为空,即{}。In the main page shown in Figure 3a, the user clicks on the "Modify" in the first row of the list, which triggers the opening of the first floating window (floating window a) as shown in Figure 3b. In the process, the DrawerBox receives After the first open instruction triggered by the user acquires the display data of the floating window a from the server, the floating window a is opened, and the display data is displayed in the floating window a, wherein the internal data data is maintained in the DrawerBox, and its initial value is Empty, ie {}.
在如图3b所示的浮窗a中,用户点击列表中第二排的“修改”,会触发打开如图3c所示的第二浮窗(浮窗b),在此过程中,DrawerBox会接收到用户触发的浮窗打开指令,根据浮窗打开指令,从浮窗a对应的数据中获取目标数据(a:1),并在内部数据data中添加a:1。In the floating window a shown in Figure 3b, the user clicks on the "modification" in the second row of the list, which triggers the opening of the second floating window (floating window b) as shown in Figure 3c. In the process, the DrawerBox will Receiving a floating window open command triggered by the user, acquiring target data (a: 1) from the data corresponding to the floating window a according to the floating window open command, and adding a: 1 to the internal data data.
在如图3c所示的浮窗b中,用户点击右下角的“确定”,会触发关闭浮窗b,打开如图3b所示的浮窗a,在此过程中,DrawerBox会接收到用户触发的第一关闭指令,根据第一关闭指令,从浮窗b获取修改后的数据(b:1),并对浮窗a对应的原始数据中的数据(a:1)更新为(b:1),这样,根据更新后的data中的数据,打开浮窗a,浮窗a就会显示修改或更新后的数据。In the floating window b shown in Fig. 3c, the user clicks "OK" in the lower right corner to trigger the closing of the floating window b, and opens the floating window a as shown in Fig. 3b. In the process, the DrawerBox receives the user trigger. The first closing instruction acquires the modified data (b: 1) from the floating window b according to the first closing instruction, and updates the data (a: 1) in the original data corresponding to the floating window a to (b: 1) In this way, according to the data in the updated data, the floating window a is opened, and the floating window a displays the modified or updated data.
在如图3b所示的浮窗a中,用户点击右下角的“确定”,会触发关闭浮窗a,返回至如图3d所示的主页面,在此过程中,DrawerBox会接收到用户触发的第二关闭指令,将data的值发送至服务器,以便主页面从服务器获取并显示第一浮窗对应的更新后的数据,也就是说当需要返回主页面时,DrawerBox只需将内部数据data一次性提交至服务器即可,简化了用户的操作。In the floating window a shown in Figure 3b, the user clicks "OK" in the lower right corner to trigger the closing of the floating window a, returning to the main page as shown in Figure 3d, in the process, the DrawerBox will receive the user trigger. The second closing instruction sends the value of the data to the server, so that the main page obtains and displays the updated data corresponding to the first floating window from the server, that is, when the main page needs to be returned, the DrawerBox only needs to input the internal data. It can be submitted to the server at one time, which simplifies the user's operation.
本实施的浮窗处理方法,在每一次DrawerBox的内部数据data发生变化时,都会触发DrawerBox上的onChange事件,将DrawerBox的内部数据data传递出来。这样一来,DrawerBox的使用者只需要监听DrawerBox的onChange事件,就可以在每次DrawerBox的内部数据data发生变化时获取到它最新数据并保存下来使用。提交时只需要把保存下来的数据提交到服务器即可。In the floating window processing method of the present embodiment, when the internal data of the DrawerBox changes, the onChange event on the DrawerBox is triggered, and the internal data of the DrawerBox is transmitted. In this way, the user of the DrawerBox only needs to listen to the onChange event of the DrawerBox, and can obtain the latest data and save it when the internal data of the DrawerBox changes. When submitting, you only need to submit the saved data to the server.
基于以上描述可知,多级浮窗之间的关系可以看做是如图4b所示的树状关系,在浮窗之间来回切换时,数据的流转可以如图4c所示。在这种数据频繁切换的场景下,使用者只需要在使用时声明每个浮窗在打开或关闭时对数据的操作关系,DrawerBox在内部会按照声明在每次打开或关闭时更新数据,保证使用者拿到最新数据。Based on the above description, the relationship between the multi-level floating windows can be regarded as a tree relationship as shown in FIG. 4b. When switching back and forth between the floating windows, the data flow can be as shown in FIG. 4c. In this scenario where data is frequently switched, the user only needs to declare the operation relationship of each floating window when opening or closing when using the data. The DrawerBox internally updates the data every time it is opened or closed according to the declaration. The user gets the latest data.
可选地,从第一浮窗切换至第二浮窗的显示方法包括以下至少之一:中间弹窗、侧滑浮窗。Optionally, the display method for switching from the first floating window to the second floating window comprises at least one of the following: an intermediate pop-up window, a side-sliding floating window.
本实施例中,多级浮窗之间出现的方式可以通过上下左右方向出现的侧滑、中间弹窗等多种交互方式覆盖来实现。In this embodiment, the manner of occurrence between the multi-level floating windows can be realized by covering a plurality of interactive manners such as a side slip, an intermediate pop-up window, and the like in the up, down, left, and right directions.
本实施例采用轻浮窗的方式解决当前流程式任务较多且执行任务会离开当前页面的现象,讲究输出即所得便在当前页可见,原理采用了主路径的层次三深与分支路径中的多级浮窗通信,同时多级浮层之间进行层层递进式的信息互通,最终信息递交主路径呈现结果。In this embodiment, the frivolous window is used to solve the phenomenon that the current flow type task is more and the execution task will leave the current page. The output is visible on the current page, and the principle uses the three levels of the main path and the branch path. The level of floating window communication, at the same time, the multi-level floating layer carries out layer-to-layer information interworking, and finally the information is presented to the main path to present the result.
根据本发明实施例,还提供了一种浮窗处理方法,如图5所示,该方法包括:According to an embodiment of the present invention, a floating window processing method is further provided. As shown in FIG. 5, the method includes:
步骤S502,浮窗控制组件接收触发指令,触发指令指示第一浮窗切换至第二浮窗。Step S502, the floating window control component receives a trigger instruction, and the trigger instruction instructs the first floating window to switch to the second floating window.
其中,触发指令包括以下至少之一:浮窗打开指令、浮窗关闭指令,其中,浮窗打开指令用于指示在第一浮窗中打开第二浮窗;浮窗关闭指令用于指示关闭第二浮窗中的第一浮窗并打开第二浮窗。第一浮窗与第二浮窗之间为串联关系。The triggering instruction includes at least one of the following: a floating window opening instruction, a floating window closing instruction, wherein the floating window opening instruction is used to indicate that the second floating window is opened in the first floating window; and the floating window closing instruction is used to instruct to close the first The first floating window in the two floating windows opens the second floating window. The first floating window and the second floating window are in a series relationship.
可选地,浮窗控制组件可以为DrawerBox,设置在主页面中,用于管理各个浮窗,控制浮窗之间的切换及数据透传。Optionally, the floating window control component may be a DrawerBox, which is disposed in the main page, is used to manage each floating window, and controls switching between the floating windows and data transparent transmission.
步骤S504,浮窗控制组件,从数据存储空间中第一浮窗对应的数据中,获取与第二浮窗对应的目标数据。Step S504, the floating window control component acquires target data corresponding to the second floating window from data corresponding to the first floating window in the data storage space.
其中,在接收到触发指令后,浮窗控制组件从数据存储空间中第一浮窗对应的数据中,获取与第二浮窗对应的目标数据,该数据存储空间可以由浮窗控制组件进行维护及控制。After receiving the trigger instruction, the floating window control component acquires target data corresponding to the second floating window from the data corresponding to the first floating window in the data storage space, and the data storage space can be maintained by the floating window control component. And control.
可选地,从数据存储空间中第一浮窗对应的数据中,获取与第二浮窗对应的目标数据,具体包括:浮窗控制组件,从数据存储空间中第一浮窗对应的数据中,获取第二浮窗对应的目标数据;将目标数据进行标识后存储在数据存储空间,该标识与第二浮窗对应;浮窗控制组件,调取目标数据,以基于目标数据打开第二浮窗,具体包括:浮窗控制组件,在打开第二浮窗时,从数据存储空间查询对应的标识下的目标数据;浮窗控制组件,基于目标数据打开第二浮窗。Optionally, the target data corresponding to the second floating window is obtained from the data corresponding to the first floating window in the data storage space, and specifically includes: a floating window control component, where the data corresponding to the first floating window in the data storage space is Obtaining target data corresponding to the second floating window; storing the target data in the data storage space, the identifier corresponding to the second floating window; and the floating window control component, capturing the target data to open the second floating based on the target data The window specifically includes: a floating window control component, when the second floating window is opened, the target data under the corresponding identifier is queried from the data storage space; and the floating window control component opens the second floating window based on the target data.
步骤S506,浮窗控制组件,调取目标数据,以基于目标数据打开第二浮窗。Step S506, the floating window control component retrieves the target data to open the second floating window based on the target data.
本实施例中,在进行浮窗切换时,浮窗控制组件通过从数据存储空间中第一浮窗对应的数据中,获取与第二浮窗对应的目标数据,基于目标数据打开第二浮窗,实现浮窗间的数据传递,达到了在无需与服务器交互的前提下,实现浮窗间数据透传的目的,从 而实现了提高数据传输效率的技术效果,进而解决了浮窗之间进行切换时,需要频繁与服务器交互造成的数据传输效率低的技术问题。In this embodiment, when the floating window is switched, the floating window control component acquires the target data corresponding to the second floating window from the data corresponding to the first floating window in the data storage space, and opens the second floating window based on the target data. The data transmission between floating windows is realized, and the purpose of transparent data transmission between floating windows is realized without interaction with the server, thereby realizing the technical effect of improving data transmission efficiency, thereby solving the problem of switching between floating windows. Technical problems that require inefficient data transmission due to frequent interaction with the server.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
根据本发明实施例,还提供了一种用于实施上述浮窗处理方法的浮窗处理装置,如图6所示,该浮窗处理装置包括:According to an embodiment of the present invention, there is also provided a floating window processing apparatus for implementing the above floating window processing method. As shown in FIG. 6, the floating window processing apparatus includes:
接收单元602,用于接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;处理单元604,用于根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;控制单元606,用于根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。The receiving unit 602 is configured to receive a triggering instruction, where the triggering instruction is used to switch from the first floating window to the second floating window, and the processing unit 604 is configured to: correspond to the first floating window according to the triggering instruction. The target data for opening the second floating window is obtained in the data; the control unit 606 is configured to open the second floating window according to the target data, wherein the target data is displayed in the second floating window.
此处需要说明的是,上述接收单元602、处理单元604和控制单元606对应于实施例1中的步骤S202至步骤S204,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted that the receiving unit 602, the processing unit 604, and the control unit 606 correspond to steps S202 to S204 in Embodiment 1, and the three modules are the same as the examples and application scenarios implemented by the corresponding steps, but not It is limited to the content disclosed in the above embodiment 1. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
可选地,所述触发指令包括以下至少之一:浮窗打开指令、浮窗关闭指令,其中,所述浮窗打开指令用于指示在所述第一浮窗中打开所述第二浮窗;所述浮窗关闭指令用于指示关闭所述第二浮窗中的所述第一浮窗并打开所述第二浮窗。Optionally, the triggering instruction includes at least one of: a floating window open instruction, a floating window close instruction, wherein the floating window open instruction is used to indicate that the second floating window is opened in the first floating window The floating window closing command is for indicating closing the first floating window in the second floating window and opening the second floating window.
可选地,在所述触发指令为所述浮窗打开指令的情况下,接收单元602,还用于接收第一关闭指令,所述第一关闭指令用于指示关闭所述第二浮窗;处理单元604,还用于根据所述第一关闭指令,从所述第二浮窗确定所述目标数据修改后的数据,并对所述 第一浮窗中对应的数据进行更新;控制单元606,还用于根据更新后的所述第一浮窗对应的数据,打开所述第一浮窗。Optionally, in a case that the triggering instruction is the floating window open instruction, the receiving unit 602 is further configured to receive a first closing instruction, where the first closing instruction is used to indicate that the second floating window is closed; The processing unit 604 is further configured to: determine the modified data of the target data from the second floating window according to the first closing instruction, and update corresponding data in the first floating window; and the control unit 606 And is further configured to open the first floating window according to the updated data corresponding to the first floating window.
可选地,接收单元602,还用于接收第二关闭指令,所述第二关闭指令用于指示关闭所述第一浮窗并切换至主页面;所述浮窗处理装置,还包括:发送单元,用于将所述第一浮窗对应的更新后的数据发送至服务器,以便所述主页面从所述服务器获取并显示所述更新后的数据。Optionally, the receiving unit 602 is further configured to receive a second close instruction, where the second close instruction is used to indicate that the first floating window is closed and switch to a main page; and the floating window processing apparatus further includes: sending And a unit, configured to send the updated data corresponding to the first floating window to a server, so that the main page acquires and displays the updated data from the server.
可选地,接收单元602,还用于接收第一打开指令,所述第一打开指令用于指示在主页面上打开所述第一浮窗;处理单元604,还用于从服务器获取所述第一浮窗对应的数据;控制单元606,还用于根据所述第一浮窗对应的数据,打开所述第一浮窗,以在所述第一浮窗中显示所述数据。Optionally, the receiving unit 602 is further configured to receive a first open instruction, where the first open instruction is used to indicate that the first floating window is opened on a main page, and the processing unit 604 is further configured to acquire the The data corresponding to the first floating window; the control unit 606 is further configured to open the first floating window according to the data corresponding to the first floating window, to display the data in the first floating window.
可选地,从第一浮窗切换至第二浮窗的显示方法包括以下至少之一:中间弹窗、侧滑浮窗。Optionally, the display method for switching from the first floating window to the second floating window comprises at least one of the following: an intermediate pop-up window, a side-sliding floating window.
可选地,处理单元604,用于执行以下步骤从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据:从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;对所述目标数据添加标识,所述标识用于指示所述目标数据与所述第二浮窗的对应关系,以便基于打开所述第二浮窗时基于所述标识获取所述目标数据。Optionally, the processing unit 604 is configured to: obtain, by using data corresponding to the first floating window, target data for opening the second floating window: obtaining an open location from data corresponding to the first floating window Determining target data of the second floating window; adding an identifier to the target data, the identifier being used to indicate a correspondence between the target data and the second floating window, so as to be based on the opening of the second floating window The identifier acquires the target data.
根据本发明实施例,还提供了一种用于实施上述浮窗处理方法的浮窗处理装置,包括:处理器;以及存储器,与所述处理器连接,用于为所述处理器提供处理以下处理步骤的指令:接收触发指令,所述触发指令指示所述第一浮窗切换至第二浮窗;从所述数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;调取所述目标数据,以基于所述目标数据打开所述第二浮窗。According to an embodiment of the present invention, there is also provided a floating window processing apparatus for implementing the above floating window processing method, comprising: a processor; and a memory connected to the processor for providing processing to the processor An instruction of the processing step: receiving a triggering instruction, the triggering instruction instructing the first floating window to switch to a second floating window; and acquiring, from the data corresponding to the first floating window in the data storage space, The target data corresponding to the two floating windows; the target data is retrieved to open the second floating window based on the target data.
实施例3Example 3
本发明的实施例可以提供一种计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。Embodiments of the present invention may provide a computer terminal, which may be any one of computer terminal groups. Optionally, in this embodiment, the foregoing computer terminal may also be replaced with a terminal device such as a mobile terminal.
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
在本实施例中,上述计算机终端可以执行应用程序的浮窗处理方法中以下步骤的程序代码:接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;根据所述 触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。In this embodiment, the computer terminal may execute the program code of the following steps in the floating window processing method of the application program: receiving a trigger instruction, the triggering instruction is used to indicate switching from the first floating window to the second floating window; a triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; opening the second floating window according to the target data, wherein the second floating window is displayed The target data.
上述计算机终端可以执行应用程序的浮窗处理方法中以下步骤的程序代码:浮窗控制组件接收触发指令,所述触发指令指示所述第一浮窗切换至第二浮窗;所述浮窗控制组件,从所述数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;所述浮窗控制组件,调取所述目标数据,以基于所述目标数据打开所述第二浮窗。The computer terminal may execute the program code of the following steps in the floating window processing method of the application: the floating window control component receives the trigger instruction, and the trigger instruction instructs the first floating window to switch to the second floating window; the floating window control And acquiring, from the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window; the floating window control component, retrieving the target data, based on the The target data opens the second floating window.
可选地,图7是根据本发明实施例的一种计算机终端的结构框图。如图7所示,该计算机终端A可以包括:一个或多个(图中仅示出一个)处理器、存储器。Optionally, FIG. 7 is a structural block diagram of a computer terminal according to an embodiment of the present invention. As shown in FIG. 7, the computer terminal A may include one or more (only one shown in the figure) processor, memory.
其中,存储器可用于存储软件程序以及模块,如本发明实施例中的浮窗处理方法和装置对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的浮窗处理方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至终端A。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory can be used to store software programs and modules, such as the floating window processing method and the program instruction/module corresponding to the device in the embodiment of the present invention, and the processor executes various functions by running a software program and a module stored in the memory. Application and data processing, that is, the above floating window processing method is implemented. The memory may include a high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory can further include memory remotely located relative to the processor, which can be connected to terminal A via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。The processor may call the memory stored information and the application program by the transmission device to perform the steps of: receiving a trigger instruction, the triggering instruction is used to indicate switching from the first floating window to the second floating window; according to the triggering instruction, Obtaining target data for opening the second floating window from data corresponding to the first floating window; opening the second floating window according to the target data, wherein the target data is displayed in the second floating window .
可选的,上述处理器还可以执行如下步骤的程序代码:接收第一关闭指令,所述第一关闭指令用于指示关闭所述第二浮窗;根据所述第一关闭指令,从所述第二浮窗确定所述目标数据修改后的数据,并对所述第一浮窗中对应的数据进行更新;根据更新后的所述第一浮窗对应的数据,打开所述第一浮窗。Optionally, the processor may further execute the following steps: receiving a first close instruction, where the first close instruction is used to indicate that the second floating window is closed; according to the first close instruction, from the The second floating window determines the modified data of the target data, and updates the corresponding data in the first floating window; and opens the first floating window according to the updated data corresponding to the first floating window .
可选的,上述处理器还可以执行如下步骤的程序代码:接收第二关闭指令,所述第二关闭指令用于指示关闭所述第一浮窗并切换至主页面;将所述第一浮窗对应的更新后的数据发送至服务器,以便所述主页面从所述服务器获取并显示所述更新后的数据。Optionally, the processor may further execute the following steps: receiving a second close instruction, where the second close instruction is used to instruct to close the first floating window and switch to a main page; The updated data corresponding to the window is sent to the server, so that the main page acquires and displays the updated data from the server.
可选的,上述处理器还可以执行如下步骤的程序代码:接收第一打开指令,所述第一打开指令用于指示在主页面上打开所述第一浮窗;从服务器获取所述第一浮窗对应的数据;根据所述第一浮窗对应的数据,打开所述第一浮窗,以在所述第一浮窗中显示所 述数据。Optionally, the foregoing processor may further execute the following steps: receiving a first open instruction, where the first open instruction is used to indicate that the first floating window is opened on a main page; and the first And corresponding data of the floating window; according to the data corresponding to the first floating window, opening the first floating window to display the data in the first floating window.
采用本发明实施例,在进行浮窗切换时,通过从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据,实现浮窗间的数据传递,达到了在无需与服务器交互的前提下,实现浮窗间数据透传的目的,从而实现了提高数据传输效率的技术效果,进而解决了浮窗之间进行切换时,需要频繁与服务器交互造成的数据传输效率低的技术问题。According to the embodiment of the present invention, when the floating window is switched, the data of the floating window is realized by acquiring the target data of the second floating window from the data corresponding to the first floating window, thereby achieving Under the premise of server interaction, the purpose of transparent data transmission between floating windows is realized, thereby realizing the technical effect of improving data transmission efficiency, thereby solving the problem of low data transmission efficiency caused by frequent interaction with the server when switching between floating windows. technical problem.
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:接收触发指令,所述触发指令指示所述第一浮窗切换至第二浮窗;从所述数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;调取所述目标数据,以基于所述目标数据打开所述第二浮窗。The processor may call the memory stored information and the application program by the transmission device to perform the steps of: receiving a trigger instruction, the triggering instruction instructing the first floating window to switch to the second floating window; from the data storage space And acquiring, by the data corresponding to the first floating window, target data corresponding to the second floating window; and the target data is retrieved to open the second floating window based on the target data.
可选的,上述处理器还可以执行如下步骤的程序代码:从所述数据存储空间中所述第一浮窗对应的数据中,获取所述第二浮窗对应的目标数据;将所述目标数据进行标识后存储在所述数据存储空间,该标识与所述第二浮窗对应;调取所述目标数据,以基于所述目标数据打开所述第二浮窗,具体包括:在打开所述第二浮窗指令时,从所述数据存储空间查询对应的标识下的目标数据;所述浮窗控制组件,基于所述目标数据打开所述第二浮窗。Optionally, the processor may further execute the following steps: acquiring, from the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window; The data is stored in the data storage space, and the identifier is associated with the second floating window; the target data is retrieved to open the second floating window based on the target data, specifically: When the second floating window instruction is described, the target data under the corresponding identifier is queried from the data storage space; the floating window control component opens the second floating window based on the target data.
本领域普通技术人员可以理解,图7所示的结构仅为示意,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图7其并不对上述电子装置的结构造成限定。例如,计算机终端A还可包括比图7中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图7所示不同的配置。A person skilled in the art can understand that the structure shown in FIG. 7 is only an illustration, and the computer terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID). ), PAD and other terminal devices. FIG. 7 does not limit the structure of the above electronic device. For example, computer terminal A may also include more or fewer components (such as a network interface, display device, etc.) than shown in FIG. 7, or have a different configuration than that shown in FIG.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct terminal device related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may be Including: flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.
实施例4Example 4
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例一所提供的浮窗处理方法所执行的程序代码。Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be used to save the program code executed by the floating window processing method provided in Embodiment 1 above.
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。Optionally, in this embodiment, the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:接 收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。Optionally, in this embodiment, the storage medium is configured to store program code for performing the step of: receiving a trigger instruction for indicating switching from the first floating window to the second floating window; a triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; opening the second floating window according to the target data, wherein the second floating window is displayed The target data.
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:接收第一关闭指令,所述第一关闭指令用于指示关闭所述第二浮窗;根据所述第一关闭指令,从所述第二浮窗确定所述目标数据修改后的数据,并对所述第一浮窗中对应的数据进行更新;根据更新后的所述第一浮窗对应的数据,打开所述第一浮窗。Optionally, in this embodiment, the storage medium is further configured to store program code for performing the step of: receiving a first close instruction, the first close instruction is for indicating to close the second floating window; Determining, by the first floating instruction, data modified by the target data from the second floating window, and updating corresponding data in the first floating window; corresponding to the updated first floating window The data opens the first floating window.
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:接收第二关闭指令,所述第二关闭指令用于指示关闭所述第一浮窗并切换至主页面;将所述第一浮窗对应的更新后的数据发送至服务器,以便所述主页面从所述服务器获取并显示所述更新后的数据。Optionally, in this embodiment, the storage medium is further configured to store program code for performing the step of: receiving a second close instruction, the second close instruction is for indicating to close the first floating window and switch Up to the main page; sending the updated data corresponding to the first floating window to the server, so that the main page acquires and displays the updated data from the server.
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:接收第一打开指令,所述第一打开指令用于指示在主页面上打开所述第一浮窗;从服务器获取所述第一浮窗对应的数据;根据所述第一浮窗对应的数据,打开所述第一浮窗,以在所述第一浮窗中显示所述数据。Optionally, in this embodiment, the storage medium is further configured to store program code for performing the step of: receiving a first open instruction, the first open instruction being used to indicate that the first a floating window; acquiring data corresponding to the first floating window from a server; opening the first floating window according to data corresponding to the first floating window to display the data in the first floating window.
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:接收触发指令,所述触发指令指示所述第一浮窗切换至第二浮窗;从所述数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;调取所述目标数据,以基于所述目标数据打开所述第二浮窗。Optionally, in this embodiment, the storage medium is configured to store program code for performing the step of: receiving a trigger instruction, the triggering instruction instructing the first floating window to switch to a second floating window; And acquiring, in the data corresponding to the first floating window in the data storage space, target data corresponding to the second floating window; and the target data is retrieved to open the second floating window based on the target data.
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:从所述数据存储空间中所述第一浮窗对应的数据中,获取所述第二浮窗对应的目标数据;将所述目标数据进行标识后存储在所述数据存储空间,该标识与所述第二浮窗对应;调取所述目标数据,以基于所述目标数据打开所述第二浮窗,具体包括:在打开所述第二浮窗指令时,从所述数据存储空间查询对应的标识下的目标数据;所述浮窗控制组件,基于所述目标数据打开所述第二浮窗。Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: acquiring the second float from data corresponding to the first floating window in the data storage space Target data corresponding to the window; the target data is identified and stored in the data storage space, the identifier corresponds to the second floating window; and the target data is retrieved to open the first data based on the target data The second floating window specifically includes: when the second floating window instruction is opened, querying the target data under the corresponding identifier from the data storage space; the floating window control component opens the second based on the target data Floating window.
本发明的实施例还提供了一种浮窗处理装置,包括:处理器;以及存储器,与所述处理器连接,用于为所述处理器提供处理以下处理步骤的指令:接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。An embodiment of the present invention further provides a floating window processing apparatus, including: a processor; and a memory coupled to the processor, configured to provide the processor with an instruction to process a process of: receiving a trigger instruction, The triggering instruction is configured to switch from the first floating window to the second floating window; according to the triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; The target data opens the second floating window, wherein the target data is displayed in the second floating window.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed technical contents may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims (14)

  1. 一种浮窗处理方法,其特征在于,包括:A floating window processing method, comprising:
    接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;Receiving a trigger instruction for indicating switching from the first floating window to the second floating window;
    根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;Obtaining, according to the triggering instruction, target data for opening the second floating window from data corresponding to the first floating window;
    根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。Opening the second floating window according to the target data, wherein the target data is displayed in the second floating window.
  2. 根据权利要求1所述的方法,其特征在于,所述触发指令包括以下至少之一:浮窗打开指令、浮窗关闭指令,其中,The method according to claim 1, wherein the triggering instruction comprises at least one of: a floating window opening instruction, a floating window closing instruction, wherein
    所述浮窗打开指令用于指示在所述第一浮窗中打开所述第二浮窗;The floating window opening instruction is for indicating opening the second floating window in the first floating window;
    所述浮窗关闭指令用于指示关闭所述第二浮窗中的所述第一浮窗并打开所述第二浮窗。The floating window closing command is for indicating closing the first floating window in the second floating window and opening the second floating window.
  3. 根据权利要求2所述的方法,其特征在于,在所述触发指令为所述浮窗打开指令的情况下,根据所述目标数据打开所述第二浮窗之后,所述方法还包括:The method according to claim 2, wherein, after the triggering instruction is the floating window open command, after the second floating window is opened according to the target data, the method further comprises:
    接收第一关闭指令,所述第一关闭指令用于指示关闭所述第二浮窗;Receiving a first shutdown instruction, the first shutdown instruction is for indicating to close the second floating window;
    根据所述第一关闭指令,从所述第二浮窗确定所述目标数据修改后的数据,并对所述第一浮窗中对应的数据进行更新;Determining the modified data of the target data from the second floating window according to the first closing instruction, and updating corresponding data in the first floating window;
    根据更新后的所述第一浮窗对应的数据,打开所述第一浮窗。Opening the first floating window according to the updated data corresponding to the first floating window.
  4. 根据权利要求3所述的方法,其特征在于,根据更新后的所述第一浮窗对应的数据,打开所述第一浮窗之后,所述方法还包括:The method according to claim 3, wherein, after the first floating window is opened, according to the updated data corresponding to the first floating window, the method further comprises:
    接收第二关闭指令,所述第二关闭指令用于指示关闭所述第一浮窗并切换至主页面;Receiving a second close instruction, the second close instruction is configured to instruct to close the first floating window and switch to a main page;
    将所述第一浮窗对应的更新后的数据发送至服务器,以便所述主页面从所述服务器获取并显示所述更新后的数据。And sending the updated data corresponding to the first floating window to the server, so that the main page acquires and displays the updated data from the server.
  5. 根据权利要求4所述的方法,其特征在于,接收触发指令之前,所述方法还包括:The method according to claim 4, wherein before the triggering instruction is received, the method further comprises:
    接收第一打开指令,所述第一打开指令用于指示在主页面上打开所述第一浮窗;Receiving a first open instruction, the first open instruction is used to indicate that the first floating window is opened on a main page;
    从服务器获取所述第一浮窗对应的数据;Obtaining data corresponding to the first floating window from a server;
    根据所述第一浮窗对应的数据,打开所述第一浮窗,以在所述第一浮窗中显示所述数据。Opening the first floating window according to data corresponding to the first floating window to display the data in the first floating window.
  6. 根据权利要求1所述的方法,其特征在于,所述从所述第一浮窗对应的数据中 获取打开所述第二浮窗的目标数据,包括:The method according to claim 1, wherein the obtaining the target data for opening the second floating window from the data corresponding to the first floating window comprises:
    从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;Obtaining target data for opening the second floating window from data corresponding to the first floating window;
    对所述目标数据添加标识,所述标识用于指示所述目标数据与所述第二浮窗的对应关系,以便基于打开所述第二浮窗时基于所述标识获取所述目标数据。And adding an identifier to the target data, where the identifier is used to indicate a correspondence between the target data and the second floating window, so that the target data is acquired based on the identifier when the second floating window is opened.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,从第一浮窗切换至第二浮窗的显示方法包括以下至少之一:中间弹窗、侧滑浮窗。The method according to any one of claims 1 to 6, wherein the display method of switching from the first floating window to the second floating window comprises at least one of the following: an intermediate pop-up window, a side-sliding floating window.
  8. 一种浮窗处理装置,其特征在于,包括:A floating window processing device, comprising:
    接收单元,用于接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;a receiving unit, configured to receive a triggering instruction, where the triggering instruction is used to indicate switching from the first floating window to the second floating window;
    处理单元,用于根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;a processing unit, configured to acquire target data for opening the second floating window from data corresponding to the first floating window according to the triggering instruction;
    控制单元,用于根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。And a control unit, configured to open the second floating window according to the target data, wherein the target data is displayed in the second floating window.
  9. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行权利要求1至7中任意一项所述的浮窗处理方法。A storage medium, characterized in that the storage medium includes a stored program, wherein the device in which the storage medium is located is controlled to execute the floating window processing method according to any one of claims 1 to 7 while the program is running .
  10. 一种处理器,其特征在于,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至7中任意一项所述的浮窗处理方法。A processor, wherein the processor is configured to execute a program, wherein the program is executed to execute the floating window processing method according to any one of claims 1 to 7.
  11. 一种浮窗处理装置,其特征在于,包括:A floating window processing device, comprising:
    处理器;以及Processor;
    存储器,与所述处理器连接,用于为所述处理器提供处理以下处理步骤的指令:接收触发指令,所述触发指令用于指示从第一浮窗切换至第二浮窗;根据所述触发指令,从所述第一浮窗对应的数据中获取打开所述第二浮窗的目标数据;根据所述目标数据打开所述第二浮窗,其中,所述第二浮窗中显示所述目标数据。a memory coupled to the processor for providing the processor with an instruction to process a process of: receiving a trigger instruction for indicating switching from a first floating window to a second floating window; a triggering instruction, acquiring target data for opening the second floating window from data corresponding to the first floating window; opening the second floating window according to the target data, wherein the second floating window displays Target data.
  12. 一种浮窗处理方法,其特征在于,包括:A floating window processing method, comprising:
    浮窗控制组件接收触发指令,所述触发指令指示第一浮窗切换至第二浮窗;The floating window control component receives a trigger instruction, the triggering instruction instructing the first floating window to switch to the second floating window;
    所述浮窗控制组件,从数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;The floating window control component acquires target data corresponding to the second floating window from data corresponding to the first floating window in the data storage space;
    所述浮窗控制组件,调取所述目标数据,以基于所述目标数据打开所述第二浮窗。The floating window control component retrieves the target data to open the second floating window based on the target data.
  13. 根据权利要求12所述的方法,其特征在于,所述浮窗控制组件,从所述数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据,具体包括:The method according to claim 12, wherein the floating window control component acquires target data corresponding to the second floating window from data corresponding to the first floating window in the data storage space Specifically, including:
    所述浮窗控制组件,从所述数据存储空间中所述第一浮窗对应的数据中,获取所述第二浮窗对应的目标数据;The floating window control component acquires target data corresponding to the second floating window from data corresponding to the first floating window in the data storage space;
    将所述目标数据进行标识后存储在所述数据存储空间,该标识与所述第二浮窗对应;And identifying the target data in the data storage space, where the identifier corresponds to the second floating window;
    所述浮窗控制组件,调取所述目标数据,以基于所述目标数据打开所述第二浮窗,具体包括:The floating window control component, the user is called to open the second floating window based on the target data, and specifically includes:
    所述浮窗控制组件,在打开所述第二浮窗时,从所述数据存储空间查询对应的标识下的目标数据;The floating window control component queries, when the second floating window is opened, the target data under the corresponding identifier from the data storage space;
    所述浮窗控制组件,基于所述目标数据打开所述第二浮窗。The floating window control component opens the second floating window based on the target data.
  14. 一种浮窗处理装置,其特征在于,包括:A floating window processing device, comprising:
    处理器;以及Processor;
    存储器,与所述处理器连接,用于为所述处理器提供处理以下处理步骤的指令:接收触发指令,所述触发指令指示第一浮窗切换至第二浮窗;从数据存储空间中所述第一浮窗对应的数据中,获取与所述第二浮窗对应的目标数据;调取所述目标数据,以基于所述目标数据打开所述第二浮窗。a memory coupled to the processor for providing the processor with an instruction to process a process of: receiving a trigger instruction, the triggering instruction instructing the first floating window to switch to a second floating window; from the data storage space And acquiring, in the data corresponding to the first floating window, target data corresponding to the second floating window; and the target data is retrieved to open the second floating window based on the target data.
PCT/CN2019/078989 2018-03-31 2019-03-21 Floating window processing method and apparatus WO2019184786A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810278527.9A CN110321200A (en) 2018-03-31 2018-03-31 Floating window processing method and processing device
CN201810278527.9 2018-03-31

Publications (1)

Publication Number Publication Date
WO2019184786A1 true WO2019184786A1 (en) 2019-10-03

Family

ID=68062530

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/078989 WO2019184786A1 (en) 2018-03-31 2019-03-21 Floating window processing method and apparatus

Country Status (2)

Country Link
CN (1) CN110321200A (en)
WO (1) WO2019184786A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010051927A1 (en) * 2000-06-08 2001-12-13 Blinkspeed, Inc. Increasing web page browsing efficiency by periodically physically distributing memory media on which web page data are cached
CN106599078A (en) * 2016-11-21 2017-04-26 上海斐讯数据通信技术有限公司 Webpage switching acceleration apparatus and method
CN106777184A (en) * 2016-12-22 2017-05-31 北京猎豹移动科技有限公司 A kind of page loading method, device and electronic equipment
CN108920247A (en) * 2018-07-20 2018-11-30 腾讯科技(深圳)有限公司 Processing method, device and the terminal of page switching, storage medium, program product

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480148A (en) * 2016-06-07 2017-12-15 广州市动景计算机科技有限公司 The method and device and user terminal that control webpage redirects
CN106874328B (en) * 2016-07-08 2021-03-19 创新先进技术有限公司 Data processing method and equipment
CN106446174A (en) * 2016-09-28 2017-02-22 江西博瑞彤芸科技有限公司 Method for page loading in application
CN107368558B (en) * 2017-07-05 2021-05-14 腾讯科技(深圳)有限公司 Data object returning method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010051927A1 (en) * 2000-06-08 2001-12-13 Blinkspeed, Inc. Increasing web page browsing efficiency by periodically physically distributing memory media on which web page data are cached
CN106599078A (en) * 2016-11-21 2017-04-26 上海斐讯数据通信技术有限公司 Webpage switching acceleration apparatus and method
CN106777184A (en) * 2016-12-22 2017-05-31 北京猎豹移动科技有限公司 A kind of page loading method, device and electronic equipment
CN108920247A (en) * 2018-07-20 2018-11-30 腾讯科技(深圳)有限公司 Processing method, device and the terminal of page switching, storage medium, program product

Also Published As

Publication number Publication date
CN110321200A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
JP7042917B2 (en) Message processing method, unread message display method, and computer terminal
CN105208015B (en) More accounts log in processing method, device and the terminal device of application
WO2018040943A1 (en) Display data control method, device, and system
US10798153B2 (en) Terminal apparatus and server and method of controlling the same
CN110333918B (en) Method and equipment for managing boarder programs
CN110286978B (en) Window hierarchy switching method, device, equipment and storage medium
WO2019000933A1 (en) Information display method and apparatus, and computer-readable storage medium
WO2017156983A1 (en) List callup method and device
WO2023061280A1 (en) Application program display method and apparatus, and electronic device
JP2023542666A (en) Operation method and device
US20160216929A1 (en) Processing application interface
CN112835485A (en) Application interface processing method and device, electronic equipment and readable storage medium
CN106775208B (en) Operation method and device for application individuation and terminal
CN107850975A (en) For being customized the method and user interface of user's access to function of application(UI)
US20150033182A1 (en) Data Processing Method and Apparatus
WO2022242515A1 (en) Interface display method and apparatus
US20170168685A1 (en) Method and electronic device for controlling terminal window display
CN110928397B (en) User interface refreshing method and device, storage medium and electronic device
CN113051493A (en) Application program display method and device, storage medium and terminal
WO2022156602A1 (en) Display method, display apparatus, and electronic device
WO2021142892A1 (en) Display device, and method for presenting user interface
WO2018010317A1 (en) Desktop style switching method and device
WO2019184786A1 (en) Floating window processing method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19775291

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19775291

Country of ref document: EP

Kind code of ref document: A1