CN111427564A - Module display method, module display configuration method and device - Google Patents

Module display method, module display configuration method and device Download PDF

Info

Publication number
CN111427564A
CN111427564A CN202010104726.5A CN202010104726A CN111427564A CN 111427564 A CN111427564 A CN 111427564A CN 202010104726 A CN202010104726 A CN 202010104726A CN 111427564 A CN111427564 A CN 111427564A
Authority
CN
China
Prior art keywords
display
module
logic
path
modules
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.)
Pending
Application number
CN202010104726.5A
Other languages
Chinese (zh)
Inventor
李易
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beike Technology Co Ltd
Original Assignee
Beike Technology Co Ltd
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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202010104726.5A priority Critical patent/CN111427564A/en
Publication of CN111427564A publication Critical patent/CN111427564A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The embodiment of the invention provides a module display method, a module display configuration method and a module display configuration device. Because the display logic array is introduced, the display logic elements matched with the display attributes of the modules in the display logic array are used as the display rules to display the modules, and the processing process of the modules during display is simplified. Moreover, the display logic of each module is simpler by representing the theoretically feasible display path formed by each module through the display logic element, when the display logic is modified, only the display logic array stored in the App needs to be updated through the back end, so that the display logic of each module can be rapidly updated without re-publishing the App.

Description

