CN110908735A - Automatic application program label loading and changing method and device and electronic equipment - Google Patents

Automatic application program label loading and changing method and device and electronic equipment Download PDF

Info

Publication number
CN110908735A
CN110908735A CN201911133002.7A CN201911133002A CN110908735A CN 110908735 A CN110908735 A CN 110908735A CN 201911133002 A CN201911133002 A CN 201911133002A CN 110908735 A CN110908735 A CN 110908735A
Authority
CN
China
Prior art keywords
user
label
type
tag
displayed
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
CN201911133002.7A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911133002.7A priority Critical patent/CN110908735A/en
Publication of CN110908735A publication Critical patent/CN110908735A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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 disclosure provides an automatic application program label loading and changing method, an automatic application program label loading and changing device and electronic equipment, and belongs to the technical field of internet, wherein the method comprises the following steps: setting a user type and a label corresponding to the user type, wherein the operation on the label causes the content corresponding to the label to be displayed to the user of the type; when the application program is started, acquiring the type of a login user and displaying a label corresponding to the acquired user type according to the type of the user; and when the label is changed, acquiring a currently displayed label object and reconstructing the label to be displayed according to the user type, wherein the label object is used for controlling the display of the label in the application program, and the display of the label comprises at least one of the number of the labels, the content of the label and the layout of the label. Through the processing scheme disclosed by the invention, the convenience of loading and changing the application program label is improved.

Description

