CN115826960A - Form page display method and device, electronic equipment and storage medium - Google Patents

Form page display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115826960A
CN115826960A CN202211092588.9A CN202211092588A CN115826960A CN 115826960 A CN115826960 A CN 115826960A CN 202211092588 A CN202211092588 A CN 202211092588A CN 115826960 A CN115826960 A CN 115826960A
Authority
CN
China
Prior art keywords
target
frequency
page
form page
target form
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211092588.9A
Other languages
Chinese (zh)
Inventor
陈鹏威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Netease Zaigu Technology Co Ltd
Original Assignee
Hangzhou Netease Zaigu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Netease Zaigu Technology Co Ltd filed Critical Hangzhou Netease Zaigu Technology Co Ltd
Priority to CN202211092588.9A priority Critical patent/CN115826960A/en
Publication of CN115826960A publication Critical patent/CN115826960A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and a device for displaying a form page, electronic equipment and a storage medium. The method comprises the steps of obtaining a monitoring list of a form page, wherein the monitoring list comprises target form elements to be monitored; judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value or not; if the judgment is yes, displaying the target form item in a display area of the form page, and if the judgment is no, displaying the target form item in a hidden area of the form page, wherein the display area is visible and the hidden area is invisible. According to the method and the device, the page can be displayed according to the user preference, and the user experience is improved.

Description

Form page display method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of computers, in particular to a form page display method and device, electronic equipment and a storage medium.
Background
The form is a data collection tool commonly used on a Web page, and can be used for collecting information of a user, for example, the user can fill in a questionnaire, edit an order, and the like through a form Web page, and the form is a bridge for communication between a website server and a page visitor.
At present, the display of forms in a web page usually requires developers to manually write various forms according to different requirements, and develop different form elements according to different business scenes. In practical application, developers need to manually adjust the page code of each form page, development efficiency is low, continuous adjustment of existing logic in the code is involved in adjusting the page code, and flexibility and reusability of form development are poor.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present application provide a form page display method, a form page display apparatus, an electronic device, and a computer-readable storage medium, which can display a page according to user preferences, thereby improving user experience.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of the embodiment of the present application, a method for displaying a form page is provided, including: acquiring a monitoring list of a form page, wherein the monitoring list comprises target form elements to be monitored; judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value or not; if the judgment is yes, displaying the target form item in a display area of the form page, and if the judgment is no, displaying the target form item in a hidden area of the form page, wherein the display area is visible, and the hidden area is invisible.
In an exemplary embodiment, before the determining whether the frequency of the interactive operations for the target form element is greater than a preset threshold, the method further comprises: recording the trigger time corresponding to each interactive operation; configuring weights for corresponding interactive operations based on each trigger time; determining a frequency of interactions for the target form element based on each interaction and the corresponding weight.
In an exemplary embodiment, the configuring the weight for the corresponding interactive operation based on each trigger time includes: if the distance between each trigger time and the current time is shorter, the corresponding weight is configured to be larger, otherwise, if the distance between each trigger time and the current time is longer, the corresponding weight is configured to be smaller.
In an exemplary embodiment, the method further comprises: and controlling the table elements included in the hidden area to be converted into a visible state in response to the interactive instruction aiming at the hidden area.
In an exemplary embodiment, after the determining is that the target form item is displayed in the display area of the form page, and if the determining is not that the target form item is displayed in the hidden area of the form page, the method further includes: and if a trigger instruction aiming at the interactive operation of the target form element is monitored, updating the frequency of the interactive operation of the target form element.
In an exemplary embodiment, if the trigger instruction for the interaction operation of the target form element is monitored, updating the frequency of the interaction operation of the target form element includes: inquiring the frequency of interactive operation matched with the target table element from a preset operation frequency record table in response to the trigger instruction, wherein a primary key column of the operation frequency record table comprises the target table element, and a primary key value of the target table element is the corresponding operation frequency; and updating the frequency of the interactive operation matched with the target table unit element, and storing the updated frequency in the operation frequency record table.
In an exemplary embodiment, if a trigger instruction for an interactive operation on the target form element is monitored, the updated frequency is stored in the operation frequency record table, and the method further includes: and if the permission interaction button of the client is detected to be in an open state, reporting the updated operation frequency record table to the server, wherein the client sets whether to share the operation frequency record table by controlling the on-off state of the permission interaction button.
According to an aspect of the embodiments of the present application, there is provided a device for displaying a form page, including: the acquisition module is used for acquiring a monitoring list of the form page, and the monitoring list comprises target form elements to be monitored; the judging module is used for judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value or not; and the display module is used for displaying the target form item in a display area of the form page if the judgment result is yes, and displaying the target form item in a hidden area of the form page if the judgment result is no, wherein the display area is visible, and the hidden area is invisible.
According to an aspect of the embodiments of the present application, there is provided an electronic device, including a processor and a memory, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, implement the method for presenting the above form page.
According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions, which, when executed by a processor of a computer, cause the computer to execute the method for presenting a form page as previously provided.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to execute the presentation method of the form page provided in the above-mentioned various optional embodiments.
The technical scheme provided by the embodiment of the application obtains a monitoring list of a form page, wherein the monitoring list comprises target form elements to be monitored; judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value or not; if the judgment is yes, displaying the target form item in a display area of the form page, and if the judgment is no, displaying the target form item in a hidden area of the form page, wherein the display area is visible and the hidden area is invisible. The scheme of the embodiment is to carry out a secondary rendering process on the existing form page, so that the development framework and the development flow of the original project are not interfered, the development access cost is extremely low, the system source code is not polluted, the original logic of the source code is not modified, and the original readability and maintainability of the source code are ensured; in addition, part of the target form elements are displayed in the hidden area based on the frequency of interactive operation of the target form elements, and because the large probability of the hidden form elements is not interesting or preferred by the user and the large probability of the displayed form elements is preferred by the user, the method can 4. Effectively filter the content which is not used by the user, thereby facilitating the user to quickly find the form elements needing to be filled in and improving the operation efficiency of form business.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a flow chart of a method for presenting a form page shown in an exemplary embodiment of the present application;
FIG. 2 is a flowchart illustrating the marking step for a form control corresponding to a specified form element in one exemplary embodiment;
FIG. 3 is a flowchart illustrating the steps of updating the frequency of interoperation of a target form element in an exemplary embodiment;
FIG. 4 is a flowchart illustrating the steps of updating the frequency of interoperation of a target form element in accordance with another exemplary embodiment;
fig. 5 is a flowchart illustrating a procedure of reporting an operation frequency record table to a server in an exemplary embodiment;
FIG. 6 is a diagram of a form page shown in an exemplary embodiment;
FIG. 7 is a flow chart of another embodiment of a method for displaying a form page based on the embodiment shown in FIG. 1;
FIG. 8 is a block diagram of a presentation device of a form page shown in an exemplary embodiment of the present application;
FIG. 9 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It should also be noted that: reference to "a plurality" in this application means two or more. "and/or" describe the association relationship of the associated objects, meaning that there may be three relationships, e.g., A and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the process of daily service iteration, a service system is more and more bloated with the passage of time, for example, in a service flow, the contents of a form to be filled originally can be submitted only by filling a few pieces of key information. But the content of the form page is increased and the interaction is more and more complex as time goes by. The following problems exist for users, research personnel and maintenance cost:
with the increase of services included in a service system, the threshold becomes higher gradually for a user, and even if the user knows what the user needs to do clearly, the user does not know how to do so in a huge form page, and the user can only achieve the purpose of filling content correctly, so that the user experience is poor.
Due to the long time, the replacement of related personnel in the middle and the like, the product document is lost, the code is lack of annotation, and the problem that the business logic is not understood by people is caused.
Due to the fact that the continuous evolution of development frameworks and components causes that most projects cannot be traced due to the fact that the frameworks are lagged behind and the business logic cannot be traced, research and development personnel only can continuously increase codes but are not dared to delete the codes, and worry that a certain function on the line is caused to be in a problem due to self modification, but the cost of the test is increased due to the fact that the complete regression test is carried out.
In the face of changes brought by service development and adjustment, a certain function is required to be modified, but in order to ensure the stability of the online function, only content can be continuously added, the logic is more and more complex, the content is more and more, only one file can be modified, but the adjustment logic takes several times of time to carry out logical combing, so that a user can understand conveniently, the file prompt is everywhere on a form page, but actually no effect is achieved, and finally only a system can be combed and reconstructed.
In addition, because the habits of each user are different, the operation flows corresponding to the service scenes are different, different common function points exist for different users in the same form interface, and even if the common function points are reconstructed, the information collection and investigation need to be carried out at a large time cost, so that the influence on the online normal service caused by the fact that the functions of part of the users cannot be used is avoided.
In order to solve the above drawbacks, the present embodiment provides a method, an apparatus, an electronic device and a storage medium for displaying a form page, which are described in detail below.
Referring to fig. 1, fig. 1 is a flowchart of a method for displaying a form page according to an exemplary embodiment of the present application, where the method for displaying a form page in the present embodiment may be applied to a device for displaying a form page, and the device for displaying a form page in the present application may be a server, a mobile device, or a system in which a server and a mobile device cooperate with each other. Accordingly, each part, such as each unit, sub-unit, module, and sub-module, included in the mobile device may be all disposed in the server, may also be all disposed in the mobile device, and may also be disposed in the server and the mobile device, respectively.
Further, the server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules, for example, software or software modules for providing distributed servers, or as a single software or software module, and is not limited herein.
The application scene of the form page display method provided by the embodiment can be that the displayed form page is intervened after being generated, and the form page is subjected to secondary rendering, so that the purpose is achieved. By the method, the existing form page creation flow is not changed, the existing front-end rendering framework is not relied on, and the rendering result of the form page is interfered under the condition that the existing system code is not changed as much as possible. In addition, the reconstruction frequency, the reconstruction risk and the reconstruction cost of historical projects in system research and development are reduced, and the cost of online page management and service use condition information collection is reduced.
As shown in fig. 1, the method for displaying a form page provided by this embodiment includes steps S101 to S103, and the detailed description refers to the following:
step S101: and acquiring a monitoring list of the form page.
In this embodiment, the snoop list includes the target form elements to be snooped.
Form elements are elements that allow a user to enter information into a form, such as text fields, drop down lists, radio boxes, check boxes, and the like, and serve primarily to gather information.
The embodiment pre-specifies the target form element to be listened to, which is included in the listening list. The target form element is one or more specified form elements included in the form page.
Illustratively, in this embodiment, marking is performed on a form control corresponding to a specified form element, and then a monitoring mark is added to the specified form element, and then a monitoring list is generated based on a target form element to which the monitoring mark is added.
Referring to fig. 2, fig. 2 is a flowchart illustrating a step of marking a form control corresponding to a specified form element in an original code, where as shown in fig. 2, the step of marking the form control corresponding to the specified form element includes steps S201 to S205, and the following is described in detail:
step S201: and taking the first form element control as a pending form element control.
Step S202: and acquiring node information of the element control of the unit to be determined in the original code.
Step S203: and judging whether to monitor the to-be-determined form element control or not based on the monitoring list, if so, jumping to the step S204, and if not, taking the node information of the next form element control as the updated to-be-determined form element control, and jumping to the step S202.
Step S204: marking the singleton control to be determined to form a monitoring mark.
Step S205: and judging whether the element control to be determined is the last element control, if so, jumping to S206, and if not, jumping to the step S202.
Step S206: and finishing the marking process of the form control corresponding to the specified form element.
In the embodiment, when the code after marking is submitted, the generation of the monitoring list is automatically triggered by the script.
Illustratively, when the original code cannot be modified, in this embodiment, a data description file, that is, a JSON (javascript object notation) file, is directly maintained, and a form control corresponding to a specified form element is marked in a manner of dynamically maintaining the data description file remotely, so as to add a monitoring mark to the specified form element, and further generate a monitoring list based on a target form element to which the monitoring mark is added.
Illustratively, whether the SDK script corresponding to the access request of the browser is updated or not is judged, and the monitoring list is obtained according to the obtained monitoring list and the obtained monitoring list obtained through local analysis and compared, so that the final monitoring list to be intervened of the current page is obtained, and the purpose of updating the monitoring list in real time is achieved.
Step S102: and judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value.
The inventor of the application finds that the interactive behavior of the user aiming at the form element can reflect the operation habit and preference of the user, so that if the operation frequency of the user aiming at the interactive behavior of the target form element on the form page can be counted, the target form element can be dynamically displayed or hidden and controlled in a personalized mode according to the operation habit and the preference of the user, and the filtering of the displayed content is basically realized.
In the present embodiment, the interactive operations include, but are not limited to, mouse clicking, dragging, keyboard entry operations, etc. for the target form element control.
In this embodiment, the interaction operation for the target form element within the preset time period is obtained, for example, the interaction operation for the target form element within one month is obtained, the preset time period may be flexibly set according to an actual application scenario, and a specific time period for triggering the interaction operation is not limited, for example, if a time for a user to use a browser is short, it indicates that the user is a new user for the browser, and at this time, if the time for the user to use the browser is too short, the preset time period is set to be longer, otherwise, if the time for the user to use the browser is longer, it indicates that the user is an old user for the browser, and it indicates that the user performs too many interaction operations for the new user for the browser at this time, and then the preset time period is set to be shorter.
Form controls are controls that allow a user to operate, thereby receiving data input by the user. Illustratively, the user's interaction with the form controls of the target form element is treated as an interaction with the corresponding target form element.
The size of the preset threshold used for controlling the frequency of the target table element is preset in the embodiment, and the specific range of the preset threshold is not limited, and the preset threshold can be flexibly set according to the actual application scene. Illustratively, the average frequency of the interactions of the entire user population for the target form element over a preset time period is analyzed as a preset threshold for controlling the frequency of the target form element.
Step S103: if the judgment result is yes, displaying the target form item in the display area of the form page, and if the judgment result is no, displaying the target form item in the hidden area of the form page.
In this embodiment, it is set that the display area is visible and the hidden area is invisible, in this embodiment, if it is determined that the frequency of the interactive operation for the target form element is greater than the preset threshold, it is determined that a user prefers or is accustomed to operating the target form element, and therefore the target form item is displayed in the display area of the form page, otherwise, if it is determined that the frequency of the interactive operation for the target form element is less than or equal to the preset threshold, it is determined that the user has no preference for the target form element at a high probability, and therefore the target form element is displayed in the hidden area of the form page. Because the large hidden probability of the table elements is not interesting or preferred by the user and the large displayed probability of the table elements is preferred by the user, the table elements visible to the user can be reduced by the method, the user can conveniently and quickly find the table elements needing to be filled, and the completion efficiency of the form service is improved.
Illustratively, in response to an interactive instruction for the hidden area, the table elements included in the hidden area are controlled to transition to a visible state. Considering that a user may have an interactive operation demand on a target form element included in a hidden area, for example, in a case where the user fills in a new form, the form element included in the form is added to the hidden area of the form page due to no interactive operation, in this case, to avoid that the user cannot see the form element included in the hidden area, an interactive instruction for the hidden area may be sent to control the form element included in the hidden area to be changed into a visible state, and in this way, autonomy of the user in operating the form element included in the hidden area may be ensured. Illustratively, an interactive control which controls whether the display state of the hidden area is visible or not is set, a user triggers the interactive control to send an interactive instruction aiming at the hidden area, and form elements included in the hidden area are controlled to be converted into the visible state.
Illustratively, if the frequency of the interactive operation for the target form element is judged to be greater than a preset threshold, the target form item is displayed in a display area of a form page, if the frequency of the interactive operation for the target form element is judged to be less than or equal to the preset threshold, the target form item is displayed behind a hidden area of the form page, at this time, the form page has completed secondary rendering, the form element which is not commonly used by the user is hidden, if a trigger instruction of the interactive operation for the target form element is monitored, the frequency of the interactive operation for the target form element is updated, further, the operation condition of the user on the current form page is collected, and when the next form page is opened, the display and hidden content of the subsequent form page are judged.
Illustratively, referring to fig. 3, fig. 3 is a flowchart illustrating a step of updating the frequency of the interaction operation of the target form element according to an exemplary embodiment, and as shown in fig. 3, the step of updating the frequency of the interaction operation of the target form element includes steps S301 to S302, which are described in detail as follows:
step S301: and inquiring the frequency of the interactive operation matched with the target table unit element from a preset operation frequency recording table in response to a trigger instruction.
In this embodiment, the primary key of the operation frequency record table is listed as each target form element, and the primary key of the target form element is the operation frequency corresponding to the target form element. And determining the frequency of the interactive operation matched with the target table element by inquiring the target table element in the operation frequency recording table.
Step S302: and updating the frequency of the interactive operation matched with the target table unit element, and storing the updated frequency in an operation frequency record table.
In this embodiment, the updated frequency is obtained by adding 1 to the frequency of the interactive operation matched with the target table element, and the updated frequency is stored in the operation frequency record table and is used as the primary key value corresponding to the target table element.
Illustratively, referring to fig. 4, fig. 4 is a flowchart illustrating a step of updating a frequency of interaction operations of a target tableelement according to another exemplary embodiment, and as shown in fig. 4, the step of updating the frequency of interaction operations of the target tableelement includes steps S401-S406, which are described in detail as follows:
step S401: in response to a snoop event.
In this embodiment, the listening event is a user interaction with respect to a target form element. Illustratively, if the interactive operation of the user for the form control of the target form element is monitored, the interactive operation is taken as the interactive operation of the user for the target form element.
Step S402: and acquiring a target table element corresponding to the monitoring event.
Step S403: matching is performed in the operation frequency record table based on the target table element.
And matching the primary key column of the operation frequency record table with a target table element, if the primary key column of the operation frequency record table can be matched with the target table element, determining that a primary key corresponding to the target table element exists, and if the primary key column of the operation frequency record table can not be matched with the target table element, determining that the target table element does not exist in the operation frequency record table, namely, indicating that the frequency of interactive operation corresponding to the target table element is 0.
Step S404: and judging whether a primary key corresponding to the target table element exists, if so, jumping to the step S405, and if not, jumping to the step S406.
In the present embodiment, it is determined whether or not the primary key corresponding to the target form element exists in the operation frequency registration table.
Step S405: and updating the corresponding frequency of the target table unit element.
And adding 1 to the frequency corresponding to the target table unit element to obtain an updated frequency, storing the updated frequency in the operation frequency record table, and using the updated frequency as a primary key value corresponding to the target table unit element.
Step S406: and storing the target form element as a main key in an operation frequency recording table, and jumping to the step S405.
In this embodiment, if the target table element cannot match the operation frequency record table, it is determined that the target table element does not exist in the operation frequency record table, the target table element is stored in the operation frequency record table as a primary key, and a key value corresponding to the target table element is set to 0.
Exemplarily, if a trigger instruction for the interactive operation of the target table element is monitored, the updated frequency is stored in the operation frequency record table, and if it is detected that the permission interactive button of the client is in an on state, the updated operation frequency record table is reported to the server, so that the server determines whether the frequency of the interactive operation of the target table element is greater than a preset threshold value based on the operation frequency record table.
As time goes by, the sharing will of the user for data such as the operation frequency record list may change, and this embodiment periodically detects whether the permission interaction button is in an open state, and if it is detected that the permission interaction button of the client is in the open state, reports the updated operation frequency record list to the server, so that the server determines whether the frequency of the interaction operation for the target table element is greater than a preset threshold value based on the operation frequency record list.
For example, in this embodiment, a reporting parameter may be set in the SDK script in advance, and then whether to report the operation frequency record table to the server is limited by the reporting parameter. Referring to fig. 5, fig. 5 is a flowchart illustrating a step of reporting an operation frequency record table to a server in an exemplary embodiment, and as shown in fig. 5, the step of reporting the operation frequency record table to the server includes steps S1 to S4, which are described in detail as follows:
step S1: and acquiring reporting parameters from the SDK.
In this embodiment, the meaning represented by the reporting parameter value is preset, so as to determine whether to report the operation frequency record table according to the value of the reporting parameter. For example, it is set that when the value of the reporting parameter is 1, the operation frequency record table is determined to be reported, and when the value of the reporting parameter is 0, the operation frequency record table is determined not to be reported.
Step S2: and determining whether to report the operation frequency record table or not based on the reporting parameters, if so, skipping to the step S3, and if not, skipping to the step S1.
And step S3: and judging whether the current time is a reporting period, if so, skipping to the step S5, and if not, skipping to the step S1.
In order to save computational resources and speed up the display efficiency of the form page, the embodiment presets a reporting period, reports the operation frequency record table to the server at the time of the reporting period, and directly skips to step S1 at the time of the non-reporting period.
And step S4: and reporting the operation frequency record table to the server.
In this embodiment, a reporting parameter is set in the SDK script in advance, and whether to report the operation frequency record table to the server is further limited by the reporting parameter. In addition, by presetting a reporting period and reporting the operation frequency record table to the server at the time of the reporting period, the purposes of saving calculation resources and accelerating the display efficiency of the form page are achieved.
In the embodiment, in consideration of the trend that the user attaches more and more importance to the private information, the interaction button for the user to set whether to share the operation frequency record list is set at the client, and specifically, the client sets whether to share the operation frequency record list by controlling the on-off state of the permission interaction button.
Illustratively, referring to fig. 6, fig. 6 is a schematic diagram of a form page shown in an exemplary embodiment, and as shown in fig. 6, the form page includes a display area and a hidden area, wherein the display area includes a target form element with a frequency of interactive operations greater than a preset threshold, and the hidden area includes a target form element with a frequency of interactive operations less than or equal to a preset threshold.
The method for displaying the form page provided by the embodiment includes the steps of obtaining a monitoring list of the form page, wherein the monitoring list comprises target form elements to be monitored; judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value or not; if the judgment is yes, displaying the target form item in a display area of the form page, and if the judgment is no, displaying the target form item in a hidden area of the form page, wherein the display area is visible and the hidden area is invisible. The scheme of the embodiment is to carry out a secondary rendering process on the existing form page, so that the development framework and the development flow of the original project are not interfered, the development access cost is extremely low, the system source code is not polluted, the original logic of the source code is not modified, and the original readability and maintainability of the source code are ensured; in addition, part of the target form elements are displayed in the hidden area based on the frequency of interactive operation of the target form elements, and because the large probability of the hidden form elements is not interesting or preferred by the user and the large probability of the displayed form elements is preferred by the user, the content which is not useful to the habit of the user can be effectively filtered by the method, the user can conveniently and quickly find the form elements needing to be filled, and the operation efficiency of form services is improved.
Exemplarily, referring to fig. 7, fig. 7 is a flowchart of another embodiment of a method for displaying a form page provided on the basis of the embodiment shown in fig. 1, as shown in fig. 7, before step 101, the method for displaying a form page provided by this embodiment further includes steps S501 to S503, and the detailed description refers to the following:
step S501: and recording the trigger time corresponding to each interactive operation.
Considering that the preference and habit of the user for the form element change with the passage of time, the embodiment configures the weight for the corresponding interactive operation based on the trigger time corresponding to each interactive operation, and further determines the interactive operation frequency of the target form element based on each interactive operation and the corresponding weight.
In this embodiment, the triggering operation of the user for the target form element control corresponding to each target form element is an interactive operation, and the triggering time of the user for the target form element control corresponding to each target form element is the triggering time of the corresponding interactive operation.
Step S502: weights are configured for the corresponding interactions based on the respective trigger times.
In this embodiment, the sum of the weights corresponding to all the interactive operations is 1. For example, the closer each trigger time is to the current time, the higher the corresponding weight is configured, whereas the farther each trigger time is from the current time, the lower the corresponding weight is configured.
Step S503: the frequency of the interoperation for the target form element is determined based on the respective interoperation and the corresponding weight.
In the present embodiment, the frequency of each interactive operation is 1. The frequency weighted sum of each interactive operation is calculated based on the weight and frequency corresponding to each interactive operation, and the obtained weighted sum value is used as the frequency of the interactive operation for the target form element.
According to the method, the preference and the habit of the user for the table elements are fully considered to be changed along with the time, so that the weight is configured for the corresponding interactive operation based on the trigger time corresponding to each interactive operation, and then the interactive operation frequency of the target table elements is determined based on each interactive operation and the corresponding weight.
Referring to fig. 8, fig. 8 is a block diagram of a presentation apparatus for a form page according to an exemplary embodiment of the present application, and as shown in fig. 8, the presentation apparatus 600 for a form page includes an obtaining module 601, a determining module 602, and a presentation module 603.
The acquisition module 601 is configured to acquire a monitoring list of a form page, where the monitoring list includes target form elements to be monitored; the determining module 602 is configured to determine whether a frequency of the interactive operation for the target table element is greater than a preset threshold; the display module 603 is configured to display the target form item in a display area of the form page if the determination is yes, and display the target form item in a hidden area of the form page if the determination is no, where the display area is visible and the hidden area is invisible.
In another exemplary embodiment, the presentation apparatus 600 for a form page further includes a recording module, a configuration module, and a determination module, where the recording module is configured to record a trigger time corresponding to each interactive operation; the configuration module is used for configuring the weight for the corresponding interactive operation based on each trigger time; the determining module is used for determining the frequency of the interactive operation aiming at the target table element based on each interactive operation and the corresponding weight, wherein if each trigger time is closer to the current time, the corresponding weight is configured to be larger, otherwise, if each trigger time is farther from the current time, the corresponding weight is configured to be smaller.
In another exemplary embodiment, the presentation apparatus 600 of the form page further includes a response module for controlling the table elements included in the hidden area to be changed into the visible state in response to the interactive instruction for the hidden area.
In another exemplary embodiment, the apparatus 600 for displaying a form page further includes an updating module, configured to update the frequency of the interaction operation of the target form element if a trigger instruction for the interaction operation of the target form element is monitored.
In another exemplary embodiment, the updating module includes a response unit and an updating unit, where the response unit is configured to query, in response to a trigger instruction, a preset operation frequency record table for a frequency of interactive operations matching a target table element, a primary key column of the operation frequency record table includes the target table element, and a primary key value of the target table element is a corresponding operation frequency; the updating unit is used for updating the frequency of the interactive operation matched with the target table unit element and storing the updated frequency in the operation frequency recording table.
It should be noted that the apparatus provided in the foregoing embodiment and the method provided in the foregoing embodiment belong to the same concept, and the specific manner in which each module and unit execute operations has been described in detail in the method embodiment, and is not described again here.
In another exemplary embodiment, the present application provides an electronic device comprising a processor and a memory, wherein the memory has stored thereon computer readable instructions which, when executed by the processor, implement the foregoing game account number recommendation method. In this embodiment, the electronic device includes, but is not limited to, a mobile phone, a computer, an intelligent voice interaction device, an intelligent appliance, a vehicle-mounted terminal, and the like.
FIG. 9 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 1000 of the electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 9, the computer system 1000 includes a Central Processing Unit (CPU) 1001 that can perform various appropriate actions and processes, such as performing the information recommendation method in the above-described embodiment, according to a program stored in a Read-Only Memory (ROM) 1002 or a program loaded from a storage portion 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for system operation are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An Input/Output (I/O) interface 1005 is also connected to the bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. When the computer program is executed by a Central Processing Unit (CPU) 1001, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
It is understood that in the specific implementation of the present application, the data related to the user information, etc. need to obtain user permission or consent when the above embodiments of the present application are applied to specific products or technologies, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related countries and regions.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer readable storage medium, on which computer readable instructions are stored, which when executed by a processor implement the presentation method of the form page as in any one of the previous embodiments.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the presentation method of the form page provided in the above embodiments.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
The above description is only a preferred exemplary embodiment of the present application, and is not intended to limit the embodiments of the present application, and those skilled in the art can easily make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for displaying a form page is characterized by comprising the following steps:
acquiring a monitoring list of a form page, wherein the monitoring list comprises target form elements to be monitored;
judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value or not;
if the judgment is yes, displaying the target form item in a display area of the form page, and if the judgment is no, displaying the target form item in a hidden area of the form page, wherein the display area is visible, and the hidden area is invisible.
2. The method of claim 1, wherein prior to said determining whether the frequency of the interactions for the target form element is greater than a preset threshold, the method further comprises:
recording the trigger time corresponding to each interactive operation;
configuring weights for corresponding interactive operations based on each trigger time;
determining a frequency of interoperation for the target form element based on the respective interoperation and the corresponding weight.
3. The method of claim 2, wherein configuring weights for corresponding interactions based on respective trigger times comprises:
if the distance between each trigger time and the current time is shorter, the corresponding weight is configured to be larger, otherwise, if the distance between each trigger time and the current time is longer, the corresponding weight is configured to be smaller.
4. The method of claim 1, further comprising:
and controlling the table elements included in the hidden area to be converted into a visible state in response to the interactive instruction aiming at the hidden area.
5. The method of claim 1, wherein if the determining is yes, the target form item is displayed in a display area of the form page, and if the determining is no, the method further comprises:
and if a trigger instruction aiming at the interactive operation of the target form element is monitored, updating the frequency of the interactive operation of the target form element.
6. The method of claim 5, wherein updating the frequency of interactions for the target form element if a trigger instruction for the interactions for the target form element is monitored comprises:
inquiring the frequency of interactive operation matched with the target table element from a preset operation frequency record table in response to the trigger instruction, wherein a primary key column of the operation frequency record table comprises the target table element, and a primary key value of the target table element is the corresponding operation frequency;
and updating the frequency of the interactive operation matched with the target table unit element, and storing the updated frequency in the operation frequency record table.
7. The method of claim 6, wherein if an instruction triggering an interactive operation with respect to the target form element is monitored, the updated frequency is stored after the operation frequency record table, and the method further comprises:
and if the permission interaction button of the client is detected to be in an open state, reporting the updated operation frequency record table to the server, wherein the client sets whether to share the operation frequency record table by controlling the on-off state of the permission interaction button.
8. A device for displaying a form page, comprising:
the acquisition module is used for acquiring a monitoring list of the form page, and the monitoring list comprises target form elements to be monitored;
the judging module is used for judging whether the frequency of the interactive operation aiming at the target table element is greater than a preset threshold value or not;
and the display module is used for displaying the target form item in a display area of the form page if the judgment result is yes, and displaying the target form item in a hidden area of the form page if the judgment result is no, wherein the display area is visible, and the hidden area is invisible.
9. An electronic device, comprising:
a memory storing computer readable instructions;
a processor to read computer readable instructions stored by the memory to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-readable instructions stored thereon which, when executed by a processor of a computer, cause the computer to perform the method of any one of claims 1-7.
CN202211092588.9A 2022-09-07 2022-09-07 Form page display method and device, electronic equipment and storage medium Pending CN115826960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211092588.9A CN115826960A (en) 2022-09-07 2022-09-07 Form page display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211092588.9A CN115826960A (en) 2022-09-07 2022-09-07 Form page display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115826960A true CN115826960A (en) 2023-03-21

Family

ID=85523461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211092588.9A Pending CN115826960A (en) 2022-09-07 2022-09-07 Form page display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115826960A (en)

Similar Documents

Publication Publication Date Title
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
CN110300084B (en) IP address-based portrait method and apparatus, electronic device, and readable medium
CN103069413A (en) Customizing content displayed for a user based on user preferences of another user
CN111641629B (en) Abnormal behavior detection method, device, equipment and storage medium
CN113094136A (en) Page display control method and device, storage medium and electronic equipment
CN105740331A (en) Information push method and device
CN111181770A (en) Resource allocation method, system, electronic equipment and storage medium
CN112241327A (en) Shared information processing method and device, storage medium and electronic equipment
CN105072139A (en) Recommendation method and recommendation device
CN111245642A (en) Method and device for acquiring dependency relationship between multiple systems and electronic equipment
CN110991789A (en) Method and device for determining confidence interval, storage medium and electronic device
CN112130781A (en) Log printing method and device, electronic equipment and storage medium
CN111221449A (en) Method and device for establishing and displaying sharing type activity and electronic equipment
CN104937613A (en) Heuristics to quantify data quality
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN111123778B (en) Method and device for monitoring vehicle use condition and electronic equipment
CN106790339A (en) Metadata server, network device, and automatic resource management method
CN115826960A (en) Form page display method and device, electronic equipment and storage medium
CN111010449B (en) Image information output method, system, device, medium, and electronic apparatus
CN115422202A (en) Service model generation method, service data query method, device and equipment
CN111143526B (en) Method and device for generating and controlling configuration information of counsel service control
CN114925275A (en) Product recommendation method and device, computer equipment and storage medium
CN109408716B (en) Method and device for pushing information
CN112260933A (en) Communication method, communication device, electronic equipment and medium
CN116720300B (en) Drainage pipe network model system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination