Page element setting method, page element display method, and electronic device
By acquiring user data for feature extraction and dynamic weight calculation, the dynamic requirements of navigation items were addressed, enabling dynamic settings of navigation items and reducing costs and release cycles.
Patent Information
- Application Number
- CN202510659774.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to meet users' dynamic needs for navigation items, and customized processing is costly and has a long response time.
By acquiring user data, performing feature extraction across preset dimensions, calculating the dynamic display weight of navigation items, and matching the visibility settings of navigation items according to the weights, the need for individual customization is reduced.
It fulfills the user's need for dynamic navigation items, reducing implementation costs and shortening the release cycle.
Smart Images

Figure CN123157301A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method for setting page elements, a method for displaying page elements, and an electronic device. Background Technology
[0002] Page elements are visual components on a webpage used to display content, provide functionality, or offer interactive features. They effectively facilitate information display and human-computer interaction. Within page elements, navigation items serve as entry points for function switching, and in practice, navigation items can be divided into multiple levels. An example of navigation items on a page is shown below. Figure 1 As shown, the top dashed box displays the primary navigation, including the following items: Process Center, Report Center, Low-Code Center, and Plugin Center. The left dashed box displays the secondary navigation, including the following items: Main Administrator, My OA, Approval Workflow, Cross-Organization, and Business Workflow. Whether a navigation item is in the primary or secondary navigation, when triggered (e.g., clicked), it will switch to the corresponding function page for displaying the relevant functionality.
[0003] As practical application needs evolve, more and more users are demanding various customizations and dynamic features from navigation items, such as showing and hiding them. However, current navigation item controls are static code hard-coded into the program, requiring code modifications and subsequent application releases for customization. Clearly, existing methods struggle to meet users' dynamic navigation item needs, resulting in long response times and high implementation costs. Summary of the Invention
[0004] In view of this, embodiments of this application provide a page element setting scheme to at least partially solve the above problems.
[0005] According to a first aspect of the embodiments of this application, a method for setting page elements is provided, including:
[0006] Acquire user data in the target application, and extract behavioral data features based on the user data in a preset dimension to obtain at least one corresponding data behavior feature;
[0007] Based on at least one data feature and a preset dynamic weight calculation strategy, calculate the dynamic display weight of the navigation item corresponding to the user.
[0008] Navigation items that match the dynamic display weight are identified as user-configurable navigation items, allowing users to set the visibility of these navigation items.
[0009] According to a second aspect of the embodiments of this application, a method for displaying page elements is provided, including:
[0010] Display a human-computer interaction interface with a navigation bar in the target application, wherein the navigation bar includes multiple navigation items, and among the multiple navigation items are custom navigation items that are visible through visibility settings;
[0011] Among them, the visible custom navigation items are matched with the dynamic display weight of the user's navigation items. The dynamic display weight is determined based on the user's behavioral characteristics and dynamic weight calculation strategy corresponding to the user's behavior data in the target application.
[0012] According to a third aspect of the embodiments of this application, an electronic device is provided, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, which causes the processor to perform operations corresponding to the methods of the first and second aspects.
[0013] According to a fourth aspect of the embodiments of this application, a computer storage medium is provided that stores a computer program thereon, which, when executed by a processor, implements the methods of the first and second aspects.
[0014] According to the page element setting scheme provided in this application, user data in the target application can be obtained, and feature extraction of data features in a preset dimension can be performed based on the user data to obtain at least one corresponding data feature. Then, based on the at least one data feature and a preset dynamic weight calculation strategy, the dynamic display weight of the navigation item corresponding to the user can be calculated, and the navigation item that matches the dynamic display weight is determined as the user-configurable navigation item, so that the user can set the visibility of the navigation item. Thus, the user can set the configurable navigation item according to the user's dynamic display weight, without the need to customize the navigation item for each user individually, reducing the release cycle time, meeting the dynamic needs of different users for navigation items, and reducing the implementation cost. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0016] Figure 1 This is a schematic diagram illustrating an example of page navigation items in related technologies;
[0017] Figure 2 This is a schematic diagram of the structure of an exemplary system applicable to the embodiments of this application;
[0018] Figure 3 This is a flowchart of a page element setting method according to an embodiment of this application;
[0019] Figure 4 This is a schematic diagram of a navigation item management page according to an embodiment of this application;
[0020] Figure 5 This is a schematic diagram of a navigation item display interface according to an embodiment of this application;
[0021] Figure 6 This is an interactive flowchart illustrating how navigation items are rendered onto a client's display interface according to an embodiment of this application.
[0022] Figure 7 for Figure 6 The interactive flowchart of the method for obtaining navigation items that match the user's dynamic display weight in the illustrated embodiment is shown.
[0023] Figure 8 for Figure 6 The flowchart shown in the embodiment illustrates the gradual activation of the custom navigation bar function through a gray-scale service.
[0024] Figure 9 This is a schematic diagram of the structure of an electronic device according to this application. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] The specific implementation of the embodiments of this application will be further described below with reference to the accompanying drawings.
[0027] As mentioned earlier, existing page navigation systems struggle to meet users' dynamic needs for navigation items through iterative methods, and their response time to customized user requests is long and costly. Therefore, this application provides a method for setting page elements. In this method, user data from the target application is acquired, and feature extraction of data features across preset dimensions is performed based on the user data to obtain at least one corresponding data feature. Then, based on the at least one data feature and a preset dynamic weight calculation strategy, the dynamic display weight for each navigation item corresponding to the user is calculated. Navigation items matching the dynamic display weight are then identified as user-configurable navigation items, allowing users to set their visibility. This displays the user-configurable navigation items based on their dynamic display weight, eliminating the need for individual customization of navigation items for each user, reducing the release cycle time, meeting the dynamic needs of different users for navigation items, and lowering implementation costs.
[0028] Figure 2 An exemplary system applicable to embodiments of this application is shown. For example... Figure 2 As shown, the system 100 may include a cloud server 102, a communication network 104, and / or one or more user devices 106. Figure 2 The example in the text shows multiple user devices.
[0029] The cloud server 102 can be any suitable device for storing information, data, programs, and / or any other suitable type of content, including but not limited to distributed storage system devices, server clusters, computing cloud server clusters, etc. In some embodiments, the cloud server 102 can perform any suitable function. For example, in some embodiments, the cloud server 102 can be used to store user data, such as user data in a target application. As another example, in some embodiments, the cloud server 102 can send the stored user data to the user device 106 when needed.
[0030] In some embodiments, the communication network 104 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 104 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN), and / or any other suitable communication network. The user equipment 106 can be connected to the communication network 104 via one or more communication links (e.g., communication link 112), and the communication network 104 can be linked to the cloud server 102 via one or more communication links (e.g., communication link 114). The communication link can be any communication link suitable for transmitting data between the user equipment 106 and the cloud server 102, such as a network link, a dial-up link, a wireless link, a hardwired link, any other suitable communication link, or any suitable combination of such links.
[0031] User device 106 may include any one or more user devices suitable for interface presentation and easy for user interaction. In some embodiments, user device 106 may acquire user data in a target application, and extract features of data characteristics of a preset dimension based on the user data to obtain at least one corresponding data feature; calculate the dynamic display weight of the navigation item corresponding to the user according to the at least one data feature and a preset dynamic weight calculation strategy; and determine the navigation item that matches the dynamic display weight as a user-configurable navigation item for the user to set the visibility of the navigation item. In some embodiments, user device 106 may include any suitable type of device. For example, in some embodiments, user device 106 may include mobile devices, tablet computers, laptop computers, desktop computers, wearable computers, game consoles, media players, vehicle entertainment systems, and / or any other suitable type of user device.
[0032] Based on the above system, the specific implementation of the embodiments of this application will be further described below with reference to the accompanying drawings.
[0033] This embodiment provides a method for setting page elements, which can be used on user devices. Figure 3 This is a flowchart of a page element setting method according to an embodiment of this application, such as... Figure 3 As shown, the method for setting page elements includes the following steps:
[0034] Step S302: Obtain user data in the target application, and extract data features based on the user data in a preset dimension to obtain at least one corresponding data feature.
[0035] In this embodiment, user data may include behavioral data generated when the user operates in the target application, as well as the user's personal data. The target application may be a social or utility application that provides various interactive functions, which can be displayed to the user in the form of navigation items. For example, it could be an office application, or, exemplarily, an instant messaging (IM) application.
[0036] After obtaining user data, features can be extracted from the user data according to preset dimensions. These preset dimensions can be set by those skilled in the art according to actual needs. In one optional approach, the preset dimensions can be dimensions related to the user's personal growth path in the target application. For example, if the target application is an office application, the preset dimensions can be the user's completion rate of to-do items, etc.
[0037] By extracting features from user data according to preset dimensions, at least one corresponding data feature can be obtained. In this embodiment, the feature extraction method can be implemented by any appropriate means by those skilled in the art according to actual needs, including but not limited to machine learning algorithms, data statistics algorithms, data analysis algorithms, etc. This embodiment does not limit this.
[0038] Step S304: Calculate the dynamic display weight of the navigation item corresponding to the user based on at least one data feature and a preset dynamic weight calculation strategy.
[0039] In this application embodiment, dynamic display weight can be used to indicate the degree to which a user can set navigation items in a target application. The dynamic weight calculation strategy is a calculation method or rule for obtaining the final dynamic display weight of the user based on various data feature items. The specific strategy implementation may vary depending on the target application. The dynamic weight calculation strategy adopted in this application will be further described below.
[0040] In one example, the dynamic display weight can be implemented as a weight score. For instance, the feature score corresponding to each data feature can be obtained separately, and the sum of the product of each feature score and its corresponding weight coefficient can be calculated to obtain the user's weight score, i.e., the user's dynamic display weight.
[0041] Step S306: The navigation items that match the dynamic display weight are determined as user-configurable navigation items, so that the user can set the visibility of the navigation items.
[0042] In this embodiment, navigation items can be a series of interactive options or links in the target application used to guide user browsing and operation. The navigation items displayed to the user can vary depending on the user's dynamic display weight. After obtaining the user's dynamic display weight, such as a weight score, the navigation items in the target application that match that weight score can be identified as user-configurable navigation items. The user can configure these navigation items, and the navigation items displayed or not displayed in the user's target application interface are determined based on the user's settings.
[0043] Therefore, users can set the visibility of navigation items on the corresponding pages (such as the navigation item management page). For example, users can customize navigation items at each level of navigation according to their own usage needs, thus achieving individual customization of navigation items. Figure 4 The image shows a schematic of the navigation item management page. Navigation items whose visibility is matched to the user's dynamic display weight (i.e., navigation items whose visibility can be set by the user) include: Initiate Approval, Initiate Service, Build Application, etc. Users can set the visibility of navigation items using the "Show / Hide" option. Figure 4 It is known that users can set the "Initiate Approval," "Approval Center," and "Plugin Center" on the homepage as visible navigation items to display them in the target application.
[0044] As described above, in this embodiment, user data in the target application can be obtained, and feature extraction of data features in a preset dimension can be performed based on the user data to obtain at least one corresponding data feature. Then, based on the at least one data feature and a preset dynamic weight calculation strategy, the dynamic display weight of the navigation item corresponding to the user can be calculated, and the navigation item that matches the dynamic display weight is determined as the user-configurable navigation item, so that the user can set the visibility of the navigation item. Thus, the user-configurable navigation item is displayed according to the user's dynamic display weight, without the need to customize the navigation item for each user individually, reducing the release cycle time, meeting the dynamic needs of different users for navigation items, and reducing the implementation cost.
[0045] In some optional implementations, the data features of the aforementioned preset dimensions include at least one of the following: behavioral features indicating the degree of task completion by a user in the target application, behavioral features indicating the task processing efficiency of a user in the target application, behavioral features indicating the operation problem rate of a user's task operations in the target application, and duration features indicating the length of time a user has been employed.
[0046] In this embodiment, user data may include user behavior data and user onboarding duration data. For certain target applications, such as IM applications or other applications capable of task processing (such as collaborative work applications), users can perform corresponding task processing through the target application, generating task-related data. The user behavior data in this embodiment can originate from this data. Through user behavior data, it can at least be used to indicate the relevant situation of users processing tasks through the target application. The data features extracted based on user behavior data can effectively characterize user behavior characteristics, including the aforementioned behavioral characteristics of task completion level, task processing efficiency, and task operation error rate. The onboarding duration data in the user data may originate from data set and authorized by the user, or from data authorized by the user to be used by the target application, etc. By extracting features from it, the aforementioned duration features can be extracted.
[0047] Specifically, the behavioral characteristic of task completion level can be used to indicate the percentage of tasks completed by a user in the total number of tasks (the statistical unit can be the tasks of the user's organization or department within a certain project or time period); the behavioral characteristic of task processing efficiency can be used to indicate the percentage of pending tasks processed by a user within the scope of pending tasks in the total number of pending tasks (the statistical unit can be the pending tasks of the user's organization or department within a certain project or time period, and pending tasks can be a subset of the above tasks); the behavioral characteristic of task operation problem rate can be used to indicate the percentage of the number of problematic operations (the number of times problems occurred during task processing) in the total number of operations.
[0048] In this embodiment of the application, by extracting features from the above multiple dimensions, the evaluation of users can be more comprehensive and objective, better reflecting the user's usage and growth in the target application, thereby improving the rationality of the final navigation items that match the user.
[0049] In some optional implementations, step S306 above, namely, determining the navigation items that match the dynamic display weight as user-configurable navigation items so that the user can set the visibility of the navigation items, includes:
[0050] Step S3062: Compare the dynamically displayed weight with multiple preset threshold intervals.
[0051] Step S3064: The navigation items corresponding to the threshold intervals corresponding to the comparison results are determined as user-configurable navigation items, so that the user can set the visibility of the navigation items. The navigation items corresponding to different threshold intervals are at least partially different.
[0052] In one feasible embodiment of this application, a user's dynamic display weight score can be calculated based on the user's data characteristics and dynamic weight calculation strategy. This score is then compared with multiple preset threshold intervals to obtain a comparison result. The multiple threshold intervals can be appropriately set by those skilled in the art according to actual needs, and this application embodiment does not impose any limitations on this. For example, when calculating the user's dynamic display weight score, the feature scores corresponding to each data feature can be obtained separately, and the sum of the products of each feature score and its corresponding weight coefficient can be calculated to obtain the user's total score.
[0053] For example, if the weight of the user's task completion rate in the target application is a1, and the sub-score is x1; the weight of the user's task operation problem rate in the target application is a2, and the sub-score is x2; the weight of the user's task processing efficiency in the target application is a3, and the sub-score is x3; and the weight of the user's employment duration is a4, and the sub-score is x4, then the user's total score can be expressed as: a1*x1+a2*x2+a3*x3+a4*x4.
[0054] After determining the user's total score, multiple threshold intervals can be obtained, and the total score can be compared with these threshold intervals to determine the threshold interval in which the user's total score falls, thus obtaining the comparison result. For example, if the threshold intervals include: Excellent [80, 100], Good [60, 80), Average [40, 60], Poor [0, 40], when the user's total score is 84, the comparison result can be Excellent, and the navigation item corresponding to the Excellent interval can be determined as the navigation item that the user can set.
[0055] In this embodiment, multiple threshold ranges can be pre-set, and corresponding navigation items can be set for each threshold range to achieve differentiation in the display of user navigation items with different dynamic display weights, thereby meeting users' individual customization needs for navigation items. As mentioned above, the navigation items corresponding to different threshold ranges can be completely different, or partially the same and partially different.
[0056] In some optional implementations, when the data features include duration features for indicating the user's onboarding duration, the above page element setting method further includes: obtaining a corresponding onboarding duration weight based on a preset time decay coefficient and onboarding duration; and updating the calculated dynamic display weight based at least on the onboarding duration weight.
[0057] Therefore, the aforementioned determination of navigation items that match the dynamic display weight as user-configurable navigation items includes: determining navigation items that match the updated dynamic display weight as user-configurable navigation items.
[0058] In this embodiment of the application, it is considered that there should be a certain degree of differentiation between the functions available to new users and old users in the target application. For example, if the target application is an office application, the navigation items displayed to new employees are usually different from those available to old employees.
[0059] Here, the time decay coefficient is a dynamic coefficient determined based on the number of days since the user joined the company and a preset number of days threshold (for example, the time decay coefficient can be expressed as the ratio of the user's number of days since joining the company to the preset number of days threshold). Based on this, the dynamic display weight calculated based on other data features can be updated. When updating the dynamic display weight, it can be calculated according to the corresponding weight calculation formula.
[0060] For example, the weight calculation formula can be expressed as: initial weight * (preset experience value ^ time decay coefficient), where "^" represents a power. Both the initial weight and the preset experience value can be appropriately set by those skilled in the art according to actual needs. The initial weight can be set based on the possible experience of newly hired employees; for example, it can be set to 0.3. Correspondingly, the preset experience value can be set based on the employee's accumulated experience after joining the company; for example, it can be 0.97. For instance, if the initial weight is 0.3, the experience value is 0.97, the user's number of days on the job is 7, and the preset number of days threshold is 30, then the time decay coefficient can be 7 / 30, and the obtained onboarding duration weight a4 can be: 0.3 * (0.97 ^ (7 / 30)) = 0.298.
[0061] Then, based on the onboarding length weight a4, the other weights a1, a2, and a3 can be updated. Specifically, if a1 is 0.2, a2 is 0.25, and a3 is 0.25, then the updated a1, a2, and a3 can be calculated through normalization. The updated a1, a2, and a3 can be expressed as: original weight * (1 - updated a4) / sum of original a1, a2, and a3. Based on this, the updated a1 is 0.2006, a2 is 0.2507, and a3 is 0.2507.
[0062] Additionally, the original dynamic display weights can be updated based on the updated weights, and the user's total score can be recalculated to obtain configurable navigation items that match the user. Specifically, the user's sub-scores can first be calculated based on the user data. For example, if the user is a new employee who has been with the company for 7 days, has completed 4 / 5 of the tasks, has not completed the key tasks, has completed 10 / 10 of the pending tasks, and has 2 operational problems out of 20 operations, then the sub-scores are x1 = (4 / 5) × 100 = 80, x2 = (10 / 10) × 100 = 100, x3 = (1-2 / 20) × 100 = 90, and x4 can be expressed as: time decay coefficient * 100, therefore, x4 can be 23.3. Therefore, based on the aforementioned updated weights, the user's total score can be expressed as (0.298*23.3)+(0.2006*80)+(0.2507*100)+(0.2507*90)=70.6244.
[0063] Based on this, if the user's employment period increases to 30 days, the updated a4 can be: 0.3*(0.97*(30 / 30))=0.291. Then, a1, a2, and a3 can be updated based on the updated a4, i.e., a1 is 0.2026, a2 is 0.2532, and a3 is 0.2532. Next, the user's total score can be calculated based on the updated dynamic display weights. If the user has completed 3 / 5 of their tasks, 8 / 10 of their to-dos, and has 2 operational issues / 20 operational attempts, then the total score is (0.291*100)+(0.2026*60)+(0.2532*80)+(0.2532*90)=84.3.
[0064] In this embodiment of the application, considering that the user's onboarding time is dynamically changing, and that there should be a certain degree of differentiation in opening functions to new users and old users in the target application, the dynamic display weight can be updated according to the user's onboarding time to ensure the timeliness of the user navigation item display update.
[0065] In some optional implementations, the above-described page element setting method further includes:
[0066] Step S21: Real-time detection of new user behavior data generated by user behavior in the target application; based on the new user behavior data, data feature anomaly detection.
[0067] Step S22: Determine the anomaly type of the data features based on the anomaly detection results, and adjust the dynamic display weights according to the anomaly type.
[0068] In this embodiment, multiple abnormal scenarios and corresponding abnormal types can be pre-set, and when the data characteristics of user behavior data are detected to match the abnormal scenario, the abnormal type corresponding to that data characteristic is determined. For example, abnormal scenarios may include incomplete critical tasks, a sudden increase in operational problems, and a low back-to-work rate. In addition, the abnormal scenarios may also include special scenarios, such as new employee protection.
[0069] When adjusting the dynamic display weight based on the anomaly type, a penalty coefficient can be set for each anomaly type to adjust the dynamic display weight according to the penalty coefficient. In an optional embodiment, step S22 above, adjusting the dynamic display weight based on the anomaly type, includes:
[0070] Step a1: If the anomaly type indicates that a feature mutation has occurred, the dynamic display weight is updated based on the new user behavior data, and the updated dynamic display weight is corrected by adjusting the weight coefficient.
[0071] Step a2: Based on the results of the correction process, adjust the dynamic display weights.
[0072] In this embodiment, the dynamic display weight can be adjusted based on the aforementioned penalty coefficient. For example, the penalty coefficient for a sudden increase in operational problems can be 0.5, and the penalty coefficient for a low pending rate can be 0.8. Here, the adjusted dynamic display weight can be determined based on the product of the penalty coefficient and the dynamic display weight.
[0073] Furthermore, when adjusting the dynamic display weights based on the anomaly type, adjustment can also be performed using adjustment rules. Specifically, step S22 above, adjusting the dynamic display weights based on the anomaly type, further includes:
[0074] If the anomaly type indicator data features meet the preset anomaly triggering conditions, the dynamic display weights will be corrected according to the correction rules corresponding to the anomaly triggering conditions.
[0075] In this embodiment of the application, corresponding abnormal triggering conditions can be set in advance for data features, and corresponding correction rules can be executed when the data feature meets the abnormal triggering conditions in order to correct the dynamic display weight corresponding to the data feature.
[0076] For example, the trigger condition for incomplete critical tasks could be any incomplete critical task, and the correction rule could be to set all dynamically displayed weights to 0 (i.e., the user's total score is 0). The trigger condition for a sudden increase in operational issues could be a week-on-week increase in operational issues > 100%, and the correction rule could be to set the penalty coefficient corresponding to the dynamically displayed weight to 2. The trigger condition for a low pending task rate could be a pending task processing rate < 30%, and the correction rule could be to set the penalty coefficient corresponding to the dynamically displayed weight to 0.8. The trigger condition for a new employee protection period could be the number of days since joining the company < 7 days, and the correction rule could be to mask the operational issue rate score, i.e., set the operational issue rate to a default value, such as 0%.
[0077] Here, again using the aforementioned new employee as an example, this user has been with the company for 7 days, has completed 4 / 5 of their tasks, failed to complete any critical tasks, completed 10 / 10 of their pending tasks, and has 2 operational issues out of 20 operations. If the data characteristics indicate that the user's critical tasks were not completed, thus meeting the anomaly triggering conditions, then the user's total score can be determined to be 0.
[0078] For example, if data characteristics indicate a week-on-week increase of >100% in user operation issues, the penalty coefficient for the dynamically displayed weight a2 can be set to 0.5, and a1, a3, and a4 can be adjusted adaptively. Specifically, if the original a1-a4 is [0.2226, 0.2782, 0.2782, 0.221], then the adjusted a2 is 0.2782 × 0.5 = 0.1391. After normalization, a1 becomes 0.265, a3 becomes 0.332, and a4 becomes 0.263.
[0079] For example, if data characteristics indicate that a user's pending task processing rate is less than 30%, the penalty coefficient for the dynamically displayed weight a3 can be set to 0.8, and a1, a2, and a4 can be adjusted adaptively. If the original a1-a4 remain [0.2226, 0.2782, 0.2782, 0.221], then the adjusted a3 is 0.2782 × 0.8 = 0.2226. After normalization, a1 becomes 0.24, a2 becomes 0.299, and a4 becomes 0.238.
[0080] In this embodiment, new user behavior data generated by user behavior in the target application can be detected in real time, and data feature anomaly detection can be performed based on the new user behavior data. The dynamic display weight can be corrected according to the detected anomaly type, thereby realizing the dynamic adjustment of the dynamic display weight and achieving objectivity in user rating.
[0081] This application also provides a method for displaying page elements, which can be used on a user device. The method specifically includes the following steps:
[0082] Display a human-computer interaction interface with a navigation bar in the target application. The navigation bar includes multiple navigation items, among which are custom navigation items that are visible through visibility settings. The visible custom navigation items are matched with the dynamic display weight of the user's navigation items. The dynamic display weight is determined based on the behavioral characteristics corresponding to the user's behavior data in the target application and the dynamic weight calculation strategy.
[0083] The specific implementation of matching the visible custom navigation items with the user's dynamic display weights and determining the dynamic display weights based on the user's behavioral characteristics and dynamic weight calculation strategy corresponding to the user's behavior data in the target application can be referred to the description of the relevant parts in the foregoing embodiments, and will not be repeated here.
[0084] In this embodiment, the behavioral features include at least one of the following: behavioral features indicating the degree of task completion by a user in the target application; behavioral features indicating the task processing efficiency of a user in the target application; behavioral features indicating the operational error rate of task operations performed by a user in the target application; and behavioral features indicating the length of time a user has been employed. The specific implementation of the behavioral features in this embodiment can be referred to the description of the relevant parts in the foregoing embodiments, and will not be repeated here.
[0085] After determining the navigation items, users can configure the custom navigation items visible in the navigation bar through the human-computer interaction page, such as... Figure 5 The image shows the navigation item settings page. The navigation bar includes a setting indicator to indicate the addition of custom navigation items. Upon detecting a trigger action on this setting indicator, a page for generating custom navigation items can be displayed. This page includes at least the input fields for the page corresponding to the navigation item to be generated. Then, information about the page entered through the input fields can be received, the custom navigation item can be generated based on this information, and the generated custom navigation item can be displayed in the navigation bar.
[0086] Specifically, users can trigger the settings icon in the navigation bar to bring up the page for generating custom navigation items. This page can display the input fields for all the pages corresponding to the navigation items to be generated, and users can enter the information of the page corresponding to the navigation item through these input fields. This information can include the navigation icon of the navigation item to be generated. By triggering the navigation icon, users can jump to the page corresponding to the navigation item.
[0087] In one alternative implementation, such as Figure 6 The diagram shows a flowchart of rendering navigation items onto the client's display interface. The specific process of determining and rendering navigation items includes the following steps:
[0088] Step S402: It is detected that the user has opened the target application.
[0089] In this step, the target application's client can detect whether the user has opened the target application.
[0090] Step S404: Request the target feature value from the grayscale service (S404A in the figure) and obtain the first request result (S404B in the figure).
[0091] The target feature value is used to indicate the activation of the custom navigation bar feature, which can be used to display navigation items that match the user's dynamic display weight.
[0092] In this embodiment, canary release services are used to indicate the gradual release of new features or to conduct A / B testing. Through canary release services, development teams can release new features to a small group of users to test their performance and user feedback before deciding whether to roll them out to all users. Here, if the result of the target feature value in the first request result is true, it indicates that the current user has enabled the custom navigation bar feature; conversely, if the result is false, it indicates that the current user has not enabled the custom navigation bar feature. For example, the target feature value can be represented as `eCustomNavH5`.
[0093] Step S406: If it is determined from the request result that the user has enabled the custom navigation bar function, obtain the navigation item that matches the user's dynamic display weight, and perform asynchronous data update on the server based on the navigation item; or, if it is determined from the request result that the user has not enabled the custom navigation bar function, display the original navigation item.
[0094] In this embodiment, the method for determining the navigation item that matches the user's dynamic display weight is as described in the corresponding part of the above method embodiment, and will not be repeated here.
[0095] In step S408, after obtaining the navigation item that matches the user's dynamic display weight, the system requests the user's corresponding visibility policy from the permission service (S408A in the figure) and obtains the second request result (S408B in the figure).
[0096] In this embodiment, the permission service can provide users with a visibility setting service for navigation items that match the user's dynamic display weight. Based on this service, users can set the visibility of the corresponding navigation items. For example, the second request result may include a feature value `pageVisibilityMap`, through which the user can be provided with visibility settings for navigation items.
[0097] Step S410: Generate the navigation tree corresponding to the navigation item, and render the navigation tree to the client's display interface through the rendering engine.
[0098] In one alternative implementation, such as Figure 7 The flowchart shown is for step S408, which involves obtaining navigation items that match the user's dynamic display weights. The flowchart includes:
[0099] Step S31: When the local cache of the user device is valid, obtain the cached data corresponding to the navigation item through the first retrieval request, and render the navigation item directly based on the cached data.
[0100] In this embodiment of the application, the first retrieval request can be represented as getHomeNavCache().
[0101] Step S32: When the local cache of the user device is invalid, after asynchronously updating the data on the server according to the navigation item, the latest data corresponding to the navigation item is obtained through the second retrieval request, and the local cache is updated according to the latest data.
[0102] In this embodiment of the application, the second acquisition request can be represented as getHomeNavMenuSync().
[0103] Step S33: After detecting a retrieval instruction for a navigation item, retrieve the navigation item from the local cache through a first retrieval request.
[0104] In this embodiment, a hybrid data source loading strategy can be used to load navigation item data, that is, to use local cache, server-side data, and local static official data to ensure the availability of navigation item data.
[0105] In an optional implementation, step S410 above, which renders the navigation tree onto the client's display interface using a rendering engine, includes:
[0106] Step S41: Flatten the navigation tree to obtain a linear array.
[0107] Step S42: Render the linear array onto the client's display interface using the rendering engine.
[0108] In this embodiment, data flattening can be used to convert the nested navigation tree into a linear array to avoid recursively traversing the tree structure during each rendering, thereby improving data processing efficiency and page loading performance.
[0109] In one alternative implementation, such as Figure 8 The diagram illustrates the process of gradually enabling the custom navigation bar feature through a gray-scale service, specifically including the following steps:
[0110] Step S51: Based on enabling the original navigation bar style, determine the grayscale testing strategy.
[0111] In this embodiment, the original navigation bar contains navigation items with fixed functional modules. The upgrade strategy can identify gray-scale users who have enabled the custom navigation bar function. Then, the core metrics of gray-scale users and non-gray-scale users can be monitored through event tracking data, and the traffic ratio can be gradually increased.
[0112] Step S52: Start grayscale testing and roll back the version if an exception occurs during testing.
[0113] Step S53: Based on the version rollback, increase the number of gray-scale users until the rollout is extended to all users.
[0114] In summary, in this embodiment, user behavior data in the target application can be obtained, and feature extraction of behavioral characteristics in preset dimensions can be performed based on the user behavior data to obtain at least one corresponding behavioral feature. Then, based on at least one behavioral feature and a preset dynamic weight calculation strategy, the dynamic display weight of the user for navigation items can be calculated, and the navigation items that match the dynamic display weight are determined as user-configurable navigation items, allowing users to set the visibility of navigation items. This allows the user to view configurable navigation items based on their dynamic display weight, without needing to customize navigation items individually for each user, reducing the release cycle time, meeting the dynamic needs of different users for navigation items, and lowering the implementation cost of the solution.
[0115] Reference Figure 9 The diagram shows a structural schematic of an electronic device according to this application. The specific embodiments of this application do not limit the specific implementation of the electronic device.
[0116] like Figure 9 As shown, the electronic device may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508.
[0117] in:
[0118] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508.
[0119] Communication interface 504 is used to communicate with other electronic devices or servers.
[0120] The processor 502 is used to execute program 510, specifically to execute the relevant steps of any of the above-described method embodiments.
[0121] Specifically, program 510 may include program code that includes computer operation instructions.
[0122] The processor 502 may be a CPU, a GPU (Graphics Processing Unit), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The electronic device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.
[0123] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0124] Program 510 may include multiple computer instructions. Specifically, program 510 may use multiple computer instructions to cause processor 502 to perform the operation corresponding to the method described in any of the foregoing multiple method embodiments.
[0125] The specific implementation of each step in program 510 can be found in the corresponding steps and units described in the above method embodiments, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process descriptions in the foregoing method embodiments, and will not be repeated here.
[0126] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in any of the foregoing method embodiments. The computer storage medium includes, but is not limited to, compact disc read-only memory (CD-ROM), random access memory (RAM), floppy disk, hard disk, or magneto-optical disk.
[0127] This application also provides a computer program product, including computer instructions that instruct a computing device to perform an operation corresponding to any of the methods in the above-described multiple method embodiments.
[0128] Furthermore, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used for training the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this application are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0129] It should be noted that, depending on the implementation needs, the various components / steps described in the embodiments of this application can be broken down into more components / steps, or two or more components / steps or parts of the operation of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of this application.
[0130] The methods described in the embodiments of this application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code downloaded over a network that is originally stored in a remote recording medium or a non-transitory machine-readable medium and will be stored in a local recording medium. Thus, the methods described herein can be stored on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA)). It is understood that the computer, processor, microprocessor controller, or programmable hardware includes storage components (e.g., Random Access Memory (RAM), Read-Only Memory (ROM), Flash Memory, etc.) capable of storing or receiving software or computer code, implementing the methods described herein when the software or computer code is accessed and executed by the computer, processor, or hardware. Furthermore, when a general-purpose computer accesses the code used to implement the methods shown herein, the execution of the code transforms the general-purpose computer into a dedicated computer for executing the methods shown herein.
[0131] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0132] The above embodiments are only used to illustrate the embodiments of this application, and are not intended to limit the embodiments of this application. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of this application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of this application, and the patent protection scope of the embodiments of this application should be defined by the claims.
Claims
1. A method for setting page elements, comprising: Obtain user data in the target application, and extract data features based on the user data in a preset dimension to obtain at least one corresponding data feature; Based on the at least one data feature and the preset dynamic weight calculation strategy, the dynamic display weight for the navigation item corresponding to the user is calculated. Navigation items that match the dynamic display weight are identified as user-configurable navigation items, allowing the user to set the visibility of these navigation items.
2. The method according to claim 1, wherein, The step of determining the navigation item that matches the dynamic display weight as the user-configurable navigation item, so that the user can set the visibility of the navigation item, includes: The dynamic display weight is compared with multiple preset threshold intervals; The navigation items corresponding to the threshold ranges corresponding to the comparison results are determined as the navigation items that the user can set, so that the user can set the visibility of the navigation items. The navigation items corresponding to different threshold ranges are at least partially different.
3. The method according to claim 1, wherein, The data features of the preset dimension include at least one of the following: Behavioral features used to indicate the degree of task completion by a user in the target application, behavioral features used to indicate the task processing efficiency of a user in the target application, behavioral features used to indicate the operational problem rate of a user's task operations in the target application, and duration features used to indicate the length of time the user has been employed.
4. The method according to claim 3, wherein, When the data feature includes the duration feature used to indicate the user's length of employment: The method further includes: obtaining a corresponding onboarding duration weight based on a preset time decay coefficient and the onboarding duration; and updating the calculated dynamic display weight based at least on the onboarding duration weight. The step of determining the navigation item that matches the dynamic display weight as the user-configurable navigation item includes: determining the navigation item that matches the updated dynamic display weight as the user-configurable navigation item.
5. The method according to any one of claims 1-4, wherein, The method further includes: Real-time detection of new user behavior data generated by the user's behavior in the target application; and based on the new user behavior data, detection of data feature anomalies. The anomaly class of the data features is determined based on the anomaly detection results, and the dynamic display weight is adjusted according to the anomaly type.
6. The method according to claim 5, wherein, The step of correcting the dynamic display weight according to the anomaly type includes: If the anomaly type indicates that the data feature has undergone a feature mutation, then the dynamic display weight is updated based on the new user behavior data, and the updated dynamic display weight is adjusted by weight coefficient correction. The dynamic display weights are adjusted based on the results of the correction process.
7. The method according to claim 5, wherein, The step of correcting the dynamic display weight according to the anomaly type includes: If the anomaly type indicates that the data feature meets the preset anomaly triggering conditions, then the dynamic display weight is corrected according to the correction rules corresponding to the anomaly triggering conditions.
8. A method for displaying page elements, comprising: Display a human-computer interaction interface with a navigation bar in the target application, wherein the navigation bar includes multiple navigation items, and the multiple navigation items include custom navigation items that are visible through visibility settings; Specifically, the custom navigation items that are visible are matched with the dynamic display weights of the user's navigation items. The dynamic display weights are determined based on the user's behavioral characteristics and dynamic weight calculation strategies corresponding to the user's behavior data in the target application.
9. The method according to claim 8, wherein, The behavioral characteristics include at least one of the following: Behavioral features used to indicate the degree of task completion by a user in the target application, behavioral features used to indicate the task processing efficiency of a user in the target application, behavioral features used to indicate the operational problem rate of a user's task operations in the target application, and behavioral features used to indicate the length of time the user has been employed.
10. The method according to claim 8 or 9, wherein, The navigation bar also includes settings for indicating the addition of custom navigation items; The method further includes: Based on the trigger operation set, a page for generating custom navigation items is displayed, the page including at least the input items of the page corresponding to the navigation item to be generated; Receive page information input through the input field, generate custom navigation items based on the page information, and display the generated custom navigation items in the navigation bar.
11. An electronic device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform an operation corresponding to the method as described in any one of claims 1-10.
12. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of claims 1-10.
13. A computer program product comprising computer instructions that instruct a computing device to perform an operation corresponding to any one of the methods described in claims 1-10.
