CN111752668A - View display method and device, electronic equipment and computer-readable storage medium - Google Patents
View display method and device, electronic equipment and computer-readable storage medium Download PDFInfo
- Publication number
- CN111752668A CN111752668A CN202010733094.9A CN202010733094A CN111752668A CN 111752668 A CN111752668 A CN 111752668A CN 202010733094 A CN202010733094 A CN 202010733094A CN 111752668 A CN111752668 A CN 111752668A
- Authority
- CN
- China
- Prior art keywords
- view
- identity information
- white list
- module
- interface data
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a view display method and device, electronic equipment and a computer readable storage medium, and relates to the field of application programs. The method comprises the following steps: when an access instruction which is initiated by an accessor and aims at a specified view in an application program is received, acquiring identity information of the accessor; matching the identity information with at least one preset white list; each white list comprises at least one white list identity information; when target white list identity information matched with the identity information exists, taking a view module corresponding to a white list containing the target white list identity information as a view module to be displayed; and acquiring view interface data of the view module, and rendering and displaying the view interface data. The method and the device for displaying the views of the webpage realize that different views are displayed for different visitors, avoid the problem that in the prior art, views which are uniform are displayed for all visitors, improve personalized programs of the webpage and improve user experience.
Description
Technical Field
The present application relates to the technical field of application programs, and in particular, to a method and an apparatus for displaying a view, an electronic device, and a computer-readable storage medium.
Background
With the development of science and technology, the functions of the application programs are more and more abundant, and more convenience is provided for the life of people.
Generally, applications have a variety of functions, and users can achieve different purposes by using different functions. However, the positions of various functions in the existing application program are predetermined in the page, the page seen by each user is uniform, the personalization degree is low, and the user experience is poor.
Disclosure of Invention
The application provides a view display method and device, an electronic device and a computer-readable storage medium, which can solve the problems. The technical scheme is as follows:
in a first aspect, a method for displaying a view is provided, where the method includes:
when an access instruction which is initiated by an accessor and aims at a specified view in an application program is received, acquiring identity information of the accessor;
matching the identity information with at least one preset white list; each white list comprises at least one white list identity information;
when target white list identity information matched with the identity information exists, taking a view module corresponding to a white list containing the target white list identity information as a view module to be displayed;
and acquiring view interface data of the view module, and rendering and displaying the view interface data.
Preferably, before determining the view module to be displayed in the designated view based on at least one preset white list and the identity information, the method further includes:
and acquiring the at least one white list and the view module corresponding to each white list.
Preferably, the method further comprises the following steps:
when the white list identity information matched with the identity information does not exist, acquiring at least one historical access view corresponding to the identity information;
and taking the view module of the last history access view in the at least one history access view as the view module to be displayed.
Preferably, the view module includes at least one item of view interface data, the identity information further has at least one identification information, and each identification information has a corresponding view interface data;
the acquiring view interface data of the view module and rendering and displaying the view interface data comprises:
acquiring current first identification information of the identity information;
determining first view interface data corresponding to the first identification information;
rendering the first view interface data.
Preferably, the method further comprises the following steps:
when a switching instruction aiming at first identification information is received, extracting second identification information after switching from the switching instruction;
determining second view interface data corresponding to the second identification information;
rendering the second view interface data.
In a second aspect, there is provided a display device for displaying a view, the device comprising:
the receiving module is used for receiving an access instruction which is initiated by a visitor and aims at a specified view in an application program;
the acquisition module is used for acquiring the identity information of the visitor;
the matching module is used for matching the identity information with at least one preset white list; each white list comprises at least one white list identity information;
the determining module is used for taking a view module corresponding to the white list containing the target white list identity information as a view module to be displayed when the target white list identity information matched with the identity information exists;
and the processing module is used for acquiring the view interface data of the view module and rendering and displaying the view interface data.
Preferably, the obtaining module is further configured to:
before determining a view module to be displayed in the designated view based on at least one preset white list and the identity information, acquiring the at least one white list and the view module corresponding to each white list; wherein, each white list comprises at least one white list identity information.
Preferably, the obtaining module is further configured to:
matching the identity information with the identity information of each white list in each white list respectively;
the determining module is further configured to, when there is no white list identity information matching the identity information, obtain at least one history access view corresponding to the identity information, and use a view module of a last history access view in the at least one history access view as the view module to be displayed.
Preferably, the view module includes at least one item of view interface data, the identity information further has at least one identification information, and each identification information has a corresponding view interface data;
the processing module comprises:
the identification information acquisition submodule is used for acquiring the current first identification information of the identity information;
the view interface data determining submodule is used for determining first view interface data corresponding to the first identification information;
and the rendering submodule is used for rendering and displaying the first view interface data.
Preferably, the method further comprises the following steps:
the receiving module is further configured to receive a switching instruction for the first identification information;
the extraction module is used for extracting the second identification information after switching from the switching instruction;
the determining module is further configured to determine second view interface data corresponding to the second identification information;
the processing module is further configured to render and display the second view interface data.
In a third aspect, an electronic device is provided, which includes:
a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is configured to call the operation instruction, and the executable instruction enables the processor to execute an operation corresponding to the view display method shown in the first aspect of the present application.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the method for presenting the views illustrated in the first aspect of the present application.
The beneficial effect that technical scheme that this application provided brought is:
in the method, when an access instruction aiming at a specified view in an application program and initiated by a visitor is received, identity information of the visitor is obtained, and then the identity information is matched with at least one preset white list; each white list comprises at least one white list identity information; and when the target white list identity information matched with the identity information exists, taking a view module corresponding to the white list containing the target white list identity information as a view module to be displayed, acquiring view interface data of the view module, and rendering and displaying the view interface data. The method and the device realize the display of different views for different visitors, avoid the problem that in the prior art, the views are displayed uniformly for all visitors, improve the personalized program of the page and improve the user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic diagram of an application scenario in which a method for displaying a view is performed according to the present application;
fig. 2 is a schematic flow chart of a method for displaying a view according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a method for displaying a view according to another embodiment of the present application;
FIG. 4 is a first view of the present application showing effects;
FIG. 5 is a second illustration of the effect of the present application;
FIG. 6 is a schematic diagram of an edit page of view interface data in an edit view module according to the present application;
FIGS. 7A-7C are schematic diagrams illustrating a third exemplary embodiment of the present disclosure;
FIGS. 8A-8B are schematic diagrams illustrating the effect of the present application;
FIG. 9 is a schematic view of a display device showing a view according to yet another embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device showing a view according to still another embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The present application provides a method and an apparatus for displaying a view, an electronic device, and a computer-readable storage medium, which are intended to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
An embodiment of the present invention provides an application environment for view display, and referring to fig. 1, the application environment includes: a first device 101 and a second device 102. The first device 101 and the second device 102 are connected through a network, the first device 101 is an access device, and the second device 102 is an accessed device. The first device 101 may be a terminal and the second device 102 may be a server. The terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, or the like, but is not limited thereto. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform. The terminal can be provided with an application program client, and the application program client performs data interaction with the server through the terminal. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
A method for presenting a view may be performed in the application environment, as shown in fig. 2, and includes:
step S201, when receiving an access instruction aiming at a specified view in an application program and initiated by an accessor, acquiring identity information of the accessor;
specifically, the application program may include at least one preset view, each view has a corresponding view button, and a user clicks the view button to initiate an access instruction to the view corresponding to the view button, and the application program may expose the corresponding view based on the access instruction. Of course, a default view may be set up in the views, which may be presented when the application is launched.
Further, among a plurality of preset views, a view that needs to be presented based on the identity information of the user may be set as a designated view. When a user initiates an access instruction for a specified view, identity information of the user may be obtained.
Step S202, the identity information is matched with at least one preset white list; each white list comprises at least one white list identity information;
after the identity information of the user, each white list and the view module corresponding to each white list are obtained, the identity information can be matched with each preset white list.
Step S203, when the target white list identity information matched with the identity information exists, taking a view module corresponding to the white list containing the target white list identity information as a view module to be displayed;
and matching the identity information of the user with the identity information of each white list in each white list, if matched target white list identity information exists, taking the white list containing the white list identity information as a target white list, and taking a view module corresponding to the target white list as a view module to be displayed in the designated view.
Step S204, obtaining the view interface data of the view module, and rendering and displaying the view interface data.
After the view module to be displayed is determined, the view interface data corresponding to the view module can be obtained, and the view interface data is rendered and displayed. Wherein the view module comprises at least one item of view interface data, which may be interface data of the functional interface.
In the embodiment of the invention, when an access instruction aiming at a specified view in an application program and initiated by an accessor is received, identity information of the accessor is obtained, and then the identity information is matched with at least one preset white list; each white list comprises at least one white list identity information; and when the target white list identity information matched with the identity information exists, taking a view module corresponding to the white list containing the target white list identity information as a view module to be displayed, acquiring view interface data of the view module, and rendering and displaying the view interface data. The method and the device realize the display of different views for different visitors, avoid the problem that in the prior art, the views are displayed uniformly for all visitors, improve the personalized program of the page and improve the user experience.
In another embodiment, a view presentation is provided, as shown in fig. 3, the method comprising:
step S301, when receiving an access instruction aiming at a specified view in an application program and initiated by an accessor, acquiring identity information of the accessor;
specifically, the application program may include at least one preset view, each view has a corresponding view button, and a user clicks the view button to initiate an access instruction to the view corresponding to the view button, and the application program may expose the corresponding view based on the access instruction. Of course, a default view may be set up in the views, which may be presented when the application is launched.
For example, the application includes three preset views A, B, C, a corresponds to a view button 401, B corresponds to a view button 402, and C corresponds to a view button 403, where a is a default view and B is a designated view, when the user starts the application, view a is displayed, and simultaneously each view button is displayed for the user to switch, and when the user clicks 402, view B is displayed, as shown in fig. 4.
Further, among a plurality of preset views, a view that needs to be presented based on the identity information of the user may be set as a designated view. When a user initiates an access instruction for a specified view, identity information of the user may be obtained.
For example, view B in A, B, C needs to be presented based on the user's identity information, so when the user clicks on view button 402, the application can obtain the user's identity information.
It should be noted that one or more designated views may be provided, and may be set according to actual requirements in practical applications, which is not limited in this embodiment of the present invention.
Step S302, at least one white list and a view module corresponding to each white list are obtained; each white list comprises at least one piece of white list identity information;
specifically, at least one white list may be set in the application program, and each white list includes identity information of at least one user, which is called white list identity information. Also, each whitelist has a corresponding view module. After the identity information of the user is obtained, each white list and the view module corresponding to each white list can be obtained.
For example, the white list 1 corresponds to the view module 1, the view module 2, the view module 3, and the view module 4, the white list 2 corresponds to the view module 1, the view module 2, the view module 3, and the view module 5, and the white list 3 corresponds to the view module 6.
It should be noted that each white list may correspond to one view module or correspond to multiple view modules, and may be set according to actual requirements in actual applications, which is not limited in this embodiment of the present invention.
Step S303, matching the identity information with at least one preset white list; each white list comprises at least one white list identity information;
after the identity information of the user, each white list and the view module corresponding to each white list are obtained, the identity information can be matched with each preset white list, and if a matching item exists, the view module corresponding to the matched white list is used as a view module to be displayed in the appointed view; and if the matching item does not exist, determining the corresponding view module based on the identity information.
Step S304, when the target white list identity information matched with the identity information exists, taking a view module corresponding to the white list containing the target white list identity information as a view module to be displayed;
specifically, identity information of a user is matched with identity information of each white list in each white list, if matched target white list identity information exists, the white list containing the white list identity information is used as the target white list, and a view module corresponding to the target white list is used as a view module to be displayed in the designated view.
For example, if the white list 2 is determined to be the target white list through matching, the view module 1, the view module 2, the view module 3, and the view module 5 corresponding to the white list 2 may be used as view modules to be displayed in the designated view.
In a preferred embodiment of the present invention, the method further comprises:
when the white list identity information matched with the identity information does not exist, acquiring at least one historical access view corresponding to the identity information;
and taking the view module of the last history access view in the at least one history access view as the view module to be displayed.
Specifically, the identity information of the user is matched with the identity information of each white list in each white list, if the matched white list identity information does not exist, all historical access views corresponding to the identity information are obtained, and then the view module of the last historical access view is used as the view module to be displayed. Wherein the order of the historical access views can be determined according to the access time.
For example, after the identity information of the user fails to be matched with each white list, historical access views B and C corresponding to the user are obtained, then C accessed by the user first and B accessed by the user second are determined according to the access time of accessing B and C, so that B is the last historical access view, and the view module corresponding to B is used as the view module to be displayed.
It should be noted that if the user uses the application for the first time, the identity information of the user does not exist in the white list, and there is no historical access view of the user, then after the user starts the application, a default view may be presented.
Step S305, obtaining view interface data of a view module, and rendering and displaying the view interface data;
after the view module to be displayed is determined, the view interface data corresponding to the view module can be obtained, and the view interface data is rendered and displayed. Wherein the view module comprises at least one item of view interface data, which may be interface data of the functional interface.
In practical application, when a user clicks view interface data in a view module, the user can jump to a view page of a corresponding function. For example, in the view shown in fig. 5, a view module 1, a view module 2, a view module 3, and a view module 4 are included, and each module has its corresponding view interface data.
In the embodiment of the invention, the user can edit the view interface data displayed in the view module. For example, in the view shown in fig. 5, an edit button is provided in the view module 3, and when the user clicks the edit button, the edit page shown in fig. 6 can be displayed, and the user can set the view interface data displayed in the view module 3.
Furthermore, the identity information also has at least one identification information, and each identification information has the corresponding view interface data. That is, the same identity information, different identification information and different view interface data displayed in the view are different.
For example, as shown in fig. 7A, the view includes the identity information (zhang san) of the user, the identification information (department one), each view module, and the view interface data corresponding to each view module; in the view shown in fig. 7B, the identification information of the same identity information is changed (to department two), and then the view interface data corresponding to each view module is also changed.
In a preferred embodiment of the present invention, acquiring view interface data of a view module, and rendering and displaying the view interface data includes:
acquiring current first identification information of identity information;
determining first view interface data corresponding to the first identification information;
the rendering shows the first view interface data.
Specifically, after the view module to be displayed is determined, the current first identification information corresponding to the identity information can be further acquired, so that the first view interface data corresponding to the first identification information is determined, and then the corresponding view can be displayed by rendering and displaying the first view interface data.
Step S306, when receiving a switching instruction aiming at the first identification information, extracting the switched second identification information from the switching instruction;
specifically, in the current view, the user can switch view interface data in the view by switching the identification information. For example, in the view shown in fig. 7A, after the user clicks the identification information, the identification information list may be displayed, as shown in fig. 7C, when the user clicks any other identification information (except the current first identification information) in the identification information list, that is, a switching instruction is initiated, and after the application program receives the switching instruction, the switched second identification information, that is, the target identification information that the user wants to switch, such as "department two", is extracted from the switching instruction.
Step S307, determining second view interface data corresponding to the second identification information;
after the second identification information after switching is extracted, second view interface data in each view module corresponding to the second identification information can be determined.
And step S308, rendering and displaying the second view interface data.
And after the second view interface data is determined, rendering and displaying the second view interface data. For example, when the user clicks "department two" in the identification information list in fig. 7C, the view shown in fig. 7B can be displayed.
In practical application, the application can show different views according to different identity information, for example, if the user a is a demo, the view that the user a sees is shown in fig. 8A, if the user B is a general staff member, the view that the user B sees is shown in fig. 7A, if the user C is a leader, and the view that the user C sees is shown in fig. 8B.
In the embodiment of the invention, when an access instruction aiming at a specified view in an application program and initiated by an accessor is received, the identity information of the accessor is obtained, and then the identity information is matched with at least one preset white list; each white list comprises at least one white list identity information; and when the target white list identity information matched with the identity information exists, taking the view module corresponding to the white list containing the target white list identity information as a view module to be displayed, acquiring view interface data of the view module, and rendering and displaying the view interface data. And when the identity information is not matched with the white list, acquiring a view module corresponding to the last historical access view of the visitor as a view module to be displayed, and acquiring corresponding view interface data and performing rendering display. Therefore, whether the identity information of the visitor exists in the white list or not, different view modules and view interface data in the view modules can be displayed according to the identity information of different visitors, different views can be displayed for different visitors, the problem that in the prior art, all visitors are uniformly displayed is solved, the personalized program of the page is improved, and the user experience is improved.
Furthermore, the identity information can also have different identification information, and the different identification information corresponds to different view interface data, so that even if the same identity information exists, the different view interface data can be switched by switching the identification information, thereby displaying different views, further improving the personalized program of the page and improving the user experience.
Fig. 9 is a schematic structural diagram of a display apparatus of a view according to another embodiment of the present application, and as shown in fig. 9, the apparatus of this embodiment may include:
a receiving module 901, configured to receive an access instruction initiated by an accessor and directed to a specified view in an application program;
an obtaining module 902, configured to obtain identity information of an accessor;
a matching module 903, configured to match the identity information with at least one preset white list; each white list comprises at least one white list identity information;
a determining module 904, configured to, when there is target white list identity information matching the identity information, use a view module corresponding to a white list including the target white list identity information as a view module to be displayed;
the processing module 905 is configured to obtain view interface data of the view module, and render and display the view interface data.
In a preferred embodiment of the present invention, the obtaining module is further configured to:
before determining a view module to be displayed in a designated view based on at least one preset white list and identity information, acquiring at least one white list and view modules corresponding to the white lists respectively; wherein, each white list comprises at least one white list identity information.
In a preferred embodiment of the present invention, the obtaining module is further configured to:
matching the identity information with the identity information of each white list in each white list respectively;
the determining module is further configured to, when there is no white list identity information matching the identity information, obtain at least one history access view corresponding to the identity information, and use a view module of a last history access view in the at least one history access view as a view module to be displayed.
In a preferred embodiment of the present invention, the view module includes at least one item of view interface data, the identity information further includes at least one identification information, and each identification information has a corresponding view interface data;
a processing module, comprising:
the identification information acquisition submodule is used for acquiring the current first identification information of the identity information;
the view interface data determining submodule is used for determining first view interface data corresponding to the first identification information;
and the rendering submodule is used for rendering and displaying the first view interface data.
In a preferred embodiment of the present invention, the method further comprises:
the receiving module is further used for receiving a switching instruction aiming at the first identification information;
the extraction module is used for extracting the second identification information after switching from the switching instruction;
the determining module is further configured to determine second view interface data corresponding to the second identification information;
and the processing module is also used for rendering and displaying the second view interface data.
The display apparatus for views in this embodiment can perform the display methods for views shown in the first embodiment and the second embodiment of this application, which are similar to each other in implementation principle and are not described herein again.
In the embodiment of the invention, when an access instruction aiming at a specified view in an application program and initiated by an accessor is received, the identity information of the accessor is obtained, and then the identity information is matched with at least one preset white list; each white list comprises at least one white list identity information; and when the target white list identity information matched with the identity information exists, taking the view module corresponding to the white list containing the target white list identity information as a view module to be displayed, acquiring view interface data of the view module, and rendering and displaying the view interface data. And when the identity information is not matched with the white list, acquiring a view module corresponding to the last historical access view of the visitor as a view module to be displayed, and acquiring corresponding view interface data and performing rendering display. Therefore, whether the identity information of the visitor exists in the white list or not, different view modules and view interface data in the view modules can be displayed according to the identity information of different visitors, different views can be displayed for different visitors, the problem that in the prior art, all visitors are uniformly displayed is solved, the personalized program of the page is improved, and the user experience is improved.
Furthermore, the identity information can also have different identification information, and the different identification information corresponds to different view interface data, so that even if the same identity information exists, the different view interface data can be switched by switching the identification information, thereby displaying different views, further improving the personalized program of the page and improving the user experience.
In another embodiment of the present application, there is provided an electronic device including: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: when an access instruction which is initiated by an accessor and aims at a specified view in an application program is received, acquiring identity information of the accessor, and then matching the identity information with at least one preset white list; each white list comprises at least one white list identity information; and when the target white list identity information matched with the identity information exists, taking the view module corresponding to the white list containing the target white list identity information as a view module to be displayed, acquiring view interface data of the view module, and rendering and displaying the view interface data. The method and the device realize the display of different views for different visitors, avoid the problem that in the prior art, the views are displayed uniformly for all visitors, improve the personalized program of the page and improve the user experience.
In an alternative embodiment, there is provided an electronic device, as shown in fig. 10, an electronic device 10000 shown in fig. 10 includes: a processor 10001, and a memory 10003. The processor 10001 is coupled to the memory 10003, such as via a bus 10002. Optionally, the electronic device 10000 may further comprise a transceiver 10004. It should be noted that the transceiver 10004 is not limited to one in practical applications, and the structure of the electronic device 10000 is not limited to the embodiment of the present application.
The processor 10001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 10001 can also be a combination that performs a computing function, e.g., including one or more microprocessor combinations, combinations of DSPs and microprocessors, and the like.
The memory 10003 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 10003 is used for storing application program codes for executing the present application, and the processor 10001 controls the execution. The processor 10001 is configured to execute the application program code stored in the memory 10003 to implement any of the embodiments of the method described above.
Among them, electronic devices 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., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like.
Yet another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when run on a computer, enables the computer to perform the corresponding content in the aforementioned method embodiments. Compared with the prior art, when an access instruction aiming at a specified view in an application program and initiated by an accessor is received, the identity information of the accessor is obtained, and then the identity information is matched with at least one preset white list; each white list comprises at least one white list identity information; and when the target white list identity information matched with the identity information exists, taking the view module corresponding to the white list containing the target white list identity information as a view module to be displayed, acquiring view interface data of the view module, and rendering and displaying the view interface data. The method and the device realize the display of different views for different visitors, avoid the problem that in the prior art, the views are displayed uniformly for all visitors, improve the personalized program of the page and improve the user experience.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method for displaying a view, comprising:
when an access instruction which is initiated by an accessor and aims at a specified view in an application program is received, acquiring identity information of the accessor;
matching the identity information with at least one preset white list; each white list comprises at least one white list identity information;
when target white list identity information matched with the identity information exists, taking a view module corresponding to a white list containing the target white list identity information as a view module to be displayed;
and acquiring view interface data of the view module, and rendering and displaying the view interface data.
2. The method for displaying a view according to claim 1, before determining a view module to be displayed in the designated view based on at least one preset white list and the identity information, further comprising:
and acquiring the at least one white list and the view module corresponding to each white list.
3. The method for displaying the view according to claim 1 or 2, further comprising:
when the white list identity information matched with the identity information does not exist, acquiring at least one historical access view corresponding to the identity information;
and taking the view module of the last history access view in the at least one history access view as the view module to be displayed.
4. The method for displaying a view according to claim 1, wherein the view module includes at least one item of view interface data, the identity information further has at least one identification information, and each identification information has a corresponding view interface data;
the acquiring view interface data of the view module and rendering and displaying the view interface data comprises:
acquiring current first identification information of the identity information;
determining first view interface data corresponding to the first identification information;
rendering the first view interface data.
5. The method for displaying the view according to claim 1 or 4, further comprising:
when a switching instruction aiming at first identification information is received, extracting second identification information after switching from the switching instruction;
determining second view interface data corresponding to the second identification information;
rendering the second view interface data.
6. A device for displaying a view, comprising:
the receiving module is used for receiving an access instruction which is initiated by a visitor and aims at a specified view in an application program;
the acquisition module is used for acquiring the identity information of the visitor;
the matching module is used for matching the identity information with at least one preset white list; each white list comprises at least one white list identity information;
the determining module is used for taking a view module corresponding to the white list containing the target white list identity information as a view module to be displayed when the target white list identity information matched with the identity information exists;
and the processing module is used for acquiring the view interface data of the view module and rendering and displaying the view interface data.
7. The apparatus for displaying a view according to claim 6, wherein the obtaining module is further configured to:
before determining a view module to be displayed in the designated view based on at least one preset white list and the identity information, acquiring the at least one white list and the view module corresponding to each white list; wherein, each white list comprises at least one white list identity information.
8. The apparatus for displaying the view according to claim 6 or 7, wherein the obtaining module is further configured to:
when the white list identity information matched with the identity information does not exist, acquiring at least one historical access view corresponding to the identity information;
the determining module is further configured to use a view module of a last history access view in the at least one history access view as the view module to be displayed.
9. An electronic device, comprising:
a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is used for executing the view showing method of any one of the claims 1-5 by calling the operation instruction.
10. A computer-readable storage medium for storing computer instructions which, when executed on a computer, cause the computer to perform the method for presenting a view according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010733094.9A CN111752668A (en) | 2020-07-27 | 2020-07-27 | View display method and device, electronic equipment and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010733094.9A CN111752668A (en) | 2020-07-27 | 2020-07-27 | View display method and device, electronic equipment and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111752668A true CN111752668A (en) | 2020-10-09 |
Family
ID=72712053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010733094.9A Pending CN111752668A (en) | 2020-07-27 | 2020-07-27 | View display method and device, electronic equipment and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111752668A (en) |
-
2020
- 2020-07-27 CN CN202010733094.9A patent/CN111752668A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170277526A1 (en) | Software categorization method and electronic device | |
CN103051733B (en) | Data downloading method, terminal and system | |
US20170171329A1 (en) | Video recommendaton method and system, and server | |
EP2713272A1 (en) | Method, device and system for presenting augmented reality contents | |
CN113568699B (en) | Content display method, device, equipment and storage medium | |
CN109542878B (en) | List creation method and device | |
CN110609966B (en) | Page display method, device and equipment thereof | |
CN108549586B (en) | Information processing method and device | |
CN110652728B (en) | Game resource management method and device, electronic equipment and storage medium | |
CN108449255B (en) | Comment interaction method and equipment, client device and electronic equipment | |
CN107562432B (en) | Information processing method and related product | |
CN115967691A (en) | Message processing method, message processing device, electronic equipment, storage medium and program product | |
CN111309416B (en) | Information display method, device and equipment of application interface and readable medium | |
CN114374703B (en) | Cloud mobile phone information acquisition method, device, equipment and storage medium | |
CN111580808A (en) | Page generation method and device, computer equipment and storage medium | |
CN110188782B (en) | Image similarity determining method and device, electronic equipment and readable storage medium | |
CN108241515B (en) | Application shortcut establishing method and terminal | |
CN112182446A (en) | Page display method and device, terminal equipment and computer readable storage medium | |
US20170188214A1 (en) | Method and electronic device for sharing multimedia information | |
CN114417782A (en) | Display method and device and electronic equipment | |
CN106549860B (en) | Information acquisition method and device | |
CN116226499B (en) | Information query method and device and electronic equipment | |
CN107357481B (en) | Message display method and message display device | |
CN111752668A (en) | View display method and device, electronic equipment and computer-readable storage medium | |
CN114339404B (en) | Method and device for displaying screen protection wallpaper, electronic equipment and storage medium |
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 |