View display method and device, electronic equipment and computer readable storage medium
Patent Information
- Application Number
- CN202010733094.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-27
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2040-07-27
AI Technical Summary
但是,现有的应用程序中各种功能的位置在页面中都是预先确定的,每个用户看到的页面都是千篇一律的,个性化程度较低,用户体验较差
[0052] In this application, when an access instruction for a specified view in an application is received from a visitor, the visitor's identity information is obtained, and then the identity information is matched against at least one preset whitelist. Each whitelist contains at least one whitelisted identity information. When a target whitelisted identity information matching the identity information is found, the view module corresponding to the whitelist containing the target whitelisted identity information is selected as the view module to be displayed. The view interface data of the view module is then obtained and rendered. This achieves the display of different views for different visitors, avoiding the problem of displaying a uniform view to all visitors in existing technologies, improving page personalization, and enhancing user experience.
Smart Images

Figure CN111752668B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of application technology, and more specifically, to a method, apparatus, electronic device, and computer-readable storage medium for displaying a view. Background Technology
[0002] With the development of technology, applications are becoming more and more feature-rich, providing more and more convenience for people's lives.
[0003] Typically, applications have a variety of functions, allowing users to achieve different goals by using different functions. However, in existing applications, the positions of various functions on the page are predetermined, resulting in a monotonous page for each user, low personalization, and a poor user experience. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, and computer-readable storage medium for displaying views, which can solve the above-mentioned problems. The technical solution is as follows:
[0005] Firstly, a method for displaying a view is provided, which includes:
[0006] When an access instruction for a specified view in the application is received from a visitor, the visitor's identity information is obtained;
[0007] The identity information is matched with at least one preset whitelist; each whitelist contains at least one whitelisted identity information.
[0008] When there is a target whitelist identity information that matches the identity information, the view module corresponding to the whitelist containing the target whitelist identity information will be used as the view module to be displayed.
[0009] Obtain the view interface data of the view module and render and display the view interface data.
[0010] Preferably, before determining the view module to be displayed in the designated view based on at least one preset whitelist and the identity information, the method further includes:
[0011] Obtain at least one whitelist, and the corresponding view module for each whitelist.
[0012] Preferably, it further includes:
[0013] When no whitelist identity information matching the identity information exists, at least one historical access view corresponding to the identity information is obtained;
[0014] The view module of the last historical access view in the at least one historical access view is used as the view module to be displayed.
[0015] Preferably, the view module includes at least one view interface data, and the identity information also has at least one identification information, each of which has its own corresponding view interface data;
[0016] The step of obtaining the view interface data of the view module and rendering and displaying the view interface data includes:
[0017] Obtain the current first identification information of the identity information;
[0018] Determine the first view interface data corresponding to the first identification information;
[0019] Render and display the data from the first view interface.
[0020] Preferably, it further includes:
[0021] When a switching instruction for the first identification information is received, the second identification information after switching is extracted from the switching instruction;
[0022] Determine the second view interface data corresponding to the second identification information;
[0023] Render and display the data from the second view interface.
[0024] Secondly, a view display device is provided, the device comprising:
[0025] The receiving module is used to receive access instructions from visitors for a specified view in the application;
[0026] The acquisition module is used to acquire the visitor's identity information;
[0027] The matching module is used to match the identity information with at least one preset whitelist; each whitelist contains at least one whitelist identity information.
[0028] The determination module is used to select the view module corresponding to the whitelist containing the target whitelist identity information as the view module to be displayed when there is a target whitelist identity information that matches the identity information.
[0029] The processing module is used to obtain the view interface data of the view module and render and display the view interface data.
[0030] Preferably, the acquisition module is further configured to:
[0031] Before determining the view module to be displayed in the specified view based on at least one preset whitelist and the identity information, the at least one whitelist and the view module corresponding to each whitelist are obtained; wherein each whitelist contains at least one whitelist identity information.
[0032] Preferably, the acquisition module is further configured to:
[0033] The identity information is matched with the identity information in each whitelist.
[0034] The determining module is further configured to, when there is no whitelisted identity information matching the identity information, obtain at least one historical access view corresponding to the identity information, and use the view module of the last historical access view among the at least one historical access views as the view module to be displayed.
[0035] Preferably, the view module includes at least one view interface data, and the identity information also has at least one identification information, each of which has its own corresponding view interface data;
[0036] The processing module includes:
[0037] The identification information acquisition submodule is used to acquire the current first identification information of the identity information;
[0038] The view interface data determination submodule is used to determine the first view interface data corresponding to the first identification information;
[0039] The rendering submodule is used to render and display the data from the first view interface.
[0040] Preferably, it further includes:
[0041] The receiving module is also configured to receive a switching instruction for the first identification information;
[0042] The extraction module is used to extract the second identification information after the switch from the switching instruction;
[0043] The determining module is further configured to determine the second view interface data corresponding to the second identification information;
[0044] The processing module is also used to render and display the second view interface data.
[0045] Thirdly, an electronic device is provided, the electronic device comprising:
[0046] Processor, memory, and bus;
[0047] The bus is used to connect the processor and the memory;
[0048] The memory is used to store operation instructions;
[0049] The processor is configured to execute operations corresponding to the view display method shown in the first aspect of this application by invoking the operation instructions.
[0050] Fourthly, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method for displaying the view shown in the first aspect of this application.
[0051] The beneficial effects of the technical solution provided in this application are:
[0052] In this application, when an access instruction for a specified view in an application is received from a visitor, the visitor's identity information is obtained, and then the identity information is matched against at least one preset whitelist. Each whitelist contains at least one whitelisted identity information. When a target whitelisted identity information matching the identity information is found, the view module corresponding to the whitelist containing the target whitelisted identity information is selected as the view module to be displayed. The view interface data of the view module is then obtained and rendered. This achieves the display of different views for different visitors, avoiding the problem of displaying a uniform view to all visitors in existing technologies, improving page personalization, and enhancing user experience. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.
[0054] Figure 1 This is a schematic diagram illustrating an application scenario for implementing a view display method according to this application;
[0055] Figure 2 A flowchart illustrating a view display method provided in one embodiment of this application;
[0056] Figure 3 A flowchart illustrating a view display method according to another embodiment of this application;
[0057] Figure 4 This is a schematic diagram showing the effect of the view in this application. Figure 1 ;
[0058] Figure 5 This is a schematic diagram showing the effect of the view in this application. Figure 2 ;
[0059] Figure 6This is a schematic diagram of the editing page for view interface data in the view module of this application;
[0060] Figures 7A-7C This is a schematic diagram showing the effect of the view in this application. Figure 3 ;
[0061] Figures 8A-8B This is a schematic diagram showing the effect of the view in this application. Figure 4 ;
[0062] Figure 9 A schematic diagram of the structure of a view display device provided in another embodiment of this application;
[0063] Figure 10 This is a schematic diagram of the structure of an electronic device, provided as another embodiment of this application. Detailed Implementation
[0064] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting the invention.
[0065] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0066] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0067] The methods, apparatuses, electronic devices, and computer-readable storage media for displaying views provided in this application are intended to solve the aforementioned technical problems of the prior art.
[0068] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0069] This invention provides an application environment for view display, see [link to relevant documentation]. Figure 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 via a network. The first device 101 is the accessing device, and the second device 102 is the accessed device. The first device 101 can be a terminal, and the second device 102 can be a server. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. An application client can be installed on the terminal, and the application client interacts with the server through the terminal. The terminal and the server can be connected directly or indirectly via wired or wireless communication, which is not limited herein.
[0070] In the above application environment, a view display method can be executed, such as... Figure 2 As shown, the method includes:
[0071] Step S201: When an access instruction for a specified view in the application is received from a visitor, the visitor's identity information is obtained.
[0072] Specifically, an application can include at least one preset view, each with a corresponding view button. When a user clicks a view button, they initiate an access command to the view corresponding to that button, and the application can then display the corresponding view based on this access command. Of course, a default view can be set among multiple views, and this default view can be displayed when the application is launched.
[0073] Furthermore, among the multiple preset views, the view that needs to be displayed based on the user's identity information can be set as a designated view. When a user initiates an access command for a designated view, the user's identity information can be obtained.
[0074] Step S202: Match the identity information with at least one preset whitelist; each whitelist contains at least one whitelist identity information.
[0075] After obtaining the user's identity information, each whitelist, and the corresponding view module for each whitelist, the identity information can be matched with the preset whitelists.
[0076] Step S203: When there is target whitelist identity information that matches the identity information, the view module corresponding to the whitelist containing the target whitelist identity information is used as the view module to be displayed.
[0077] The user's identity information is matched with each whitelist identity information in each whitelist. If a matching target whitelist identity information is found, the whitelist containing that whitelist identity information is used as the target whitelist, and the view module corresponding to the target whitelist is used as the view module to be displayed in the specified view.
[0078] Step S204: Obtain the view interface data of the view module and render and display the view interface data.
[0079] Once the view module to be displayed is determined, the corresponding view interface data can be obtained and rendered. The view module includes at least one piece of view interface data, which can be the interface data of a functional interface.
[0080] In this embodiment of the invention, when an access instruction for a specified view in an application is received from a visitor, the visitor's identity information is obtained, and then the identity information is matched against at least one preset whitelist. Each whitelist contains at least one whitelist identity information. When a target whitelist identity information matching the identity information is found, the view module corresponding to the whitelist containing the target whitelist identity information is selected as the view module to be displayed. The view interface data of the view module is then obtained and rendered. This achieves the display of different views for different visitors, avoiding the problem of displaying a uniform view to all visitors in the prior art, improving the personalization of the page and enhancing the user experience.
[0081] In another embodiment, a view display method is provided, such as Figure 3 As shown, the method includes:
[0082] Step S301: When an access instruction for a specified view in the application is received from a visitor, the visitor's identity information is obtained.
[0083] Specifically, an application can include at least one preset view, each with a corresponding view button. When a user clicks a view button, they initiate an access command to the view corresponding to that button, and the application can then display the corresponding view based on this access command. Of course, a default view can be set among multiple views, and this default view can be displayed when the application is launched.
[0084] For example, an application includes three preset views A, B, and C. View A corresponds to view button 401, view B corresponds to view button 402, and view C corresponds to view button 403. A is the default view, and B is a specified view. When a user launches the application, view A is displayed, along with the various view buttons for the user to switch between. When the user clicks button 402, view B is displayed. Figure 4 As shown.
[0085] Furthermore, among the multiple preset views, the view that needs to be displayed based on the user's identity information can be set as a designated view. When a user initiates an access command for a designated view, the user's identity information can be obtained.
[0086] For example, view B in A, B, and C needs to be displayed based on the user's identity information. Therefore, when the user clicks the view button 402, the application can obtain the user's identity information.
[0087] It should be noted that there can be one or more specified views, and the settings can be made according to actual needs in practical applications. This embodiment of the invention does not impose any restrictions on this.
[0088] Step S302: Obtain at least one whitelist and the corresponding view module for each whitelist; wherein each whitelist contains at least one whitelist identity information.
[0089] Specifically, an application can set at least one whitelist, each containing the identity information of at least one user, referred to as whitelist identity information. Furthermore, each whitelist has a corresponding view module. After obtaining the user's identity information, each whitelist and its corresponding view module can be retrieved.
[0090] For example, whitelist 1 corresponds to view module 1, view module 2, view module 3 and view module 4, whitelist 2 corresponds to view module 1, view module 2, view module 3 and view module 5, and whitelist 3 corresponds to view module 6.
[0091] It should be noted that each whitelist can correspond to one view module or multiple view modules. In practical applications, the settings can be configured according to actual needs, and this embodiment of the invention does not impose any restrictions on this.
[0092] Step S303: Match the identity information with at least one preset whitelist; each whitelist contains at least one whitelist identity information.
[0093] After obtaining the user's identity information, each whitelist, and the corresponding view module for each whitelist, the identity information can be matched with the preset whitelists. If a match is found, the view module corresponding to the matched whitelist will be used as the view module to be displayed in the specified view; if no match is found, the corresponding view module can be determined based on the identity information.
[0094] Step S304: When there is target whitelist identity information that matches the identity information, the view module corresponding to the whitelist containing the target whitelist identity information is used as the view module to be displayed.
[0095] Specifically, the user's identity information is matched with each whitelist identity information in each whitelist. If a matching target whitelist identity information exists, the whitelist containing that whitelist identity information is taken as the target whitelist, and the view module corresponding to the target whitelist is taken as the view module to be displayed in the specified view.
[0096] For example, if whitelist 2 is determined as the target whitelist through matching, then view module 1, view module 2, view module 3 and view module 5 corresponding to whitelist 2 can be used as the view modules to be displayed in the specified view.
[0097] In a preferred embodiment of the present invention, it further includes:
[0098] When no whitelisted identity information matches the identity information, obtain at least one historical access view corresponding to the identity information;
[0099] Use the view module of the last historical access view in at least one historical access view as the view module to be displayed.
[0100] Specifically, the user's identity information is matched against each whitelisted identity. If no matching whitelisted identity is found, all historical access views corresponding to that identity are retrieved, and the view module of the last historical access view is selected as the view module to be displayed. The order of the historical access views can be determined based on the access time.
[0101] For example, if a user's identity information fails to match any of the whitelists, the corresponding historical access views B and C are obtained. Then, based on the access time of B and C, it is determined that the user accessed C first and then B. Therefore, B is the last historical access view, and the view module corresponding to B is used as the view module to be displayed.
[0102] It should be noted that if a user is using the application for the first time and their identity information is neither in the whitelist nor in the user's historical access view, then the default view can be displayed after the user launches the application.
[0103] Step S305: Obtain the view interface data of the view module and render and display the view interface data;
[0104] Once the view module to be displayed is determined, the corresponding view interface data can be obtained and rendered. The view module includes at least one piece of view interface data, which can be the interface data of a functional interface.
[0105] In practical applications, when a user clicks on the view interface data in the view module, they can be redirected to the view page of the corresponding function. For example, in... Figure 5 The view shown includes view module 1, view module 2, view module 3 and view module 4, each of which has its own corresponding view interface data.
[0106] In this embodiment of the invention, the user can also edit the view interface data displayed in the view module. For example, in Figure 5 In the view shown, view module 3 has an edit button. When the user clicks the edit button, the following will be displayed: Figure 6 The editing page shown allows users to set the view interface data displayed in view module 3.
[0107] Furthermore, the identity information also includes at least one identifier, and each identifier has its own corresponding view interface data. In other words, for the same identity information, different identifiers will display different view interface data in the view.
[0108] For example, such as Figure 7A The view shown includes the user's identity information (Zhang San), identification information (Department 1), various view modules, and the view interface data corresponding to each view module; while in... Figure 7B If the identification information of the same identity information changes (to Department Two) in the view shown, then the view interface data corresponding to each view module will also change.
[0109] In a preferred embodiment of the present invention, obtaining the view interface data of the view module and rendering and displaying the view interface data includes:
[0110] Obtain the current first identifier information;
[0111] Determine the first view interface data corresponding to the first identifier information;
[0112] Render and display the first view interface data.
[0113] Specifically, after determining the view module to be displayed, the current first identifier information corresponding to the identity information can be obtained, thereby determining the first view interface data corresponding to the first identifier information, and then rendering and displaying the first view interface data can display the corresponding view.
[0114] Step S306: When a switching instruction for the first identification information is received, the second identification information after switching is extracted from the switching instruction;
[0115] Specifically, within the current view, users can switch view interface data by toggling identifier information. For example, in... Figure 7A In the view shown, when a user clicks on an identifier, a list of identifiers can be displayed, such as... Figure 7C As shown, when a user clicks on any other identifier in the identifier list (other than the current first identifier), a switching command is initiated. After receiving the switching command, the application extracts the second identifier after the switch from the switching command, which is the target identifier that the user wants to switch to, such as "Department Two".
[0116] Step S307: Determine the second view interface data corresponding to the second identification information;
[0117] After extracting the switched second identifier information, the second view interface data in each view module corresponding to the second identifier information can be determined.
[0118] Step S308: Render and display the second view interface data.
[0119] Once the second view interface data is determined, it can be rendered and displayed. For example, when the user clicks... Figure 7C After "Department Two" in the list of identification information, the following will be displayed: Figure 7B The view shown.
[0120] In practical applications, this application can display different views based on different identity information. For example, if user A is a presenter, then the view seen by user A is as follows: Figure 8A As shown, if User B is a regular employee, then the view seen by User B is as follows: Figure 7A As shown, if user C is the leader, then the view seen by C is as follows: Figure 8B As shown.
[0121] In this embodiment of the invention, when an access instruction for a specified view in an application is received from a visitor, the visitor's identity information is obtained, and then the identity information is matched against at least one preset whitelist. Each whitelist contains at least one whitelisted identity information. When a target whitelisted identity information matching the identity information exists, the view module corresponding to the whitelist containing the target whitelisted identity information is selected as the view module to be displayed. The view interface data of the view module is then obtained and rendered. When no match is found between the identity information and the whitelist, the view module corresponding to the visitor's last historical access view is selected as the view module to be displayed. The corresponding view interface data is then obtained and rendered. This way, regardless of whether the visitor's identity information is in the whitelist, different view modules and view interface data can be displayed based on the visitor's identity information. This achieves the display of different views for different visitors, avoiding the problem of displaying a uniform view to all visitors in the prior art, improving page personalization and enhancing user experience.
[0122] Furthermore, identity information can also have different identifiers, and different identifiers correspond to different view interface data. In this way, even with the same identity information, different view interface data can be switched by changing the identifiers, thereby displaying different views, which further improves the personalization of the page and enhances the user experience.
[0123] Figure 9 A schematic diagram of the structure of a view display device provided in another embodiment of this application, as shown below. Figure 9 As shown, the apparatus of this embodiment may include:
[0124] The receiving module 901 is used to receive access instructions initiated by the visitor for a specified view in the application;
[0125] Module 902 is used to obtain the visitor's identity information;
[0126] The matching module 903 is used to match identity information with at least one preset whitelist; each whitelist contains at least one whitelist identity information.
[0127] The determination module 904 is used to select the view module corresponding to the whitelist containing the target whitelist identity information as the view module to be displayed when there is target whitelist identity information that matches the identity information.
[0128] Processing module 905 is used to obtain view interface data from the view module and render and display the view interface data.
[0129] In a preferred embodiment of the present invention, the acquisition module is further configured to:
[0130] Before determining the view module to be displayed in the specified view based on at least one preset whitelist and identity information, at least one whitelist and the view module corresponding to each whitelist are obtained; wherein each whitelist contains at least one whitelist identity information.
[0131] In a preferred embodiment of the present invention, the acquisition module is further configured to:
[0132] The identity information is matched against the identity information in each whitelist.
[0133] The determination module is also used to obtain at least one historical access view corresponding to the identity information when there is no whitelist identity information that matches the identity information, and to use the view module of the last historical access view in the at least one historical access view as the view module to be displayed.
[0134] In a preferred embodiment of the present invention, the view module includes at least one view interface data, and the identity information also has at least one identification information, each of which has its own corresponding view interface data.
[0135] The processing module includes:
[0136] The identification information acquisition submodule is used to acquire the current first identification information of the identity information;
[0137] The view interface data determination submodule is used to determine the first view interface data corresponding to the first identification information;
[0138] The rendering submodule is used to render and display the first view interface data.
[0139] In a preferred embodiment of the present invention, it further includes:
[0140] The receiving module is also used to receive switching instructions for the first identification information;
[0141] The extraction module is used to extract the second identification information after switching from the switching instruction;
[0142] The determination module is also used to determine the second view interface data corresponding to the second identification information;
[0143] The processing module is also used to render and display the second view interface data.
[0144] The view display device in this embodiment can execute the view display methods shown in the first and second embodiments of this application. The implementation principles are similar and will not be described again here.
[0145] In this embodiment of the invention, when an access instruction for a specified view in an application is received from a visitor, the visitor's identity information is obtained, and then the identity information is matched against at least one preset whitelist. Each whitelist contains at least one whitelisted identity information. When a target whitelisted identity information matching the identity information exists, the view module corresponding to the whitelist containing the target whitelisted identity information is selected as the view module to be displayed. The view interface data of the view module is then obtained and rendered. When no match is found between the identity information and the whitelist, the view module corresponding to the visitor's last historical access view is selected as the view module to be displayed. The corresponding view interface data is then obtained and rendered. This way, regardless of whether the visitor's identity information is in the whitelist, different view modules and view interface data can be displayed based on the visitor's identity information. This achieves the display of different views for different visitors, avoiding the problem of displaying a uniform view to all visitors in the prior art, improving page personalization and enhancing user experience.
[0146] Furthermore, identity information can also have different identifiers, and different identifiers correspond to different view interface data. In this way, even with the same identity information, different view interface data can be switched by changing the identifiers, thereby displaying different views, which further improves the personalization of the page and enhances the user experience.
[0147] Another embodiment of this application provides an electronic device, comprising: a memory and a processor; at least one program stored in the memory, which, when executed by the processor, can achieve the following compared to the prior art: when receiving an access instruction initiated by a visitor for a specified view in an application, the device obtains the visitor's identity information and then matches the identity information with at least one preset whitelist; each whitelist contains at least one whitelist identity information; when a target whitelist identity information matching the identity information exists, the view module corresponding to the whitelist containing the target whitelist identity information is selected as the view module to be displayed, and then the view interface data of the view module is obtained and rendered. This achieves the display of different views for different visitors, avoiding the problem of displaying the same view to all visitors in the prior art, improving the personalization of the page and enhancing the user experience.
[0148] In one alternative embodiment, an electronic device is provided, such as Figure 10 As shown, Figure 10The illustrated electronic device 10000 includes a processor 10001 and a memory 10003. The processor 10001 and the memory 10003 are connected, for example, via a bus 10002. Optionally, the electronic device 10000 may further include a transceiver 10004. It should be noted that in practical applications, the transceiver 10004 is not limited to one type, and the structure of this electronic device 10000 does not constitute a limitation on the embodiments of this application.
[0149] Processor 10001 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 10001 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0150] Bus 10002 may include a path for transmitting information between the aforementioned components. Bus 10002 may be a PCI bus or an EISA bus, etc. Bus 10002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0151] The memory 10003 may be a ROM or other type of static storage device capable of storing static information and instructions, RAM or other type of dynamic storage device capable of storing information and instructions, or it may be an EEPROM, CD-ROM or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0152] The memory 10003 is used to store application code that executes the scheme of this application, and its execution is controlled by the processor 10001. The processor 10001 is used to execute the application code stored in the memory 10003 to implement the content shown in any of the foregoing method embodiments.
[0153] Among them, electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers.
[0154] Another embodiment of this application provides a computer-readable storage medium storing a computer program that, when run on a computer, enables the computer to execute the corresponding content in the aforementioned method embodiments. Compared with the prior art, when an access instruction for a specified view in an application is received from a visitor, the visitor's identity information is obtained, and then the identity information is matched with at least one preset whitelist; each whitelist contains at least one whitelist identity information; when a target whitelist identity information matching the identity information exists, the view module corresponding to the whitelist containing the target whitelist identity information is selected as the view module to be displayed, and then the view interface data of the view module is obtained and rendered. This achieves the display of different views for different visitors, avoiding the problem of displaying a uniform view to all visitors in the prior art, improving the personalization of the page and enhancing the user experience.
[0155] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0156] The above description is only a partial embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for displaying a view, characterized in that, include: In response to receiving a trigger operation from a visitor on a view button of a specified view in the application, the identity information of the visitor is obtained; The identity information is matched against at least one preset whitelist; each whitelist corresponds to at least one view module. When a target whitelist identity information that matches the identity information exists, the view modules corresponding to the whitelist containing the target whitelist identity information will be used as the view modules to be displayed. Obtain the current first identifier information of the identity information. For each view module to be displayed, based on the current first identifier information of the identity information and the first relationship corresponding to the view module, determine the first view interface data corresponding to the view module, render and display the first view interface data of each view module. The identifier information is the department to which the visitor belongs, and the first relationship is the correspondence between the identifier information and the view interface data. The view interface data is used to redirect to the corresponding view page when a trigger operation is received. The view interface data includes the interface data of the function interface. In response to a trigger operation on the view interface data in the view module, the user is redirected to the view page of the corresponding function. When the view module has an edit button, in response to the triggering operation of the edit button of the view module, the corresponding edit page of the view module is displayed so that the visitor can set the view interface data displayed in the view module; In response to a trigger operation on the first identification information, an identification information list is displayed, the identification information list including multiple identification information of the identity information; In response to a trigger operation on any other identifier in the identifier information list, for each view module to be displayed, the second view interface data corresponding to the view module is determined based on the triggered identifier information and the first relationship corresponding to the view module, and the second view interface data of each view module is rendered and displayed; wherein, different identifier information of the same identity information corresponds to different view interface data in the same view module.
2. The view display method according to claim 1, characterized in that, Also includes: When there is no whitelist identity information that matches the identity information, at least one historical access view corresponding to the identity information is obtained, and the view module of the last historical access view in the at least one historical access view is used as the view module to be displayed. Alternatively, the preset view may include a default view, which may be used as the view module to be displayed when the visitor is using the application for the first time.
3. The view display method according to claim 1, characterized in that, Also includes: When a switching instruction for the first identification information is received, the second identification information after switching is extracted from the switching instruction; Determine the second view interface data corresponding to the second identification information; Render and display the data from the second view interface.
4. A view display device, characterized in that, include: The acquisition module, in response to receiving a trigger operation from a visitor on a view button of a specified view in the application, acquires the visitor's identity information; A matching module is used to match the identity information with at least one preset whitelist; each whitelist corresponds to at least one view module; The determination module is used to select, when there is target whitelist identity information that matches the identity information, the view modules corresponding to the whitelist containing the target whitelist identity information as the view modules to be displayed. The processing module is used to obtain the current first identification information of the identity information. For each view module to be displayed, based on the current first identification information of the identity information and the first relationship corresponding to the view module, the first view interface data corresponding to the view module is determined, and the first view interface data of each view module is rendered and displayed. The identification information is the department to which the visitor belongs, and the first relationship is the correspondence between the identification information and the view interface data. In response to a trigger operation on the first identification information, an identification information list is displayed, the identification information list including multiple identification information of the identity information; In response to a trigger operation on any other identifier in the identifier information list, for each view module to be displayed, second view interface data corresponding to the view module is determined based on the triggered identifier information and the first relationship corresponding to the view module to be displayed, and the second view interface data of each view module is rendered and displayed; wherein, different identifier information of the same identity information corresponds to different view interface data in the same view module; the view interface data is used to jump to the corresponding view page when a trigger operation is received, and the view interface data includes interface data of functional interfaces; The processing module is also used for: In response to a trigger operation on the view interface data in the view module, the user is redirected to the view page of the corresponding function. When the view module has an edit button, in response to the triggering operation of the edit button of the view module, the corresponding edit page of the view module is displayed so that the visitor can set the view interface data displayed in the view module.
5. The view display device according to claim 4, characterized in that, The acquisition module is also used for: When there is no whitelist identity information that matches the identity information, at least one historical access view corresponding to the identity information is obtained. The determining module is further configured to use the view module of the last historical access view among the at least one historical access views as the view module to be displayed. Alternatively, the preset view may include a default view, and the determining module may further be used to select the default view as the view module to be displayed when the visitor is using the application for the first time.
6. The view display device according to claim 4, characterized in that, Also includes: The receiving module is used to receive the switching instruction for the first identification information; The extraction module is used to extract the second identification information after the switch from the switching instruction; The determining module is further configured to determine the second view interface data corresponding to the second identification information; The processing module is also used to render and display the second view interface data.
7. An electronic device, characterized in that, It includes: Processor, memory, and bus; The bus is used to connect the processor and the memory; The memory is used to store operation instructions; The processor is configured to execute the view display method according to any one of claims 1-3 by invoking the operation instructions.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store computer instructions that, when executed on a computer, enable the computer to perform the view display method according to any one of claims 1-3.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the view display method according to any one of claims 1-3.
Citation Information
Patent Citations
Android based single-activity view switching technology
CN103970526A
Geographic position information-based data access control method and system
CN107066889A
Page view rendering method, device and equipment and readable storage medium
CN111046309A