Automatic application program label loading and changing method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of internet, and in particular to an automatic application program label loading and changing method, an automatic application program label loading and changing device and electronic equipment.
Background
With the widespread use of smart phones, more and more information is transmitted to users through APPs (applications), and managers can browse and manage various data generated in the APP use process through a background and make corresponding decisions.
For APP laid out in a tag navigation manner, a tag bar (tabbar) of the APP is usually displayed in characters, icons or a combination of characters and icons. By clicking the tag, the page of the main content area is switched to display the corresponding content. The tab bar is typically under the screen in iOS systems, often using icons, and adding corresponding text under the icons. In android, the tab bar is typically above the screen. Fig. 1 shows an example of a conventional APP layout, where the lowermost tab bar includes three tabs "home page", "main advertisement management", and "account center".
For a conventional APP architecture, for example, the number and content of the tab bars arranged at the bottom are determined when the APP is started, and subsequent dynamic change cannot be performed.
However, users using APP may include multiple roles, and different users (e.g., administrator users and general users) may have different functions in APP to be used, which requires that the number and content of the change tags be loaded or dynamically switched as needed to meet the use requirements of different types of users.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide an application tag automatic loading and changing method, apparatus and electronic device to at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides an automatic application tag loading and changing method, including:
setting a user type and a label corresponding to the user type, wherein the operation on the label causes the content corresponding to the label to be displayed to the user of the type;
when the application program is started, acquiring the type of a login user and displaying a label corresponding to the acquired user type according to the type of the user; and
when the label is changed, the currently displayed label object is obtained and the label to be displayed is reconstructed according to the user type, wherein the label object is used for controlling the display of the label in the application program, and the display of the label comprises at least one of the number of the labels, the content of the label and the layout of the label.
According to a specific implementation manner of the embodiment of the present disclosure, the user type includes an administrator user type, the tag corresponding to the administrator user type includes a user management tag, an operation on the user management tag causes one or more user options to be displayed to the administrator, and an operation on the one or more user options causes a tag corresponding to the user type of the one or more users to be displayed.
According to a specific implementation manner of the embodiment of the present disclosure, the acquiring a type of a login user and displaying a tag corresponding to the acquired user type according to the type of the user when the application program is started includes:
obtaining a user identity certificate of a user according to an account password input when the user logs in;
acquiring user information of the user according to the user identity certificate, wherein the user information at least comprises the type of the user; and
and displaying the corresponding label according to the type of the user.
According to a specific implementation manner of the embodiment of the present disclosure, after the user information of the user is acquired according to the user identification, the acquired user information is stored locally.
According to a specific implementation manner of the embodiment of the disclosure, after the type of the login user is acquired and the tag corresponding to the acquired user type is displayed according to the type of the user, the login time of the login user is also acquired, and when the login time is greater than a predetermined threshold, only the current user information in the local user information is reserved.
According to a specific implementation manner of the embodiment of the present disclosure, when the user type is an administrator user type, time restriction is not performed on the administrator user, and time restriction is performed on one or more users included in the administrator user, where the time restriction indicates that the user information stored locally is deleted when a corresponding user does not log in for a predetermined time.
According to a specific implementation manner of the embodiment of the present disclosure, when the user type is an administrator user type, time restriction is not performed on the administrator user, and time restriction is not performed on one or more users included in the administrator user, where the time restriction indicates that the user information stored locally is deleted when a corresponding user does not log in for a predetermined time.
According to a specific implementation manner of the embodiment of the present disclosure, the changing of the tag by switching a login user, and the acquiring a type of the login user and displaying the tag corresponding to the acquired user type according to the type of the user includes:
judging whether the user information of the switched user is stored locally;
if the user information is stored locally, acquiring the type of the user according to the locally stored user information and displaying a corresponding label; and
and if the user information is not stored locally, acquiring the type of the user according to the user identity certificate and displaying a corresponding label.
According to a specific implementation manner of the embodiment of the present disclosure, when the tag is changed, acquiring a currently displayed tag object and reconstructing the tag to be displayed according to a user type includes:
acquiring a tag object array corresponding to a currently displayed tag, wherein elements of the tag object array are identifiers of the currently displayed tag; and
the tag object array is operated to reconstruct the displayed tags.
According to a specific implementation manner of the embodiment of the present disclosure, the operation on the tag object array includes one or more of the following:
adding an element to the tag object array, wherein the adding an element to the tag object array indicates adding a corresponding tag in the application;
deleting an element from the tag object array, wherein the deleting an element from the tag object array indicates that a corresponding tag was deleted in the application; and
adjusting an order of elements in the tag object array, wherein the adjusting the order of elements in the tag object array indicates adjusting an arrangement of tags in the application.
According to a specific implementation manner of the embodiment of the present disclosure, the reconstructing the displayed tag according to the user type includes:
rendering the tag to obtain a rendered tag.
In a second aspect, an embodiment of the present disclosure provides an apparatus for automatically loading and changing application tags, including:
the device comprises a setting module, a display module and a display module, wherein the setting module is used for setting a user type and a label corresponding to the user type, and the operation on the label causes the content corresponding to the label to be displayed for the user of the type;
the display module is used for acquiring the type of a login user and displaying a label corresponding to the acquired user type according to the type of the user when the application program is started; and
and the reconstruction module is used for acquiring a currently displayed label object and reconstructing a label to be displayed according to the user type when the label is changed, wherein the label object is used for controlling the display of the label in the application program, and the display of the label comprises at least one of the number of the labels, the content of the label and the layout of the label.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of application tag auto-loading and alteration in any of the implementations of the first aspect or the first aspect.
In a fourth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for automatically loading and changing an application tag in the foregoing first aspect or any implementation manner of the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method for automatic loading and altering of application tags in the foregoing first aspect or any implementation manner of the first aspect.
The automatic loading and changing scheme of the application program label in the embodiment of the disclosure comprises the steps of setting a user type and a label corresponding to the user type, wherein the operation on the label enables the content corresponding to the label to be displayed for the user of the type; when the application program is started, acquiring the type of a login user and displaying a label corresponding to the acquired user type according to the type of the user; and when the label is changed, acquiring a currently displayed label object and reconstructing the label to be displayed according to the user type, wherein the label object is used for controlling the display of the label in the application program, and the display of the label comprises at least one of the number of the labels, the content of the label and the layout of the label. Through the processing scheme disclosed by the invention, the convenience of loading and changing the application program label is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a conventional APP layout provided by embodiments of the present disclosure;
fig. 2 is a schematic flowchart of an automatic application tag loading and changing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a tag used by an administrator for type mapping according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart illustrating displaying a corresponding tag when switching users according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart illustrating a displayed label reconfiguration according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus for automatically loading and changing application tags according to an embodiment of the present disclosure; and is
Fig. 7 is a schematic view of an electronic device provided in an embodiment of the disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a method and a device for automatically loading and changing a label and an electronic equipment method. The automatic tag loading and changing method provided by the embodiment may be executed by a computing device, which may be implemented as software or as a combination of software and hardware, and may be integrally provided in a server, a terminal device, or the like.
Further, it should be noted that in the following description, a mobile phone APP is described as an example of an application program, but it should be understood that the method according to the embodiment of the present disclosure may also be applied to an application program that exists in other forms such as a web page, an applet, a program block contained inside a program, and the like. That is, in the embodiment of the present disclosure, the term "application program" is not limited to an application program in the form of APP.
In addition, in the following description, the term "tag" refers to a function entry of several function interaction pages in an APP page.
Referring to fig. 2, an application tag automatic loading and changing method provided by an embodiment of the present disclosure includes:
s201: setting a user type and a label corresponding to the user type, wherein the operation on the label causes the content corresponding to the label to be displayed to the user of the type.
For users of APPs, there may be multiple types, and the content or interface to be provided is different for each type of user. Generally, content corresponding to a tab is displayed in the main content area by an operation (e.g., a single-click, a double-click, or another type of operation) on the tab in the tab bar disposed at the bottom of the display interface.
In the embodiment of the disclosure, customized development of different tag contents is performed according to a user role (user type) in a product system, and the tag contents are pre-embedded in an APP. That is, the tags corresponding to the user type are first set according to the user type, and the tags corresponding to the user type may include the number of tags, the content of the tags, and may also include the layout or order of the tags.
For the set tags, corresponding content can be displayed to users of corresponding types as long as the tags are clicked, for example, the "account center" tag in fig. 1 is clicked, and personal information of the users can be viewed.
S202: and when the application program is started, acquiring the type of a login user and displaying a label corresponding to the acquired user type according to the type of the user.
In order to display correct content and tags after the APP is started, in the embodiment of the present disclosure, when the APP is started, the type of the user is obtained, and the corresponding tag is displayed according to the type of the user.
For the acquisition of the user type, for example, a user type option may be provided to the user at a user registration stage, and a user type tag may be set for the user according to the type selected by the user, so that the corresponding tag may be displayed according to the user type provided by the user when the APP is started.
Alternatively, the type of user may be obtained from a username password entered by the user. Specifically, after the User registers, the system automatically assigns a User Identification (UID) to the User, that is, a User name and a password input by the User correspond to the UID of the User one to one, and after the User inputs the User name and the password, obtains User information corresponding to the UID from a third-party database or a collected base through the UID. In this way, the type of the user can be obtained from the username password entered by the user.
Generally, after a user inputs a username and password for the first time in a terminal device, the terminal will at least store the username, and only need the user to input the password to log in. In this case, the user name and the UID may be made to correspond one-to-one, and the user type may be acquired from the user name.
It should be noted that the method of acquiring the type of the user is not limited thereto, and other methods may also be included as long as the method can acquire the type of the user.
When the APP is started, after the type of the user is acquired, the tag corresponding to the user type can be displayed in the main content area, so that the user can obtain the required tag and can display the required content through the operation of the tag.
S203: and when the label is changed, acquiring the currently displayed label object and reconstructing the label to be displayed according to the user type.
In a case where, for example, a plurality of accounts exist on the same terminal device, it may be necessary to switch between the plurality of accounts, and in such a case, it is necessary to adaptively change displayed tags, such as the number of tags, the content of the tags, and the layout of the tags.
In the embodiment of the present disclosure, when a tag is changed, all currently displayed tag objects are obtained, where the tag objects are used to control the number of tags in the application program, the content of the tag, the layout of the tag, and the like.
Specifically, in an IOS system, for example, all the controller objects (tag objects) currently in the tabbbarviewcontroller may be acquired through an interface provided by the IOS system, and the controller objects in the tabbbarviewcontroller are operated to implement the change of the tag. Additionally, the controller object can be similarly operated in the android system to effect a change in the tag.
In the disclosed embodiments, the operations on the controller objects may include at least adding controller objects, deleting controller objects, and adjusting the layout of the controller objects. In this way, the label corresponding to the switched user can be reconstructed.
According to the automatic loading and changing method for the application program label, the label suitable for the current user can be intelligently displayed, and therefore the user experience of the application program is improved.
Referring to fig. 3, according to a specific implementation manner of the embodiment of the present disclosure, the user type includes an administrator user type, the tag corresponding to the administrator user type includes a user management tag, an operation on the user management tag causes one or more user options to be displayed to the administrator, and an operation on the one or more user options causes a tag corresponding to the user type of the one or more users to be displayed. That is, in the embodiment of the present disclosure, one or more users may be selected from the tabs of the administrator user, and the user interface is entered by operating the one or more user tabs, so that the content corresponding to the user is displayed.
Specifically, as shown in fig. 3, the upper part of the view represents the main content area, and the lower part represents the tab area. The left view shows the tabs corresponding to the administrator user type, which, as can be seen, includes three tabs "home", "user administration", and "personal hub". The operation (e.g., clicking) on the user management tab may display one or more user options, such as users 1-6, in the content area, the operation (e.g., clicking) on the user options may cause the interface to enter the interface corresponding to the clicked user, the view on the right side in fig. 3 shows the interface corresponding to user 1, the tab column of which includes the home page and the personal center of user 1, i.e., clicking the user option of user 1, may display the tab corresponding to user 1.
In this way, by ranking the user types (e.g., administrator user type and general user type) and making it possible to enter the subordinate user interface directly from the tab of the superior user interface, the management of the subordinate user is facilitated, which is particularly advantageous in the case of, for example, acting on multiple companies.
According to a specific implementation manner of the embodiment of the present disclosure, after the user information of the user is acquired according to the user identification, the acquired user information is stored locally.
As described above, in the process of logging in the APP by the user through the username and password, the corresponding tag is displayed by acquiring the user information including the user type. In the embodiment of the present disclosure, after obtaining the user information of the user from the third party database or the like, the obtained user information is stored locally, so that the user information stored locally can be directly used at the next login without obtaining the required user information from the database again, thus improving the efficiency.
In particular, cookies may be used to improve the convenience and efficiency of a user logging into an APP. Cookie is a small piece of information stored in the browsing software. For example, the APP may send a Cookie to the browsing software of each registered user, or exchange cookies with the browsing software of the user when the user connects to the APP, and store the Cookie containing user-related information (such as a user identification code, a password, a user type, etc.) in the server of the APP, so that the user can directly enter the personal system environment without inputting the user name and password of the user when the user visits next time.
According to a specific implementation manner of the embodiment of the disclosure, after the type of the login user is acquired and the tag corresponding to the acquired user type is displayed according to the type of the user, the login time of the login user is also acquired, and when the time is greater than a predetermined threshold, only the current user information in the local user information is reserved.
Specifically, in the embodiment of the present disclosure, after logging in an APP through a user name and a password, for example, obtaining a user type and displaying a corresponding tag, recording the current time of logging in by the user is started. And after the time that the current user keeps logging in exceeds a preset threshold value, for example, 30min, only locally keeping the user information which is currently in a logging-in state.
That is, after the current user keeps logging in for more than a preset time, the information of other users stored locally is deleted, so that other users are required to re-input the user name and the password to log in the system during switching, and the safety of the user account can be improved.
However, in the embodiment of the present disclosure, the time limit is not performed for all users, and the term "time limit" refers to deleting the user information of the user that the user is locally stored when the user is not logged in for a predetermined time.
Specifically, when the user type of the current login user is the administrator user type, as shown in fig. 3, the tab of the user includes an administrator tab, an administrator option (for example, users 1 to 6 in fig. 3) may be displayed by clicking the administrator tab, and a transition may be made to the interface of the administrator, that is, the interface of the administrator is logged in by clicking the administrator option.
In this case, on the one hand, time restriction may not be performed on the administrator user, and time restriction may not be performed on one or more users (managed persons) included in the administrator user. Therefore, the administrator user can conveniently return to the administrator account without re-inputting the user name and the password after checking the personnel managed by the administrator user.
More specifically, when acquiring user information of an administrator user, user information of users managed by the administrator user can be synchronously acquired, the user information is stored locally, and only one of the users needs to be online, the administrator user can be considered to be online without deleting all the acquired user information. Thus, users and operations can be managed more conveniently.
Alternatively, after the user information of the user managed by the administrator user is obtained at the time of login and stored locally, no time restriction is performed for the administrator, but the time restriction is performed for the user therein. In this case, the user information of the managed user or the user information stored locally may be used.
Referring to fig. 4, according to a specific implementation of the embodiment of the present disclosure, the label is changed by switching users. Specifically, a user may log in to the APP by, for example, selecting their own username. In this case, the acquiring the type of the user and displaying the tag corresponding to the acquired user type according to the type of the user includes:
s401: it is determined whether the user information of the switched user is already stored locally.
S402: and if the user information is stored locally, acquiring the type of the user according to the locally stored user information and displaying a corresponding label.
S403: and if the user information is not stored locally, acquiring the type of the user according to the user identity certificate and displaying a corresponding label.
In the case of switching the login user of the APP, firstly, whether the user information of the logged-in user is stored locally is judged. If the user information is stored locally, the user logs in the APP before, so that the user information stored locally can be used for logging in the APP, and the corresponding label is displayed according to the user type in the user information.
Alternatively, if the user information for the user is not stored locally, the user is required to enter a password and obtain the user's type from a third party database and display the corresponding label.
Referring to fig. 5, according to a specific implementation manner of the embodiment of the present disclosure, when the tag is changed, acquiring a currently displayed tag object and reconstructing the displayed tag according to a user type includes:
s501: and acquiring a tag object array corresponding to the currently displayed tag, wherein the elements of the tag object array are identifiers of the currently displayed tag.
As described above, for APP, the label displayed in its label bar is generally fixed. To change these tags, operations need to be performed on the tag object array that controls these tags. For the IOS system, all tag objects currently in the tabbrarviewcontroller may be acquired through a corresponding interface, for example.
S502: the tag object array is operated to reconstruct the displayed tags.
In order to display the corresponding tag according to the user type, the tag object array of the current control tag needs to be operated. The operations may include, for example:
(1) and adding an element to the tag object array, wherein the adding of an element to the tag object array indicates that a corresponding tag is added in the application.
(2) And deleting an element from the tag object array, wherein the deleting an element from the tag object array indicates that the corresponding tag is deleted in the application.
(3) And adjusting the order of the elements in the tag object array, wherein the adjusting the order of the elements in the tag object array indicates adjusting the arrangement of tags in the application.
In addition, in the embodiment of the present disclosure, for the reconstructed tags, the tags may also be rendered, so as to improve the use experience of the user.
Referring to fig. 6, which illustrates an application tag auto-load and change apparatus 600 according to an embodiment of the present disclosure, the apparatus 600 includes:
the setting module 601 sets a user type and a tag corresponding to the user type, wherein the operation on the tag causes the content corresponding to the tag to be displayed to the user of the type.
The display module 602, when the application program is started, acquires a user type and displays a tag corresponding to the acquired user type according to the user type.
The reconstruction module 603 obtains a currently displayed tag object and reconstructs a tag to be displayed according to a user type when the tag is changed.
The apparatus shown in fig. 6 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 7, an embodiment of the present disclosure also provides an electronic device 700, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of application tag auto-loading and alteration in the method embodiments described above.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the application tag automatic loading and altering method in the foregoing method embodiments.
The disclosed embodiments also provide 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, cause the computer to perform the application tag auto-loading and altering method of the aforementioned method embodiments.
Referring now to FIG. 7, shown is a schematic diagram of an electronic device 700 suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, or the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (14)

