CN108255556B - Interface sharing method and device for multiple interfaces - Google Patents
Interface sharing method and device for multiple interfaces Download PDFInfo
- Publication number
- CN108255556B CN108255556B CN201711486841.8A CN201711486841A CN108255556B CN 108255556 B CN108255556 B CN 108255556B CN 201711486841 A CN201711486841 A CN 201711486841A CN 108255556 B CN108255556 B CN 108255556B
- Authority
- CN
- China
- Prior art keywords
- interface
- module
- template
- elements
- login request
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000012795 verification Methods 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 10
- 230000003139 buffering effect Effects 0.000 claims description 2
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 238000004590 computer program Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000036316 preload Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000021615 conjugation Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/533—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/303—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to an interface sharing method and device for a plurality of interfaces, wherein the method comprises the following steps: caching an interface structure of the first interface and an interface structure of the second interface; detecting whether the interface structure of the first interface is the same as the interface structure of the second interface; when the interface structure of the first interface is the same as the interface structure of the second interface, respectively setting inlets into the second interface and the first interface in the first interface and the second interface; when the interface structure of the first interface is different from the interface structure of the second interface, acquiring interface elements of the first interface and interface elements of the second interface; requesting a shared interface template from a server according to the acquired interface elements of the first interface and the second interface; downloading the sharing interface template. The beneficial effects of the invention are as follows: the method realizes that a plurality of interfaces share one interface structure, and reduces the resource occupancy rate.
Description
Technical Field
The embodiment of the invention relates to the technical field of data information processing, in particular to an interface sharing method and device for multiple interfaces.
Background
With the rapid development of internet application technology, it is the next popular trend for third party applications or service providers to obtain funds gain as a separate product provider by distributing their products to a network open platform.
In the prior art, if a user of an integrated application performs transactions of acquired objects, manufactured devices and the like in a user account in a platform provided by the integrated application, resource waste is caused and the integrated application is blocked if all pages need to be opened again to acquire one interface, and no product or method capable of solving the problems exists at present.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides an interface sharing method and device for multiple interfaces, so that the multiple interfaces share one interface structure, and the resource occupancy rate is reduced.
In a first aspect, an embodiment of the present invention provides a method for sharing an interface of a plurality of interfaces, where the method includes:
caching an interface structure of the first interface and an interface structure of the second interface;
detecting whether the interface structure of the first interface is the same as the interface structure of the second interface;
when the interface structure of the first interface is the same as the interface structure of the second interface, respectively setting inlets into the second interface and the first interface in the first interface and the second interface;
when the interface structure of the first interface is different from the interface structure of the second interface, acquiring interface elements of the first interface and interface elements of the second interface;
requesting a shared interface template of the first interface and the second interface from a server according to the acquired interface elements of the first interface and the second interface;
downloading the sharing interface template, and setting inlets into the second interface and the first interface in the first interface and the second interface through the sharing interface template respectively.
In combination with another aspect, in a possible implementation manner of the another aspect, the method further includes:
after receiving a login request entering a second interface at the first interface, verifying the login request;
after verification, logging in the second interface, and replacing interface elements different from the first interface and the second interface according to the interface structure of the first interface or the interface structure of the second interface.
In combination with another aspect, in a possible implementation manner of the another aspect, the method further includes:
acquiring a bottom display strategy of the first interface or the second interface;
and sorting strategy of interface elements when the first interface or the second interface is switched according to the bottom display strategy.
In combination with another aspect, in a possible implementation manner of the another aspect, the method further includes:
when the interface structure of the first interface is the same as the interface structure of the second interface, preloading the same interface structure;
detecting whether a user login request is directed to a first interface;
when a login request is directed to a first interface, loading interface elements of the first interface in the preloaded interface structure;
and when the login request is not specific to the first interface, loading interface elements of the second interface in the preloaded interface structure.
In combination with another aspect, in a possible implementation manner of the another aspect, the method further includes:
acquiring a login request identifier when a user logs in;
loading a corresponding first interface or second interface in the preloaded interface structure according to the login request identifier;
preloading a shared interface template when the interface structure of the first interface is different from the interface structure of the second interface;
loading a corresponding first interface or second interface in the preloaded shared interface template according to the login request identifier;
and loading interface elements.
In a second aspect, the present invention further provides an interface sharing apparatus for multiple interfaces, where the apparatus includes:
the buffer module is used for buffering the interface structure of the first interface and the interface structure of the second interface;
the structure detection module is used for detecting whether the interface structure of the first interface is the same as the interface structure of the second interface;
the first setting module is used for setting inlets into the second interface and the first interface in the first interface and the second interface respectively when the interface structure of the first interface is the same as the interface structure of the second interface;
the second setting module is used for acquiring interface elements of the first interface and interface elements of the second interface when the interface structure of the first interface is different from the interface structure of the second interface;
the shared template module is used for requesting a shared interface template of the first interface and the second interface from the server according to the acquired interface elements of the first interface and the second interface;
and the entrance downloading module is used for downloading the shared interface template and respectively setting entrances entering the second interface and the first interface in the first interface and the second interface through the shared interface template.
The device, further comprising:
the verification module is used for verifying the login request after receiving the login request entering the second interface on the first interface;
and the replacement module is used for logging in the second interface after verification is passed, and replacing interface elements different from the first interface and the second interface according to the interface structure of the first interface or the interface structure of the second interface.
The device, further comprising:
the display module is used for acquiring a bottom display strategy of the first interface or the second interface;
and the switching module is used for sorting strategy of interface elements when the first interface or the second interface is switched according to the bottom display strategy.
The device, further comprising:
the preloading module is used for preloading the same interface structure when the interface structure of the first interface is the same as the interface structure of the second interface;
the login detection module is used for detecting whether a user login request is aimed at the first interface;
the first preloading module is used for loading interface elements of a first interface in the preloaded interface structure when a login request is directed at the first interface;
and the second preloading module is used for loading interface elements of the second interface in the preloaded interface structure when the login request is not specific to the first interface.
The device, further comprising:
the identification acquisition module is used for acquiring a login request identification when a user logs in;
the preloading selection module is used for loading a corresponding first interface or second interface in the preloaded interface structure according to the login request identification;
the shared interface template preloading module is used for preloading a shared interface template when the interface structure of the first interface is different from the interface structure of the second interface;
also used for: loading a corresponding first interface or second interface in the preloaded shared interface template according to the login request identifier; and loading interface elements.
According to the method and the device, the plurality of different interfaces of the same integrated application share one interface structure, so that the plurality of different interfaces are displayed by using one interface structure, and the different interfaces can be freely and smoothly switched, the problems that resources are excessively occupied and the loading speed is low due to total reloading when the plurality of different interfaces are opened in the integrated application at present are solved, and the effects that different interfaces can be loaded in one shared interface and the different interfaces can be smoothly switched are realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of interface sharing for multiple interfaces according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating detection of a preload in accordance with an exemplary embodiment.
Fig. 3 is a block diagram of an interface sharing apparatus of a plurality of interfaces according to an exemplary embodiment.
FIG. 4 is a block diagram illustrating a preload detection in accordance with an exemplary embodiment.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although steps are described in a flowchart as a sequential process, many of the steps can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the steps may be rearranged, the process may be terminated when its operations are completed, but there may be other steps not included in the drawings. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The invention relates to an interface sharing method and device for a plurality of interfaces, which are mainly applied to the scene of developing community playing methods in user accounts of integrated applications, and the basic idea is that: by sharing one interface structure by a plurality of different interfaces of the same integrated application, the plurality of different interfaces are displayed by using one interface structure, and the different interfaces can be freely and smoothly switched, so that the problems of excessively high resource occupation and low loading speed caused by full reloading when the plurality of different interfaces are opened in the integrated application at present are solved, and the effects that different interfaces can be loaded in one shared interface and the different interfaces can be smoothly switched are realized.
The present embodiment may be applied to a case of interface sharing of multiple interfaces in an intelligent terminal equipped with an integrated application, where the method may be performed by an interface management device in a user account, where the device may be implemented by software and/or hardware, and may be generally integrated in the integrated application of a mobile terminal, or controlled by a central control module in the terminal, as shown in fig. 1, and the method specifically includes the following steps:
in step 110, the interface structure of the first interface and the interface structure of the second interface are cached;
the first interface or the second interface is an interface for acquiring related data information in the integrated application and displaying the related data information, and the first interface or the second interface can be adapted to a screen, can also be displayed as a part of the screen, and can also be in a page structure.
The interface structure is used for loading corresponding data information, such as images, characters, video data, game interfaces and the like, on each part of the interface structure.
In step 120, detecting whether the interface structure of the first interface is the same as the interface structure of the second interface;
when the interface structures are the same, whether the interface structures are the same can be judged by judging whether the positions of the loading parts of the interface structures of all the interfaces are the same, for example, when all the loading parts of the interface structures are the same and can load the same content uniformly and effectively, the interface structures can be judged to be the same.
For example, when the policy display information is loaded at the bottom of the interface structure of the first interface, and the bottom of the interface structure of the second interface is also the policy display information, it can be judged that the interface structures of the first interface and the second interface are identical and the interface structures of the second interface are not identical when the bottom of the interface structure of the second interface is the display equipment information, which is, of course, only a part of the interface structures is judged, and the above scheme is equally applicable to the judgment of other parts of the interface structures.
The method of the present invention is not limited to the above method for determining whether the interface structures are the same.
In step 130, when the interface structure of the first interface is the same as the interface structure of the second interface, setting the inlets into the second interface and the first interface in the first interface and the second interface respectively;
and displaying the inlets of the second interface at the corresponding positions of the first interface respectively, displaying the inlets of the first interface at the corresponding positions of the second interface, and enabling the user to enter the corresponding second interface or the first interface in a switching mode at the current interface through the inlets.
In step 140, when the interface structure of the first interface is different from the interface structure of the second interface, acquiring an interface element of the first interface and an interface element of the second interface;
the interface elements may be data elements loaded for various loading portions in the second interface.
In step 150, according to the obtained interface elements of the first interface and the obtained interface elements of the second interface, a shared interface template of the first interface and the second interface is requested to a server;
the shared interface template may be a template in which the first interface and the second interface can each adapt to most of the interface elements to a greater extent.
In step 160, the shared interface template is downloaded, and entries into the second interface and the first interface are respectively set in the first interface and the second interface through the shared interface template.
In a possible embodiment of the invention, for example, the first interface is an equipment trading lobby and the second interface is an equipment purchasing lobby, and when the interface structures are identical, personal information of the user, such as the user's head, name, number of virtual currencies, and the entry to another interface may also be displayed at the top, the middle of the interface structure being an equipment list which can be moved in the middle-possible interface, and the list of equipment in the middle being identical, whether it is a trading lobby or a purchasing lobby.
The bottom can be used for list detail display, the display can be performed in terms of items, corresponding data information can be loaded according to the corresponding items, seller sales information can be displayed at the bottom of the equipment trading hall, and purchase information of buyers can be loaded at the equipment purchase hall (although different, the same parts can be loaded with data information with the same structure)
The method of the invention uses the same interface structure to share or uses the obtained shared interface template to share one interface structure by a plurality of different interfaces of the same integrated application, so that the plurality of different interfaces can be displayed by using one interface structure and can be freely and smoothly switched, the problems of excessively high resource occupation and slow loading speed caused by all reloading when the plurality of different interfaces are opened in the integrated application at present are solved, and the effects of loading different interfaces in one shared interface and smoothly switching between different interfaces are realized.
In another implementation scenario of the exemplary embodiment of the present invention, the method further comprises:
after receiving a login request entering a second interface at the first interface, verifying the login request;
when the second interface and the first interface belong to two different community platforms, the login request can be verified, so that the safety of a user during login is ensured.
After verification, logging in the second interface, and replacing interface elements different from the first interface and the second interface according to the interface structure of the first interface or the interface structure of the second interface.
The method of the invention ensures that the related elements in the first interface and the second interface element are switched after the verification is passed through the verification of the safety of the user during login, and the first interface or the second interface before the switching is reserved when the verification is not passed.
In another implementation scenario of the exemplary embodiment of the present invention, the method further comprises:
acquiring a bottom display strategy of the first interface or the second interface;
and sorting strategy of interface elements when the first interface or the second interface is switched according to the bottom display strategy.
And displaying the data loading strategy of the corresponding loading part in the corresponding interface at the bottom of the first interface or the second interface, loading the corresponding data information in the interface through the bottom display strategy, and effectively adjusting each data information of the interface on the premise that a user holds the mobile device by the bottom display loading strategy.
In another implementation scenario of the exemplary embodiment of the present invention, as shown in fig. 2, the method further includes:
in step 210, when the interface structure of the first interface is the same as the interface structure of the second interface, preloading the same interface structure;
the preloading interface structure can be carried out in the background and is cached in the memory of the mobile terminal.
In step 220, it is detected whether the user login request is directed to the first interface;
in step 230, when the login request is directed to the first interface, loading interface elements of the first interface in the preloaded interface structure;
in step 240, when the login request is not directed to the first interface, loading an interface element of the second interface in the preloaded interface structure.
According to the method, through loading the detection of the interface aimed at by the corresponding login request in the first interface, after a user logs in one interface, although the login inlet of the other interface is displayed in the current interface, the login of the other interface is still required after verification, and the safety of the content of each interface when the interfaces share one interface is fully ensured.
In another implementation scenario of the exemplary embodiment of the present invention, the method further comprises:
acquiring a login request identifier when a user logs in;
loading a corresponding first interface or second interface in the preloaded interface structure according to the login request identifier;
preloading a shared interface template when the interface structure of the first interface is different from the interface structure of the second interface;
loading a corresponding first interface or second interface in the preloaded shared interface template according to the login request identifier;
and loading interface elements.
The login request identifier may be a device serial number of a user terminal used by the user, a unique registration name of the user terminal, or the like, and whether the current user is consistent with the user in the current integrated application or not may be identified by judging the login request identifier, and the corresponding first interface or second interface is preloaded only if the current user is consistent with the user in the current integrated application, and the situation in the corresponding interface is blocked if the current user is inconsistent with the user in the current integrated application.
Fig. 3 is a signaling flow chart/structure diagram of an interface sharing device with multiple interfaces according to an embodiment of the present invention, where the device may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may be implemented by an interface sharing method with multiple interfaces. As shown in the figure, the present embodiment may be based on the above embodiment, and provides an interface sharing device for multiple interfaces, which mainly includes a buffer module 310, a structure detection module 320, a first setting module 330, a second setting module 340, a sharing template module 350, and an entry downloading module 360.
The buffer module 310 is configured to buffer an interface structure of the first interface and an interface structure of the second interface;
the structure detection module 320 is configured to detect whether an interface structure of the first interface is the same as an interface structure of the second interface;
the first setting module 330 is configured to set, when the interface structure of the first interface is the same as the interface structure of the second interface, entries into the second interface and the first interface in the first interface and the second interface, respectively;
the second setting module 340 is configured to obtain an interface element of the first interface and an interface element of the second interface when the interface structure of the first interface is different from the interface structure of the second interface;
the shared template module 350 is configured to request, from the server, a shared interface template of the first interface and the second interface according to the acquired interface element of the first interface and the acquired interface element of the second interface;
the portal downloading module 360 is configured to download the shared interface template, and set portals into the second interface and the first interface in the first interface and the second interface through the shared interface template respectively.
In another implementation scenario of the exemplary embodiment of the present invention, the apparatus further comprises:
the verification module is used for verifying the login request after receiving the login request entering the second interface on the first interface;
and the replacement module is used for logging in the second interface after verification is passed, and replacing interface elements different from the first interface and the second interface according to the interface structure of the first interface or the interface structure of the second interface.
In another implementation scenario of the exemplary embodiment of the present invention, the apparatus further comprises:
the display module is used for acquiring a bottom display strategy of the first interface or the second interface;
and the switching module is used for sorting strategy of interface elements when the first interface or the second interface is switched according to the bottom display strategy.
In another implementation scenario of the exemplary embodiment of the present invention, as shown in fig. 4, the apparatus further includes:
a preloading module 410, configured to preload the same interface structure when the interface structure of the first interface is the same as the interface structure of the second interface;
a login detection module 420, configured to detect whether a user login request is directed to the first interface;
a first preloading module 430, configured to load interface elements of a first interface in the preloaded interface structure when a login request is directed to the first interface;
and a second preloading module 440, configured to load interface elements of the second interface in the preloaded interface structure when the login request is not directed to the first interface.
In another implementation scenario of the exemplary embodiment of the present invention, the apparatus further comprises:
the identification acquisition module is used for acquiring a login request identification when a user logs in;
the preloading selection module is used for loading a corresponding first interface or second interface in the preloaded interface structure according to the login request identification;
the shared interface template preloading module is used for preloading a shared interface template when the interface structure of the first interface is different from the interface structure of the second interface;
also used for: loading a corresponding first interface or second interface in the preloaded shared interface template according to the login request identifier; and loading interface elements.
The above embodiment provides that each module can be connected in a communication manner between every two modules, and each module can be connected in a communication manner with the central control device of the platform, and the interface sharing device for multiple interfaces provided in the above embodiment can execute the interface sharing method for multiple interfaces provided in any embodiment of the present invention.
It will be appreciated that the invention also extends to computer programs, particularly computer programs on or in a carrier, adapted for putting the invention into practice. The program may be in the form of source code, object code, a code intermediate source and object code such as in partially compiled form, or in any other form suitable for use in the implementation of the method according to the invention. It will also be noted that such a program may have many different architecture designs. For example, program code implementing the functionality of a method or system according to the invention may be subdivided into one or more subroutines.
Many different ways to distribute functionality among these subroutines will be apparent to the skilled person. The subroutines may be stored together in one executable file to form a self-contained program. Such executable files may include computer executable instructions, such as processor instructions and/or interpreter instructions (e.g., java interpreter instructions). Alternatively, one or more or all of the subroutines may be stored in at least one external library file and linked with the main program either statically or dynamically (e.g., at run-time). The main program contains at least one call to at least one of the subroutines. Subroutines may also include function calls to each other. Embodiments related to computer program products include computer-executable instructions for each of the processing steps of at least one of the illustrated methods. The instructions may be subdivided into subroutines and/or stored in one or more files that may be statically or dynamically linked.
Another embodiment related to a computer program product includes computer-executable instructions corresponding to each of the devices of at least one of the systems and/or products set forth. The instructions may be subdivided into subroutines and/or stored in one or more files that may be statically or dynamically linked.
The carrier of the computer program may be any entity or device capable of carrying the program. For example, the carrier may comprise a storage medium such as a (ROM, e.g. CDROM or semiconductor ROM) or a magnetic recording medium (e.g. floppy disk or hard disk). Further, the carrier may be a transmissible carrier such as an electrical or optical signal, which may be conveyed via electrical or optical cable or by radio or other means. When the program is embodied in such a signal, the carrier may be constituted by such cable or device. Alternatively, the carrier may be an integrated circuit in which the program is embedded, the integrated circuit being adapted to perform, or for use in the performance of, the relevant method.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. Use of the verb "to comprise" and its conjugations does not exclude the presence of elements or steps other than those stated in a claim. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
If desired, the different functions discussed herein may be performed in a different order and/or concurrently with each other. Furthermore, one or more of the functions described above may be optional or may be combined, if desired.
The steps discussed above are not limited to the order of execution in the embodiments, and different steps may be performed in different orders and/or concurrently with each other, if desired. Moreover, in other embodiments, one or more of the steps described above may be optional or may be combined.
Although various aspects of the invention are presented in the independent claims, other aspects of the invention comprise combinations of features from the described embodiments and/or the dependent claims with the features of the independent claims, and not solely the combinations explicitly set forth in the claims.
It is noted herein that while the above describes example embodiments of the invention, these descriptions should not be viewed in a limiting sense. Rather, several variations and modifications may be made without departing from the scope of the invention as defined in the appended claims.
It should be understood by those skilled in the art that each module in the apparatus of the present embodiment may be implemented by a general-purpose computing device, and each module may be centralized in a single computing device or a network group formed by computing devices, where the apparatus of the present embodiment corresponds to the method in the foregoing embodiment, and may be implemented by executable program code, or may be implemented by a combination of integrated circuits, and thus, the present invention is not limited to specific hardware or software and combinations thereof.
It should be understood by those skilled in the art that each module in the apparatus of the embodiment of the present invention may be implemented by a general-purpose mobile terminal, and each module may be centralized in a single mobile terminal or a combination of devices formed by mobile terminals, where the apparatus of the embodiment of the present invention corresponds to the method in the foregoing embodiment, and may be implemented by editing executable program code, or may be implemented by a combination of integrated circuits, and thus the present invention is not limited to specific hardware or software and combinations thereof.
Note that the above is only exemplary embodiments of the present invention and the technical principles applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (8)
1. A method for sharing interfaces among a plurality of interfaces, the method comprising:
caching an interface structure of the first interface and an interface structure of the second interface;
detecting whether the interface structure of the first interface is the same as the interface structure of the second interface;
when the interface structure of the first interface is the same as the interface structure of the second interface,
setting inlets into the second interface and the first interface in the first interface and the second interface respectively;
preloading the same interface structure;
detecting whether a user login request is directed to a first interface;
when a login request is directed to a first interface, loading interface elements of the first interface in the preloaded interface structure;
loading interface elements of the second interface in the preloaded interface structure when the login request is not directed at the first interface;
when the interface structure of the first interface is different from the interface structure of the second interface, acquiring interface elements of the first interface and interface elements of the second interface;
requesting a shared interface template of the first interface and the second interface from a server according to the acquired interface elements of the first interface and the second interface, wherein the shared interface template is a template which can adapt to most of the interface elements to a greater extent for both the first interface and the second interface;
downloading the shared interface template, and respectively setting inlets into the second interface and the first interface in the first interface and the second interface through the shared interface template;
preloading a shared interface template;
loading a corresponding first interface or second interface in the preloaded shared interface template according to the login request identifier;
and loading interface elements.
2. The method according to claim 1, wherein the method further comprises:
after receiving a login request entering a second interface at the first interface, verifying the login request;
after verification, logging in the second interface, and replacing interface elements different from the first interface and the second interface according to the interface structure of the first interface or the interface structure of the second interface.
3. The method according to claim 1, wherein the method further comprises:
acquiring a bottom display strategy of the first interface or the second interface;
and sorting strategy of interface elements when the first interface or the second interface is switched according to the bottom display strategy.
4. The method according to claim 1, wherein the method further comprises:
acquiring a login request identifier when a user logs in;
and loading a corresponding first interface or second interface in the preloaded interface structure according to the login request identifier.
5. An interface sharing apparatus for a plurality of interfaces, the apparatus comprising:
the buffer module is used for buffering the interface structure of the first interface and the interface structure of the second interface;
the structure detection module is used for detecting whether the interface structure of the first interface is the same as the interface structure of the second interface;
the first setting module is used for setting inlets into the second interface and the first interface in the first interface and the second interface respectively when the interface structure of the first interface is the same as the interface structure of the second interface;
the second setting module is used for acquiring interface elements of the first interface and interface elements of the second interface when the interface structure of the first interface is different from the interface structure of the second interface;
the sharing template module is used for requesting a sharing interface template of the first interface and the second interface from the server according to the acquired interface elements of the first interface and the second interface, wherein the sharing interface template is a template which can adapt to most of the interface elements to a large extent for both the first interface and the second interface;
the entrance downloading module is used for downloading the shared interface template and respectively setting entrances entering the second interface and the first interface in the first interface and the second interface through the shared interface template;
the preloading module is used for preloading the same interface structure when the interface structure of the first interface is the same as the interface structure of the second interface;
the login detection module is used for detecting whether a user login request is aimed at the first interface;
the first preloading module is used for loading interface elements of a first interface in the preloaded interface structure when a login request is directed at the first interface;
the second preloading module is used for loading interface elements of the second interface in the preloaded interface structure when the login request is not specific to the first interface;
the shared interface template preloading module is used for preloading a shared interface template when the interface structure of the first interface is different from the interface structure of the second interface;
also used for: loading a corresponding first interface or second interface in the preloaded shared interface template according to the login request identifier; and loading interface elements.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the verification module is used for verifying the login request after receiving the login request entering the second interface on the first interface;
and the replacement module is used for logging in the second interface after verification is passed, and replacing interface elements different from the first interface and the second interface according to the interface structure of the first interface or the interface structure of the second interface.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the display module is used for acquiring a bottom display strategy of the first interface or the second interface;
and the switching module is used for sorting strategy of interface elements when the first interface or the second interface is switched according to the bottom display strategy.
8. The apparatus of claim 5, wherein the apparatus further comprises:
the identification acquisition module is used for acquiring a login request identification when a user logs in;
and the preloading selection module is used for loading a corresponding first interface or second interface in the preloaded interface structure according to the login request identification.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711486841.8A CN108255556B (en) | 2017-12-29 | 2017-12-29 | Interface sharing method and device for multiple interfaces |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711486841.8A CN108255556B (en) | 2017-12-29 | 2017-12-29 | Interface sharing method and device for multiple interfaces |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108255556A CN108255556A (en) | 2018-07-06 |
| CN108255556B true CN108255556B (en) | 2023-10-27 |
Family
ID=62725211
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711486841.8A Active CN108255556B (en) | 2017-12-29 | 2017-12-29 | Interface sharing method and device for multiple interfaces |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108255556B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109960768A (en) * | 2019-02-28 | 2019-07-02 | 北京摩拜科技有限公司 | Display method, device, terminal device and system for map interface |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5596702A (en) * | 1993-04-16 | 1997-01-21 | International Business Machines Corporation | Method and system for dynamically sharing user interface displays among a plurality of application program |
| CN102081650A (en) * | 2010-12-29 | 2011-06-01 | 上海网达软件有限公司 | Method for rapidly displaying user interface of embedded type platform |
| CN102495730A (en) * | 2011-12-02 | 2012-06-13 | 曙光信息产业(北京)有限公司 | Dynamic and extendable web interface method |
| CN102902725A (en) * | 2012-09-05 | 2013-01-30 | 曙光信息产业(北京)有限公司 | Page for achieving Web page reuse based on extension point |
| CN104572098A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Updating method and device of mobile terminal page diagram |
| CN104838632A (en) * | 2012-09-10 | 2015-08-12 | 泰克尼森有限公司 | Method and system for transferable customized contextual user interfaces |
| CN105022615A (en) * | 2014-04-21 | 2015-11-04 | 大唐软件技术股份有限公司 | Interface generating method and system |
| CN105608176A (en) * | 2015-12-18 | 2016-05-25 | 东软集团股份有限公司 | Page access method and apparatus |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10394429B2 (en) * | 2012-06-29 | 2019-08-27 | Qualcomm Incorporated | Sharing of user interface objects via a shared space |
-
2017
- 2017-12-29 CN CN201711486841.8A patent/CN108255556B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5596702A (en) * | 1993-04-16 | 1997-01-21 | International Business Machines Corporation | Method and system for dynamically sharing user interface displays among a plurality of application program |
| CN102081650A (en) * | 2010-12-29 | 2011-06-01 | 上海网达软件有限公司 | Method for rapidly displaying user interface of embedded type platform |
| CN102495730A (en) * | 2011-12-02 | 2012-06-13 | 曙光信息产业(北京)有限公司 | Dynamic and extendable web interface method |
| CN102902725A (en) * | 2012-09-05 | 2013-01-30 | 曙光信息产业(北京)有限公司 | Page for achieving Web page reuse based on extension point |
| CN104838632A (en) * | 2012-09-10 | 2015-08-12 | 泰克尼森有限公司 | Method and system for transferable customized contextual user interfaces |
| CN105022615A (en) * | 2014-04-21 | 2015-11-04 | 大唐软件技术股份有限公司 | Interface generating method and system |
| CN104572098A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Updating method and device of mobile terminal page diagram |
| CN105608176A (en) * | 2015-12-18 | 2016-05-25 | 东软集团股份有限公司 | Page access method and apparatus |
Non-Patent Citations (2)
| Title |
|---|
| CoPenML:基于XML的笔式用户界面构件体系结构;李杰, 秦严严, 田丰, 戴国忠;计算机研究与发展(第07期);1143-1152 * |
| 基于XML的用户界面管理系统;吴坤;莫国良;彭维;叶修梓;;计算机应用研究(第02期);135-137 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108255556A (en) | 2018-07-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104572278B (en) | The method, device and equipment of light application calling local side ability | |
| US10165058B2 (en) | Dynamic local function binding apparatus and method | |
| US20220012068A1 (en) | Data processing method, apparatus, device, and system | |
| US20130347009A1 (en) | API Redirection for Limited Capability Operating Systems | |
| US20140143087A1 (en) | In-app recommendation system and user terminal | |
| CN112100613A (en) | Application login control method and device, electronic equipment and storage medium | |
| CN110209416A (en) | Application software update method, device, terminal and storage medium | |
| US20140304683A1 (en) | Method, server and computer-readable recording media for managing metastore | |
| CA3059719C (en) | Payment processing method, device, medium and electronic device | |
| CN111163130A (en) | A network service system and data transmission method thereof | |
| CN110442407B (en) | Application program processing method and device | |
| CN109218393A (en) | A kind of implementation method of push, device, equipment and computer storage medium | |
| CN113726890A (en) | Block chain data service-oriented federal prediction method and system | |
| CN111054079A (en) | Information query method and device, electronic equipment and storage medium | |
| CN108255556B (en) | Interface sharing method and device for multiple interfaces | |
| CN110413421B (en) | Service data processing method and device, and transaction data processing method and device | |
| CN106600254B (en) | Multi-account management method and device for user | |
| CN110855655B (en) | Information verification method, device, equipment and storage medium | |
| US10382586B2 (en) | Coordinating services across multiple providers | |
| CN117934075A (en) | Electronic rights issuing method, electronic rights issuing device, electronic equipment and storage medium | |
| CN111475230A (en) | Application function configuration method and device and electronic equipment | |
| CN117194837A (en) | Page access method and device, electronic equipment and computer readable medium | |
| CN112819693B (en) | Sliding verification code generation method and device, electronic equipment and computer readable medium | |
| CN113450144A (en) | Method and device for executing service | |
| CN113472840A (en) | Cloud service dynamic management method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20221013 Address after: Room 1602, 16th Floor, Building 18, Yard 6, Wenhuayuan West Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176 Applicant after: Beijing Lajin Zhongbo Technology Co.,Ltd. Address before: Floor 8, Block E, Yonghe Building, 28 Andingmen East Street, Dongcheng District, Beijing 100007 Applicant before: Tvmining (BEIJING) Technology Co., Ltd. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |