CN114385292A - Page display method, device, equipment and storage medium - Google Patents

Page display method, device, equipment and storage medium Download PDF

Info

Publication number
CN114385292A
CN114385292A CN202111640540.2A CN202111640540A CN114385292A CN 114385292 A CN114385292 A CN 114385292A CN 202111640540 A CN202111640540 A CN 202111640540A CN 114385292 A CN114385292 A CN 114385292A
Authority
CN
China
Prior art keywords
parameter
parameter input
display
input area
display content
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
CN202111640540.2A
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.)
China Unicom Smart Connection Technology Ltd
Original Assignee
China Unicom Smart Connection Technology 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 China Unicom Smart Connection Technology Ltd filed Critical China Unicom Smart Connection Technology Ltd
Priority to CN202111640540.2A priority Critical patent/CN114385292A/en
Publication of CN114385292A publication Critical patent/CN114385292A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Abstract

The embodiment of the application provides a page display method, a device, equipment and a storage medium, wherein the method comprises the following steps: and displaying a target page on a display interface, wherein the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state. Responding to a first input operation of a user, and acquiring at least two first parameters in at least two first parameter input areas; detecting whether the at least two first parameters accord with a first preset rule or not; and if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface. Thus, the efficiency of page refresh can be improved.

Description

Page display method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a page.
Background
At present, with the rapid development of electronic devices, more and more services can be completed through the electronic devices. When a user performs business processing or browses information through an electronic device, a page to which the user is required to fill in data is usually displayed in a display interface of the electronic device. When a page of a display interface of an electronic device needs to be refreshed, a global refresh method is generally used. For example, when a user logs in, the login button is gray, and at this time, the login button cannot be clicked. When the user inputs the user name and the login password, the page data is changed, and the login button is changed from gray to blue by refreshing the page to prompt the user to click to log in. When the page is refreshed, the electronic equipment acquires all data information in the page, re-renders the whole page to change the state of the login button into an available state, and changes the color of the login button into blue to prompt that the user can click to login. That is to say, in the related art, when data in a page changes and a local area of the page needs to be refreshed, all data information of the entire page needs to be acquired, and the entire content of the page is globally refreshed to refresh the local area of the page. However, at this time, the data of the other regions except the local region in the whole page is not changed, so that obtaining the data of the whole page while performing page refresh increases the page refresh time, resulting in low page refresh efficiency. And if the page is complex, it may be slow to acquire data of the whole page, which may cause the page to be stuck and affect the user experience.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, a device and a storage medium for displaying a page, so as to solve the problem in the prior art that when a page only needs to be locally refreshed, a global refresh method is used, which results in low page refresh efficiency.
In a first aspect, an embodiment of the present application provides a method for displaying a page, where the method is applied to an electronic device, and the method includes:
displaying a target page on a display interface, wherein the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content;
responding to a first input operation of a user, and acquiring at least two first parameters in the at least two first parameter input areas;
detecting whether the at least two first parameters accord with a first preset rule or not;
if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface; the third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the received first parameters are respectively displayed in the at least two first parameter input areas.
Preferably, the method further comprises:
if at least one of the at least two first parameters does not meet the first preset rule, updating the first display content of the target page into fourth display content in the display interface, wherein the fourth display content comprises at least two first parameter input areas and at least one second parameter input area, in the fourth display content, the at least two first parameter input areas are in an available state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
Preferably, after the first display content of the target page is updated to the third display content in the display interface, the method further includes:
responding to a second input operation of the user, and acquiring at least two first parameters in the at least two first parameter input areas again;
detecting whether the at least two acquired first parameters meet a first preset rule or not;
if at least one of the at least two reacquired first parameters does not accord with the first preset rule, switching the state of the at least one second parameter input area to a forbidden state, and updating third display content of the target page to fifth display content in the display interface, wherein the fifth display content comprises the at least two first parameter input areas and the at least one second parameter input area, in the fifth display content, the at least two first parameter input areas are in a usable state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
Preferably, in the first display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters; the first display parameter and the second display parameter are different;
the switching the state of the at least one second parameter input area to the available state comprises:
switching the state of the at least one second parameter input area to an available state, and switching the text display parameter corresponding to the at least one second parameter input area to the first display parameter;
in the third display content, the text display parameters corresponding to the at least two first parameter input areas and the at least one second parameter input area are all first display parameters.
Preferably, the switching the state of the at least one second parameter input area to the disabled state includes:
switching the state of the at least one second parameter input area to a forbidden state, and switching the text display parameter corresponding to the at least one second parameter input area to the second display parameter;
in the fifth display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters.
Preferably, the detecting whether the at least two first parameters meet a first preset rule includes:
detecting whether the ith first parameter accords with a first preset rule in the at least two first parameters according to a preset sequence; wherein i is an integer greater than 0 and less than n; n is the number of first parameter input areas contained in the first display content;
if the ith first parameter accords with the first preset rule, detecting whether the (i + 1) th first parameter accords with the first preset rule;
and if the ith first parameter does not accord with the first preset rule, determining that at least one of the at least two first parameters does not accord with the first preset rule.
Preferably, the second display content includes at least one third parameter input area and at least one fourth parameter input area; the at least one third parameter input area is in an available state and the at least one fourth parameter input area is in a disabled state; the method further comprises the following steps:
responding to a third input operation of the user, and acquiring at least one second parameter in the at least one third parameter input area;
detecting whether the at least one second parameter meets a second preset rule;
if the at least one second parameter meets the second preset rule, switching the state of the at least one fourth input area to an available state, and updating second display content of the target page to sixth display content in the display interface; the sixth display content includes the at least one third parameter input area and the at least one fourth parameter input area, in the sixth display content, the at least one third parameter input area and the at least one fourth parameter input area are both in an available state, and the at least one second parameter is displayed in the at least one third parameter input area.
Preferably, the method further comprises:
if at least one of the at least one second parameter does not meet the second preset rule, updating second display content of the target page into seventh display content in the display interface, wherein the seventh display content comprises the at least one third parameter input area and the at least one fourth parameter input area, the at least one third parameter input area is in an available state, the at least one fourth parameter input area is in a forbidden state, and the at least one second parameter is displayed in the at least one third parameter input area in the seventh display content.
In a second aspect, an embodiment of the present application provides a display device for a page, including:
the system comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is used for displaying a target page on a display interface, the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content;
an acquisition unit, configured to acquire at least two first parameters in the at least two first parameter input areas in response to a first input operation by a user;
the processing unit is used for detecting whether the at least two first parameters accord with a first preset rule or not;
if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface; the third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the received first parameters are respectively displayed in the at least two first parameter input areas.
Preferably, the processing unit is specifically configured to, if at least one of the at least two first parameters does not comply with the first preset rule, update the first display content of the target page in the display interface to fourth display content, where the fourth display content includes at least two first parameter input areas and at least one second parameter input area, and in the fourth display content, the at least two first parameter input areas are in an available state, the at least one second parameter input area is in a disabled state, and the at least two first parameter input areas respectively display the first parameters received by the at least two first parameter input areas.
Preferably, the obtaining unit is specifically configured to obtain at least two first parameters again in the at least two first parameter input areas in response to a second input operation by the user;
the processing unit is further configured to detect whether the at least two reacquired first parameters meet a first preset rule;
if at least one of the at least two reacquired first parameters does not accord with the first preset rule, switching the state of the at least one second parameter input area to a forbidden state, and updating third display content of the target page to fifth display content in the display interface, wherein the fifth display content comprises the at least two first parameter input areas and the at least one second parameter input area, in the fifth display content, the at least two first parameter input areas are in a usable state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
Preferably, the processing unit is further configured to switch the state of the at least one second parameter input area to an available state, and switch the text display parameter corresponding to the at least one second parameter input area to the first display parameter;
in the fifth display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters.
Preferably, the processing unit is further configured to detect, according to a preset sequence, whether an ith first parameter of the at least two first parameters meets a first preset rule; wherein i is an integer greater than 0 and less than n; n is the number of first parameter input areas contained in the first display content;
if the ith first parameter accords with the first preset rule, detecting whether the (i + 1) th first parameter accords with the first preset rule;
and if the ith first parameter does not accord with the first preset rule, determining that at least one of the at least two first parameters does not accord with the first preset rule.
Preferably, the obtaining unit is further configured to, in response to a third input operation by the user, obtain at least one second parameter in the at least one third parameter input area;
the processing unit is further configured to detect whether the at least one second parameter meets a second preset rule;
if the at least one second parameter meets the second preset rule, switching the state of the at least one fourth input area to an available state, and updating second display content of the target page to sixth display content in the display interface; the sixth display content includes the at least one third parameter input area and the at least one fourth parameter input area, in the sixth display content, the at least one third parameter input area and the at least one fourth parameter input area are both in an available state, and the at least one second parameter is displayed in the at least one third parameter input area.
Preferably, the processing unit is further configured to update, in the display interface, second display content of the target page to seventh display content if at least one of the at least one second parameter does not comply with the second preset rule, where the seventh display content includes the at least one third parameter input area and the at least one fourth parameter input area, and in the seventh display content, the at least one third parameter input area is in an available state, the at least one fourth parameter input area is in a disabled state, and the at least one second parameter is displayed in the at least one third parameter input area.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a processor and a memory, the memory storing a computer program that, when executed, performs the method steps of any of the above first aspects.
In a fourth aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the method in any one of the above first aspects.
By adopting the scheme provided by the embodiment of the application, the target page is displayed on the display interface, the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content; responding to a first input operation of a user, and acquiring at least two first parameters in at least two first parameter input areas; detecting whether the at least two first parameters accord with a first preset rule or not; if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface; the third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the at least two first parameter input areas respectively display the received first parameters.
That is to say, in the first display content in the target page displayed on the display interface, when the user inputs at least two first parameters in at least two first parameter input areas in the first display content, the display device of the page may only obtain the at least two first parameters, and detect whether the at least two first parameters meet the preset rule, if both the at least two first parameters meet the first preset rule, switch the state of the at least one second parameter input area to the available state, and update the first display content of the target page to the third display content in the display interface. Therefore, when a user inputs at least two first parameters in at least two first parameter input areas in first display content in the target interface, because data in second display content of the target page is not changed, a display device of the page does not need to acquire all data information of the first display content and the second display content in the target page, but only needs to acquire at least two first parameters in at least two first parameter input areas in the first display content, and after determining whether the at least two first parameters meet a first preset rule, the state of at least one second parameter input area is switched to an available state, and the first display content of the target page is updated to third display content in the display interface, so that the display of the target page is completed, the page refreshing time is saved, and the efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a page display method according to an embodiment of the present disclosure;
fig. 2 is a scene schematic diagram of a display interface according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another page display method according to an embodiment of the present application;
fig. 4 is a schematic view of another display interface provided in the embodiment of the present application;
fig. 5 is a schematic view of another display interface provided in the embodiment of the present application;
fig. 6 is a schematic view of another display interface provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of a display device for a page according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For better understanding of the technical solutions of the present application, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, when data in a page is changed to cause a local area of the page to need to be refreshed, all data information of the whole page needs to be acquired, and the whole content of the page is globally refreshed to realize the refreshing of the local area of the page. However, at this time, the data of the other regions except the local region in the whole page is not changed, so that obtaining the data of the whole page while performing page refresh increases the page refresh time, resulting in low page refresh efficiency. And if the page is complex, it may be slow to acquire data of the whole page, which may cause the page to be stuck and affect the user experience.
In view of the foregoing problems, an embodiment of the present application provides a method for displaying a page, which is applied to an electronic device, and the method includes: displaying a target page on a display interface, wherein the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content; responding to a first input operation of a user, and acquiring at least two first parameters in at least two first parameter input areas; detecting whether the at least two first parameters accord with a first preset rule or not; if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface; the third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the at least two first parameter input areas respectively display the received first parameters.
That is to say, when the user inputs at least two first parameters in at least two first parameter input areas in first display content in the target page, the display device of the page may only obtain the at least two first parameters, and detect whether the at least two first parameters meet a preset rule, if both the at least two first parameters meet the first preset rule, switch the state of the at least one second parameter input area to an available state, and update the first display content of the target page to third display content in the display interface. Therefore, when at least two first parameters are input in at least two first parameter input areas in first display content in the target interface, the display device of the page does not need to acquire all data information of the first display content and the second display content in the target page, but only acquires the at least two first parameters in the at least two first parameter input areas in the first display content, and after determining whether the at least two first parameters meet a first preset rule, the state of at least one second parameter input area is switched to an available state, and the first display content of the target page is updated to third display content in the display interface, so that the display of the target page is completed, the page refreshing time is saved, and the efficiency is improved.
Fig. 1 is a schematic flowchart of a page display method according to an embodiment of the present application. As shown in fig. 1, the method includes:
and step S101, displaying a target page on a display interface.
The target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content.
Specifically, a target page is displayed on a display interface, and the target page comprises first display content and second display content. The first display content comprises at least two first parameter input areas and at least one second parameter input area, wherein the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state. Wherein the state of the at least one second parameter input area is related to the parameters input by the user in the at least two first parameter input areas. The change occurs according to the difference of the at least two first parameters input by the user in the at least two first parameter input areas. For example, the state of the at least one second parameter input area can be changed to an available state only when the at least two first parameters input by the user in the at least two first parameter input areas both meet the preset rule, and otherwise, the state is a forbidden state. That is, the user must input at least two first parameters in at least two first parameter input areas to enter the parameters in at least one second parameter input area after the at least two first parameters both meet the preset rules, otherwise, the user cannot enter the parameters in at least one second parameter input area. The second display content is display content in the target page other than the first display content.
The usable state is a state in which the user is allowed to input data, and the prohibited state is a state in which the user is not allowed to input data.
As a possible implementation manner, in the first display content, the text display parameters corresponding to at least two first parameter input areas are first display parameters, and the text display parameters corresponding to at least one second parameter input area are second display parameters; the first display parameter and the second display parameter are different.
That is, to distinguish between the available state and the prohibited state of the parameter input area, the text display parameter corresponding to the parameter input area in the available state is the first display parameter, the text display parameter corresponding to the parameter input area in the prohibited state is the second display parameter, and the first display parameter is different from the second display parameter. In the embodiment of the application, the user is reminded that different input areas are in different states through different display parameters. Because the states of the at least two first parameter input areas are available states, the text display parameters corresponding to the at least two first parameter input areas can be first display parameters, so that a user can know that the text display parameters are in the available states directly through the first parameter input areas, and data input operation can be performed. The state of the at least one second parameter input area is a forbidden state, and the text display parameter corresponding to the at least one second parameter input area can be a second display parameter, so that a user can know that the user is in the forbidden state directly through the second parameter input area, and data input operation cannot be performed. For example, the first display parameter and the second display parameter may be color-related parameters, and the text display parameters corresponding to the at least two first parameter input areas are the first display parameters, for example, displayed in white; the text display parameter corresponding to the at least one second parameter input area is a second display parameter, for example, displayed in gray. In this way, the user can know whether the parameter can be input by looking at the color of the parameter input area. And whether the parameters can be input or not is determined without the operation of inputting data into the parameter input area, so that the user experience is improved.
Step S102, responding to a first input operation of a user, and acquiring at least two first parameters in at least two first parameter input areas.
In this embodiment, when the user inputs at least two first parameters in at least two first parameter input areas of the target page, the display device of the page may acquire the first parameters input by the user in the at least two first parameter input areas in response to the first input operation by the user.
As a possible implementation manner, when the user inputs the first parameters in the at least two first parameter input areas, and if the display device of the page does not receive the first parameters input by the user in the at least one first parameter input area, that is, the user only inputs the first parameters in a part of the first parameter input areas, and does not input the first parameters in all the first parameter input areas, the display device of the page may determine the first parameters of the at least one first parameter input area that does not receive the parameters input by the user as the preset values. For example, the first parameter is determined to be null.
Step S103, detecting whether the at least two first parameters accord with a first preset rule.
Specifically, after the at least two first parameters are obtained, the display device of the page needs to detect whether the at least two first parameters meet a first preset rule before refreshing the target page. If the at least two first parameters all conform to the first preset rule, it indicates that the at least two first parameters input by the user are correct, and then step S104 is executed.
It should be noted that the first preset rule is preset according to actual requirements, for example, a first parameter of the at least two first parameters must input a 1-bit number, and a second first parameter must be a combination of two-bit numbers; it is also possible that the first parameter of the at least two first parameters is a combination of letters that cannot exceed 6 digits, and the second first parameter must include upper and lower case letters, numbers, and the like. Of course, the first preset rule may also be in other forms, and may be preset according to actual requirements, which is not limited in this application.
And step S104, if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface.
The third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the at least two first parameter input areas respectively display the received first parameters.
In this embodiment, if the at least two first parameters all meet the first preset rule, it indicates that the at least two first parameters input by the user are correct, and a next operation may be performed, at this time, the state of the at least one second parameter input area is switched from the disabled state to the available state, that is, after the state of the at least one second parameter input area is switched from the disabled state to the available state, the user may input the second parameter in the at least one second parameter input area. And after the state of the at least one second parameter input area is switched from the forbidden state to the usable state, updating the first display content of the target page into third display content in the display interface. At this time, the target page includes third display content and second display content, wherein at least two first parameter input areas in the third display content are in an available state, the at least two first parameter input areas respectively display the received first parameters, and at least one second parameter input area is in an available state, and at this time, the user can input the second parameters in the at least one second parameter input area.
As a possible implementation manner, when the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters, the switching the state of the at least one second parameter input area to the available state includes:
switching the state of at least one second parameter input area into an available state, and switching the text display parameter corresponding to the at least one second parameter input area into a first display parameter;
in the third display content, the text display parameters corresponding to the at least two first parameter input areas and the at least one second parameter input area are all first display parameters.
That is to say, when the state of the at least one second parameter input area is switched from the disabled state to the available state, the text display parameter corresponding to the at least one second parameter input area needs to be switched from the second display parameter to the first display parameter, so that the user knows that the at least one second parameter input area can perform data input operation. The first display content of the target page is updated to be third display content in the display interface, in the third display content, text display parameters corresponding to at least two first parameter input areas and at least one second parameter input area are all first display parameters, the received first parameters are respectively displayed in the at least two first parameter input areas, and at the moment, a user can input corresponding second parameters in the at least one second parameter input area.
For example, if the user browses an entry page of an examination at the moment and needs to fill in entry information, the target page is the entry page. As shown in fig. 2(1), the display interface displays the entry page, and the entry page includes a first display content and a second display content. The first display content comprises two first parameter input areas, namely a name information input area 201 and an identification card number information input area 202; a second parameter input area, namely an entry information input area 203, is also included. The name information input area 201 and the identity card number information input area 202 are in an available state, the corresponding text display parameter is a first display parameter, the name information input area 201 and the identity card number information input area 202 are displayed in white, and a user can know that the name information input area 201 and the identity card number information input area 202 are both in the available state when seeing the name information input area 201 and the identity card number information input area 202 and can input data in the name information input area 201 and the identity card number information input area 202; the entry information input area 203 is in a forbidden state, the corresponding text display parameter is a second display parameter, the entry information input area 203 is filled with a slash, and a user can know that the entry information input area 203 is in the forbidden state and cannot input data when seeing the entry information input area 203. That is, the name information and the identification number information input by the user in the name information input area 201 and the identification number information input area 202 are the first parameters, and the registration information input area 203 is switched to the available state only when the user correctly inputs the name information and the identification number information to be input in the name information input area 201 and the identification number information input area 202. The second display content is the display content except the first display content in the registration page.
At this time, as shown in fig. 2(2), when the user inputs the name a in the name information input area 201, the id number B is input in the id number information input area 202. The display device of the page may obtain the name a and the id number B input by the user in the name information input area 201 and the id number information input area 202, and detect whether the name a and the id number B input by the user meet the first preset rule. Wherein, the first preset rule may be: the name input in the name information input area 201 cannot exceed 4 digits and cannot contain special characters such as numbers, letters and the like; the identification number inputted in the identification number information input area 202 cannot exceed 21 bits. Assuming that the name a and the identification number B input by the user both conform to the first preset rule, at this time, the state of the entry information input area 203 may be switched to the available state, the text display parameter corresponding to the entry information input area 203 is switched from the second display parameter to the first display parameter, and the first display content of the entry page is updated to the third display content in the display interface, as shown in fig. 2(3), where the entry page includes the third display content and the second display content. In the third display content, the name information input area 201 and the identity card number information input area 202 are both in an available state, the text display parameter corresponding to the name information input area 201 and the text display parameter corresponding to the identity card number information input area 202 are both first display parameters, the name information input area 201 and the identity card number information input area 202 are displayed in white, and the name information input area 201 displays the name a and the identity card number information input area 202 displays the identity card number B; the entry information input area 203 is in an available state, the text display parameter corresponding to the entry information input area 203 is a first display parameter, and the entry information input area 203 is displayed in white. In this way, since the second display content is not changed and the refreshing is not required, only the first display content is updated to the third display content, the page refreshing is completed, and the user can input the entry information.
In the above embodiment, the user performs the first input operation in at least two first parameter input areas in the first display content of the target page, and at this time, the state of at least one second parameter input area in the first display content needs to be updated correspondingly. The display device of the page firstly obtains at least two first parameters from at least two first parameter input areas; detecting whether the at least two first parameters accord with a first preset rule or not; and if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface to finish the display of the page. In the whole page refreshing process, the display device of the page only needs to acquire at least two first parameters input by a user and updates the first display content of the target page when detecting that the at least two first parameters all accord with a first preset rule, and the display of the third display content in the target page can be completed without acquiring all data information in the first display content and the second display content in the target page, so that the refreshing time of the page is saved, and the efficiency is improved.
Fig. 3 is a flowchart illustrating another page display method according to an embodiment of the present application. As shown in fig. 3, the details are as follows:
and S301, displaying a target page on a display interface.
Specifically, refer to the step S101, which is not described herein again.
As a possible implementation manner, the second display content includes at least one third parameter input area and at least one fourth parameter input area. Wherein at least one third parameter input area is in an available state and at least one fourth parameter input area is in a disabled state.
As a possible implementation manner, in the second display content of the target page, at least one third parameter input area is in an available state, and then the corresponding text display parameter is the first display parameter, and the user can input related data in the at least one third parameter input area; and if the at least one fourth parameter input area is in the forbidden state, the corresponding text display parameter is the second display parameter, and the user cannot input data in the at least one fourth parameter input area. Wherein the state of the at least one fourth parameter input area is related to the parameter entered by the user in the at least one third parameter input area. The change occurs according to the difference of at least one second parameter input by the user in at least one third parameter input area. For example, the state of the at least one fourth parameter input area can be changed to an available state only when the at least one second parameter input by the user in the at least one third parameter input area meets the preset rule, and otherwise, the state is a forbidden state. That is, the user must input at least one second parameter in at least one third parameter input area to input the parameter in at least one fourth parameter input area after the at least one second parameter meets the preset rule, otherwise, the user cannot input the parameter in at least one fourth parameter input area.
Step S302, responding to a first input operation of a user, and acquiring at least two first parameters in at least two first parameter input areas.
Specifically, refer to the step S102, which is not described herein again.
Step S303, detecting whether the at least two first parameters meet a first preset rule.
Specifically, refer to step S103, which is not described herein again.
As a possible implementation manner, the detecting whether at least two first parameters meet a first preset rule includes:
and detecting whether the ith first parameter accords with a first preset rule in the at least two first parameters according to a preset sequence. Wherein i is an integer greater than 0 and less than n; n is the number of the first parameter input areas included in the first display content.
If the ith first parameter meets the first preset rule, whether the (i + 1) th first parameter meets the first preset rule is detected.
If the ith first parameter does not accord with the first preset rule, at least one of the at least two first parameters is determined not to accord with the first preset rule.
Specifically, when detecting whether the at least two first parameters meet the first preset rule, the detection may be performed according to a preset sequence of the at least two first parameters, for example, the preset sequence may be a display sequence of the at least two first parameters in the first display content of the target page. Firstly, whether the ith first parameter accords with a first preset rule or not is detected in at least two first parameters. If the ith first parameter accords with a first preset rule, continuously detecting whether the (i + 1) th first parameter accords with the first preset rule; if the (i + 1) th first parameter meets the first preset rule, continuously detecting whether the (i + 2) th first parameter meets the first preset rule until it is determined that the n first parameters input in the n first parameter input areas in the first display content all meet the first preset rule, at this moment, it may be determined that at least two first parameters all meet the first preset rule, and at this moment, step S304 is executed.
If the ith first parameter does not accord with the first preset rule, at least one of the at least two first parameters is determined not to accord with the first preset rule. That is to say, in the embodiment of the present application, n first parameters are detected one by one according to a preset sequence, and when it is detected that the ith first parameter does not comply with the first preset rule, it is directly determined that at least one of the at least two first parameters does not comply with the first preset rule, and it is not necessary to continue to detect whether the subsequent first parameters comply with the first preset rule, at this time, step S305 is executed. The method can reduce the workload of the display device of the page, save processing resources and improve the processing speed.
Step S304, if the at least two first parameters all accord with a first preset rule, the state of the at least one second parameter input area is switched to be an available state, and the first display content of the target page is updated to be third display content in the display interface.
Specifically, refer to the step S104, which is not described herein again.
Step S305, if at least one of the at least two first parameters does not meet a first preset rule, updating the first display content of the target page to a fourth display content in the display interface.
The fourth display content comprises at least two first parameter input areas and at least one second parameter input area, in the fourth display content, the at least two first parameter input areas are in an available state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
Specifically, at least one of the at least two first parameters does not conform to the first preset rule, so that the state of the at least one second parameter input area does not need to be changed, and only the first display content of the target page needs to be updated to the fourth display content in the display interface. In the fourth display content, at least two first parameter input areas are in an available state, and at least one second parameter input area is in a forbidden state; and displaying the respectively received first parameters in the at least two first parameter input areas. The user may reenter the first parameters in the at least two first parameter input areas.
As a possible implementation manner, when the first display content of the target page is updated to the fourth display content in the display interface, prompt information for prompting that the first parameter is wrong to be input in the at least two first parameter input areas may also be displayed in the display interface.
For example, if the user browses an entry page of an examination at the moment and needs to fill in entry information, the target page is the entry page. As shown in fig. 4(1), the display interface displays the entry page, where the entry page includes a first display content and a second display content, and the first display content includes two first parameter input areas, namely, a name information input area 201 and an id number information input area 202; a second parameter input area, namely an entry information input area 203, is also included. Wherein, the name information input area 201 and the identification number information input area 202 are in an available state, the corresponding text display parameter is a first display parameter, and the name information input area 201 and the identification number information input area 202 are displayed in white; the entry information input area 203 is in a forbidden state, the corresponding text display parameter is a second display parameter, the entry information input area 203 is filled with a slash, and a user can know that the entry information input area 203 is in the forbidden state and cannot input data when seeing the entry information input area 203. That is, the name information and the identification number information input by the user in the name information input area 201 and the identification number information input area 202 are the first parameters, and the registration information input area 203 is switched to the available state only when the user correctly inputs the name information and the identification number information to be input in the name information input area 201 and the identification number information input area 202. The second display content includes a third parameter input area, which is a school name input area 204, and a fourth parameter input area, which is a professional name input area 205. The school name input area 204 is in an available state, the corresponding text display parameter is the first display parameter, the school name input area 204 is displayed in white, and a user can know that the school name input area 204 is in the available state and can input data when seeing the school name input area 204; the professional name input area 205 is in a forbidden state, the corresponding text display parameter is a second display parameter, slash filling is displayed in the professional name input area 205, and a user can know that the professional name input area 205 is in the forbidden state and cannot input data when seeing the professional name input area 205. That is, the school name input by the user in the school name input area 204 in the second display content is the second parameter, and the professional name input area 205 is switched to the available state only when the school name to be input in the school name input area 204 is correctly input.
At this time, as shown in fig. 4(2), when the user inputs the name C in the name information input area 201, the id number D is input in the id number information input area 202. The display device of the page may obtain the name C and the id number D input by the user in the name information input area 201 and the id number information input area 202, and detect whether the name C and the id number D input by the user meet the first preset rule. Wherein, the first preset rule may be: the name input in the name information input area 201 cannot exceed 4 digits and cannot contain special characters such as numbers, letters and the like; the identification number inputted in the identification number information input area 202 cannot exceed 21 bits. Assuming that the name C input by the user accords with a first preset rule, detecting whether the ID card number D accords with the first preset rule. If the identification number D does not conform to the first preset rule, it may be determined that one of the two first parameters does not conform to the first preset rule, and the first display content of the entry page is updated to the fourth display content in the display interface. As shown in fig. 4(3), the entry page includes a fourth display content and a second display content. In the fourth display content, the name information input area 201 and the identity card number information input area 202 are both in an available state, the text display parameters corresponding to the name information input area 201 and the identity card number information input area 202 are both first display parameters and are displayed in white, and the name information input area 201 displays a name C and the identity card number information input area 202 displays an identity card number D; entry information input area 203 is in a disabled state and entry information input area 203 is displayed with a slash fill. Moreover, since the second display content is not changed and does not need to be refreshed, the first display content is only updated to the third display content, and the page refreshing is completed, so that the user can continue to modify the contents input in the name information input area 201 and the identification number information input area 202.
And S306, responding to the second input operation of the user, and acquiring the at least two first parameters in the at least two first parameter input areas again.
As a possible embodiment, after the first display content of the target page is updated to the third display content in the display interface, that is, after step S304, if the user performs the second input operation, that is, modifies the at least two first parameters input in the at least two first parameter input areas, the display device of the page needs to obtain the at least two first parameters in the at least two first parameter input areas again.
Specifically, refer to the step S302, which is not described herein again.
Step S307, detecting whether the at least two first parameters obtained again meet a first preset rule.
Specifically, refer to step S303 above, which is not described herein again.
If at least one of the at least two reacquired first parameters does not conform to the first preset rule, executing step S308; if the at least two reacquired first parameters all conform to the first preset rule, step S309 is executed.
Step S308, if at least one of the at least two first parameters obtained again does not accord with a first preset rule, the state of at least one second parameter input area is switched to a forbidden state, and the third display content of the target page is updated to be fifth display content in the display interface.
The fifth display content comprises at least two first parameter input areas and at least one second parameter input area, in the fifth display content, the at least two first parameter input areas are in an available state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
Specifically, since in the third display content, at least one second parameter input area is in an available state. If at least one of the at least two retrieved first parameters does not meet the first preset rule, the at least one second parameter input area needs to be switched from the available state to the forbidden state. And then, updating the third display content of the target page into fifth display content in the display interface, wherein the fifth display content comprises at least two first parameter input areas and at least one second parameter input area. In the fifth display content, at least two first parameter input areas are in an available state, and the user can input a second parameter in the at least two first parameter input areas again; the at least one second parameter input area is in a forbidden state, and a user cannot input data in the at least one second parameter input area; and displaying the respectively received first parameters in the at least two first parameter input areas.
As a possible embodiment, switching the state of the at least one second parameter input area to the disabled state comprises:
and switching the state of at least one second parameter input area into a forbidden state, and switching the text display parameter corresponding to the at least one second parameter input area into a second display parameter.
In the fifth display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters.
Specifically, the state of the at least one second parameter input area is switched from the available state to the disabled state, and then the text display parameter corresponding to the at least one second parameter input area needs to be switched from the first display parameter to the second display parameter. In the fifth display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, so that a user can know that the user is in an available state directly through the first parameter input areas, and data input operation can be performed. The text display parameter corresponding to the at least one second parameter input area is a second display parameter, and a user can know that the text display parameter is in a forbidden state directly through the second parameter input area, so that data input operation cannot be performed.
Step S309, if the at least two first parameters obtained again all conform to the first preset rule, updating the third display content of the target page to the eighth display content in the display interface.
The eighth display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the eighth display content, and the at least two first parameter input areas respectively display the received first parameters. In the eighth display content, because the at least two first parameter input areas and the at least one second parameter input area are both in an available state, the text display parameters corresponding to the at least two first parameter input areas and the text display parameters corresponding to the at least one second parameter input area are both the first display parameters.
For example, in the embodiment shown in fig. 2, when the user inputs a name a in the name information input area 201 and an identification number B in the identification number information input area 202, as shown in fig. 5(1), the first display content in the entry page is updated to the third display content. Assuming that the user changes the id card number B input by the user to the id card number E, the display device on the page obtains the name a and the id card number E input by the user again in the name information input area 201 and the id card number information input area 202, and detects whether the name a and the id card number E input by the user meet the first preset rule. Wherein, the first preset rule may be: the name input in the name information input area 201 cannot exceed 4 digits and cannot contain special characters such as numbers, letters and the like; the identification number inputted in the identification number information input area 202 cannot exceed 21 bits.
When the name A input by the user accords with a first preset rule, whether the ID card number E accords with the first preset rule is detected. If the identification number E does not conform to the first preset rule, the state of the entry information input area 203 is switched from the available state to the prohibited state, the text display parameter corresponding to the entry information input area 203 needs to be switched from the first display parameter to the second display parameter, and the third display content of the target page is updated to the fifth display content in the display interface. As shown in fig. 5(2), in the fifth display content, the name information input area 201 and the id card number information input area 202 are both in an available state, the text display parameter corresponding to the name information input area 201 and the text display parameter corresponding to the id card number information input area 202 are both the first display parameter, which is displayed in white, the name information input area 201 displays the name a, and the id card number information input area displays the id card number E; the entry information input area 203 is in a disabled state, the text display parameter corresponding to the entry information input area 203 is a second display parameter, and the entry information input area 203 is displayed with slash filling.
And when the name A and the identity card number E input by the user both accord with a first preset rule, updating the third display content of the target page into the eighth display content in the display interface. As shown in fig. 5(3), in the eighth display content, the name information input area 201 and the identification number information input area 202 are both in an available state, the text display parameter corresponding to the name information input area 201 and the text display parameter corresponding to the identification number information input area 202 are both the first display parameter, the name information input area 201 and the identification number information input area 202 are displayed in white, and the name information input area 201 displays the name a and the identification number information input area 202 displays the identification number E; the entry information input area 203 is in an available state, the text display parameter corresponding to the entry information input area 203 is a first display parameter, and the entry information input area 203 is displayed in white.
And step S310, responding to a third input operation of the user, and acquiring at least one second parameter in at least one third parameter input area.
In the embodiment of the present application, the second content of the target page includes at least one third parameter input area and at least one fourth parameter input area. Wherein at least one third parameter input area is in an available state and at least one fourth parameter input area is in a disabled state. If the user performs the third input operation, that is, inputs at least one second parameter in the at least one third parameter input area, the display device of the page may obtain the at least one second parameter in the at least one third parameter input area.
Step S311, detecting whether at least one second parameter meets a second preset rule.
Specifically, refer to step S303 above, which is not described herein again.
It should be noted that the second preset rule may also be preset according to actual requirements. For example, it may be that a first one of the at least one second parameter must input a 1-digit number, and a second one of the at least one second parameter must be a combination of two-digit numbers; it is also possible that the first one of the at least one second parameter is a combination of letters that cannot exceed 6 digits, and the second one must include upper and lower case letters and numbers. Of course, the second preset rule may also be in other forms, and may be preset according to actual requirements, which is not limited in this application.
Step S312, if the at least one second parameter meets the second preset rule, switching the state of the at least one fourth input area to an available state, and updating the second display content of the target page to the sixth display content in the display interface.
And if the at least one second parameter accords with the second preset rule, switching the state of the at least one fourth input area into an available state, switching the text display parameter corresponding to the at least one fourth input area from the second display parameter to the first display parameter, and updating the second display content of the target page into sixth display content in the display interface. The sixth display content comprises at least one third parameter input area and at least one fourth parameter input area, the at least one third parameter input area and the at least one fourth parameter input area are both in an available state in the sixth display content, and at least one second parameter is displayed in the at least one third parameter input area.
Step S313, if at least one of the at least one second parameter does not comply with the second preset rule, updating the second display content of the target page to be the seventh display content in the display interface.
The seventh display content comprises at least one third parameter input area and at least one fourth parameter input area, in the seventh display content, the at least one third parameter input area is in an available state, the at least one fourth parameter input area is in a forbidden state, and the at least one third parameter input area displays at least one second parameter.
For example, if the user browses an entry page of an examination at the moment and needs to fill in entry information, the target page is the entry page. As shown in fig. 6(1), the display interface displays the entry page, where the entry page includes a first display content and a second display content, and the first display content includes two first parameter input areas, namely, a name information input area 201 and an id number information input area 202; a second parameter input area, namely an entry information input area 203, is also included. Wherein, the name information input area 201 and the identification number information input area 202 are in an available state, the corresponding text display parameter is a first display parameter, and the name information input area 201 and the identification number information input area 202 are displayed in white; the entry information input area 203 is in a forbidden state, the corresponding text display parameter is a second display parameter, the entry information input area 203 is filled with a slash, and a user can know that the entry information input area 203 is in the forbidden state and cannot input data when seeing the entry information input area 203. The second display content includes a third parameter input area, which is a school name input area 204, and a fourth parameter input area, which is a professional name input area 205. The school name input area 204 is in an available state, the corresponding text display parameter is the first display parameter, the school name input area 204 is displayed in white, and a user can know that the school name input area 204 is in the available state and can input data when seeing the school name input area 204; the professional name input area 205 is in a forbidden state, the corresponding text display parameter is a second display parameter, a slash filling is displayed in the professional name input area 205, and a user can know that the professional name input area 205 is in the forbidden state and cannot input data when seeing the professional name input area 205. That is, the school name input by the user in the school name input area 204 in the second display content is the second parameter, and the professional name input area 205 is switched to the available state only when the school name to be input in the school name input area 204 is correctly input.
Assuming that the first display content is always kept unchanged, at this time, the user inputs a school name F in the school name input field 204 in the second display content, and then detects whether the school name F input in the school name input field 204 by the user meets a second preset rule, where the second preset rule may be that the input school name cannot contain special characters such as numbers and underlines. If the second preset rule is met, the state of the professional name input area 205 is switched from the forbidden state to the available state, the text display parameter corresponding to the professional name input area 205 is switched from the second display parameter to the first display parameter, and the second display content of the entry page is updated to the sixth display content in the display interface. As shown in fig. 6(2), the sixth display content includes a school name input area 204 and a professional name input area 205, in the sixth display content, the school name input area 204 and the professional name input area 205 are both in a usable state, the text display parameter corresponding to the school name input area 204 and the text display parameter corresponding to the professional name input area 205 are both the first display parameter, the school name input area 204 and the professional name input area 205 are both displayed in white, and the school name F is displayed in the school name input area 204. And if the second preset condition is not met, updating the second display content of the entry page into seventh display content in the display interface. As shown in fig. 6(3), the seventh display content includes a school name input area 204 and a professional name input area 205, in the fourth display content, the school name input area 204 is in a usable state, the text display parameter corresponding to the school name input area 204 is the first display parameter, the school name input area 204 is displayed in white, and the school name F is displayed in the school name input area 204; the professional name input area 205 is in a disabled state, the text display parameter corresponding to the professional name input area 205 is a second display parameter, and the professional name input area 205 is displayed with a slash filling.
Corresponding to the above embodiment, as shown in fig. 7, the present application also provides a display device of a page, including:
the display device comprises a receiving unit 701, a display unit and a display unit, wherein the receiving unit 701 is used for displaying a target page on a display interface, the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content.
An obtaining unit 702, configured to obtain at least two first parameters in at least two first parameter input areas in response to a first input operation by a user.
The processing unit 703 is configured to detect whether at least two first parameters meet a first preset rule.
If the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface; the third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the at least two first parameter input areas respectively display the received first parameters.
In a possible embodiment, the processing unit 703 is specifically configured to, if at least one of the at least two first parameters does not meet a first preset rule, update the first display content of the target page to fourth display content in the display interface, where the fourth display content includes at least two first parameter input areas and at least one second parameter input area, in the fourth display content, the at least two first parameter input areas are in an available state, the at least one second parameter input area is in a disabled state, and the at least two first parameter input areas respectively display the respectively received first parameters.
In a possible embodiment, the obtaining unit 702 is specifically configured to obtain the at least two first parameters again in the at least two first parameter input areas in response to the second input operation of the user.
The processing unit 703 is further configured to detect whether the at least two reacquired first parameters meet a first preset rule.
If at least one of the at least two reacquired first parameters does not accord with a first preset rule, the state of at least one second parameter input area is switched to a forbidden state, third display content of the target page is updated to fifth display content in the display interface, the fifth display content comprises the at least two first parameter input areas and at least one second parameter input area, in the fifth display content, the at least two first parameter input areas are in a usable state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
In a possible embodiment, the processing unit 703 is further configured to switch a state of the at least one second parameter input area to an available state, and switch a text display parameter corresponding to the at least one second parameter input area to the first display parameter.
In the fifth display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters.
In a possible embodiment, the processing unit 703 is further configured to detect, according to a preset sequence, whether an ith first parameter of the at least two first parameters meets a first preset rule; wherein i is an integer greater than 0 and less than n; n is the number of the first parameter input areas included in the first display content.
If the ith first parameter meets a first preset rule, whether the (i + 1) th first parameter meets the first preset rule is detected.
And if the ith first parameter does not accord with the first preset rule, determining that at least one of the at least two first parameters does not accord with the first preset rule.
In a possible embodiment, the obtaining unit 702 is further configured to, in response to a third input operation by the user, obtain at least one second parameter in at least one third parameter input area.
The processing unit 703 is further configured to detect whether at least one second parameter meets a second preset rule.
If the at least one second parameter accords with a second preset rule, switching the state of the at least one fourth input area into an available state, and updating second display content of the target page into sixth display content in the display interface; the sixth display content comprises at least one third parameter input area and at least one fourth parameter input area, the at least one third parameter input area and the at least one fourth parameter input area are both in an available state in the sixth display content, and at least one second parameter is displayed in the at least one third parameter input area.
In a possible embodiment, the processing unit 703 is further configured to, if at least one of the at least one second parameter does not comply with a second preset rule, update the second display content of the target page in the display interface to seventh display content, where the seventh display content includes at least one third parameter input area and at least one fourth parameter input area, and in the seventh display content, the at least one third parameter input area is in an available state, the at least one fourth parameter input area is in a disabled state, and the at least one second parameter is displayed in the at least one third parameter input area.
Corresponding to the embodiment, the application further provides the electronic equipment. Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 800 may include: a processor 801, a memory 802, and a communication unit 803. The components communicate over one or more buses, and those skilled in the art will appreciate that the configuration of the servers shown in the figures are not meant to limit embodiments of the present invention, and may be in the form of buses, stars, more or fewer components than those shown, some components in combination, or a different arrangement of components.
The communication unit 803 is configured to establish a communication channel, so that the electronic device can communicate with other devices. And receiving user data sent by other equipment or sending the user data to other equipment.
The processor 801, which is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and/or processes data by operating or executing software programs and/or modules stored in the memory 802 and calling data stored in the memory. The processor 801 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or may be composed of a plurality of packaged ICs connected to have the same or different functions. For example, the processor 801 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
The memory 802, for storing instructions executed by the processor 801, may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The execution of the instructions in the memory 802, when executed by the processor 801, enables the electronic device 800 to perform some or all of the steps in the embodiment shown in fig. 3.
In a specific implementation manner, the present application further provides a computer storage medium, where the computer storage medium may store a program, and when the program runs, the computer storage medium controls a device in which the computer readable storage medium is located to perform some or all of the steps in the foregoing embodiments. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the apparatus embodiment and the program product embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the description in the method embodiment for the relevant points.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method for displaying a page, which is applied to an electronic device, comprises the following steps:
displaying a target page on a display interface, wherein the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content;
responding to a first input operation of a user, and acquiring at least two first parameters in the at least two first parameter input areas;
detecting whether the at least two first parameters accord with a first preset rule or not;
if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface; the third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the received first parameters are respectively displayed in the at least two first parameter input areas.
2. The method of claim 1, further comprising:
if at least one of the at least two first parameters does not meet the first preset rule, updating the first display content of the target page into fourth display content in the display interface, wherein the fourth display content comprises at least two first parameter input areas and at least one second parameter input area, in the fourth display content, the at least two first parameter input areas are in an available state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
3. The method of claim 1, wherein after updating the first display content of the target page to the third display content in the display interface, further comprising:
responding to a second input operation of the user, and acquiring at least two first parameters in the at least two first parameter input areas again;
detecting whether the at least two acquired first parameters meet a first preset rule or not;
if at least one of the at least two reacquired first parameters does not accord with the first preset rule, switching the state of the at least one second parameter input area to a forbidden state, and updating third display content of the target page to fifth display content in the display interface, wherein the fifth display content comprises the at least two first parameter input areas and the at least one second parameter input area, in the fifth display content, the at least two first parameter input areas are in a usable state, the at least one second parameter input area is in a forbidden state, and the at least two first parameter input areas respectively display the respectively received first parameters.
4. The method according to claim 3, wherein in the first display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters; the first display parameter and the second display parameter are different;
the switching the state of the at least one second parameter input area to the available state comprises:
switching the state of the at least one second parameter input area to an available state, and switching the text display parameter corresponding to the at least one second parameter input area to the first display parameter;
in the third display content, the text display parameters corresponding to the at least two first parameter input areas and the at least one second parameter input area are all first display parameters.
5. The method of claim 4, wherein switching the state of the at least one second parameter input region to the disabled state comprises:
switching the state of the at least one second parameter input area to a forbidden state, and switching the text display parameter corresponding to the at least one second parameter input area to the second display parameter;
in the fifth display content, the text display parameters corresponding to the at least two first parameter input areas are first display parameters, and the text display parameters corresponding to the at least one second parameter input area are second display parameters.
6. The method according to claim 2, wherein the detecting whether the at least two first parameters comply with a first preset rule comprises:
detecting whether the ith first parameter accords with a first preset rule in the at least two first parameters according to a preset sequence; wherein i is an integer greater than 0 and less than n; n is the number of first parameter input areas contained in the first display content;
if the ith first parameter accords with the first preset rule, detecting whether the (i + 1) th first parameter accords with the first preset rule;
and if the ith first parameter does not accord with the first preset rule, determining that at least one of the at least two first parameters does not accord with the first preset rule.
7. The method of any of claims 1-6, wherein the second display content includes at least one third parameter entry field and at least one fourth parameter entry field; the at least one third parameter input area is in an available state and the at least one fourth parameter input area is in a disabled state;
the method further comprises the following steps:
responding to a third input operation of the user, and acquiring at least one second parameter in the at least one third parameter input area;
detecting whether the at least one second parameter meets a second preset rule;
if the at least one second parameter meets the second preset rule, switching the state of the at least one fourth input area to an available state, and updating second display content of the target page to sixth display content in the display interface; the sixth display content includes the at least one third parameter input area and the at least one fourth parameter input area, in the sixth display content, the at least one third parameter input area and the at least one fourth parameter input area are both in an available state, and the at least one second parameter is displayed in the at least one third parameter input area.
8. The method of claim 7, further comprising:
if at least one of the at least one second parameter does not meet the second preset rule, updating second display content of the target page into seventh display content in the display interface, wherein the seventh display content comprises the at least one third parameter input area and the at least one fourth parameter input area, the at least one third parameter input area is in an available state, the at least one fourth parameter input area is in a forbidden state, and the at least one second parameter is displayed in the at least one third parameter input area in the seventh display content.
9. A display device for a page, comprising:
the system comprises a receiving unit, a display unit and a display unit, wherein the receiving unit is used for displaying a target page on a display interface, the target page comprises first display content and second display content, the first display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas are in an available state, and the at least one second parameter input area is in a forbidden state; the second display content is display content in the target page other than the first display content;
an acquisition unit, configured to acquire at least two first parameters in the at least two first parameter input areas in response to a first input operation by a user;
the processing unit is used for detecting whether the at least two first parameters accord with a first preset rule or not;
if the at least two first parameters meet a first preset rule, switching the state of the at least one second parameter input area into an available state, and updating the first display content of the target page into third display content in the display interface; the third display content comprises at least two first parameter input areas and at least one second parameter input area, the at least two first parameter input areas and the at least one second parameter input area are both in an available state in the third display content, and the received first parameters are respectively displayed in the at least two first parameter input areas.
10. An electronic device, comprising: a processor and a memory, the memory storing a computer program that, when executed, causes the electronic device to perform the method of any of claims 1-8.
11. A storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform the method of any one of claims 1-8.
CN202111640540.2A 2021-12-29 2021-12-29 Page display method, device, equipment and storage medium Pending CN114385292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111640540.2A CN114385292A (en) 2021-12-29 2021-12-29 Page display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111640540.2A CN114385292A (en) 2021-12-29 2021-12-29 Page display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114385292A true CN114385292A (en) 2022-04-22

Family

ID=81200457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111640540.2A Pending CN114385292A (en) 2021-12-29 2021-12-29 Page display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114385292A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270428A (en) * 2010-06-01 2011-12-07 上海政申信息科技有限公司 Display device and display interface refresh method and device
CN102663130A (en) * 2012-04-27 2012-09-12 华为技术有限公司 Method and device for submitting webpage data
CN106997273A (en) * 2016-01-22 2017-08-01 阿里巴巴集团控股有限公司 A kind of data inputting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270428A (en) * 2010-06-01 2011-12-07 上海政申信息科技有限公司 Display device and display interface refresh method and device
CN102663130A (en) * 2012-04-27 2012-09-12 华为技术有限公司 Method and device for submitting webpage data
CN106997273A (en) * 2016-01-22 2017-08-01 阿里巴巴集团控股有限公司 A kind of data inputting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胖子家的IT杂货铺: "用Axure实现输入框和登录按钮联动", 《百度经验》, pages 1 - 4 *

Similar Documents

Publication Publication Date Title
CN108768875B (en) Application gray level publishing method and device and computer readable storage medium
CN110634049B (en) Page display content processing method and device, electronic equipment and readable medium
CN108376094B (en) Notification message display method and device, computer equipment and storage medium
CN108648810B (en) Data processing method and device for medical audit and computer readable storage medium
US20150116540A1 (en) Method and apparatus for applying a tag/identification to a photo/video immediately after capture
CN112948035A (en) Method and device for controlling micro front-end page, terminal equipment and storage medium
CN113343154B (en) Page loading method and device, electronic equipment and storage medium
CN112035186A (en) Preloading and jumping method, device, equipment and medium of H5 page
CN111552535A (en) Interface picture replacing method and device, computer equipment and storage medium
CN112035114A (en) Page rollback method, device, equipment and medium
CN114003510A (en) Script testing method, device, equipment and medium based on Mock service
CN105677851B (en) A kind of interface screenshot method and user equipment
CN112083925A (en) Data acquisition method, device, equipment and storage medium based on H5 page development
CN114385292A (en) Page display method, device, equipment and storage medium
CN111158998A (en) Display method and device of buried point data
US20180189169A1 (en) Method,electronic apparatus, system, and storage medium for automated testing of application user interface
CN112929489A (en) Communication method and device
CN111338624A (en) Data processing method and related equipment
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
CN111125202A (en) Map customizing method, device, equipment and storage medium based on big data
CN116994380B (en) Information interaction method and device
CN114896018B (en) BMC application interface language switching method, device and medium
US11935101B2 (en) Programming verification rulesets visually
CN113535187B (en) Service online method, service updating method and service providing method
CN117908929A (en) Method, device, equipment and storage medium for automatically generating client

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