Application home page layout configuration method, device, electronic device and storage medium
By modularly processing the application functions and user data classification processing, and correlation analysis, the application homepage layout classification configuration for different user groups is realized, solving the problem of rigid homepage layout in the existing technology and improving the user experience.
Patent Information
- Application Number
- CN202011622479.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2040-12-30
AI Technical Summary
The homepage layout and configuration of existing applications is rigid and cannot be classified and configured according to different groups of users, resulting in poor user experience.
By obtaining application functions for modular processing, obtaining user data for classification processing, and calculating and analyzing the correlation between user identification and functional component identification, the preset control layer displays the set of user identification components, realizing the homepage layout classification configuration for different user groups.
It realizes personalized application homepage layout configuration according to different user groups, improving user experience and application flexibility.
Smart Images

Figure CN112631589B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software development technology, and in particular to a method, device, electronic device and computer-readable storage medium for configuring the layout of an application homepage. Background Art
[0002] With the advent of the smart era, the design of the application homepage is crucial to the application itself. The homepage design layout clearly displays the core functions of the product and is the main source of creating a good user experience for users.
[0003] However, the current home page layout of applications is rigid and cannot be configured according to different user groups. Summary of the invention
[0004] The present invention provides a method, device, electronic device and computer-readable storage medium for configuring the layout of an application home page, the main purpose of which is to classify and configure the layout of the application home page for different user groups.
[0005] To achieve the above purpose, the present invention provides a method for configuring the layout of an application homepage, comprising:
[0006] Acquire application functions, and modularize the application functions to obtain a set of functional component identifiers;
[0007] Acquire a user data set, and classify the user data in the user data set according to the user identifier of each piece of user data in the user data set to obtain a user identifier set and an identified user data set;
[0008] Calculating and analyzing the correlation between each user identification in the user identification set and the functional component identification set to obtain a user identification component set corresponding to each user identification;
[0009] The user identification component set is displayed on a preset application homepage of a user in a corresponding identification user data set by using a preset control layer.
[0010] Optionally, obtaining application functions and performing modular processing on the application functions to obtain a set of functional component identifiers includes:
[0011] Extracting and encapsulating the application program functions to obtain a functional component set;
[0012] Naming each functional component in the functional component set using a preset naming rule to obtain a component identifier of each functional component;
[0013] The component identifiers of all functional components and each functional component in the functional component set are collected to obtain the functional component identifier set.
[0014] Optionally, classifying the user data in the user data set according to the user identifier of each piece of user data in the user data set to obtain a user identifier set and an identified user data set includes:
[0015] Aggregating user data with the same user identifier to obtain the identified user data set;
[0016] The user identification of each piece of user data in the user data set is aggregated, and duplicate data is deleted from the aggregated user identifications to obtain the user identification set.
[0017] Optionally, the calculating and analyzing the correlation between each user identification in the user identification set and the functional component identification set to obtain the user identification component set corresponding to each user identification includes:
[0018] Convert each user identification in the user identification set into a user identification vector;
[0019] Convert each functional component identification in the functional component identification set into a component identification vector to obtain a component identification vector set;
[0020] Calculating the correlation value between the user identification vector and each component identification vector in the component identification vector set to obtain a correlation identification set corresponding to the user identification vector;
[0021] sorting the relevance values in the relevance identifier set;
[0022] Determine the display position order and number of preset application homepage components, and select the relevance value corresponding to the order and number to obtain a target relevance value set;
[0023] The user identification component set is obtained according to the target relevance value set.
[0024] Optionally, converting each functional component identifier in the functional component identifier set into a component identifier vector to obtain a component identifier vector set includes:
[0025] Get the dimension window of the preset size;
[0026] Input each functional component identifier in the functional component identifier set into the dimension window to generate a dimension component identifier;
[0027] Encoding the dimension component identifier using a preset encoding algorithm to generate a component identifier vector;
[0028] The generated component identification vectors are aggregated to obtain the component identification vector set.
[0029] Optionally, obtaining the user identification component set according to the target relevance value set includes:
[0030] Summarizing the component identification vectors corresponding to each relevance value in the target relevance value set to obtain a user identification component vector set;
[0031] Summarizing the functional components corresponding to each component identification vector in the user identification component vector set to obtain a user functional component set;
[0032] The functional components in the user functional component set are sorted and marked according to the corresponding relevance values to obtain a user identification component set.
[0033] Optionally, the using a preset control layer to display the user identification component set on an application homepage corresponding to the user in the identification user data set includes:
[0034] According to the preset life cycle of the application homepage, the user identification component set is refreshed using the preset control layer.
[0035] In order to solve the above problem, the present invention also provides a device for configuring the layout of an application homepage, the device comprising:
[0036] A function encapsulation module is used to obtain application functions and modularize the application functions to obtain a function component identification set;
[0037] A user classification module, used to obtain a user data set, classify the user data in the user data set according to the user identifier of each piece of user data in the user data set, and obtain a user identifier set and an identified user data set;
[0038] A component association module, used to calculate and analyze the correlation between each user identification in the user identification set and the functional component identification set, and obtain a user identification component set corresponding to each user identification;
[0039] The home page configuration module is used to display the user identification component set on the preset application home page of the user in the corresponding identification user data set by using the preset control layer.
[0040] Optionally, the function encapsulation module obtains application functions, and performs modular processing on the application functions to obtain a function component identification set, including:
[0041] Extracting and encapsulating the application program functions to obtain a functional component set;
[0042] Naming each functional component in the functional component set using a preset naming rule to obtain a component identifier of each functional component;
[0043] The component identifiers of all functional components and each functional component in the functional component set are collected to obtain the functional component identifier set.
[0044] Optionally, the user classification module classifies the user data in the user data set according to the user identifier of each piece of user data in the user data set to obtain a user identifier set and an identified user data set, including:
[0045] Aggregating user data with the same user identifier to obtain the identified user data set;
[0046] The user identification of each piece of user data in the user data set is aggregated, and duplicate data is deleted from the aggregated user identifications to obtain the user identification set.
[0047] Optionally, the component association module calculates and analyzes the correlation between each user identification in the user identification set and the functional component identification set to obtain a user identification component set corresponding to each user identification, including:
[0048] Convert each user identification in the user identification set into a user identification vector;
[0049] Convert each functional component identification in the functional component identification set into a component identification vector to obtain a component identification vector set;
[0050] Calculating the correlation value between the user identification vector and each component identification vector in the component identification vector set to obtain a correlation identification set corresponding to the user identification vector;
[0051] sorting the relevance values in the relevance identifier set;
[0052] Determine the display position order and number of preset application homepage components, and select the relevance value corresponding to the order and number to obtain a target relevance value set;
[0053] The user identification component set is obtained according to the target relevance value set.
[0054] Optionally, the component association module converts each functional component identifier in the functional component identifier set into a component identifier vector to obtain a component identifier vector set, including:
[0055] Get the dimension window of the preset size;
[0056] Input each functional component identifier in the functional component identifier set into the dimension window to generate a dimension component identifier;
[0057] Encoding the dimension component identifier using a preset encoding algorithm to generate a component identifier vector;
[0058] The generated component identification vectors are aggregated to obtain the component identification vector set.
[0059] Optionally, the component association module obtains the user identification component set according to the target relevance value set, including:
[0060] Summarizing the component identification vectors corresponding to each relevance value in the target relevance value set to obtain a user identification component vector set;
[0061] Summarizing the functional components corresponding to each component identification vector in the user identification component vector set to obtain a user functional component set;
[0062] The functional components in the user functional component set are sorted and marked according to the corresponding relevance values to obtain a user identification component set.
[0063] Optionally, the homepage configuration module uses a preset control layer to display the user identification component set on the application homepage of the user in the corresponding identification user data set, and further includes:
[0064] According to the preset life cycle of the application homepage, the user identification component set is refreshed using the preset control layer.
[0065] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0066] a memory storing at least one instruction; and
[0067] The processor executes the instructions stored in the memory to implement the above-mentioned application homepage layout configuration method.
[0068] In order to solve the above problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, the data storage area stores data created according to the use of the blockchain node, the program storage area stores a computer program, and the computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the above-mentioned application homepage layout configuration method.
[0069] The embodiment of the present invention modularizes the application functions to make the application functions modular and identifies the functional components to facilitate better migration and application. The user data is classified according to the user identifier of each user data in the user data set to divide the users into different groups, which is convenient for the classification configuration of subsequent applications. The correlation between each user identifier in the user identifier set and the functional component identifier set is calculated and analyzed, and the most suitable functional component is selected for the user group of each user identifier. The user identifier component set is updated with the application homepage of the user in the corresponding user data set using the preset control layer, and the functional components suitable for the user group of each user identifier are configured on the application homepage of the corresponding user, so as to realize the classification configuration of the application homepage layout for different user groups. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A schematic diagram of a flow chart of a method for configuring an application homepage layout provided by an embodiment of the present invention;
[0071] Figure 2 A schematic diagram of a module of an application homepage layout configuration device provided by an embodiment of the present invention;
[0072] Figure 3 A schematic diagram of the internal structure of an electronic device for implementing a method for configuring an application homepage layout provided by an embodiment of the present invention;
[0073] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0074] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0075] The present invention provides a method for configuring the layout of an application homepage. Figure 1 FIG. 1 is a flow chart of a method for configuring the layout of the homepage of an application provided by an embodiment of the present invention. The method can be executed by a device, and the device can be implemented by software and / or hardware.
[0076] In this embodiment, the application home page layout configuration method includes:
[0077] S1. Obtain application functions, and modularize the application functions to obtain a set of functional component identifiers.
[0078] The application functions in the embodiment of the present invention include basic functions and interactive functions of the application, such as basic functions of the application to add, delete, modify and check data and interactive functions of the application to display and analyze data. The application functions can be obtained from a specific application background.
[0079] In detail, in order to better migrate and apply the application functions, the embodiment of the present invention extracts and encapsulates the application functions to obtain a functional component set, and the functional components in the functional component set are independent of each other. Preferably, the embodiment of the present invention uses the servlet class of the Java language to extract and encapsulate the application functions.
[0080] Furthermore, the embodiment of the present invention utilizes a preset naming rule to name each functional component of the functional component set to obtain a component identifier of each functional component, and summarizes the component identifiers of all functional components and each functional component in the functional component set to obtain the functional component identifier set, and the functional components and the functional component identifiers are one-to-one corresponding. Preferably, the naming rule is to name according to the functional type of the functional component. The embodiment of the present invention takes an order management application as an example to illustrate that the functional type of a functional component of the coding management type is coding management, and the functional component is named Coding management.
[0081] S2. Obtain a user data set, and classify the user data in the user data set according to the user identifier of each piece of user data in the user data set to obtain a user identifier set and an identified user data set.
[0082] In the embodiment of the present invention, the user data set is a collection of registered user data of the application, and the user data can be obtained from the background database of the application.
[0083] Preferably, in the embodiment of the present invention, the registered user data includes a user ID, which is a personal ID selected by the user when registering the application, such as "student", "teacher", "engineer" and the like.
[0084] Furthermore, in another embodiment of the present invention, when the application registration page does not have a personal identification option and the registered user data does not contain a user identification, a pre-built user identification recognition model is used to perform feature extraction on the user data to obtain the user identification corresponding to the user data. Preferably, a convolutional neural network model is used to build a user identification recognition model, historical user data is used as a training set, and historical user data marked with user identification is used as a label set to train the convolutional neural network model to obtain the user identification recognition model.
[0085] Furthermore, in order to facilitate the management of user data, the embodiment of the present invention classifies the user data according to the user identifier of each piece of user data in the user data set, including:
[0086] S21. Aggregate user data with the same user identification to obtain the identified user data set.
[0087] In an embodiment of the present invention, user data with the same user identifier are aggregated, and the user data with the same user identifier is user data with the same user identifier, for example: user data with the user data all identified as "student" is user data with the same user identifier, and user data with the user data all identified as "teacher" is also user data with the same user identifier.
[0088] In another embodiment of the present invention, in order to protect the security of user data, the identification user data set can be stored in a blockchain.
[0089] S22: Summarize the user identification of each piece of user data in the user data set, and perform deduplication processing on the summarized user identifications to obtain the user identification set.
[0090] In the embodiment of the present invention, different user data may correspond to the same user identification. In order to ensure the uniqueness of the user identification, deduplication processing is performed on the aggregated user identification to obtain the user identification set.
[0091] S3. Calculate and analyze the correlation between each user identification in the user identification set and the functional component identification set to obtain a user identification component set corresponding to each user identification.
[0092] In detail, the embodiment of the present invention converts each user identification in the user identification set into a user identification vector; and converts each functional component identification in the functional component identification set into a component identification vector to obtain a component identification vector set.
[0093] Preferably, in the embodiment of the present invention, a pre-built word vector dictionary is used to convert the user identification into a user identification vector.
[0094] Furthermore, a dimensional window of a preset size is obtained; each functional component identifier in the functional component identifier set is input into the dimensional window to generate a dimensional component identifier; the dimensional component identifier is encoded using a preset encoding algorithm to generate a component identifier vector, and the generated component identifier vectors are summarized to obtain a component identifier vector set.
[0095] For example, the dimensional window is a dimensional window of k*k, where k is a positive integer greater than or equal to 1.
[0096] Preferably, in this embodiment, the preset encoding algorithm may be a Huffman encoding algorithm.
[0097] Furthermore, the correlation value between the user identification vector and each component identification vector in the component identification vector set is calculated to obtain a correlation identification set corresponding to the user identification vector, and the correlation values in the correlation identification set are sorted.
[0098] In detail, the correlation value may be calculated using the following formula:
[0099]
[0100] Among them, x i is the component identification vector, i is a positive integer, y is the user identification vector, sim(x i ,) is the correlation value between the component identification vector and the user representation vector.
[0101] Furthermore, since the preset application homepage has different component display positions reserved, in order to accurately display subsequent components, an embodiment of the present invention determines the order and number of component display positions of the preset application homepage, selects the correlation values corresponding to the order and number to obtain a target correlation value set, and obtains the user identification component set based on the target correlation value set.
[0102] Further, obtaining the user identification component set according to the target relevance value set includes:
[0103] S31, summarizing the component identification vectors corresponding to each correlation value in the target correlation value set to obtain a user identification component vector set;
[0104] In an embodiment of the present invention, the correlation values in the target correlation value set are uniquely corresponding to the corresponding component identification vectors. For example, the correlation values in the target correlation value set include three correlation values: 0.1, 0.2, and 0.3; the component identification vector corresponding to the correlation value 0.1 is a, the component identification vector corresponding to the correlation value 0.2 is b, and the component identification vector corresponding to the correlation value 0.3 is c; then there are a total of three component identification vectors a, b, and c in the user identification component vector set.
[0105] S32, summarizing the functional components corresponding to each component identification vector in the user identification component vector set to obtain a user functional component set;
[0106] In an embodiment of the present invention, the component identification vector and the corresponding functional component have a unique correspondence, and one component identification vector can only correspond to one functional component. For example, there are three component identification vectors a, b, and c in the user identification component vector set. The functional component corresponding to component identification vector a is functional component X, the functional component corresponding to component identification vector b is functional component Y, and the functional component corresponding to component identification vector c is functional component Z. Then there are three functional components X, Y, and Z in the user functional component set.
[0107] S33: Sort and mark the functional components in the user functional component set according to the corresponding relevance values to obtain a user identification component set.
[0108] In an embodiment of the present invention, in order to accurately display subsequent components, the functional components in the user functional component set are sorted and marked according to the corresponding relevance values. For example, the target relevance value set includes three relevance values of 0.1, 0.2, and 0.3, which are sorted in ascending order; the component identification vector corresponding to the relevance value 0.1 is a, the component identification vector corresponding to the relevance value 0.2 is b, and the component identification vector corresponding to the relevance value 0.3 is c; the functional component corresponding to the component identification vector a is the functional component X, the functional component corresponding to the component identification vector b is the functional component Y, and the functional component corresponding to the component identification vector c is the functional component Z; the relevance value corresponding to the functional component X is 0.1, which is ranked No. 1 in the target relevance value set, so the functional component X is marked No. 1; the relevance value corresponding to the functional component Y is 0.2, which is ranked No. 2 in the target relevance value set, so the functional component Y is marked No. 2; the relevance value corresponding to the functional component Z is 0.3, which is ranked No. 3 in the target relevance value set, so the functional component Z is marked No. 3.
[0109] S4. Using a preset control layer, the user identification component set is displayed on the application homepage of the user in the corresponding identification user data set.
[0110] The control layer in the embodiment of the present invention is responsible for the application control unit for application view display and data reading, for example: the Controller layer in a Java program.
[0111] Preferably, in order to configure the user's application homepage according to different categories of user classification, the embodiment of the present invention utilizes the control layer to display the functional components in the user identification component set on the preset application homepage according to the sorting mark, and the preset application homepage is the application homepage of the user in the identification user data set corresponding to the user identification component set. For example: the user identification component set corresponding to the "student" user identification is displayed on the homepage of the preset application for the user in the identification user data set corresponding to the "student" user identification, and the component display positions reserved for the homepage of the preset application are sorted 1, 2, 3, 4, 5, and the functional components in the user identification component set are displayed on different component display positions according to the sorting marks. The functional components with a sorting mark of 1 are displayed on the component display position with a sorting mark of 1, and the functional components with a sorting mark of 2 are displayed on the component display position with a sorting mark of 2.
[0112] Furthermore, in order to dynamically change the content of the functional component, the embodiment of the present invention can also use the control layer to refresh the component content of the user identification component set according to the preset life cycle of the homepage of the application, wherein the life cycle is the preset component content display time. For example, when the life cycle is 30 minutes, the control layer refreshes the components of the user identification component set once every 30 minutes.
[0113] In an embodiment of the present invention, the application functions are modularized and the functional components are identified to facilitate better migration and application. The user data in the user data set is classified according to the user identifier of each user data in the user data set, and the users are divided into different groups to facilitate the classification configuration of subsequent applications. The correlation between each user identifier in the user identifier set and the functional component identifier set is calculated and analyzed, and the most suitable functional component is selected for the user group of each user identifier. The user identifier component set is updated with the application homepage of the user in the corresponding user data set using a preset control layer, and the functional components suitable for the user group of each user identifier are configured on the application homepage of the corresponding user, so as to realize the classification configuration of the application homepage layout for different user groups.
[0114] like Figure 2 The figure shows a functional module diagram of the application home page layout configuration device of the present invention.
[0115] The application homepage layout configuration device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the application homepage layout configuration device may include a function encapsulation module 101, a user classification module 102, a component association module 103, and a homepage configuration module 104. The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0116] In this embodiment, the functions of each module / unit are as follows:
[0117] The function encapsulation module 101 is used to obtain application functions and to perform modular processing on the application functions to obtain a function component identification set.
[0118] The application functions in the embodiment of the present invention include basic functions and interactive functions of the application, such as basic functions of the application to add, delete, modify and check data and interactive functions of the application to display and analyze data. The application functions can be obtained from a specific application background.
[0119] In detail, in order to make the application functions have better migration and application, the function encapsulation module 101 of the embodiment of the present invention extracts and encapsulates the application functions to obtain a function component set, and the function components in the function component set are independent of each other. Preferably, the function encapsulation module 101 of the embodiment of the present invention uses the servlet class of the Java language to extract and encapsulate the application functions.
[0120] Furthermore, the function encapsulation module 101 of the embodiment of the present invention uses a preset naming rule to name each functional component of the functional component set to obtain a component identifier of each functional component, summarizes all functional components in the functional component set and the component identifier of each functional component to obtain the functional component identifier set, and the functional components and the functional component identifiers are one-to-one corresponding. Preferably, the naming rule is to name according to the functional type of the functional component. The embodiment of the present invention is explained by taking an order management application as an example, and the functional type of a functional component of the coding management type is coding management, then the functional component is named Coding management.
[0121] The user classification module 102 is used to obtain a user data set, and classify the user data in the user data set according to the user identification of each piece of user data in the user data set to obtain a user identification set and an identified user data set.
[0122] In the embodiment of the present invention, the user data set is a collection of registered user data of an application program, and the user data can be obtained from a background database of the application program.
[0123] Preferably, in the embodiment of the present invention, the registered user data includes a user ID, which is a personal ID selected by the user when registering the application, such as "student", "teacher", "engineer" and the like.
[0124] Furthermore, in another embodiment of the present invention, when the application registration page does not have a personal identification option and the registered user data does not contain a user identification, the user classification module 102 uses a pre-built user identification recognition model to perform feature extraction on the user data to obtain the user identification corresponding to the user data. Preferably, a convolutional neural network model is used to build a user identification recognition model, historical user data is used as a training set, and historical user data marked with user identification is used as a label set to train the convolutional neural network model to obtain the user identification recognition model.
[0125] Furthermore, in order to facilitate the management of user data, the user classification module 102 in the embodiment of the present invention uses the following means to classify the user data according to the user identifier of each piece of user data in the user data set:
[0126] The user data with the same user identification is aggregated to obtain the identification user data set.
[0127] In an embodiment of the present invention, user data with the same user identifier are aggregated, and the user data with the same user identifier is user data with the same user identifier, for example: user data with the user data all identified as "student" is user data with the same user identifier, and user data with the user data all identified as "teacher" is also user data with the same user identifier.
[0128] In another embodiment of the present invention, in order to protect the security of user data, the identification user data set can be stored in a blockchain.
[0129] The user identification of each piece of user data in the user data set is aggregated, and duplicate data is deleted from the aggregated user identifications to obtain the user identification set.
[0130] In the embodiment of the present invention, different user data may correspond to the same user identification. In order to ensure the uniqueness of the user identification, deduplication processing is performed on the aggregated user identification to obtain the user identification set.
[0131] The component association module 103 is used to calculate and analyze the correlation between each user identification in the user identification set and the functional component identification set to obtain a user identification component set corresponding to each user identification.
[0132] In detail, the component association module 103 in the embodiment of the present invention converts each user identifier in the user identifier set into a user identifier vector; the component association module 103 converts each functional component identifier in the functional component identifier set into a component identifier vector to obtain a component identifier vector set.
[0133] Preferably, the component association module 103 in the embodiment of the present invention converts the user identification into a user identification vector using a pre-built word vector dictionary.
[0134] Furthermore, the component association module 103 obtains the component identification vector set by using the following means:
[0135] Get the dimension window of the preset size;
[0136] Input each functional component identifier in the functional component identifier set into the dimension window to generate a dimension component identifier;
[0137] Encoding the dimension component identifier using a preset encoding algorithm to generate a component identifier vector;
[0138] The generated component identification vectors are aggregated to obtain a component identification vector set.
[0139] For example, the dimensional window is a dimensional window of k*k, where k is a positive integer greater than or equal to 1.
[0140] Preferably, in this embodiment, the preset encoding algorithm may be a Huffman encoding algorithm.
[0141] Furthermore, the component association module 103 calculates the correlation value between the user identification vector and each component identification vector in the component identification vector set, obtains a correlation identification set corresponding to the user identification vector, and sorts the correlation values in the correlation identification set.
[0142] In detail, the correlation value may be calculated using the following formula:
[0143]
[0144] Among them, x i is the component identification vector, i is a positive integer, y is the user identification vector, sim(x i ,y) is the correlation value between the component identification vector and the user representation vector.
[0145] Furthermore, since the preset application homepage has different component display positions reserved, in order to accurately display subsequent components, the component association module 103 described in the embodiment of the present invention determines the order and number of component display positions of the preset application homepage, selects the correlation values corresponding to the order and number to obtain a target correlation value set, and obtains the user identification component set according to the target correlation value set.
[0146] Furthermore, the component association module 103 obtains the user identification component set according to the target relevance value set by using the following means:
[0147] Summarizing the component identification vectors corresponding to each relevance value in the target relevance value set to obtain a user identification component vector set;
[0148] In an embodiment of the present invention, the correlation values in the target correlation value set are uniquely corresponding to the corresponding component identification vectors. For example, the correlation values in the target correlation value set include three correlation values: 0.1, 0.2, and 0.3; the component identification vector corresponding to the correlation value 0.1 is a, the component identification vector corresponding to the correlation value 0.2 is b, and the component identification vector corresponding to the correlation value 0.3 is c; then there are a total of three component identification vectors a, b, and c in the user identification component vector set.
[0149] Summarizing the functional components corresponding to each component identification vector in the user identification component vector set to obtain a user functional component set;
[0150] In an embodiment of the present invention, the component identification vector and the corresponding functional component have a unique correspondence, and one component identification vector can only correspond to one functional component. For example, there are three component identification vectors a, b, and c in the user identification component vector set. The functional component corresponding to component identification vector a is functional component X, the functional component corresponding to component identification vector b is functional component Y, and the functional component corresponding to component identification vector c is functional component Z. Then there are three functional components X, Y, and Z in the user functional component set.
[0151] The functional components in the user functional component set are sorted and marked according to the corresponding relevance values to obtain a user identification component set.
[0152] In the embodiment of the present invention, in order to accurately display subsequent components, the component association module 103 sorts and marks the functional components in the user functional component set according to the corresponding relevance values. For example, the target relevance value set includes three relevance values of 0.1, 0.2, and 0.3, which are sorted in ascending order; the component identification vector corresponding to the relevance value 0.1 is a, the component identification vector corresponding to the relevance value 0.2 is b, and the component identification vector corresponding to the relevance value 0.3 is c; the functional component corresponding to the component identification vector a is the functional component X, the functional component corresponding to the component identification vector b is the functional component Y, and the functional component corresponding to the component identification vector c is the functional component Z; the relevance value corresponding to the functional component X is 0.1, which is ranked No. 1 in the target relevance value set, so the functional component X is marked as No. 1; the relevance value corresponding to the functional component Y is 0.2, which is ranked No. 2 in the target relevance value set, so the functional component Y is marked as No. 2; the relevance value corresponding to the functional component Z is 0.3, which is ranked No. 3 in the target relevance value set, so the functional component Z is marked as No. 3.
[0153] The home page configuration module 104 is used to display the user identification component set on the application home page of the user in the corresponding identification user data set by using a preset control layer.
[0154] The control layer in the embodiment of the present invention is responsible for the application control unit for application view display and data reading, for example: the Controller layer in a Java program.
[0155] Preferably, in order to configure the user's application homepage according to different categories of users, the homepage configuration module 104 of the embodiment of the present invention uses the control layer to display the functional components in the user identification component set on the preset application homepage according to the sorting mark, and the preset application homepage is the application homepage of the user in the identification user data set corresponding to the user identification component set. For example: the user identification component set corresponding to the "student" user identification is displayed on the homepage of the preset application for the user in the identification user data set corresponding to the "student" user identification, and the component display positions reserved for the homepage of the preset application are sorted 1, 2, 3, 4, and 5, and the functional components in the user identification component set are displayed on different component display positions according to the sorting marks. The functional components with a sorting mark of 1 are displayed at the component display position with a sorting mark of 1, and the functional components with a sorting mark of 2 are displayed at the component display position with a sorting mark of 2.
[0156] Furthermore, in order to dynamically change the content of the functional components, the homepage configuration module 104 of the embodiment of the present invention can also use the control layer to refresh the component content of the user identification component set according to the preset life cycle of the homepage of the application, wherein the life cycle is the preset component content display time. For example, when the life cycle is 30 minutes, the control layer refreshes the components of the user identification component set once every 30 minutes.
[0157] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing the method for configuring the application homepage layout according to the present invention.
[0158] The electronic device 1 may include a processor 10 , a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as an application home page layout configuration program 12 .
[0159] The memory 11 includes at least one type of readable storage medium, including flash memory, mobile hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1.
[0160] Furthermore, the memory 11 may include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various data, such as the code of the application homepage layout configuration program, but also to temporarily store data that has been output or is to be output.
[0161] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as application homepage layout configuration programs, etc.) stored in the memory 11, and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0162] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0163] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0164] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0165] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0166] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0167] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0168] The application homepage layout configuration program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0169] Acquire application functions, and modularize the application functions to obtain a set of functional component identifiers;
[0170] Acquire a user data set, and classify the user data in the user data set according to the user identifier of each piece of user data in the user data set to obtain a user identifier set and an identified user data set;
[0171] Calculating and analyzing the correlation between each user identification in the user identification set and the functional component identification set to obtain a user identification component set corresponding to each user identification;
[0172] The user identification component set is displayed on a preset application homepage of a user in a corresponding identification user data set by using a preset control layer.
[0173] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0174] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0175] Furthermore, the computer-usable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0176] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0177] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0179] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0180] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0181] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0182] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for configuring the layout of an application homepage, characterized in that: The method comprises: Acquire application functions, and modularize the application functions to obtain a set of functional component identifiers; Acquire a user data set, and classify the user data in the user data set according to the user identifier of each piece of user data in the user data set to obtain a user identifier set and an identified user data set; Calculating and analyzing the correlation between each user identification in the user identification set and the functional component identification set to obtain a user identification component set corresponding to each user identification; Using a preset control layer, the user identification component set is displayed on a preset application homepage of a user in a corresponding identification user data set; The step of calculating and analyzing the correlation between each user identification in the user identification set and the functional component identification set to obtain a user identification component set corresponding to each user identification includes: Convert each user identification in the user identification set into a user identification vector; Convert each functional component identification in the functional component identification set into a component identification vector to obtain a component identification vector set; Calculating the correlation value between the user identification vector and each component identification vector in the component identification vector set to obtain a correlation identification set corresponding to the user identification vector; sorting the relevance values in the relevance identifier set; Determine the display position order and number of preset application homepage components, and select the relevance value corresponding to the order and number to obtain a target relevance value set; The component identification vectors corresponding to each correlation value in the target correlation value set are aggregated to obtain a user identification component vector set, the functional components corresponding to each component identification vector in the user identification component vector set are aggregated to obtain a user functional component set, and the functional components in the user functional component set are sorted and marked according to the corresponding correlation values to obtain a user identification component set.
2. The method for configuring the application homepage layout according to claim 1, characterized in that: The obtaining of the application function and modularizing the application function to obtain a set of functional component identifiers include: Extracting and encapsulating the application program functions to obtain a functional component set; Naming each functional component in the functional component set using a preset naming rule to obtain a component identifier of each functional component; The component identifiers of all functional components and each functional component in the functional component set are collected to obtain the functional component identifier set.
3. The method for configuring the application homepage layout according to claim 1, characterized in that: The classifying and processing the user data in the user data set according to the user identifier of each piece of user data in the user data set to obtain a user identifier set and an identified user data set includes: Aggregating user data with the same user identifier to obtain the identified user data set; The user identification of each piece of user data in the user data set is aggregated, and duplicate data is deleted from the aggregated user identifications to obtain the user identification set.
4. The method for configuring the application homepage layout according to claim 1, characterized in that: The step of converting each functional component identifier in the functional component identifier set into a component identifier vector to obtain a component identifier vector set includes: Get the dimension window of the preset size; Input each functional component identifier in the functional component identifier set into the dimension window to generate a dimension component identifier; Encoding the dimension component identifier using a preset encoding algorithm to generate a component identifier vector; The generated component identification vectors are aggregated to obtain the component identification vector set.
5. The method for configuring the layout of the application homepage according to claim 1, characterized in that: The method of using the preset control layer to display the user identification component set on the preset application homepage of the user in the corresponding identification user data set includes: According to the preset life cycle of the application homepage, the user identification component set is refreshed using the preset control layer.
6. An application home page layout configuration device, used to implement the application home page layout configuration method according to any one of claims 1 to 5, characterized in that: The device comprises: A function encapsulation module is used to obtain application functions and modularize the application functions to obtain a function component identification set; A user classification module, used to obtain a user data set, classify the user data in the user data set according to the user identifier of each piece of user data in the user data set, and obtain a user identifier set and an identified user data set; A component association module, used to calculate and analyze the correlation between each user identification in the user identification set and the functional component identification set, and obtain a user identification component set corresponding to each user identification; The home page configuration module is used to display the user identification component set on the preset application home page of the user in the corresponding identification user data set by using the preset control layer.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the application homepage layout configuration method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, comprising a data storage area and a program storage area, wherein the data storage area stores data created according to the use of a blockchain node, and the program storage area stores a computer program, characterized in that: When the computer program is executed by a processor, the method for configuring the application homepage layout as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Banking software function interface generation method and device
CN110990007A
Method and device for generating information
CN111147431A