Module display method, module display configuration method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a module display method, a module display configuration method, and an apparatus.
Background
Currently, when a display module is displayed, the display logic formed by the modules together can be represented by fig. 1. In fig. 1, the display of each module after an Application program (App) is started is taken as an example for explanation, after the App is started, a static graph module is displayed first, then whether a new-hand guidance module is installed for the first time or not is judged, if the judgment result is that the new-hand guidance module is installed for the first time, the new-hand guidance module is displayed, and then the display process is ended and the App first page is entered; otherwise, further judging whether an advertisement screen flashing module exists or not, if the further judgment result is that the advertisement screen flashing module exists, displaying the advertisement screen flashing module, and then ending the display process and entering an App home page; if the further judgment result is that no advertisement screen flashing module exists, judging whether a screen opening animation module exists or not, if so, displaying the screen opening animation module, and then ending the display process and entering an App home page; and if the screen opening animation module does not exist, directly displaying the flow, ending the flow, and entering an App home page.
In the prior art, when code implementation is performed on the exposed logic of each module shown in fig. 1, the following pseudo code is generally adopted. A, B, C are modules that can be displayed, and the App side determines whether each module can be displayed.
Figure BDA0002388157590000011
Figure BDA0002388157590000021
According to the pseudo codes, the display logics of the modules in the prior art are complex, a large number of codes need to be modified when the display logics are changed every time, and the application program needs to be re-versioned, so that a large workload is generated, the display logics of the modules are not rapidly updated, and the user experience is also reduced. Therefore, it is urgently needed to provide a module display method, a module display configuration method and a module display configuration device.
Disclosure of Invention
To overcome the above problems or at least partially solve the above problems, embodiments of the present invention provide a module display method, a module display configuration method, and a module display configuration device.
In a first aspect, an embodiment of the present invention provides a module display method, including:
determining the display attribute of each module, wherein the display attribute is used for representing whether each module can be displayed or not;
selecting display logic elements matched with the display attributes of the modules from stored display logic arrays, wherein all the display logic elements in the display logic arrays correspond to all theoretically feasible display paths formed by the modules one by one;
and displaying each module based on the selected display logic elements.
Preferably, the determining the display attribute of each module specifically includes:
and when the application program is started, determining the display attribute of each module.
Preferably, the selecting, in the stored display logic array, a display logic element matched with the display attribute of each module specifically includes:
for each display logic element in the display logic array, if the display states of all modules existing in the display logic element are consistent with the display attributes of all modules which are included in each module and exist in the display logic element, determining that the display logic element is matched with the display attributes of each module, and selecting the display logic element from the display logic array.
In a second aspect, an embodiment of the present invention provides a module display configuration method, including:
determining all theoretically feasible display paths formed by the modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of the modules in each display path;
and constructing a display logic array based on all the display logic elements, and sending the display logic array to an application program.
Preferably, the determining, based on the display state and the display order of each module in each display path, a display logic element corresponding to each display path specifically includes:
and determining the display logic elements corresponding to each display path through the logic operation relation based on the display state and the display sequence of each module in each display path.
Preferably, the determining, based on the display state and the display order of each module in each display path, the display logic element corresponding to each display path through a logical operation relationship specifically includes:
and expressing the display state of the non-display module in each display path by a logical operator 'NOT', and sequentially connecting the modules by the logical operator 'AND' from front to back based on the display sequence of the modules in each display path to obtain the display logical element corresponding to each display path.
In a third aspect, an embodiment of the present invention provides a module display apparatus, including: the device comprises an attribute determining module, an element selecting module and a display module. Wherein the content of the first and second substances,
the attribute determining module is used for determining the display attribute of each module, and the display attribute is used for representing whether each module can be displayed or not;
the element selection module is used for selecting display logic elements matched with the display attributes of the modules from stored display logic arrays, and all the display logic elements in the display logic arrays correspond to all theoretically feasible display paths formed by the modules one to one;
and the display module is used for displaying each module based on the selected display logic elements.
In a fourth aspect, an embodiment of the present invention provides a module display configuration apparatus, including: a path determining module and a group sending module. Wherein the content of the first and second substances,
the path determining module is used for determining all theoretically feasible display paths formed by the modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of each module in each display path;
the array sending module is used for constructing a display logic array based on all the display logic elements and sending the display logic array to an application program.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the module exhibition method according to the first aspect or the module exhibition configuration method according to the second aspect when executing the program.
In a sixth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the module exhibition method according to the first aspect or the module exhibition configuration method according to the second aspect.
According to the module display method, the module display configuration method and the module display configuration device, the module display method firstly determines the display attribute of each module, then selects the display logic elements matched with the display attribute of each module from the stored display logic array, and finally displays each module according to the selected display logic elements. Because the display logic array is introduced, the display logic elements matched with the display attributes of the modules in the display logic array are used as the display rules to display the modules, and the processing process of the modules during display is simplified. Moreover, the display logic of each module is simpler by representing the theoretically feasible display path formed by each module through the display logic element, when the display logic is modified, only the display logic array stored in the App needs to be updated through the rear end, the display logic of each module can be rapidly updated, the App does not need to be re-issued, and poor user experience caused by re-issuing the App due to the fact that the display logic is modified is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating logic of modules commonly formed in the prior art;
fig. 2 is a schematic flow chart of a module display method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a display logic formed by 6 modules according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a module display configuration method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a module display device according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a module display configuration apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the embodiments of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have specific orientations, be configured in specific orientations, and operate, and thus, should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. Specific meanings of the above terms in the embodiments of the present invention can be understood in specific cases by those of ordinary skill in the art.
As shown in fig. 2, an embodiment of the present invention provides a module display method, including:
s21, determining the display attribute of each module, wherein the display attribute is used for representing whether each module can be displayed or not;
s22, selecting display logic elements matched with the display attributes of the modules from the stored display logic array, wherein all the display logic elements in the display logic array correspond to all theoretically feasible display paths formed by the modules one to one;
and S23, displaying each module based on the selected display logic element.
Specifically, in the module display method provided in the embodiment of the present invention, the execution main body is an Application (App), and the App may be specifically installed on a mobile terminal, and the mobile terminal may specifically be a mobile phone, a tablet, or the like. In the module display method in the embodiment of the invention, the targeted modules are all modules which are configured on the App and play a display role, such as a novice guidance module, an advertisement flashing module and the like, and the module display method can be particularly applied to starting the App, or before entering a certain functional module in the App, or other scenes in which the modules playing the display role need to be displayed. The functional module in the App refers to a module for processing a specific service, for example, for a house App, the functional module may be a house purchasing module, a house selling module, a house renting module, and the like.
Step S21 is performed first. Because the contents displayed by the modules are different, not all the modules need to be displayed in a certain sequence in a scene in which the modules need to be displayed each time. Therefore, the display attribute of each module needs to be determined first, and the display attribute is used for representing whether each module can be displayed or not, that is, whether each module can be displayed at the current time or not. For example, for a novice boot module, the novice boot module can be displayed only when the App is started for the first time after the App is installed, but cannot be displayed when the App is not started for the first time, so that bad experience brought to a user is avoided.
Then, step S22 is executed. The display logic array is prestored in the App and consists of a plurality of display logic elements, and all the display logic elements in the display logic array correspond to all theoretically feasible display paths formed by the modules one to one. All theoretically feasible display paths formed by the modules refer to all display paths included in the display logic formed by the modules together, for example, all display-enabled modules configured on the App specifically include: A. b, C, D, E, F, A, B, C, D, E, F are identifications of the 6 modules, respectively. As shown in fig. 3, the display logic formed by the 6 modules may start a display process, determine whether a needs to be displayed, if so, display a, and then continue to determine whether B needs to be displayed, if not, directly end the display process, corresponding to the display path I; if B needs to be displayed, B is displayed, and then C continues to be judged whether to be displayed, and if B does not need to be displayed, C continues to be judged whether to be displayed; if C needs to be displayed after B is displayed, C is displayed, and then the display process is finished and corresponds to the display path II; if the display path C is not needed after the display of the display path B, continuously judging whether the display path E is needed, if the display path E is needed, displaying the display path E, and ending the display process corresponding to the display path III; if the E does not need to be displayed, the direct display process is ended, and the display path corresponds to the display path IV; if the display path B is not needed and the display path C is needed, displaying the display path C, continuously judging whether the display path F is needed or not, if the display path F is needed, displaying the display path F, and ending the display process corresponding to the display path V; if the F does not need to be displayed, the direct display process is ended, and the display path VI corresponds to; if the display path B is not needed and the display path C is not needed, continuously judging whether the display path D is needed, if the display path D is needed, displaying the display path D, and ending the display process corresponding to the display path VII; if D is not required to be displayed, the direct display process is finished, and the process corresponds to the display path VIII. That is, the exhibition logic shown in fig. 3 includes 8 exhibition paths I, II, III, IV, V, VI, VII, VIII in common, and the 8 exhibition paths are all theoretically possible exhibition paths formed by the modules.
In the embodiment of the present invention, the presentation logic element represents the presentation result corresponding to each presentation path, and not only represents the presentation states of all modules included in each presentation path, but also represents the presentation order of all modules included in each path. The display state refers to a state that a certain module in a certain display path displays or does not display, and is a display rule suitable for specific requirements in the App. For example, the presentation path I corresponds to a presentation logic element k1Represents: all modules are not displayed; and displaying a logic element k corresponding to the display path II2Represents: displaying A, B and C; and displaying a logic element k corresponding to the display path III3Represents: displaying A, B, C and E; and the display logic element k corresponding to the display path IV4Represents: displaying A, B, C and E; showing logic element k corresponding to showing path V5Represents: displaying A, not displaying B, displaying C and displaying F; and the display logic element k corresponding to the display path VI6Represents: displaying A, not displaying B, displaying C and not displaying F; showing logic element k corresponding to showing path VII7Represents: displaying A, not displaying B, not displaying C and displaying D; showing logic element k corresponding to showing path VIII8Represents: show A, not show B, not show C, not show D.
The specific representation mode for displaying the logic element may be set as required, for example, may be represented by a logic operation relationship, may also be represented by a custom operation relationship and a custom operator, and may also be represented by other modes, which is not specifically limited in the embodiment of the present invention.
After the display attributes of each module are determined through step S21, a display logic element matching the display attributes of each module is selected from the display logic array stored in the App. Here, the matching condition means that the display states of all modules existing in the display logic element are consistent with the display attributes of all modules included in each module and existing in the display logic element, and consistency means no contradiction, that is: if the display state of a certain module in the display logic element is display, and the display attribute of the module is determined to be capable of being displayed; and if the display state of a certain module existing in the display logic element is not displayed, determining that the display attribute of the module is not displayable. The specific selection manner may be to select the presentation logic elements satisfying the matching condition from the presentation logic array.
Finally, step S23 is performed. And controlling each module to display according to the display state and the display sequence of each module on the display path corresponding to the selected display logic element, namely judging which module in each module displays which module does not display and the display sequence of all displayed modules by taking the selected display logic element as the display rule of each module.
The module display method provided by the embodiment of the invention comprises the steps of firstly determining the display attribute of each module, then selecting the display logic element matched with the display attribute of each module from the stored display logic array, and finally displaying each module according to the selected display logic element. Because the display logic array is introduced, the display logic elements matched with the display attributes of the modules in the display logic array are used as the display rules to display the modules, and the processing process of the modules during display is simplified. Moreover, the display logic of each module is simpler by representing the theoretically feasible display path formed by each module through the display logic element, when the display logic is modified, only the display logic array stored in the App needs to be updated through the rear end, the display logic of each module can be rapidly updated, the App does not need to be re-issued, and poor user experience caused by re-issuing the App due to the fact that the display logic is modified is avoided.
On the basis of the foregoing embodiment, the module display method provided in the embodiment of the present invention specifically includes:
and when the application program is started, determining the display attribute of each module.
Specifically, in the embodiment of the present invention, the timing is determined for determining the display attribute of each module, that is, the module display method provided in the embodiment of the present invention is executed when the App is started, where the App is started by clicking an App shortcut or entering a process before an App home page after an exe program is clicked. The App starting specifically includes the conditions of initial starting, starting when the background is not running, switching from the background running to the foreground running and the like.
In the embodiment of the present invention, an application scenario is provided for the module display method in the embodiment of the present invention, but the present invention is not limited thereto.
On the basis of the foregoing embodiment, the module display method provided in the embodiment of the present invention, before determining the display attribute of each module, further includes:
and receiving and storing the display logic array.
Specifically, in the embodiment of the present invention, the display logic array stored in the App may be constructed by the back-end server and sent to the App, so that the App stores and directly utilizes the display logic array, and at this time, the App may be regarded as a front end facing the user mobile terminal. The App directly receives the constructed display logic array from the back-end server, and the App does not need to construct the display logic array, so that the functional requirements on the App can be reduced.
On the basis of the foregoing embodiment, the module display method provided in the embodiment of the present invention selects, from the stored display logic array, a display logic element that matches the display attribute of each module, and specifically includes:
for each display logic element in the display logic array, if the display states of all modules existing in the display logic element are consistent with the display attributes of all modules which are included in each module and exist in the display logic element, determining that the display logic element is matched with the display attributes of each module, and selecting the display logic element from the display logic array.
Specifically, in the embodiment of the present invention, when a display logic element is selected from a display logic array, each display logic element in the display logic array is determined, the display states of all modules existing in the display logic element are determined to be consistent with the display attributes of all modules included in each module and existing in the display logic element, and the display logic element is considered to be matched with the display attributes of each module, and the display logic element is selected from the display logic array.
For example, in step S21, it is determined that the display attribute of each module is: A. c, D, E, and B, F cannot be shown, the logic element matched with the property of each module is the logic element k5Thus, the presentation logic element k is selected from the presentation logic array5. It should be noted that although the logical element k is shown5The demonstration state of D, E is not described, but the matching relationship is not affected, because all demonstration logic elements in the demonstration logic array correspond to all theoretically feasible demonstration paths in the demonstration logic, and none of the demonstration paths are infeasible demonstration paths, and even if the demonstration attribute of a certain module is exposable, the demonstration attribute is not in the demonstration logic element, the demonstration cannot be demonstrated.
As shown in fig. 4, on the basis of the above embodiment, an embodiment of the present invention provides a module display configuration method, including:
s41, determining all theoretically feasible display paths formed by the modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of the modules in each display path;
s42, constructing a display logic array based on all the display logic elements, and sending the display logic array to an application program.
Specifically, in the module display configuration method provided in the embodiment of the present invention, the execution main body is a back-end server of the App, and the module display configuration is a process in which the back-end server constructs a display logic array.
Firstly, step S41 is executed, the core is used as the back-end core of the App, and the back-end server determines the configuration in the App after the App releases the versionAll theoretically possible showing paths formed by all showing modules are determined, namely all theoretically possible showing paths included in the showing logic formed by all the modules are determined, for example, 8 showing paths such as I, II, III, IV, V, VI, VII and VIII shown in fig. 3. And the back-end server determines the display logic elements corresponding to each display path according to the display state and the display sequence of each module in each display path, namely, the back-end server looks back from the end node of the flow chart of the display logic, separates all the display paths in the display logic and respectively represents the display logic elements through the corresponding display logic elements. The presentation logic element represents a presentation result corresponding to each presentation path, not only represents presentation states of all modules included in each presentation path, but also represents a presentation sequence of all modules included in each path. The 8 presentation paths in FIG. 3 correspond to presentation logic element k1、k2、k3、k4、k5、k6、k7、k8
Then, step S42 is executed to aggregate all the display logic elements and construct a display logic array, where the display logic array includes all the display logic elements. And after construction, the display logic array is sent to the App so that the App can store the display logic array and display each module by applying the display logic array.
The module display configuration method provided by the embodiment of the invention comprises the steps of firstly determining all theoretically feasible display paths formed by modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of each module in each display path; and then constructing a display logic array based on all the display logic elements, and sending the display logic array to the application program. The display logic of each module is simpler by representing the theoretically feasible display path formed by each module through the display logic element, when the display logic is modified, the display logic of each module can be rapidly updated only by updating the display logic array stored in the App through the back end, the App does not need to be sent again, and poor user experience caused by the fact that the App needs to be sent again due to the modification of the display logic is avoided.
On the basis of the foregoing embodiment, the module display configuration method provided in the embodiment of the present invention determines, based on the display state and the display order of each module in each display path, a display logic element corresponding to each display path, and specifically includes:
and determining the display logic elements corresponding to each display path through the logic operation relation based on the display state and the display sequence of each module in each display path.
Specifically, in the embodiment of the present invention, when determining the display logic element corresponding to each display path, the display logic element may be represented by a logic operation relationship, a custom operator, or other manners according to the display state and the display order of each module in each display path, which is not specifically limited in the embodiment of the present invention. Specifically, the display states of the modules may be represented by logical operators or custom operators, and then the modules are sequentially arranged according to the display order of the modules and connected by the logical operators or the custom operators.
On the basis of the foregoing embodiment, the module display configuration method provided in the embodiment of the present invention determines, based on the display state and the display order of each module in each display path, a display logic element corresponding to each display path through a logical operation relationship, and specifically includes:
and expressing the display state of the non-display module in each display path by a logical operator 'NOT', and sequentially connecting the modules by the logical operator 'AND' from front to back based on the display sequence of the modules in each display path to obtain the display logical element corresponding to each display path.
Specifically, in the embodiment of the present invention, the display logic elements corresponding to each display path are determined by representing the display logic elements through a logic operation relationship, and first, the display state of the non-display module in each display path may be represented by a logic operator "not", that is, if a certain module is not displayedThe module display directly represents the identifier of the module, if a certain module is not displayed, the module identifier is added with 'not', for example, the module A display directly represents A, and the module B display is not, represents! B. Wherein "! "is the logical operator" NOT ". And then, sequentially connecting the modules from front to back through a logical operator 'AND' according to the display sequence of the modules in each display path to obtain a display logical element corresponding to each display path. For example, the presentation path I corresponds to a presentation logic element k1Can be expressed as: | A A; and displaying a logic element k corresponding to the display path II2Can represent that: ABC; and displaying a logic element k corresponding to the display path III3Can represent that: AB! CE; and the display logic element k corresponding to the display path IV4Can represent that: AB! C! E; showing logic element k corresponding to showing path V5Can represent that: a! BCF; and the display logic element k corresponding to the display path VI6Can represent that: a! BC! F; showing logic element k corresponding to showing path VII7Can represent that: a! B! CD; showing logic element k corresponding to showing path VIII8Can represent that: a! B! C! D. Wherein "&&The logical operator and used for connection between modules is omitted in the embodiments of the present invention.
In the embodiment of the invention, the display logic elements corresponding to each display path are determined by adopting mature logic operation relations and logic operators 'negation' and 'AND', so that the representation mode of the display logic elements is simpler and easier to understand and identify and operate.
As shown in fig. 5, on the basis of the above embodiment, an embodiment of the present invention provides a module display device, including: an attribute determination module 51, an element selection module 52 and a presentation module 53. Wherein the content of the first and second substances,
the attribute determining module 51 is configured to determine a display attribute of each module, where the display attribute is used to represent whether each module can be displayed;
the element selection module 52 is configured to select, from stored display logic arrays, display logic elements that match the display attributes of each module, where all the display logic elements included in the display logic arrays correspond to all theoretically feasible display paths formed by each module one to one;
the display module 53 is configured to display each module based on the selected display logic element.
Specifically, the functions of the modules in the module display apparatus provided in the embodiment of the present invention correspond to the operation flows of the steps in the embodiment of the module display method one to one, and the implementation effects are also consistent.
On the basis of the foregoing embodiment, an embodiment of the present invention provides a module display apparatus, where the attribute determining module is specifically configured to:
and when the application program is started, determining the display attribute of each module.
On the basis of the foregoing embodiment, an embodiment of the present invention provides a module display apparatus, where the element selection module is specifically configured to:
for each display logic element in the display logic array, if the display states of all modules existing in the display logic element are consistent with the display attributes of all modules which are included in each module and exist in the display logic element, determining that the display logic element is matched with the display attributes of each module, and selecting the display logic element from the display logic array.
As shown in fig. 6, on the basis of the above embodiment, an embodiment of the present invention provides a module display configuration apparatus, including: a path determination module 61 and a group transmission module 62.
The path determining module 61 is configured to determine all theoretically feasible display paths formed by the modules, and determine a display logic element corresponding to each display path based on the display state and the display order of each module in each display path;
the array sending module 62 is configured to construct a presentation logic array based on all presentation logic elements, and send the presentation logic array to an application program.
Specifically, the functions of the modules in the module display configuration apparatus provided in the embodiment of the present invention correspond to the operation flows of the steps in the embodiment of the module display configuration method one to one, and the achieved effects are also consistent.
On the basis of the foregoing embodiment, an embodiment of the present invention provides a module display configuration apparatus, where the path determining module is specifically configured to:
and determining the display logic elements corresponding to each display path through the logic operation relation based on the display state and the display sequence of each module in each display path.
On the basis of the foregoing embodiment, an embodiment of the present invention provides a module display configuration apparatus, where the path determining module is specifically configured to:
and expressing the display state of the non-display module in each display path by a logical operator 'NOT', and sequentially connecting the modules by the logical operator 'AND' from front to back based on the display sequence of the modules in each display path to obtain the display logical element corresponding to each display path.
As shown in fig. 7, on the basis of the above embodiment, an embodiment of the present invention provides an electronic device, including: a processor (processor)701, a memory (memory)702, a communication Interface (Communications Interface)703, and a communication bus 704; wherein the content of the first and second substances,
the processor 701, the memory 702 and the communication interface 703 complete communication with each other through the communication bus 704. The memory 702 stores program instructions executable by the processor 701, and the processor 701 is configured to call the program instructions in the memory 702 to perform the method provided by the above-mentioned method embodiments, for example, including: determining the display attribute of each module, wherein the display attribute is used for representing whether each module can be displayed or not; selecting display logic elements matched with the display attributes of the modules from stored display logic arrays, wherein all the display logic elements in the display logic arrays correspond to all theoretically feasible display paths formed by the modules one by one; and displaying each module based on the selected display logic elements. Alternatively, it comprises: determining all theoretically feasible display paths formed by the modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of the modules in each display path; and constructing a display logic array based on all the display logic elements, and sending the display logic array to an application program.
It should be noted that, when being specifically implemented, the electronic device in this embodiment may be a server, a PC, or another device, as long as the structure includes the processor 701, the communication interface 703, the memory 702, and the communication bus 704 shown in fig. 7, where the processor 701, the communication interface 703, and the memory 702 complete mutual communication through the communication bus 704, and the processor 701 may call a logic instruction in the memory 702 to execute the above method. The embodiment does not limit the specific implementation form of the electronic device.
The logic instructions in memory 702 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone article of manufacture. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Further, embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of performing the methods provided by the above-mentioned method embodiments, for example, comprising: determining the display attribute of each module, wherein the display attribute is used for representing whether each module can be displayed or not; selecting display logic elements matched with the display attributes of the modules from stored display logic arrays, wherein all the display logic elements in the display logic arrays correspond to all theoretically feasible display paths formed by the modules one by one; and displaying each module based on the selected display logic elements. Alternatively, it comprises: determining all theoretically feasible display paths formed by the modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of the modules in each display path; and constructing a display logic array based on all the display logic elements, and sending the display logic array to an application program.
On the basis of the foregoing embodiments, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented to perform the method provided by the foregoing embodiments when executed by a processor, and the method includes: determining the display attribute of each module, wherein the display attribute is used for representing whether each module can be displayed or not; selecting display logic elements matched with the display attributes of the modules from stored display logic arrays, wherein all the display logic elements in the display logic arrays correspond to all theoretically feasible display paths formed by the modules one by one; and displaying each module based on the selected display logic elements. Alternatively, it comprises: determining all theoretically feasible display paths formed by the modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of the modules in each display path; and constructing a display logic array based on all the display logic elements, and sending the display logic array to an application program.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for displaying a module, comprising:
determining the display attribute of each module, wherein the display attribute is used for representing whether each module can be displayed or not;
selecting display logic elements matched with the display attributes of the modules from stored display logic arrays, wherein all the display logic elements in the display logic arrays correspond to all theoretically feasible display paths formed by the modules one by one;
and displaying each module based on the selected display logic elements.
2. The module display method according to claim 1, wherein the determining the display attributes of each module specifically comprises:
and when the application program is started, determining the display attribute of each module.
3. The module exhibition method according to claim 1 or 2, wherein the selecting of the exhibition logical elements in the stored exhibition logical array that match the exhibition attributes of each module specifically comprises:
for each display logic element in the display logic array, if the display states of all modules existing in the display logic element are consistent with the display attributes of all modules which are included in each module and exist in the display logic element, determining that the display logic element is matched with the display attributes of each module, and selecting the display logic element from the display logic array.
4. A module display configuration method, comprising:
determining all theoretically feasible display paths formed by the modules, and determining display logic elements corresponding to each display path based on the display state and the display sequence of the modules in each display path;
and constructing a display logic array based on all the display logic elements, and sending the display logic array to an application program.
5. The method according to claim 4, wherein the determining the presentation logic element corresponding to each presentation path based on the presentation state and the presentation order of the modules in each presentation path specifically comprises:
and determining the display logic elements corresponding to each display path through the logic operation relation based on the display state and the display sequence of each module in each display path.
6. The module display configuration method according to claim 5, wherein the determining, based on the display state and the display order of each module in each display path, the display logic element corresponding to each display path through a logical operation relationship specifically includes:
and expressing the display state of the non-display module in each display path by a logical operator 'NOT', and sequentially connecting the modules by the logical operator 'AND' from front to back based on the display sequence of the modules in each display path to obtain the display logical element corresponding to each display path.
7. A modular display apparatus, comprising:
the attribute determining module is used for determining the display attribute of each module, and the display attribute is used for representing whether each module can be displayed or not;
the element selection module is used for selecting display logic elements matched with the display attributes of the modules from the stored display logic array, and all the display logic elements in the display logic array correspond to all theoretically feasible display paths formed by the modules one by one;
and the display module is used for displaying each module based on the selected display logic elements.
8. A modular display configuration apparatus, comprising:
the path determining module is used for determining all theoretically feasible display paths formed by the modules and determining display logic elements corresponding to each display path based on the display state and the display sequence of each module in each display path;
and the array sending module is used for constructing a display logic array based on all the display logic elements and sending the display logic array to an application program.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the module exhibition method according to any one of claims 1-3 or the module exhibition configuration method according to any one of claims 4-6 when executing the program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the module exhibition method according to any one of claims 1-3 or the module exhibition configuration method according to any one of claims 4-6.
CN202010104726.5A 2020-02-20 2020-02-20 Module display method, module display configuration method and device Pending CN111427564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010104726.5A CN111427564A (en) 2020-02-20 2020-02-20 Module display method, module display configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010104726.5A CN111427564A (en) 2020-02-20 2020-02-20 Module display method, module display configuration method and device

Publications (1)

Publication Number Publication Date
CN111427564A true CN111427564A (en) 2020-07-17

Family

ID=71547397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010104726.5A Pending CN111427564A (en) 2020-02-20 2020-02-20 Module display method, module display configuration method and device

Country Status (1)

Country Link
CN (1) CN111427564A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035029A (en) * 2020-09-17 2020-12-04 上海二三四五网络科技有限公司 Guiding type auxiliary operation control method and control device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140331174A1 (en) * 2013-05-06 2014-11-06 Samsung Electronics Co., Ltd. Terminal device and method for displaying an associated window thereof
CN105930153A (en) * 2016-04-18 2016-09-07 深圳市宏电技术股份有限公司 User interface self-defining method and system
CN110516180A (en) * 2019-08-21 2019-11-29 北京拉勾网络技术有限公司 A kind of content display method, device and calculate equipment
CN110765398A (en) * 2019-10-14 2020-02-07 北京齐尔布莱特科技有限公司 Page content display method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140331174A1 (en) * 2013-05-06 2014-11-06 Samsung Electronics Co., Ltd. Terminal device and method for displaying an associated window thereof
CN105930153A (en) * 2016-04-18 2016-09-07 深圳市宏电技术股份有限公司 User interface self-defining method and system
CN110516180A (en) * 2019-08-21 2019-11-29 北京拉勾网络技术有限公司 A kind of content display method, device and calculate equipment
CN110765398A (en) * 2019-10-14 2020-02-07 北京齐尔布莱特科技有限公司 Page content display method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035029A (en) * 2020-09-17 2020-12-04 上海二三四五网络科技有限公司 Guiding type auxiliary operation control method and control device