1. An automatic application tag loading and changing method is characterized by comprising the following steps:
setting a user type and a label corresponding to the user type, wherein the operation on the label causes the content corresponding to the label to be displayed to the user of the type;
when the application program is started, acquiring the type of a login user and displaying a label corresponding to the acquired user type according to the type of the user; and
when the label is changed, the currently displayed label object is obtained and the label to be displayed is reconstructed according to the user type, wherein the label object is used for controlling the display of the label in the application program, and the display of the label comprises at least one of the number of the labels, the content of the label and the layout of the label.
2. The method of claim 1, wherein the user type comprises an administrator user type, wherein the tab corresponding to the administrator user type comprises a user administration tab, wherein operating the user administration tab causes one or more user options to be displayed to the administrator, and wherein operating the one or more user options causes a tab corresponding to the user type of the one or more users to be displayed.
3. The method for automatically loading and changing the application program label according to claim 1 or 2, wherein the step of acquiring the type of the login user and displaying the label corresponding to the acquired user type according to the type of the user when the application program is started comprises the steps of:
obtaining a user identity certificate of a user according to an account password input when the user logs in;
acquiring user information of the user according to the user identity certificate, wherein the user information at least comprises the type of the user; and
and displaying the corresponding label according to the type of the user.
4. The method of claim 3, wherein after obtaining the user information of the user according to the user identification, the obtained user information is stored locally.
5. The method for automatically loading and changing the application program label according to claim 4, wherein after the type of the login user is obtained and the label corresponding to the obtained user type is displayed according to the type of the user, the login time of the login user is also obtained, and when the login time is greater than a predetermined threshold, only the current user information in the local user information is retained.
6. The method of claim 4, wherein when the user type is an administrator user type, no time restriction is performed on the administrator user, and time restriction is performed on one or more users included in the administrator user, wherein the time restriction indicates that the user information stored locally is deleted when the corresponding user is not logged in for a predetermined time.
7. The method of claim 4, wherein when the user type is an administrator user type, no time restriction is performed on the administrator user, and no time restriction is performed on one or more users included in the administrator user, wherein the time restriction indicates that the user information stored locally is deleted when the corresponding user is not logged in for a predetermined time.
8. The method for automatically loading and changing the application program label according to claim 4, wherein the label is changed by switching a login user, and the obtaining the type of the login user and displaying the label corresponding to the obtained user type according to the type of the user comprises:
judging whether the user information of the switched user is stored locally;
if the user information is stored locally, acquiring the type of the user according to the locally stored user information and displaying a corresponding label; and
and if the user information is not stored locally, acquiring the type of the user according to the user identity certificate and displaying a corresponding label.
9. The method for automatically loading and changing the application label according to claim 1, wherein the step of obtaining the currently displayed label object and reconstructing the label to be displayed according to the user type when the label is changed comprises:
acquiring a tag object array corresponding to a currently displayed tag, wherein elements of the tag object array are identifiers of the currently displayed tag; and
the tag object array is operated to reconstruct the displayed tags.
10. The application tag auto-launch and change method according to claim 9, wherein the operations on the tag object array include one or more of:
adding an element to the tag object array, wherein the adding an element to the tag object array indicates adding a corresponding tag in the application;
deleting an element from the tag object array, wherein the deleting an element from the tag object array indicates that a corresponding tag was deleted in the application; and
adjusting an order of elements in the tag object array, wherein the adjusting the order of elements in the tag object array indicates adjusting an arrangement of tags in the application.
11. The method of claim 1, wherein the reconfiguring the displayed tab according to the user type comprises:
rendering the tag to obtain a rendered tag.
12. An apparatus for automatic application tag loading and alteration, comprising:
the device comprises a setting module, a display module and a display module, wherein the setting module is used for setting a user type and a label corresponding to the user type, and the operation on the label causes the content corresponding to the label to be displayed for the user of the type;
the display module is used for acquiring the type of a login user and displaying a label corresponding to the acquired user type according to the type of the user when the application program is started; and
and the reconstruction module is used for acquiring a currently displayed label object and reconstructing a label to be displayed according to the user type when the label is changed, wherein the label object is used for controlling the display of the label in the application program, and the display of the label comprises at least one of the number of the labels, the content of the label and the layout of the label.
13. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of application tag auto-loading and alteration of any of the preceding claims 1-11.
14. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of application tag auto-loading and alteration of any of the preceding claims 1-11.
CN201911133002.7A 2019-11-19 2019-11-19 Automatic application program label loading and changing method and device and electronic equipment Pending CN110908735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911133002.7A CN110908735A (en) 2019-11-19 2019-11-19 Automatic application program label loading and changing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911133002.7A CN110908735A (en) 2019-11-19 2019-11-19 Automatic application program label loading and changing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110908735A true CN110908735A (en) 2020-03-24

Family

ID=69818188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911133002.7A Pending CN110908735A (en) 2019-11-19 2019-11-19 Automatic application program label loading and changing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110908735A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104081382A (en) * 2012-01-08 2014-10-01 泰克尼森有限公司 Method and system for dynamically assignable user interface
CN104461251A (en) * 2014-12-18 2015-03-25 百度在线网络技术(北京)有限公司 Application program label display method and device
CN108200273A (en) * 2017-12-27 2018-06-22 努比亚技术有限公司 Desktop icons display methods, terminal and computer readable storage medium
CN109033874A (en) * 2018-07-19 2018-12-18 数海信息技术有限公司 A kind of polygonal color login method and system of several Android programs of Hisense's breath based on SQlite database
CN109325024A (en) * 2018-07-27 2019-02-12 平安科技(深圳)有限公司 Label display method, apparatus, terminal device and the storage medium of project
CN109409043A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 Login method, terminal device and the medium of application system
CN109598117A (en) * 2018-10-24 2019-04-09 平安科技(深圳)有限公司 Right management method, device, electronic equipment and storage medium
CN109657427A (en) * 2017-10-12 2019-04-19 北京国双科技有限公司 The method and device of permission control
CN109918876A (en) * 2019-03-18 2019-06-21 京东方科技集团股份有限公司 Permission filter method and permission filter device
CN110147283A (en) * 2019-05-21 2019-08-20 北京字节跳动网络技术有限公司 A kind of display content switching display methods, device, equipment and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104081382A (en) * 2012-01-08 2014-10-01 泰克尼森有限公司 Method and system for dynamically assignable user interface
CN104461251A (en) * 2014-12-18 2015-03-25 百度在线网络技术(北京)有限公司 Application program label display method and device
CN109657427A (en) * 2017-10-12 2019-04-19 北京国双科技有限公司 The method and device of permission control
CN108200273A (en) * 2017-12-27 2018-06-22 努比亚技术有限公司 Desktop icons display methods, terminal and computer readable storage medium
CN109033874A (en) * 2018-07-19 2018-12-18 数海信息技术有限公司 A kind of polygonal color login method and system of several Android programs of Hisense's breath based on SQlite database
CN109325024A (en) * 2018-07-27 2019-02-12 平安科技(深圳)有限公司 Label display method, apparatus, terminal device and the storage medium of project
CN109409043A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 Login method, terminal device and the medium of application system
CN109598117A (en) * 2018-10-24 2019-04-09 平安科技(深圳)有限公司 Right management method, device, electronic equipment and storage medium
CN109918876A (en) * 2019-03-18 2019-06-21 京东方科技集团股份有限公司 Permission filter method and permission filter device
CN110147283A (en) * 2019-05-21 2019-08-20 北京字节跳动网络技术有限公司 A kind of display content switching display methods, device, equipment and medium

Similar Documents

Publication Publication Date Title
US11132114B2 (en) Method and apparatus for generating customized visualization component
US9736272B2 (en) Generation and distribution of named, definable, serialized tokens
US20220366066A1 (en) Display method, display device, and electronic device
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN108563469A (en) page loading method, device, storage medium and terminal device
US11882154B2 (en) Template representation of security resources
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN113254136A (en) Information recommendation popup window display method, device, equipment and computer readable medium
US20200401656A1 (en) User interface navigation management
CN111142799A (en) Distributed storage method and device, network node and storage medium
CN114707472A (en) Method and device for field merging and electronic equipment
CN112261176B (en) Method for acquiring actual network access relationship and related equipment
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN111736825B (en) Information display method, device, equipment and storage medium
US20160313880A1 (en) Persistent tracking of a work space arrangement of a crm application through a web browser
CN111291090B (en) Method, device, electronic equipment and medium for acquiring time period based on time control
CN111309406A (en) Event processing method and device of application program and electronic equipment
US20130036374A1 (en) Method and apparatus for providing a banner on a website
CN115174248A (en) Network access control method and device
CN114996577A (en) Service management method, device, apparatus, storage medium, and program product
CN110908735A (en) Automatic application program label loading and changing method and device and electronic equipment
CN113760273A (en) Page control method and page control device
CN110851185A (en) Automatic configuration method and device for equipment, electronic equipment and storage medium
CN110716915A (en) Method and device for operating database, electronic equipment and storage medium
CN113037769B (en) Network resource access 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