CN108920242A - Navigation bar generation method and device - Google Patents

Navigation bar generation method and device Download PDF

Info

Publication number
CN108920242A
CN108920242A CN201810712909.8A CN201810712909A CN108920242A CN 108920242 A CN108920242 A CN 108920242A CN 201810712909 A CN201810712909 A CN 201810712909A CN 108920242 A CN108920242 A CN 108920242A
Authority
CN
China
Prior art keywords
menu
configuration information
submenu
level
navigation bar
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.)
Granted
Application number
CN201810712909.8A
Other languages
Chinese (zh)
Other versions
CN108920242B (en
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.)
Zhuomi Private Ltd
Original Assignee
Happy Honey 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 Happy Honey Co Ltd filed Critical Happy Honey Co Ltd
Priority to CN201810712909.8A priority Critical patent/CN108920242B/en
Publication of CN108920242A publication Critical patent/CN108920242A/en
Application granted granted Critical
Publication of CN108920242B publication Critical patent/CN108920242B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The present invention proposes a kind of navigation bar generation method and device, and wherein method includes:After getting the instruction for generating navigation bar, menu configuration information needed for generating navigation bar is obtained;Include in menu configuration information:The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered, the menu after being rendered;According to the menu level between main menu and submenu at different levels, menu after rendering is shown, generate navigation bar, to when navigation bar updates, it only needs to update menu configuration information accordingly, such as increase or modify the configuration information of some menu, without modifying to code, reduce maintenance cost and maintenance complexity.

Description

Navigation bar generation method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of navigation bar generation method and devices.
Background technique
Live streaming audit platform, is the platform for auditing video content.Backstage operation maintenance personnel is examined on live streaming audit platform The video task that core issues issues the video if video audit is qualified.
Currently, the navigation bar on live streaming audit platform, usually by the corresponding code of user's hand-coding, that is to say, that By the relationship between the corresponding routing of user's hand-coding the various menu and the various menu, thus according between the various menu Relationship, generate navigation bar;And in user's selection target menu, the corresponding routing of target menu is obtained, according to target dish Single corresponding routing, obtains the corresponding page and is shown.However, it is right by hand by user to need when navigation bar updates Code is modified, and maintenance cost is high;Especially in the case where navigation bar becomes increasingly complex, maintenance cost is greatly improved.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of navigation bar generation method, for solving in the prior art The high problem of navigation bar maintenance cost.
Second object of the present invention is to propose a kind of navigation bar generating means.
Third object of the present invention is to propose a kind of electronic equipment.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
5th purpose of the invention is to propose a kind of computer program product.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of navigation bar generation method, including:
After getting the instruction for generating navigation bar, menu configuration information needed for generating navigation bar is obtained;The menu Include in configuration information:The configuration information of the corresponding submenus at different levels of the configuration information of main menu, the main menu;
The configuration information of the corresponding submenus at different levels of configuration information, the main menu of the main menu is rendered, Menu after being rendered;
According to the menu level between the main menu and submenu at different levels, the menu after the rendering is shown Show, generates navigation bar.
Further, the corresponding submenus at different levels of the main menu include at least:Level-one submenu and secondary sub-menu;
The configuration information of the level-one submenu includes in the configuration information of the main menu;The secondary sub-menu Configuration information includes in the configuration information of corresponding level-one submenu;
The method further includes:By submenu included in the configuration information of the main menu, it is determined as the master The corresponding level-one submenu of menu;
By submenu included in the configuration information of the level-one submenu, it is corresponding to be determined as the level-one submenu Secondary sub-menu obtains the menu level between the main menu and submenu at different levels.
Further, include in the configuration information of main menu and submenu at different levels:It shows information, whether permits for indicating Perhaps respective menu is shown;
The configuration information of the corresponding submenus at different levels of configuration information, the main menu to the main menu carries out wash with watercolours It contaminates, before the menu after being rendered, further includes:
According to the display information, it is determined whether allow to show respective menu;
If not allowing to show respective menu, the configuration information of respective menu is not handled;
If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
Further, the menu level according between the main menu and submenu at different levels, after the rendering Menu shown, generate navigation bar after, further include:
Obtain the target menu of user's selection;
According to the target menu, the menu configuration information is inquired, is obtained from main menu to the road of the target menu By to obtain the corresponding page and shown according to the routing.
Further, the method further includes:
It obtains navigation bar and updates request;The navigation bar updates in request:The configuration information of menu to be added, institute State the rank and the corresponding Previous Menu of the menu of menu;
When the rank of the menu is level-one submenu, the configuration information of the menu is added to corresponding main menu Configuration information in;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one In the configuration information of menu.
The navigation bar generation method of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered, Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code Miscellaneous degree.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of navigation bar generating means, including:
Module is obtained, is configured for after getting the instruction for generating navigation bar, obtaining menu needed for generating navigation bar Information;Include in the menu configuration information:The configuration of the corresponding submenus at different levels of the configuration information of main menu, the main menu Information;
Processing module is rendered, for the corresponding submenus at different levels of configuration information, the main menu to the main menu Configuration information is rendered, the menu after being rendered;
Display module, for according to the menu level between the main menu and submenu at different levels, after the rendering Menu shown, generate navigation bar.
Further, the corresponding submenus at different levels of the main menu include at least:Level-one submenu and secondary sub-menu;
The configuration information of the level-one submenu includes in the configuration information of the main menu;The secondary sub-menu Configuration information includes in the configuration information of corresponding level-one submenu;
The device further includes:Determining module, for by submenu included in the configuration information of the main menu, It is determined as the corresponding level-one submenu of the main menu;
By submenu included in the configuration information of the level-one submenu, it is corresponding to be determined as the level-one submenu Secondary sub-menu obtains the menu level between the main menu and submenu at different levels.
Further, include in the configuration information of main menu and submenu at different levels:It shows information, whether permits for indicating Perhaps respective menu is shown;
The rendering processing module is also used to according to the display information, it is determined whether allows to show respective menu;
If not allowing to show respective menu, the configuration information of respective menu is not handled;
If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
Further, the acquisition module is also used to,
Obtain the target menu of user's selection;
According to the target menu, the menu configuration information is inquired, is obtained from main menu to the road of the target menu By to obtain the corresponding page and shown according to the routing.
Further, the device further includes:Processing module;
The acquisition module is also used to obtain navigation bar and updates request;The navigation bar updates in request:It is to be added Menu configuration information, the rank of the menu and the corresponding Previous Menu of the menu;
The processing module, for the rank in the menu be level-one submenu when, by the configuration information of the menu It is added in the configuration information of corresponding main menu;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one In the configuration information of menu.
The navigation bar generating means of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered, Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code Miscellaneous degree.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of electronic equipment, including memory, processor And the computer program that can be run on a memory and on a processor is stored, the processor is realized such as when executing described program The upper navigation bar generation method.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium realizes method as described above when the instruction in the storage medium is executed by processor.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction processing unit in machine program product executes, method as described above is realized.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein:
Fig. 1 is a kind of flow diagram of navigation bar generation method provided in an embodiment of the present invention;
Fig. 2 is the page schematic diagram of live streaming audit platform;
Fig. 3 is the drop-down list schematic diagram of menu in Fig. 2;
Fig. 4 is the schematic diagram of the configuration information of menu " operation ";
Fig. 5 is the schematic diagram of menu configuration information;
Fig. 6 is a kind of structural schematic diagram of navigation bar generating means provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another navigation bar generating means provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another navigation bar generating means provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the navigation bar generation method and device of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of navigation bar generation method provided in an embodiment of the present invention.As shown in Figure 1, this is led Boat column generation method includes the following steps:
S101, when get generate navigation bar instruction after, obtain generate navigation bar needed for menu configuration information;Menu Include in configuration information:The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu.
The executing subject of navigation bar generation method provided by the invention is navigation bar generating means, navigation bar generating means tool Body can provide or show that the hardware device of the page comprising navigation bar or hardware are set for terminal device, server etc. The software of standby upper installation, such as live streaming audit platform;In another example navigation bar automatically generating program.Wherein, it can be shown in navigation bar Multiple main menus are shown with, may include corresponding submenu in the drop-down list of main menu, may be used also in the drop-down list of submenu To include corresponding sub- submenu etc..
In the present embodiment, by live streaming audit platform for, live streaming audit platform the page on can show navigation bar with And body matter.Wherein, may include in body matter:Video and relevant information, as shown in Fig. 2, for live streaming audit platform Page schematic diagram.In Fig. 2, the menu shown in navigation bar has:Audit, operation, inspection, game, problem identification, Yong Huguan Reason, function and log.As shown in figure 3, for the drop-down list schematic diagram of menu in Fig. 2.In Fig. 3, under menu " operation " The menu for including in list is drawn to have:It is homepage, newest, neighbouring, whole, hiding, doubtful pornographic, homepage undercarriage, latest page undercarriage, attached Nearly page undercarriage.
In the present embodiment, may include in the configuration information of main menu and submenu at different levels:The description information of menu and Icon.Wherein, the description information of menu can be the title etc. of menu.In addition, main menu and submenu at different levels match confidence Can also include in breath:Whether the display information of menu allows to show menu for indicating.For example, the configuration of menu " operation " Information can with as shown in figure 4, in box in Fig. 4 for JS Object Markup Language (JavaScript Object Notation, JSON) the configuration information of the menu " operation " described.Wherein, desc indicates the description information of menu;The figure of icon expression menu Mark.
For example, menu configuration information can be as shown in figure 5, in Fig. 5, main menu includes:Game;The corresponding son of game Menu includes:Game audit, operation and inspection.Wherein, no corresponding submenu is audited in game;The corresponding submenu of operation Including:Game homepage and game undercarriage;Inspection corresponding submenu include:Game homepage and game undercarriage.Wherein, in game Configuration information game in, including:The description information desc of game, the icon icon of game and the corresponding sub- dish of game It is single.Wherein, the corresponding submenu of game is described in first sub below icon.
And in first sub, examine indicates first submenu " game audit " of game;Manage indicates trip Second submenu " operation " of play;The third submenu " inspection " of inspection expression game.Include in manage: The description information of operation, and the corresponding submenu of operation.Wherein, second in Fig. 5 of the corresponding submenu of operation It is described in sub.
In the present embodiment, the submenu of menu refers to the menu in the drop-down list of menu.For example, in Fig. 5, trip The sub-menus of play is game audit, operation and inspection;The Previous Menu of game audit is game;The Previous Menu of inspection is trip Play.
In the present embodiment, the instruction for generating navigation bar for example can be the corresponding page open request of navigation bar.User can With input page address in address field, or click the corresponding chained address in page address etc., navigation bar generating means can be with The aforesaid operations of user are identified as the corresponding page open request of navigation bar.
S102, the configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered, is obtained Menu after rendering.
In the present embodiment, can also include in the configuration information of main menu and submenu at different levels:Information is shown, for marking Whether show allows to show respective menu.Corresponding, before step 102, the method can also include the following steps:According to aobvious Show information, it is determined whether allow to show respective menu;If not allowing to show respective menu, not to the configuration information of respective menu It is handled;If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
Wherein, in the case where not allowing to show menu, menu would not be shown in navigation bar, user also would not be right Menu such as is clicked, is selected at the operation.Wherein, the menu shown is not allowed to be generally maintenance personnel or other special personnels The menu of click is had permission, ordinary user does not have corresponding authority click, then does not show respective menu on the page of ordinary user.
S103, according to the menu level between main menu and submenu at different levels, the menu after rendering is shown, it is raw At navigation bar.
In the present embodiment, according in menu configuration information, the configuration information of the configuration information of main menu and submenus at different levels Between positional relationship, can determine the menu level between main menu and submenu at different levels.It is corresponding at different levels with main menu Submenu includes at least:It is illustrated for level-one submenu and secondary sub-menu.In menu configuration information, level-one submenu Configuration information may include in the configuration information of main menu;The configuration information of secondary sub-menu may include corresponding one In the configuration information of grade submenu.To which navigation bar generating means are when reading menu configuration information, main menu can be read Configuration information in included level-one submenu, and read second level included in the configuration information of level-one submenu Menu, so that it is determined that the menu level between main menu and submenu at different levels.To between the configuration information according to each menu Comprising with by inclusion relation, it will be able to determine the menu level between main menu and submenu at different levels, do not need with code Form indicate the menu level between main menu and submenu at different levels, and then do not need to read a large amount of code to obtain Menu level between main menu and submenu at different levels improves the menu level between main menu and submenu at different levels Obtain efficiency.
In the present embodiment, navigation bar generating means to the reading process of menu configuration information can for from high-level menu to The process of low level menu;For the configuration information of the menu of same level, can be read out in order.For example, in Fig. 5 For menu configuration information, navigation bar generating means are successively read the configuration information of following menu:(1) game;(2) game is examined Core;(3) it runs;(4) game homepage;(5) game undercarriage;(6) it patrols;(7) game homepage;(8) game undercarriage.
In the present embodiment, the process that navigation bar generating means execute step 103 is specifically as follows, based on the rank of menu When menu, the menu after rendering is shown;When the rank of menu is level-one submenu, the menu after rendering is shown In the drop-down list of corresponding main menu;When the rank of menu is secondary sub-menu, the menu after rendering is shown corresponding Level-one submenu drop-down list in.
Further, on the basis of the above embodiments, after step 103, the method can also include:It obtains and uses The target menu of family selection;According to target menu, menu configuration information is inquired, obtains the routing from main menu to target menu, To obtain the corresponding page and shown according to routing.For example, the submenu game homepage in Fig. 5, from game to operation Path can be:/game/manage/homepage.
In the present embodiment, the corresponding relationship of routing and content of pages can be pre-saved, so that navigation bar generates Device or other equipment can remove inquiry corresponding relationship according to routing, corresponding content of pages be obtained, according to the corresponding page Content carries out the corresponding page and shows, to improve page display speed.
Further, on the basis of the above embodiments, in the case where navigation bar needs to update, the method may be used also To include:It obtains navigation bar and updates request;Navigation bar updates in request:The configuration information of menu to be added, menu Rank and the corresponding Previous Menu of menu;When the rank of menu is level-one submenu, the configuration information of menu is added to In the configuration information of corresponding main menu;When the rank of menu is secondary sub-menu, the configuration information of menu is added to pair In the configuration information for the level-one submenu answered.
In addition, the configuration information of menu is directly appended to the corresponding dish of navigation bar if the rank of menu is main menu In single configuration information.
Further, navigation bar, which updates in request, to include:Updating type;The updating type is:Addition is deleted Or modification.In the case where updating type is to delete, navigation bar, which updates in request, may include:The configuration of menu to be deleted Information and updating type;Described in navigation bar generating means can search directly from the corresponding menu configuration information of navigation bar The configuration information of menu to be deleted, and deleted.It should be noted that if also being wrapped in the configuration information of menu to be deleted It includes:The corresponding sub-menus of menu to be deleted, then the delete operation can also delete the configuration information of corresponding sub-menus.
In the case where updating type is the request of modification, modification can be there are two types of situation, and one is the modifications of menu level, a kind of It is the modification of the configuration information of menu.If the modification of menu level, then navigation bar, which updates in request, may include:To be modified The configuration information of menu, the current level of menu to be modified is with target rank and updating type.It is with menu to be modified For level-one submenu, the level-one submenu is if desired revised as main menu, then by the configuration information of the level-one submenu from It takes out, is directly placed in the corresponding menu configuration information of navigation bar in the configuration information of corresponding main menu.It needs to illustrate It is that, when the rank of the level-one submenu improves, the rank of the corresponding junior's submenu of the level-one submenu also correspondinglys increase.
If the modification of the configuration information of menu, then navigation bar, which updates in request, may include:Menu to be modified is worked as Preceding configuration information, target configuration information and updating type.By taking menu to be modified is level-one submenu as an example, it can lead It navigates in the corresponding menu configuration information in column, the current configuration information of menu to be modified is revised as target configuration information.
In the present embodiment, when being updated to navigation bar, it is only necessary to changed menu in menu configuration information Configuration information be updated, be updated without the configuration information to other menus, and navigation bar generating means can be with The corresponding menu configuration information of navigation bar is updated automatically according to request is updated, is updated manually without user, less It is related to the modification to code, improves the speed and efficiency of navigation bar update.
The navigation bar generation method of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered, Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code Miscellaneous degree.
Fig. 6 is a kind of structural schematic diagram of navigation bar generating means provided in an embodiment of the present invention.As shown in fig. 6, including: Obtain module 61, rendering processing module 62 and display module 63.
Wherein, module 61 is obtained, for obtaining dish needed for generating navigation bar after getting the instruction for generating navigation bar Single configuration information;Include in the menu configuration information:The corresponding submenus at different levels of the configuration information of main menu, the main menu Configuration information;
Processing module 62 is rendered, for the corresponding submenus at different levels of configuration information, the main menu to the main menu Configuration information rendered, the menu after being rendered;
Display module 63, for according to the menu level between the main menu and submenu at different levels, to the rendering Menu afterwards is shown, navigation bar is generated.
Navigation bar generating means provided by the invention, which are specifically as follows terminal device, server etc., can provide or show packet The software installed on the hardware device or hardware device of the page containing navigation bar, such as live streaming audit platform;In another example leading Navigate column automatically generating program.Wherein, multiple main menus can be shown in navigation bar, may include in the drop-down list of main menu Corresponding submenu can also include corresponding sub- submenu etc. in the drop-down list of submenu.
In the present embodiment, may include in the configuration information of main menu and submenu at different levels:The description information of menu and Icon.Wherein, the description information of menu can be the title etc. of menu.In addition, main menu and submenu at different levels match confidence Can also include in breath:Whether the display information of menu allows to show menu for indicating.For example, the configuration of menu " operation " Information can with as shown in figure 4, in box in Fig. 4 for JS Object Markup Language (JavaScript Object Notation, JSON) the configuration information of the menu " operation " described.Wherein, desc indicates the description information of menu;The figure of icon expression menu Mark.
In the present embodiment, the instruction for generating navigation bar for example can be the corresponding page open request of navigation bar.User can With input page address in address field, or click the corresponding chained address in page address etc., navigation bar generating means can be with The aforesaid operations of user are identified as the corresponding page open request of navigation bar.
In the present embodiment, can also include in the configuration information of main menu and submenu at different levels:Information is shown, for marking Whether show allows to show respective menu.Corresponding, the rendering processing module 62 can be also used for, and according to display information, determine Whether allow to show respective menu;If not allowing to show respective menu, the configuration information of respective menu is not handled;If Allow to show respective menu, then the configuration information of respective menu is rendered, the menu after being rendered.
Wherein, in the case where not allowing to show menu, menu would not be shown in navigation bar, user also would not be right Menu such as is clicked, is selected at the operation.Wherein, the menu shown is not allowed to be generally maintenance personnel or other special personnels The menu of click is had permission, ordinary user does not have corresponding authority click, then does not show respective menu on the page of ordinary user.
In the present embodiment, according in menu configuration information, the configuration information of the configuration information of main menu and submenus at different levels Between positional relationship, can determine the menu level between main menu and submenu at different levels.It is corresponding at different levels with main menu Submenu includes at least:It is illustrated for level-one submenu and secondary sub-menu.In menu configuration information, level-one submenu Configuration information may include in the configuration information of main menu;The configuration information of secondary sub-menu may include corresponding one In the configuration information of grade submenu.Therefore, in conjunction with reference Fig. 7, on the basis of embodiment shown in Fig. 6, the device may be used also To include:Determining module 64, for being determined as the main menu for submenu included in the configuration information of the main menu Corresponding level-one submenu;By submenu included in the configuration information of the level-one submenu, it is determined as level-one The corresponding secondary sub-menu of menu, obtains the menu level between the main menu and submenu at different levels.
In the present embodiment, according between the configuration information of each menu comprising with by inclusion relation, it will be able to determine entree Menu level between submenus single and at different levels, do not need to indicate in the form of code main menu and submenu at different levels it Between menu level, and then do not need to read a large amount of code to obtain the menu level between main menu and submenu at different levels Not, the acquisition efficiency of the menu level between main menu and submenu at different levels is improved.
In the present embodiment, navigation bar generating means to the reading process of menu configuration information can for from high-level menu to The process of low level menu;For the configuration information of the menu of same level, can be read out in order.For example, in Fig. 5 For menu configuration information, navigation bar generating means are successively read the configuration information of following menu:(1) game;(2) game is examined Core;(3) it runs;(4) game homepage;(5) game undercarriage;(6) it patrols;(7) game homepage;(8) game undercarriage.
In the present embodiment, display module 63 specifically can be used for, when the rank of menu is main menu, to the dish after rendering Singly shown;When the rank of menu is level-one submenu, the menu after rendering is shown into the drop-down in corresponding main menu In list;When the rank of menu is secondary sub-menu, the menu after rendering is shown into the drop-down in corresponding level-one submenu In list.
Further, on the basis of the above embodiments, the acquisition module 61 can be also used for, and obtain user's selection Target menu;According to the target menu, the menu configuration information is inquired, is obtained from main menu to the road of the target menu By to obtain the corresponding page and shown according to the routing.For example, the submenu in Fig. 5, from game to operation The path of game homepage can be:/game/manage/homepage.
In the present embodiment, the corresponding relationship of routing and content of pages can be pre-saved, so that navigation bar generates Device or other equipment can remove inquiry corresponding relationship according to routing, corresponding content of pages be obtained, according to the corresponding page Content carries out the corresponding page and shows, to improve page display speed.
Further, on the basis of the above embodiments, in the case where navigation bar needs to update, in conjunction with reference Fig. 8, On the basis of Fig. 6 or embodiment illustrated in fig. 7, the device can also include:Processing module 65;
The acquisition module 61 is also used to obtain navigation bar and updates request;The navigation bar updates in request:Wait add The configuration information of the menu added, the rank of the menu and the corresponding Previous Menu of the menu;
The processing module 65, for the rank in the menu be level-one submenu when, by the menu match confidence Breath is added in the configuration information of corresponding main menu;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one In the configuration information of menu.
In addition, the configuration information of menu is directly appended to the corresponding dish of navigation bar if the rank of menu is main menu In single configuration information.
Further, navigation bar, which updates in request, to include:Updating type;The updating type is:Addition is deleted Or modification.In the case where updating type is to delete, navigation bar, which updates in request, may include:The configuration of menu to be deleted Information and updating type;Described in navigation bar generating means can search directly from the corresponding menu configuration information of navigation bar The configuration information of menu to be deleted, and deleted.It should be noted that if also being wrapped in the configuration information of menu to be deleted It includes:The corresponding sub-menus of menu to be deleted, then the delete operation can also delete the configuration information of corresponding sub-menus.
In the case where updating type is the request of modification, modification can be there are two types of situation, and one is the modifications of menu level, a kind of It is the modification of the configuration information of menu.If the modification of menu level, then navigation bar, which updates in request, may include:To be modified The configuration information of menu, the current level of menu to be modified is with target rank and updating type.It is with menu to be modified For level-one submenu, the level-one submenu is if desired revised as main menu, then by the configuration information of the level-one submenu from It takes out, is directly placed in the corresponding menu configuration information of navigation bar in the configuration information of corresponding main menu.It needs to illustrate It is that, when the rank of the level-one submenu improves, the rank of the corresponding junior's submenu of the level-one submenu also correspondinglys increase.
If the modification of the configuration information of menu, then navigation bar, which updates in request, may include:Menu to be modified is worked as Preceding configuration information, target configuration information and updating type.By taking menu to be modified is level-one submenu as an example, it can lead It navigates in the corresponding menu configuration information in column, the current configuration information of menu to be modified is revised as target configuration information.
In the present embodiment, when being updated to navigation bar, it is only necessary to changed menu in menu configuration information Configuration information be updated, be updated without the configuration information to other menus, and navigation bar generating means can be with The corresponding menu configuration information of navigation bar is updated automatically according to request is updated, is updated manually without user, less It is related to the modification to code, improves the speed and efficiency of navigation bar update.
The navigation bar generating means of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered, Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code Miscellaneous degree.
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.The electronic equipment includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002 Machine program.
Processor 1002 realizes the navigation bar generation method provided in above-described embodiment when executing described program.
Further, electronic equipment further includes:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes navigation bar generation method described in above-described embodiment when for executing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory 1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in Fig. 9, it is not intended that an only bus or a type of convenient for indicating Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that The program realizes navigation bar generation method as described above when being executed by processor.
The present embodiment also provides a kind of computer program product, when the instruction processing unit in the computer program product is held When row, navigation bar generation method as described above.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With for data-signal realize logic function logic gates from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of navigation bar generation method, which is characterized in that including:
After getting the instruction for generating navigation bar, menu configuration information needed for generating the navigation bar is obtained;The menu Include in configuration information:The configuration information of the corresponding submenus at different levels of the configuration information of main menu, the main menu;
The configuration information of the corresponding submenus at different levels of configuration information, the main menu of the main menu is rendered, is obtained Menu after rendering;
According to the menu level between the main menu and the submenu at different levels, the menu after the rendering is shown Show, generates navigation bar.
2. the method according to claim 1, wherein the corresponding submenus at different levels of the main menu include at least: Level-one submenu, secondary sub-menu;
The configuration information of the level-one submenu includes in the configuration information of the main menu;The configuration of the secondary sub-menu Information includes in the configuration information of corresponding level-one submenu;
The method also includes:By submenu included in the configuration information of the main menu, it is determined as the main menu pair The level-one submenu answered;
By submenu included in the configuration information of the level-one submenu, it is determined as the corresponding second level of the level-one submenu Submenu obtains the menu level between the main menu and submenu at different levels.
3. method according to claim 1 or 2, which is characterized in that in the configuration information of main menu and submenu at different levels Including:It shows information, whether allows to show respective menu for indicating;
The configuration information of the corresponding submenus at different levels of configuration information, the main menu to the main menu renders, Before menu after being rendered, further include:
According to the display information, it is determined whether allow to show respective menu;
If not allowing to show respective menu, the configuration information of respective menu is not handled;
If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
4. method according to claim 1 or 2, which is characterized in that described according to the main menu and submenu at different levels Between menu level, the menu after the rendering is shown, generate navigation bar after, further include:
Obtain the target menu of user's selection;
According to the target menu, the menu configuration information is inquired, is obtained from main menu to the routing of the target menu, with Just it according to the routing, obtains the corresponding page and is shown.
5. according to the method described in claim 2, it is characterized in that, further including:
It obtains navigation bar and updates request;The navigation bar updates in request:The configuration information of menu to be added, the dish Single rank and the corresponding Previous Menu of the menu;
When the rank of the menu is level-one submenu, the configuration information of the menu is added to matching for corresponding main menu In confidence breath;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one submenu Configuration information in.
6. a kind of navigation bar generating means, which is characterized in that including:
Module is obtained, for obtaining menu configuration information needed for generating navigation bar after getting the instruction for generating navigation bar; Include in the menu configuration information:The configuration information of the corresponding submenus at different levels of the configuration information of main menu, the main menu;
Render processing module, the configuration for the corresponding submenus at different levels of configuration information, the main menu to the main menu Information is rendered, the menu after being rendered;
Display module, for according to the menu level between the main menu and submenu at different levels, to the dish after the rendering It is singly shown, generates navigation bar.
7. device according to claim 6, which is characterized in that the corresponding submenus at different levels of the main menu include at least: Level-one submenu and secondary sub-menu;
The configuration information of the level-one submenu includes in the configuration information of the main menu;The configuration of the secondary sub-menu Information includes in the configuration information of corresponding level-one submenu;
The device further includes:Determining module, for determining submenu included in the configuration information of the main menu For the corresponding level-one submenu of the main menu;
By submenu included in the configuration information of the level-one submenu, it is determined as the corresponding second level of the level-one submenu Submenu obtains the menu level between the main menu and submenu at different levels.
8. device according to claim 6 or 7, which is characterized in that in the configuration information of main menu and submenu at different levels Including:It shows information, whether allows to show respective menu for indicating;
The rendering processing module is also used to according to the display information, it is determined whether allows to show respective menu;
If not allowing to show respective menu, the configuration information of respective menu is not handled;
If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
9. device according to claim 6 or 7, which is characterized in that the acquisition module is also used to,
Obtain the target menu of user's selection;
According to the target menu, the menu configuration information is inquired, is obtained from main menu to the routing of the target menu, with Just it according to the routing, obtains the corresponding page and is shown.
10. device according to claim 7, which is characterized in that further include:Processing module;
The acquisition module is also used to obtain navigation bar and updates request;The navigation bar updates in request:Dish to be added Single configuration information, the rank of the menu and the corresponding Previous Menu of the menu;
When the processing module for the rank in the menu is level-one submenu, the configuration information of the menu is added Into the configuration information of corresponding main menu;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one submenu Configuration information in.
CN201810712909.8A 2018-06-29 2018-06-29 Navigation bar generation method and device Expired - Fee Related CN108920242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810712909.8A CN108920242B (en) 2018-06-29 2018-06-29 Navigation bar generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810712909.8A CN108920242B (en) 2018-06-29 2018-06-29 Navigation bar generation method and device

Publications (2)

Publication Number Publication Date
CN108920242A true CN108920242A (en) 2018-11-30
CN108920242B CN108920242B (en) 2021-09-07

Family

ID=64424585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810712909.8A Expired - Fee Related CN108920242B (en) 2018-06-29 2018-06-29 Navigation bar generation method and device

Country Status (1)

Country Link
CN (1) CN108920242B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683894A (en) * 2018-12-17 2019-04-26 北京字节跳动网络技术有限公司 A kind of navigation bar setting method, device and computer storage medium
CN110879871A (en) * 2019-11-26 2020-03-13 杭州迪普科技股份有限公司 Page menu configuration method and device
CN111273974A (en) * 2019-06-28 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Method and device for customizing menu setting function and electronic equipment
CN111611036A (en) * 2020-05-06 2020-09-01 香港乐蜜有限公司 Application menu configuration method and device, electronic equipment and storage medium
CN113254832A (en) * 2021-05-27 2021-08-13 平安普惠企业管理有限公司 Webpage menu configuration method and device, computer equipment and storage medium
CN114579007A (en) * 2022-03-04 2022-06-03 携程商旅信息服务(上海)有限公司 Navigation bar generation method of travel reservation page and related equipment
CN114793298A (en) * 2022-03-30 2022-07-26 海信视像科技股份有限公司 Display device and menu display method
CN114840115A (en) * 2022-04-11 2022-08-02 杭州云合智网技术有限公司 Method for realizing multi-level menu navigation interface
CN114879882A (en) * 2022-05-24 2022-08-09 上海合见工业软件集团有限公司 Software menu system based on JSON configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778157A (en) * 2009-12-29 2010-07-14 闻泰集团有限公司 Management method of SP menus of mobile phones
CN104461571A (en) * 2014-12-29 2015-03-25 乐视致新电子科技(天津)有限公司 Menu level operating method and device
CN107241638A (en) * 2017-06-30 2017-10-10 环球智达科技(北京)有限公司 The method for configuring navigation bar
CN107423395A (en) * 2017-07-25 2017-12-01 环球智达科技(北京)有限公司 Navigation data processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778157A (en) * 2009-12-29 2010-07-14 闻泰集团有限公司 Management method of SP menus of mobile phones
CN104461571A (en) * 2014-12-29 2015-03-25 乐视致新电子科技(天津)有限公司 Menu level operating method and device
CN107241638A (en) * 2017-06-30 2017-10-10 环球智达科技(北京)有限公司 The method for configuring navigation bar
CN107423395A (en) * 2017-07-25 2017-12-01 环球智达科技(北京)有限公司 Navigation data processing system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683894A (en) * 2018-12-17 2019-04-26 北京字节跳动网络技术有限公司 A kind of navigation bar setting method, device and computer storage medium
CN109683894B (en) * 2018-12-17 2023-02-28 抖音视界有限公司 Navigation bar setting method and device and computer storage medium
CN111273974A (en) * 2019-06-28 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Method and device for customizing menu setting function and electronic equipment
CN110879871A (en) * 2019-11-26 2020-03-13 杭州迪普科技股份有限公司 Page menu configuration method and device
CN110879871B (en) * 2019-11-26 2022-09-27 杭州迪普科技股份有限公司 Page menu configuration method and device
CN111611036A (en) * 2020-05-06 2020-09-01 香港乐蜜有限公司 Application menu configuration method and device, electronic equipment and storage medium
CN113254832A (en) * 2021-05-27 2021-08-13 平安普惠企业管理有限公司 Webpage menu configuration method and device, computer equipment and storage medium
CN114579007A (en) * 2022-03-04 2022-06-03 携程商旅信息服务(上海)有限公司 Navigation bar generation method of travel reservation page and related equipment
CN114793298A (en) * 2022-03-30 2022-07-26 海信视像科技股份有限公司 Display device and menu display method
CN114793298B (en) * 2022-03-30 2023-08-18 海信视像科技股份有限公司 Display device and menu display method
CN114840115A (en) * 2022-04-11 2022-08-02 杭州云合智网技术有限公司 Method for realizing multi-level menu navigation interface
CN114879882A (en) * 2022-05-24 2022-08-09 上海合见工业软件集团有限公司 Software menu system based on JSON configuration

Also Published As

Publication number Publication date
CN108920242B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN108920242A (en) Navigation bar generation method and device
CN108491529A (en) Information recommendation method and device
DE112006002237T5 (en) Method of self-initiating synchronization in a computer system
US9304919B2 (en) Detecting multiple stride sequences for prefetching
CN109154911A (en) For monitoring the shade tag ram of state of the cache line under different level caches
CN109447469A (en) A kind of Method for text detection, device and equipment
CN110069827B (en) Layout and wiring method and device for FPGA (field programmable Gate array) online logic analyzer
CN107633016A (en) Data processing method and device and electronic equipment
CN110442379A (en) Conditional presumptive instruction is protected to execute
CN106095563B (en) Flexible physical function and virtual function mapping
CN110069739A (en) The page preloads method and device
CN109446835A (en) Data access control method, device and equipment
CN104321750B (en) The method and system of release consistency is kept in shared memory programming
CN107819687A (en) Fixed route method, apparatus and its equipment
US8434051B2 (en) Schematic wire annotation tool
JPS63266571A (en) Program generation control system for decentralized processing system
CN104052626A (en) Method, device and system for configuring network element data
CN101751277B (en) Data processing and addressing methods for use in an electronic apparatus, as well as electronic apparatus
CN109656553A (en) Page creation method, page layout method and device
CN108874676A (en) Method and device for distributing test resources
CN109446024A (en) Using monitoring method and device
CN111158335B (en) Stitch function matching method of multi-ECU system and storage medium
CN108363655A (en) User behavior characteristics analysis method and device
US20150379173A1 (en) Method for processing a set of data to be used subsequently with a view to graphically generating an electrical diagram of an electrical system
CN109739367A (en) Candidate word list generation 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: 20190621

Address after: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant after: HONG KONG LIVE.ME Corp.,Ltd.

Address before: Cayman Islands, Greater Cayman Island, Kamana Bay, Casia District, Seitus Chamber of Commerce, 2547

Applicant before: LIVE.ME Inc.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210526

Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, Singapore

Applicant after: Zhuomi Private Ltd.

Address before: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant before: HONG KONG LIVE.ME Corp.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210907

CF01 Termination of patent right due to non-payment of annual fee