Similar Documents

Publication Publication Date Title
JP7066241B2 (en) Interactive scenario implementation methods, equipment, computer equipment, and computer programs
KR20220127887A (en) Method and apparatus for displaying live broadcast data, device and storage medium
CN113663325B (en) Team creation method, joining method, device and storage medium in virtual scene
US20130184040A1 (en) Server device, non-transitory computer-readable storage medium, and game system
CN105183882A (en) Application software recommending method and device
WO2016011879A1 (en) Web page display method and apparatus
US10646778B2 (en) Information processing system, server, storage medium storing information processing program, and information processing method
CN113055255A (en) Scene configuration method and device of intelligent household appliance, storage medium and electronic equipment
CN107172501A (en) Recommend methods of exhibiting and system in a kind of live room
CN111427564A (en) Module display method, module display configuration method and device
CN113434173B (en) Data processing method, device, storage medium and electronic equipment
WO2022127166A1 (en) Video processing method and electronic device
CN109815407A (en) A kind of information resources method for pushing, device, equipment and storage medium
CN113239172A (en) Conversation interaction method, device, equipment and storage medium in robot group
CN109173256B (en) Unlocking jump method in game, storage medium and mobile terminal
CN113282268A (en) Sound effect configuration method and device, storage medium and electronic equipment
CN112704873A (en) Event processing method and device, storage medium and electronic equipment
US20240216803A1 (en) Method and apparatus for processing in game, terminal device, and storage medium
CN218943270U (en) Dish washer and dish washer system
CN112634769B (en) Display screen assembling method, device and system
CN115002498B (en) Decorative information processing method, device, server and storage medium
KR102660807B1 (en) Method and system for providing additional content in process of updating application
CN112612392B (en) Method for setting user main interface
CN114653061A (en) Data processing method and device, electronic equipment and storage medium
CN112870713B (en) Interaction method and device of game interface

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200717

RJ01 Rejection of invention patent application after publication