CN109413098A - Method, apparatus, terminal and the storage medium that web page element is shown - Google Patents

Method, apparatus, terminal and the storage medium that web page element is shown Download PDF

Info

Publication number
CN109413098A
CN109413098A CN201811474700.9A CN201811474700A CN109413098A CN 109413098 A CN109413098 A CN 109413098A CN 201811474700 A CN201811474700 A CN 201811474700A CN 109413098 A CN109413098 A CN 109413098A
Authority
CN
China
Prior art keywords
web page
page element
field
verified
user
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
CN201811474700.9A
Other languages
Chinese (zh)
Inventor
刘铮铮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201811474700.9A priority Critical patent/CN109413098A/en
Publication of CN109413098A publication Critical patent/CN109413098A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The disclosure is directed to method, apparatus, terminal, server and storage mediums that a kind of web page element is shown, belong to front end development technique field.The described method includes: initiating Authority Verification request according to the verification information of user;Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;If the field to be verified of web page element is not the rights field, the web page element is not shown.Using the disclosure, it is possible to reduce the waste of server resource.

Description

Method, apparatus, terminal and the storage medium that web page element is shown
Technical field
This disclosure relates to front end development technique field more particularly to a kind of web page element show method, apparatus, terminal and Storage medium.
Background technique
With the raising of the attention degree to data safety, rights concerns are substantially that all management systems require to solve One critical issue.Generally, a management system can mark off different permissions according to the different function of user, different The user of permission can carry out different operations.
In order to reduce development cost and maintenance cost, current rights management is in back-end realization mostly, i.e. front end exists The display unit (web page element can be referred to as) that possesses of all permissions is shown in the display page, when receiving some web page element When corresponding operational order, the server of rear end sends corresponding operation requests and the authority information of user, server are sentenced Disconnected whether have permission realizes the corresponding operation of the operational order, if not realizing the corresponding behaviour of the operational order without permission Make, and prompt information is issued the user with by front end.
For example, " creation task " this operation is common management administrator and the permission that super keepe possesses, commonly User does not have operating right, if ordinary user clicks this web page element on interface, terminal to server transmission route Limit information and the button corresponding operation requests after the received authority information of server authentication, determine that the user does not have permission The operation is carried out, then to terminal sending permission deficiency prompting message, terminal is displayed without permission on interface after receiving and is grasped The prompt information of work, as shown in Figure 1, user does not have permission but also to initiate request of going beyond one's commission, both waste of resource for server Processing pressure is increased again.
Summary of the invention
The disclosure provides a kind of method, apparatus, terminal and storage medium that web page element is shown, can solve waste service The problem of device resource.
According to the first aspect of the embodiments of the present disclosure, a kind of method that web page element is shown is provided, comprising:
According to the verification information of user, Authority Verification request is initiated;
Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;
If the field to be verified of web page element is not the rights field, the web page element is not shown.
Optionally, the method also includes:
If the field to be verified of web page element is not the rights field, and the web page element includes corresponding displaying Scheme then shows the web page element according to the exhibition scheme.
Optionally, the exhibition scheme includes disabling web page element, removes hyperlink or hiding web page element.
Optionally, if the field to be verified of the web page element is not the rights field, the webpage is not shown Element, comprising:
If web page element corresponds to multiple fields to be verified, and between the corresponding multiple fields to be verified of the web page element Logical relation be and logic, then when there are at least one words to be verified in the corresponding multiple fields to be verified of the web page element When section is not rights field, the web page element is not shown;
If web page element corresponds to multiple fields to be verified, and between the corresponding multiple fields to be verified of the web page element Logical relation be or logic is not opened up then when the corresponding multiple fields to be verified of the web page element are not rights field Show the web page element.
Optionally, the method also includes:
If the corresponding single field to be verified of web page element, and the single field to be verified is not the rights field, It then determines that the web page element does not have and shows permission;If web page element corresponds to multiple fields to be verified, and webpage member Logical relation between the corresponding multiple fields to be verified of element is and logic, then when the web page element is corresponding multiple to be verified When there are at least one field to be verified not being rights field in field, determines that the web page element does not have and show permission;Such as Fruit web page element corresponds to multiple fields to be verified, and the logical relation between the corresponding multiple fields to be verified of the web page element For or logic determine webpage member then when the corresponding multiple fields to be verified of the web page element are not rights field Element, which does not have, shows permission;
When the web page element does not have displaying permission, and the web page element includes corresponding exhibition scheme, according to The exhibition scheme shows the web page element;Permission is shown when the web page element does not have, and the web page element does not wrap When containing corresponding exhibition scheme, the web page element is not shown.
Optionally, if the field to be verified of the web page element is not the rights field, the webpage is not shown Element, comprising:
The corresponding rights field of the user is passed to privileges component;
The field to be verified of web page element is passed to the privileges component, the user couple is determined based on the privileges component In the rights field answered whether include the web page element field to be verified, if in the corresponding rights field of the user not Field to be verified including the web page element, then the field to be verified of the web page element is not the rights field.
According to the second aspect of an embodiment of the present disclosure, a kind of method that web page element is shown is provided, comprising:
Receive the Authority Verification request that terminal is sent, wherein the Authority Verification request includes the verification information of user;
When the verification information of the user passes through verifying, the corresponding rights field of the user is determined;
It include the corresponding permission word of the user in the Authority Verification result to the terminal sending permission verification result Section.
According to the third aspect of an embodiment of the present disclosure, a kind of device that web page element is shown is provided, comprising:
Transmission unit initiates Authority Verification request for the verification information according to user;
Receiving unit, for receiving Authority Verification as a result, including the corresponding power of the user in the Authority Verification result Limit field;
Display unit does not show the net if the field to be verified for web page element is not the rights field Page element.
Optionally, the display unit, is also used to:
If the field to be verified of web page element is not the rights field, and the web page element includes corresponding displaying Scheme then shows the web page element according to the exhibition scheme.
Optionally, the exhibition scheme includes disabling web page element, removes hyperlink or hiding web page element.
Optionally, the display unit, is used for:
If web page element corresponds to multiple fields to be verified, and between the corresponding multiple fields to be verified of the web page element Logical relation be and logic, then when there are at least one words to be verified in the corresponding multiple fields to be verified of the web page element When section is not rights field, the web page element is not shown;
If web page element corresponds to multiple fields to be verified, and between the corresponding multiple fields to be verified of the web page element Logical relation be or logic is not opened up then when the corresponding multiple fields to be verified of the web page element are not rights field Show the web page element.
Optionally, described device further include:
Determination unit, if for the corresponding single field to be verified of web page element, and the single field to be verified is not The rights field, it is determined that the web page element, which does not have, shows permission;If web page element corresponds to multiple fields to be verified, And the logical relation between the corresponding multiple fields to be verified of the web page element is and logic, then when the web page element is corresponding Multiple fields to be verified in when there are at least one field to be verified not being rights field, determine that the web page element does not have Show permission;If web page element corresponds to multiple fields to be verified, and the corresponding multiple fields to be verified of the web page element it Between logical relation be or logic, then when the corresponding multiple fields to be verified of the web page element are not rights field, really The fixed web page element, which does not have, shows permission;
The display unit is also used to show permission when the web page element does not have, and the web page element includes pair When the exhibition scheme answered, the web page element is shown according to the exhibition scheme;Permission is shown when the web page element does not have, And the web page element do not include corresponding exhibition scheme when, do not show the web page element.
Optionally, the display unit, is used for:
The corresponding rights field of the user is passed to privileges component;
The field to be verified of web page element is passed to the privileges component, the user couple is determined based on the privileges component In the rights field answered whether include the web page element field to be verified, if in the corresponding rights field of the user not Field to be verified including the web page element, then the field to be verified of the web page element is not the rights field.
According to a fourth aspect of embodiments of the present disclosure, a kind of device that web page element is shown is provided, comprising:
Receiving unit, for receiving the Authority Verification request of terminal transmission, wherein the Authority Verification request includes user Verification information;
Determination unit, for when the verification information of the user passes through verifying, determining the corresponding permission word of the user Section;
Transmission unit, for the terminal sending permission verification result, including the use in the Authority Verification result The corresponding rights field in family.
According to a fifth aspect of the embodiments of the present disclosure, a kind of terminal is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
According to the verification information of user, Authority Verification request is initiated;
Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;
If the field to be verified of web page element is not the rights field, the web page element is not shown.
According to a sixth aspect of an embodiment of the present disclosure, a kind of server is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the Authority Verification request that terminal is sent, wherein the Authority Verification request includes the verification information of user;
When the verification information of the user passes through verifying, the corresponding rights field of the user is determined;
It include the corresponding permission word of the user in the Authority Verification result to the terminal sending permission verification result Section.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by the processor of terminal, enable the terminal to execute a kind of method that web page element is shown, The described method includes:
According to the verification information of user, Authority Verification request is initiated;
Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;
If the field to be verified of web page element is not the rights field, the web page element is not shown.
According to the eighth aspect of the embodiment of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by the processor of server, enable the server to execute a kind of side that web page element is shown Method, which comprises
Receive the Authority Verification request that terminal is sent, wherein the Authority Verification request includes the verification information of user;
When the verification information of the user passes through verifying, the corresponding rights field of the user is determined;
It include the corresponding permission word of the user in the Authority Verification result to the terminal sending permission verification result Section.
According to the 9th of the embodiment of the present disclosure the aspect, a kind of application product is provided, when application product is in terminal At runtime, so that terminal executes a kind of method that web page element is shown, which comprises
According to the verification information of user, Authority Verification request is initiated;
Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;
If the field to be verified of web page element is not the rights field, the web page element is not shown.
According to the tenth of the embodiment of the present disclosure the aspect, a kind of computer program product is provided, when computer program product exists Server at runtime so that server executes a kind of method that web page element is shown, which comprises
Receive the Authority Verification request that terminal is sent, wherein the Authority Verification request includes the verification information of user;
When the verification information of the user passes through verifying, the corresponding rights field of the user is determined;
It include the corresponding permission word of the user in the Authority Verification result to the terminal sending permission verification result Section.
The technical scheme provided by this disclosed embodiment can include the following benefits:
After terminal to server obtains the rights field of user, according to the rights field of user, judge web page element to Whether verifying field is rights field, if the field to be verified of web page element is not rights field, illustrates that the web page element does not have There is displaying permission, therefore, does not show the web page element.In this way, the web page element to user's displaying is that the user possesses permission The web page element that can be checked, user's webpage clicking element can execute corresponding operation, be not in that user clicks some Web page element but shows the case where insufficient permission, goes beyond one's commission request in this way, reducing Client-initiated, and then reduce to server The wasting of resources, while alleviating the processing pressure of server.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the method flow diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 2 is the method flow diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 3 is the method flow diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 4 is the method flow diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 5 is the interface schematic diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 6 is the interface schematic diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 7 is the device block diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 8 is the device block diagram that a kind of web page element shown according to an exemplary embodiment is shown;
Fig. 9 is a kind of structural block diagram of terminal shown according to an exemplary embodiment;
Figure 10 is a kind of structural schematic diagram of computer equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is the flow chart for the method that a kind of web page element shown according to an exemplary embodiment is shown, such as Fig. 1 institute Show, this method is for including the following steps in terminal.
In a step 101, according to the verification information of user, terminal initiates Authority Verification request.
In a step 102, terminal receives Authority Verification as a result, including the corresponding permission word of user in Authority Verification result Section.
In step 103, if the field to be verified of web page element is not rights field, displayed web page is not first for terminal Element.
Optionally, method further include:
If the field to be verified of web page element is not rights field, and the web page element includes corresponding exhibition scheme, Then terminal is according to exhibition scheme displayed web page element.
Optionally, above-mentioned exhibition scheme includes web page element disabling, removes hyperlink or hiding field.
Optionally, if the field to be verified of web page element is not rights field, terminal not displayed web page element, packet It includes:
If web page element corresponds to multiple fields to be verified, and patrolling between the corresponding multiple fields to be verified of web page element Volume relationship is and logic, then is not to weigh when there is at least one field to be verified in the corresponding multiple fields to be verified of web page element When limiting field, terminal not displayed web page element;
If web page element corresponds to multiple fields to be verified, and patrolling between the corresponding multiple fields to be verified of web page element Volume relationship is or logic that then when the corresponding multiple fields to be verified of web page element are not rights field, terminal does not show net Page element.
Optionally, this method further include:
If the corresponding single field to be verified of web page element, and the single field to be verified is not the rights field, then really The fixed web page element, which does not have, shows permission;If web page element corresponds to multiple fields to be verified, and the web page element is corresponding Logical relation between multiple fields to be verified is and logic then to exist when in the corresponding multiple fields to be verified of the web page element When at least one field to be verified is not rights field, determines that the web page element does not have and show permission;If web page element pair Answer multiple fields to be verified, and the logical relation between the corresponding multiple fields to be verified of the web page element is or logic, then when When the corresponding multiple fields to be verified of the web page element are not rights field, determine that the web page element does not have and show permission;
When the web page element does not have displaying permission, and the web page element includes corresponding exhibition scheme, according to the exhibition Show the schemes show web page element;Permission is shown when the web page element does not have, and the web page element does not include corresponding displaying When scheme, the web page element is not shown.
Optionally, if the field to be verified of web page element is not rights field, terminal not displayed web page element, packet It includes:
The corresponding rights field of user is passed to privileges component by terminal;
The field to be verified of web page element is passed to privileges component by terminal, determines the corresponding permission of user based on privileges component In field whether include web page element field to be verified, if do not include in the corresponding rights field of user web page element to Verifying field, then the field to be verified of web page element is not rights field.
In embodiment of the disclosure, after terminal to server obtains the rights field of user, according to the rights field of user, Whether the field to be verified for judging web page element is rights field, if the field to be verified of web page element is not rights field, Illustrate that the web page element does not show permission, therefore, does not show the web page element.In this way, the web page element shown to user is equal Possess the web page element that permission can check for the user, user's webpage clicking element can execute corresponding operation, will not There is user and click the case where some web page element but shows insufficient permission, goes beyond one's commission request in this way, reducing Client-initiated, into And reduce the wasting of resources to server, while alleviating the processing pressure of server.
Fig. 2 is the flow chart for the method that a kind of web page element shown according to an exemplary embodiment is shown, such as Fig. 2 institute Show, this method is for including the following steps in server.
In step 201, the Authority Verification request that server receiving terminal is sent, wherein Authority Verification request includes using The verification information at family.
In step 202, when the verification information of user passes through verifying, server determines the corresponding rights field of user.
In step 203, server includes that user is corresponding to terminal sending permission verification result, in Authority Verification result Rights field.
Fig. 3 is the flow chart for the method that a kind of web page element shown according to an exemplary embodiment is shown, such as Fig. 3 institute Show, this method is for including the following steps in terminal and server.
In step 301, according to the verification information of user, terminal initiates Authority Verification request.
In step 302, the Authority Verification request that server receiving terminal is sent, wherein Authority Verification request includes using The verification information at family.
In step 303, when the verification information of user passes through verifying, server determines the corresponding rights field of user.
In step 304, server includes that user is corresponding to terminal sending permission verification result, in Authority Verification result Rights field.
In step 305, terminal receives Authority Verification as a result, including the corresponding permission word of user in Authority Verification result Section.
Within step 306, if the field to be verified of web page element is not rights field, displayed web page is not first for terminal Element.
Optionally, method further include:
If the field to be verified of web page element is not rights field, and web page element includes corresponding exhibition scheme, then Terminal is according to exhibition scheme displayed web page element.
Optionally, above-mentioned exhibition scheme includes web page element disabling, removes hyperlink or hiding field.
Optionally, if the field to be verified of web page element is not rights field, terminal not displayed web page element, packet It includes:
If web page element corresponds to multiple fields to be verified, and patrolling between the corresponding multiple fields to be verified of web page element Volume relationship is and logic, then is not to weigh when there is at least one field to be verified in the corresponding multiple fields to be verified of web page element When limiting field, terminal not displayed web page element;
If web page element corresponds to multiple fields to be verified, and patrolling between the corresponding multiple fields to be verified of web page element Volume relationship is or logic that then when the corresponding multiple fields to be verified of web page element are not rights field, terminal does not show net Page element.
Optionally, this method further include:
If the corresponding single field to be verified of web page element, and the single field to be verified is not the rights field, then really The fixed web page element, which does not have, shows permission;If web page element corresponds to multiple fields to be verified, and the web page element is corresponding Logical relation between multiple fields to be verified is and logic then to exist when in the corresponding multiple fields to be verified of the web page element When at least one field to be verified is not rights field, determines that the web page element does not have and show permission;If web page element pair Answer multiple fields to be verified, and the logical relation between the corresponding multiple fields to be verified of the web page element is or logic, then when When the corresponding multiple fields to be verified of the web page element are not rights field, determine that the web page element does not have and show permission;
When the web page element does not have displaying permission, and the web page element includes corresponding exhibition scheme, according to the exhibition Show the schemes show web page element;Permission is shown when the web page element does not have, and the web page element does not include corresponding displaying When scheme, the web page element is not shown.
Optionally, if the field to be verified of web page element is not rights field, terminal not displayed web page element, packet It includes:
The corresponding rights field of user is passed to privileges component by terminal;
The field to be verified of web page element is passed to privileges component by terminal, determines the corresponding permission of user based on privileges component In field whether include web page element field to be verified, if do not include in the corresponding rights field of user web page element to Verifying field, then the field to be verified of web page element is not rights field.
In embodiment of the disclosure, after terminal to server obtains the rights field of user, according to the rights field of user, Whether the field to be verified for judging web page element is rights field, if the field to be verified of web page element is not rights field, Illustrate that the web page element does not show permission, therefore, does not show the web page element.In this way, the web page element shown to user is equal Possess the web page element that permission can check for the user, user's webpage clicking element can execute corresponding operation, will not There is user and click the case where some web page element but shows insufficient permission, goes beyond one's commission request in this way, reducing Client-initiated, into And reduce the wasting of resources to server, while alleviating the processing pressure of server.
The present embodiment will be introduced in conjunction with specific embodiment, the method shown to web page element.This method can be with It is realized jointly by terminal and server, the page where web page element is to show corresponding web page element according to the permission of user The page, the page can be the Webpage in browser, the page being also possible in some application program system.Such as Fig. 4 institute The method flow diagram that the web page element that shows is shown is by the page to be shown of auditing system of the page where web page element below Example is illustrated, and the process flow of this method may include following step:
In step 401, according to the verification information of user, terminal to server initiates Authority Verification request.
In one possible embodiment, when user wants to open the page for dividing different rights, need first to carry out permission Verifying.Authority Verification can enumerate the scheme of several Authority Verifications there are many kinds of scheme below.
Scheme one is verified by user account and password.When user opens auditing system in the terminal, terminal meeting Login page is shown, for user's validation information, as shown in figure 5, the verification information can be user account and password.With Family can be manually entered user account and password, and the function of saving password also can be set in terminal, after user selects the function, use Need to input user account and password when family first logs into, non-user when first logging into is without being manually entered, and terminal is by preservation Multiple user accounts of preservation are showed user by user account and password filling login page or terminal, and user selects pair The corresponding password of the user name is automatically filled in login page by the user account answered, terminal.Terminal obtains user account and close There are many kinds of the modes of code, and the disclosure does not limit this.Then, terminal is asked to the server of auditing system initiation Authority Verification It asks, carries user account and password in Authority Verification request.
Scheme two is verified by third-party platform.In this case, the verification information of user is third-party platform Account.The premise that can be verified by third-party platform is, before this login, first registers user in the auditing system Account and the account of third-party platform bound.In this way, terminal can be shown when user opens auditing system at the terminal Show the login page logged in by the account of third-party platform, for example, terminal can with two-dimensional code display, in this case, User can carry out barcode scanning to the two dimensional code by third-party platform, after terminal gets the link information in two dimensional code, according to The account of the link information and third-party platform sends login authentication request, third-party platform clothes to third-party platform server Device be engaged in the corresponding relationship of the account of pre-stored third-party platform and the account of auditing system, searches the account of third-party platform Number whether have the account of corresponding auditing system, if there is then illustrating the success of this login authentication, third-party platform server to Terminal sends login authentication success message.Then, terminal initiates Authority Verification request to the server of auditing system, which tests The account of login authentication success message and third-party platform is carried in card request.
It should be noted that the scheme of above-mentioned several Authority Verifications is the scheme for including and, in addition to this, permission is tested The scheme of card also there are many kinds of, can be selected according to performance using the scheme of which kind of Authority Verification, the disclosure is to this With no restrictions.
In step 402, the Authority Verification request that server receiving terminal is sent, wherein Authority Verification request includes using The verification information at family.
In step 403, when the verification information of user passes through verifying, server determines the corresponding rights field of user.
Wherein, rights field is the character string for identifying different rights.
In one possible embodiment, after server receives the Authority Verification request for the verification information for carrying user, Can be inquired in pre-stored benchmark verification information whether include user verification information, if wrapped in benchmark verification information The verification information of user is included, then the verification information of user passes through verifying.If in benchmark verification information not including the verifying of user Information, then the verification information of user cannot pass through verifying.Wherein, benchmark verification information is when user registers within the system at end The benchmark verification information is sent to server by the verification information inputted in end, terminal, and server stores the benchmark verification information.
As an example it is assumed that verification information is the account and password of user, the account and password that user inputs in registration It is benchmark account and benchmark password, when user logs in the system, by the account of user's input and pre-stored benchmark Account compares, if in pre-stored benchmark account not including the account of user's input, illustrates the account mistake of user's input, Or the account of user's input is not registered, therefore the verification information of user cannot pass through verifying.If pre-stored benchmark account Include the account of user's input in number, then the corresponding benchmark password of the benchmark account be compared with the password that user inputs, If the corresponding benchmark password of the benchmark account is identical as the password that user inputs, illustrates that the password of user's input is correct, then lead to Verifying is crossed, the corresponding benchmark password of the benchmark account is different from the password that user inputs, and illustrates the password mistake of user's input, then Verifying cannot be passed through.
When the verification information of user passes through verifying, server obtains pair of pre-stored verification information and rights field It should be related to, then in the corresponding relationship, search the corresponding rights field of verification information of user, the as corresponding power of the user Limit field.
In step 404, server includes that user is corresponding to terminal sending permission verification result, in Authority Verification result Rights field.
In step 405, terminal receives Authority Verification as a result, including the corresponding permission word of user in Authority Verification result Section.
In one possible embodiment, after terminal receives the Authority Verification result that server is sent, will can wherein it carry The corresponding rights field of user be stored in pre-set storage region or memory, be such as stored in localstorage In, wherein localstorage is html5 (HyperText Markup Language 5.0, HyperText Markup Language Five editions) in a local local memory.
In a step 406, obtain the corresponding field to be verified of web page element, field to be verified based on web page element and Rights field, terminal determine whether web page element has displaying permission.
Wherein, web page element is each basic unit to be shown in webpage, such as button, picture box, text box.Webpage The corresponding field to be verified of element is the character string read in the corresponding storage address of web page element or label,
In one possible embodiment, after terminal receives Authority Verification result, obtains in the page to be shown and need to judge Whether the web page element corresponding to be verified field that shows permission is had.Need to judge whether that the web page element with displaying permission can To be to remove all to there are all user rights the webpage member for showing permission in the corresponding all web page elements of auditing system Element can mitigate the pressure of terminal processes in this way.
If the corresponding single field to be verified of web page element, judge in the rights field of user whether to include that this is to be verified Field illustrates that the permission that the user has can make the webpage if including the field to be verified in the rights field of user Element normal presentation, the i.e. web page element, which have, shows permission.If in the rights field of user not including the web page element pair The field to be verified answered then illustrates that the permission that user has cannot make the web page element normal presentation, i.e. the web page element does not have There is displaying permission.
If web page element corresponds to multiple fields to be verified, and deposits between the corresponding multiple fields to be verified of the web page element , then can be according to existing logical relation between the corresponding multiple fields to be verified of the web page element in logical relation, determining should Whether web page element has displaying permission, including but not limited to following several situations:
If the first situation, web page element correspond to multiple fields to be verified, and the web page element is corresponding multiple to be tested Logical relation between card field is and logic, then when there are at least one to wait in the corresponding multiple fields to be verified of web page element When verifying field is not rights field, which, which does not have, shows permission.
In one possible embodiment, if web page element corresponds to multiple fields to be verified, technical staff should in setting When web page element, a logical relation can be designed to this multiple field to be verified, it is multiple this can be identified with logical identifier Logical relation between field to be verified.
The logical identifier of terminal acquisition web page element, if it is determined that the corresponding logical relation of the logical identifier of the web page element For with logic, then when the corresponding multiple fields to be verified of the web page element are rights field, the web page element have show Permission.When there are at least one field to be verified being not rights field in the corresponding multiple fields to be verified of the web page element, The web page element, which does not have, shows permission.
By taking web page element is that can execute the button of newly-built operation as an example, the display of the button can correspond to one it is to be verified Field, the newly-built operation which can execute can correspond to a field to be verified, in this case, only when the button both When can show and be able to carry out newly-built operation, which just has displaying permission, is based on this logic, and the button is corresponding to be tested Logical relation between card field can be and logic, i.e., when the corresponding field to be verified of the button is rights field, this is pressed Button just has displaying permission, and otherwise, which, which does not have, shows permission.
If second situation, web page element correspond to multiple fields to be verified, and the web page element is corresponding multiple to be tested Logical relation between card field is or logic, then when the corresponding multiple fields to be verified of the web page element are not rights field When, which, which does not have, shows permission.
In one possible embodiment, if terminal obtains the logical identifier of the web page element, and the logical identifier is determined Corresponding logical relation is or logic, then when that there are at least one in the corresponding multiple fields to be verified of the web page element is to be verified When field is rights field, which, which has, shows permission.When the corresponding multiple fields to be verified of the web page element not When being rights field, which, which does not have, shows permission.
By taking web page element is drop-down menu as an example, as shown in fig. 6, may include multiple options, Mei Gexuan in drop-down menu Item can correspond to a field to be verified, in this case, as long as there is the choosing that can be shown to user in multiple options , then the drop-down menu just has displaying permission, is based on this logic, patrolling between the corresponding multiple fields to be verified of multiple options Volume relationship can be or logic, i.e., is simply by the presence of at least one field to be verified in the corresponding field to be verified of this multiple option Rights field, the drop-down menu just have displaying permission, and otherwise, which, which does not have, shows permission.
In step 407, if web page element, which has, shows permission, the terminal display web page element.
In one possible embodiment, through the above steps, if it is determined that web page element, which has, shows permission, then terminal is being just It often shows the web page element, that is, shows the web page element, and when terminal detects the triggering command of the web page element executes the net The corresponding operation of page element.By taking web page element is that can execute the button of delete operation as an example, terminal is corresponding in the web page element Display location show the button, when the user clicks when the button, terminal executes the corresponding delete operation of the button.
In a step 408, if web page element, which does not have, shows permission, and the web page element includes corresponding displaying side Case, then terminal shows the web page element according to exhibition scheme, and when the web page element does not include corresponding exhibition scheme, terminal is not Show the web page element.
In one possible embodiment, in order to reduce the wasting of resources to server, skill when showing more fully information Art personnel can also design one when the web page element does not have exhibition when designing the web page element of different rights to web page element Show exhibition scheme when permission.
If web page element includes corresponding exhibition scheme, in above-mentioned steps 406, terminal is by the to be tested of web page element When card field is passed to privileges component, the corresponding exhibition scheme of the web page element can be passed in privileges component together.When passing through When above-mentioned steps determine that web page element does not have displaying permission, privileges component may determine that whether the web page element includes correspondence Exhibition scheme, if the web page element includes corresponding exhibition scheme, privileges component is shown according to incoming exhibition scheme The web page element.If the web page element does not include corresponding exhibition scheme, the web page element is not shown.
It should be noted that the exemplary only possible embodiments of above-mentioned steps 406- step 408, remove this feasible reality It applies except example, after executing step 405, terminal can execute following processing steps: if the field to be verified of web page element It is not rights field, and web page element includes corresponding exhibition scheme, then according to exhibition scheme displayed web page element;If webpage The field to be verified of element is not rights field, and web page element does not include corresponding exhibition scheme, then not displayed web page element.
Alternatively, terminal can execute following processing steps after executing step 405: if web page element is corresponding single Field to be verified does not show the web page element if the field to be verified of web page element is not rights field;If webpage is first The corresponding multiple fields to be verified of element, and the logical relation between the corresponding multiple fields to be verified of the web page element is and logic, Then when there are at least one field to be verified being not rights field in the corresponding multiple fields to be verified of the web page element, do not open up Show the web page element;If web page element corresponds to multiple fields to be verified, and the corresponding multiple fields to be verified of the web page element Between logical relation be or logic, then when the corresponding multiple fields to be verified of the web page element are not rights field, no Show the web page element.
Optionally, above-mentioned exhibition scheme can include but is not limited to disabling web page element, remove hyperlink or hiding webpage Element.
In one possible embodiment, above-mentioned exhibition scheme may include kinds of schemes, including but not limited to disabling webpage Element removes hyperlink or hiding web page element etc., introduces several exhibition schemes separately below.
The first, disabling web page element.Disabling web page element refers to display web page element, but terminal forbids executing the webpage The corresponding operation of element.By taking web page element is that can execute the button of delete operation as an example, it is assumed that the displaying side of the web page element Case is disabling web page element, then after showing the web page element according to exhibition scheme, the button can be shown in displayed page, but work as and use It, will not triggering terminal execution delete operation when family clicks the button.
Second, hyperlink is removed.Removing hyperlink is to be directed to the case where web page element is network address, if web page element is Network address, when the normal presentation web page element, which has turn function, i.e., when user clicks the network address, can jump to this The corresponding website of network address, but if showing the web page element according to the exhibition scheme for removing hyperlink, then the network address can be shown in In displayed page, but when user clicks the network address, skip operation is not carried out in terminal.
The third, hide web page element.Hiding web page element does not show the web page element as, and hiding web page element can be with It is divided into two kinds, one is the occupy-places for retaining web page element, and one is the occupy-places for not retaining web page element.Retain accounting for for web page element Position is to retain the corresponding display location of the web page element, i.e., other webpages are shown not at the corresponding display location of the web page element Element.
Optionally, in order to improve the maintainability of system, simplify call operation, it can be by the above-mentioned function generation in relation to permission Code modularization, is a privileges component by the relevant code wrap of permission, which can be used for through the privileges component The field to be verified of web page element is verified, or for being opened up according to the exhibition scheme of web page element to web page element Show.
Wherein, it can be such that by the processing that be verified field of the privileges component to web page element is verified by user Corresponding rights field is passed to privileges component;The field to be verified of web page element is passed to the privileges component, is based on the permission group Part determine in the corresponding rights field of user whether include the web page element field to be verified, if the corresponding permission word of user It does not include the field to be verified of the web page element in section, then the field to be verified of web page element is not rights field.
The processing that web page element is shown can be such that the exhibition of web page element according to the exhibition scheme of web page element Show that scheme is passed to privileges component;When determine web page element do not have show permission when, privileges component according to the web page element exhibition Show scheme, which is shown.
In a kind of possible embodiment, the exhibition scheme of above-mentioned web page element is corresponding multiple to be tested with web page element Logical relation between card field can also be executed by privileges component, and (one kind is for constructing with Vue frame for the embodiment of the present disclosure The gradual frame of user interface) for, it is assumed that web page element is the button for executing newly-built task operating, and privileges component is named as Permission is illustrated the execution of privileges component below with reference to code.
Firstly, patrolling between the exhibition scheme and the corresponding multiple fields to be verified of web page element of editor's web page element When the relationship of collecting, corresponding code be can be such that
First, introduce Permission privileges component:
import Permission from'@/components/common/permission/Permission.vue'
Second, Permission is named as c-permission label, superscribes c- outside newly-built task button Permission rights label:
Wherein, the value of permissions field indicates the corresponding field to be verified of web page element, can be an array.
Behaviour field is used to indicate the exhibition scheme of web page element, and the value of default behavior field is gone, i.e., Behaviour attribute is not passed, using the scheme for the hiding web page element for not retaining occupy-place when lack of competence.When behaviour field When being set as " invisible ", indicate that lack of competence is the scheme using the hiding web page element for retaining erect-position.Work as behaviour When field is set as " disable ", disabling web page element is indicated.When behaviour field is set as " removeLink ", table Show and hyperlink is removed to web page element.
RequireAllPermissions field is used to indicate that the logic between multiple fields to be verified of web page element to be closed System, the value of the field is defaulted as true, when the value of the field is true, indicate the web page element multiple fields to be verified it Between logical relation be and logic that then privileges component carries out operation according to logic.When the value of the field is false, instruction Logical relation between multiple fields to be verified of the web page element is or logic, then privileges component according to or logic transported It calculates.
OnGetPermissionStatus is a call back function, available that the webpage member come is returned to privileges component Element whether have show permission as a result, some operations for needing permission can be carried out on the page to be shown according to the result, such as Distinct interface calling etc..
Secondly, showing permission and execution exhibition scheme when terminal judges whether web page element has according to privileges component When, the embodiment in code can be such that
Privileges component receives web page element and is transmitted through the attribute field come: ' permissions', ' behaviour', ' Then requireAllPermissions' field obtains the rights field of the user stored in localstorage, then root According to ' requireAllPermission' field, determine the logical relation between the corresponding multiple fields to be verified of web page element, Judge whether web page element has displaying permission.
It should be noted that the code of above-mentioned record is only a kind of possible embodiment that the disclosure enumerates, as long as energy Realize that the function of above-mentioned privileges component, the disclosure are not defined the code of the above-mentioned function of realization.
In embodiment of the disclosure, after terminal to server obtains the rights field of user, according to the rights field of user, Whether the field to be verified for judging web page element is rights field, if the field to be verified of web page element is not rights field, Illustrate that the web page element does not show permission, therefore, does not show the web page element.In this way, the web page element shown to user is equal Possess the web page element that permission can check for the user, user's webpage clicking element can execute corresponding operation, will not There is user and click the prompting message that some web page element but shows insufficient permission, the user experience is improved.Meanwhile reducing use The request of going beyond one's commission that family is initiated, and then reduce the wasting of resources to server, while alleviating the processing pressure of server.
Fig. 7 is the device block diagram that a kind of web page element shown according to an exemplary embodiment is shown.Referring to Fig. 7, the dress It sets including transmission unit 710, receiving unit 720 and display unit 730.
Transmission unit 710 is configured as the verification information according to user, initiates Authority Verification request;
Receiving unit 720 is configured as receiving Authority Verification as a result, including the user couple in the Authority Verification result The rights field answered;
Display unit 730 is not shown if the field to be verified for being configured as web page element is not the rights field The web page element.
Optionally, the display unit 730, is also configured to
If the field to be verified of web page element is not the rights field, and the web page element includes corresponding displaying When scheme, then the web page element is shown according to the exhibition scheme.
Optionally, the exhibition scheme includes disabling web page element, removes hyperlink or hiding web page element.
Optionally, the display unit 730, is configured as:
If web page element corresponds to multiple fields to be verified, and between the corresponding multiple fields to be verified of the web page element Logical relation be and logic, then when there are at least one words to be verified in the corresponding multiple fields to be verified of the web page element When section is not rights field, the web page element is not shown;
If web page element corresponds to multiple fields to be verified, and between the corresponding multiple fields to be verified of the web page element Logical relation be or logic is not opened up then when the corresponding multiple fields to be verified of the web page element are not rights field Show the web page element.
Optionally, described device further include:
Determination unit, if for the corresponding single field to be verified of web page element, and the single field to be verified is not The rights field, it is determined that the web page element, which does not have, shows permission;If web page element corresponds to multiple fields to be verified, And the logical relation between the corresponding multiple fields to be verified of the web page element is and logic, then when the web page element is corresponding Multiple fields to be verified in when there are at least one field to be verified not being rights field, determine that the web page element does not have Show permission;If web page element corresponds to multiple fields to be verified, and the corresponding multiple fields to be verified of the web page element it Between logical relation be or logic, then when the corresponding multiple fields to be verified of the web page element are not rights field, really The fixed web page element, which does not have, shows permission;
The display unit is also used to show permission when the web page element does not have, and the web page element includes pair When the exhibition scheme answered, the web page element is shown according to the exhibition scheme;Permission is shown when the web page element does not have, And the web page element do not include corresponding exhibition scheme when, do not show the web page element.
Optionally, the display unit 730, is configured as:
The corresponding rights field of the user is passed to privileges component;
The field to be verified of web page element is passed to the privileges component, the user couple is determined based on the privileges component In the rights field answered whether include the web page element field to be verified, if in the corresponding rights field of the user not Field to be verified including the web page element, it is determined that the field to be verified of the web page element is not the rights field.
In embodiment of the disclosure, after terminal to server obtains the rights field of user, according to the rights field of user, Whether the field to be verified for judging web page element is rights field, if the field to be verified of web page element is not rights field, Illustrate that the web page element does not show permission, therefore, does not show the web page element.In this way, the web page element shown to user is equal Possess the web page element that permission can check for the user, user's webpage clicking element can execute corresponding operation, will not There is user and click the case where some web page element but shows insufficient permission, goes beyond one's commission request in this way, reducing Client-initiated, into And reduce the wasting of resources to server, while alleviating the processing pressure of server.
Fig. 8 is the device block diagram that a kind of web page element shown according to an exemplary embodiment is shown.Referring to Fig. 8, the dress It sets including receiving unit 810, determination unit 820 and transmission unit 830.
Receiving unit 810 is configured as receiving the Authority Verification request that terminal is sent, wherein the Authority Verification request Verification information including user;
Determination unit 820 is configured as determining that the user is corresponding when the verification information of the user passes through verifying Rights field;
Transmission unit 830 is configured as to the terminal sending permission verification result, includes in the Authority Verification result The corresponding rights field of the user.
In embodiment of the disclosure, after terminal to server obtains the rights field of user, according to the rights field of user, Whether the field to be verified for judging web page element is rights field, if the field to be verified of web page element is not rights field, Illustrate that the web page element does not show permission, therefore, does not show the web page element.In this way, the web page element shown to user is equal Possess the web page element that permission can check for the user, user's webpage clicking element can execute corresponding operation, will not There is user and click the case where some web page element but shows insufficient permission, goes beyond one's commission request in this way, reducing Client-initiated, into And reduce the wasting of resources to server, while alleviating the processing pressure of server.
Fig. 9 is a kind of structural block diagram of terminal shown according to an exemplary embodiment.The terminal 900 can be portable Mobile terminal, such as: smart phone, tablet computer.Terminal 900 be also possible to referred to as user equipment, portable terminal etc. other Title.
In general, terminal 900 includes: processor 901 and memory 902.
Processor 901 may include one or more processing cores, such as 4 core processors, 9 core processors etc..Place Reason device 901 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 901 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 901 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 901 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 902 may include one or more computer readable storage mediums, which can To be tangible and non-transient.Memory 902 may also include high-speed random access memory and nonvolatile memory, Such as one or more disk storage equipments, flash memory device.In some embodiments, non-transient in memory 902 Computer readable storage medium for storing at least one instruction, at least one instruction for performed by processor 901 with Realize the method that web page element provided herein is shown.
In some embodiments, terminal 900 is also optional includes: peripheral device interface 903 and at least one peripheral equipment. Specifically, peripheral equipment includes: radio circuit 904, touch display screen 905, camera 906, voicefrequency circuit 907, positioning component At least one of 908 and power supply 909.
Peripheral device interface 903 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 901 and memory 902.In some embodiments, processor 901, memory 902 and peripheral equipment Interface 903 is integrated on same chip or circuit board;In some other embodiments, processor 901, memory 902 and outer Any one or two in peripheral equipment interface 903 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 904 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 904 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 904 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 904 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 904 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates Frequency circuit 904 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this Application is not limited this.
Touch display screen 905 is for showing UI (User Interface, user interface).The UI may include figure, text Sheet, icon, video and its their any combination.Touch display screen 905 also have acquisition touch display screen 905 surface or The ability of the touch signal of surface.The touch signal can be used as control signal and be input to processor 901 and be handled.Touching Display screen 905 is touched for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or soft keyboard.In some embodiments In, touch display screen 905 can be one, and the front panel of terminal 900 is arranged;In further embodiments, touch display screen 905 It can be at least two, be separately positioned on the different surfaces of terminal 900 or in foldover design;In still other embodiments, touch Display screen 905 can be flexible display screen, be arranged on the curved surface of terminal 900 or on fold plane.Even, touch display screen 905 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Touch display screen 905 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials preparation.
CCD camera assembly 906 is for acquiring image or video.Optionally, CCD camera assembly 906 include front camera and Rear camera.In general, front camera is for realizing video calling or self-timer, rear camera is for realizing photo or video Shooting.In some embodiments, rear camera at least two are main camera, depth of field camera, wide-angle imaging respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Pan-shot and VR (Virtual Reality, virtual reality) shooting function are realized in camera fusion.In some embodiments In, CCD camera assembly 906 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, be also possible to double-colored temperature flash of light Lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for the light compensation under different-colour.
Voicefrequency circuit 907 is used to provide the audio interface between user and terminal 900.Voicefrequency circuit 907 may include wheat Gram wind and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and converts sound waves into electric signal and be input to processor 901 are handled, or are input to radio circuit 904 to realize voice communication.For stereo acquisition or the purpose of noise reduction, wheat Gram wind can be it is multiple, be separately positioned on the different parts of terminal 900.Microphone can also be array microphone or omnidirectional's acquisition Type microphone.Loudspeaker is then used to that sound wave will to be converted to from the electric signal of processor 901 or radio circuit 904.Loudspeaker can To be traditional wafer speaker, it is also possible to piezoelectric ceramic loudspeaker.When loudspeaker is piezoelectric ceramic loudspeaker, not only may be used To convert electrical signals to the audible sound wave of the mankind, the sound wave that the mankind do not hear can also be converted electrical signals to survey Away from etc. purposes.In some embodiments, voicefrequency circuit 907 can also include earphone jack.
Positioning component 908 is used for the current geographic position of positioning terminal 900, to realize navigation or LBS (Location Based Service, location based service).Positioning component 908 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 909 is used to be powered for the various components in terminal 900.Power supply 909 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 909 includes rechargeable battery, which can be wired charging electricity Pond or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is by wireless The battery of coil charges.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 900 further includes having one or more sensors 910.The one or more sensors 910 include but is not limited to: acceleration transducer 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, Optical sensor 915 and proximity sensor 916.
The acceleration that acceleration transducer 911 can detecte in three reference axis of the coordinate system established with terminal 900 is big It is small.For example, acceleration transducer 911 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 901 can With the acceleration of gravity signal acquired according to acceleration transducer 911, touch display screen 905 is controlled with transverse views or longitudinal view Figure carries out the display of user interface.Acceleration transducer 911 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 912 can detecte body direction and the rotational angle of terminal 900, and gyro sensor 912 can To cooperate with acquisition user to act the 3D of terminal 900 with acceleration transducer 911.Processor 901 is according to gyro sensor 912 Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 905 in terminal 900 can be set in pressure sensor 913.Work as pressure When the side frame of terminal 900 is arranged in sensor 913, it can detecte user to the gripping signal of terminal 900, believed according to the gripping Number carry out right-hand man's identification or prompt operation.When the lower layer of touch display screen 905 is arranged in pressure sensor 913, Ke Yigen According to user to the pressure operation of touch display screen 905, realization controls the operability control on the interface UI.Operability Control includes at least one of button control, scroll bar control, icon control, menu control.
Fingerprint sensor 914 is used to acquire the fingerprint of user, according to the identity of collected fingerprint recognition user.Knowing Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation, the sensitive operation by processor 901 Including solution lock screen, check encryption information, downloading software, payment and change setting etc..End can be set in fingerprint sensor 914 Front, the back side or the side at end 900.When being provided with physical button or manufacturer Logo in terminal 900, fingerprint sensor 914 can To be integrated with physical button or manufacturer Logo.
Optical sensor 915 is for acquiring ambient light intensity.In one embodiment, processor 901 can be according to optics The ambient light intensity that sensor 915 acquires controls the display brightness of touch display screen 905.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 905 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 905 is bright Degree.In another embodiment, the ambient light intensity that processor 901 can also be acquired according to optical sensor 915, dynamic adjust The acquisition parameters of CCD camera assembly 906.
Proximity sensor 916, also referred to as range sensor are generally arranged at the front of terminal 900.Proximity sensor 916 is used In the distance between the front of acquisition user and terminal 900.In one embodiment, when proximity sensor 916 detects user When the distance between front of terminal 900 gradually becomes smaller, touch display screen 905 is controlled by processor 901 and is cut from bright screen state It is changed to breath screen state;When proximity sensor 916 detects user and the distance between the front of terminal 900 becomes larger, by Processor 901 controls touch display screen 905 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 900 of structure shown in Fig. 9, can wrap It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
In embodiment of the disclosure, after terminal to server obtains the rights field of user, according to the rights field of user, Whether the field to be verified for judging web page element is rights field, if the field to be verified of web page element is not rights field, Illustrate that the web page element does not show permission, therefore, does not show the web page element.In this way, the web page element shown to user is equal Possess the web page element that permission can check for the user, user's webpage clicking element can execute corresponding operation, will not There is user and click the case where some web page element but shows insufficient permission, goes beyond one's commission request in this way, reducing Client-initiated, into And reduce the wasting of resources to server, while alleviating the processing pressure of server.
Figure 10 is a kind of structural schematic diagram of computer equipment shown according to an exemplary embodiment, the computer equipment It can be the server in above-described embodiment.The computer equipment 1000 can generate bigger difference because configuration or performance are different It is different, it may include one or more processors (central processing units, CPU) 1001 and one or one Above memory 1002, wherein at least one instruction is stored in the memory 1002, at least one instruction is by institute It states the load of processor 1001 and executes the method and step to realize following web page elements displayings:
Receive the Authority Verification request that terminal is sent, wherein the Authority Verification request includes the verification information of user;
When the verification information of the user passes through verifying, the corresponding rights field of the user is determined;
It include the corresponding permission word of the user in the Authority Verification result to the terminal sending permission verification result Section.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 902 of instruction, above-metioned instruction can be executed by the processor 901 of device 900 to complete above-mentioned web page element exhibition The method shown, this method comprises: initiating Authority Verification request according to the verification information of user;Authority Verification is received as a result, described It include the corresponding rights field of the user in Authority Verification result;If the field to be verified of web page element is not the permission Field does not show the web page element then.For example, the non-transitorycomputer readable storage medium can be ROM, deposit at random Access to memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1002 of instruction, above-metioned instruction can be executed by the processor 1001 of device 1000 to complete above-mentioned web page element The method of displaying, this method comprises: receiving the Authority Verification request that terminal is sent, wherein the Authority Verification request includes using The verification information at family;When the verification information of the user passes through verifying, the corresponding rights field of the user is determined;To described Terminal sending permission verification result includes the corresponding rights field of the user in the Authority Verification result.For example, described non- Provisional computer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light number According to storage equipment etc..
In the exemplary embodiment, additionally provide a kind of application product, including one or more instruction, this or A plurality of instruction can be executed by the processor 901 of device 900, to complete the method that above-mentioned web page element is shown, this method comprises: According to the verification information of user, Authority Verification request is initiated;Authority Verification is received as a result, including institute in the Authority Verification result State the corresponding rights field of user;If the field to be verified of web page element is not the rights field, the net is not shown Page element.
In the exemplary embodiment, a kind of computer program product is additionally provided, including one or more instructs, this Or a plurality of instruction can be executed by the processor 1001 of device 1000, to complete the method that above-mentioned web page element is shown, this method It include: the Authority Verification request for receiving terminal and sending, wherein the Authority Verification request includes the verification information of user;Work as institute When stating the verification information of user and passing through verifying, the corresponding rights field of the user is determined;It is verified to the terminal sending permission As a result, including the corresponding rights field of the user in the Authority Verification result.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of method that web page element is shown characterized by comprising
According to the verification information of user, Authority Verification request is initiated;
Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;
If the field to be verified of web page element is not the rights field, the web page element is not shown.
2. the method that web page element according to claim 1 is shown, which is characterized in that the method also includes:
If the field to be verified of web page element is not the rights field, and the web page element includes corresponding displaying side Case then shows the web page element according to the exhibition scheme.
3. the method that web page element according to claim 2 is shown, which is characterized in that the exhibition scheme includes disabling net Page element removes hyperlink or hiding web page element.
4. the method that web page element according to claim 1 is shown, which is characterized in that if the web page element is to be tested Demonstrate,proving field is not the rights field, then does not show the web page element, comprising:
If web page element corresponds to multiple fields to be verified, and patrolling between the corresponding multiple fields to be verified of the web page element Volume relationship is and logic, then when there are at least one fields to be verified in the corresponding multiple fields to be verified of the web page element not When being rights field, the web page element is not shown;
If web page element corresponds to multiple fields to be verified, and patrolling between the corresponding multiple fields to be verified of the web page element The relationship of collecting is or logic does not show institute then when the corresponding multiple fields to be verified of the web page element are not rights field State web page element.
5. the method that web page element according to claim 1 is shown, which is characterized in that the method also includes:
If the corresponding single field to be verified of web page element, and the single field to be verified is not the rights field, then really The fixed web page element, which does not have, shows permission;If web page element corresponds to multiple fields to be verified, and the web page element pair The logical relation between multiple fields to be verified answered is and logic, then when the corresponding multiple fields to be verified of the web page element It is middle when there are at least one field to be verified not being rights field, it determines that the web page element does not have and shows permission;If net Page element corresponds to multiple fields to be verified, and the logical relation between the corresponding multiple fields to be verified of the web page element be or Logic determines the web page element not then when the corresponding multiple fields to be verified of the web page element are not rights field With displaying permission;
When the web page element does not have displaying permission, and the web page element includes corresponding exhibition scheme, according to described Exhibition scheme shows the web page element;When the web page element do not have show permission, and the web page element do not include pair When the exhibition scheme answered, the web page element is not shown.
6. the method that web page element according to claim 1 is shown, which is characterized in that if the web page element is to be tested Demonstrate,proving field is not the rights field, then does not show the web page element, comprising:
The corresponding rights field of the user is passed to privileges component;
The field to be verified of web page element is passed to the privileges component, determines that the user is corresponding based on the privileges component In rights field whether include the web page element field to be verified, if not including in the corresponding rights field of the user The field to be verified of the web page element, it is determined that the field to be verified of the web page element is not the rights field.
7. the device that a kind of web page element is shown characterized by comprising
Transmission unit initiates Authority Verification request for the verification information according to user;
Receiving unit, for receiving Authority Verification as a result, including the corresponding permission word of the user in the Authority Verification result Section;
Display unit does not show the webpage member if the field to be verified for web page element is not the rights field Element.
8. the device that web page element according to claim 7 is shown, which is characterized in that the display unit is also used to:
If the field to be verified of web page element is not the rights field, and the web page element includes corresponding displaying side Case then shows the web page element according to the exhibition scheme.
9. a kind of terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
According to the verification information of user, Authority Verification request is initiated;
Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;
If the field to be verified of web page element is not the rights field, the web page element is not shown.
10. a kind of non-transitorycomputer readable storage medium, which is characterized in that when the instruction in the storage medium is by terminal Processor when executing, enable the terminal to execute a kind of method that web page element is shown, which comprises
According to the verification information of user, Authority Verification request is initiated;
Authority Verification is received as a result, including the corresponding rights field of the user in the Authority Verification result;
If the field to be verified of web page element is not the rights field, the web page element is not shown.
CN201811474700.9A 2018-12-04 2018-12-04 Method, apparatus, terminal and the storage medium that web page element is shown Pending CN109413098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811474700.9A CN109413098A (en) 2018-12-04 2018-12-04 Method, apparatus, terminal and the storage medium that web page element is shown

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811474700.9A CN109413098A (en) 2018-12-04 2018-12-04 Method, apparatus, terminal and the storage medium that web page element is shown

Publications (1)

Publication Number Publication Date
CN109413098A true CN109413098A (en) 2019-03-01

Family

ID=65457148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811474700.9A Pending CN109413098A (en) 2018-12-04 2018-12-04 Method, apparatus, terminal and the storage medium that web page element is shown

Country Status (1)

Country Link
CN (1) CN109413098A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119488A (en) * 2019-04-12 2019-08-13 平安普惠企业管理有限公司 The control method and device that the page is shown
CN110334144A (en) * 2019-06-13 2019-10-15 平安银行股份有限公司 Message methods of exhibiting, device, computer equipment and storage medium
CN111783050A (en) * 2020-07-02 2020-10-16 浪潮云信息技术股份公司 Role and authority control system of website user
CN113536253A (en) * 2021-07-23 2021-10-22 工银科技有限公司 Method, apparatus, device and medium for controlling display authority of page element
CN114610305A (en) * 2022-03-11 2022-06-10 数坤科技(宁波)有限公司 Development method and device of invisible webpage resources, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335523A (en) * 2014-04-15 2015-02-04 华为技术有限公司 Access control method, client and server
CN105897723A (en) * 2016-05-04 2016-08-24 深圳市永兴元科技有限公司 Method and system for page display processing and server
CN106471517A (en) * 2014-06-20 2017-03-01 微软技术许可有限责任公司 The visualization different because of user to display elements
CN106919581A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 The means of defence and device of a kind of browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335523A (en) * 2014-04-15 2015-02-04 华为技术有限公司 Access control method, client and server
CN106471517A (en) * 2014-06-20 2017-03-01 微软技术许可有限责任公司 The visualization different because of user to display elements
CN106919581A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 The means of defence and device of a kind of browser
CN105897723A (en) * 2016-05-04 2016-08-24 深圳市永兴元科技有限公司 Method and system for page display processing and server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119488A (en) * 2019-04-12 2019-08-13 平安普惠企业管理有限公司 The control method and device that the page is shown
CN110334144A (en) * 2019-06-13 2019-10-15 平安银行股份有限公司 Message methods of exhibiting, device, computer equipment and storage medium
CN110334144B (en) * 2019-06-13 2023-07-25 平安银行股份有限公司 Message display method, device, computer equipment and storage medium
CN111783050A (en) * 2020-07-02 2020-10-16 浪潮云信息技术股份公司 Role and authority control system of website user
CN113536253A (en) * 2021-07-23 2021-10-22 工银科技有限公司 Method, apparatus, device and medium for controlling display authority of page element
CN114610305A (en) * 2022-03-11 2022-06-10 数坤科技(宁波)有限公司 Development method and device of invisible webpage resources, electronic equipment and medium
CN114610305B (en) * 2022-03-11 2023-11-10 数坤科技(宁波)有限公司 Invisible webpage resource development method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN109413098A (en) Method, apparatus, terminal and the storage medium that web page element is shown
US9703971B2 (en) Sensitive operation verification method, terminal device, server, and verification system
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110502308A (en) Style sheet switching method, device, computer equipment and storage medium
CN109547495B (en) Sensitive operation processing method, device, server, terminal and storage medium
US20200104320A1 (en) Method, apparatus and computer device for searching audio, and storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN110288332A (en) System, method, apparatus, equipment and the storage medium of bank card binding
CN108475304B (en) Method and device for associating application program and biological characteristics and mobile terminal
US20210294583A1 (en) Mini program production method and apparatus, terminal, and storage medium
CN110046018A (en) Show method, apparatus, electronic equipment and the medium of message
US20220377157A1 (en) Method for displaying data, and computer device
CN110322151A (en) Platform enters system, method, equipment and storage medium
CN110413501A (en) Browser compatibility test method, device, system and readable storage medium storing program for executing
CN109522146A (en) The method, apparatus and storage medium of abnormality test are carried out to client
CN109948087A (en) Acquisition methods, device and the terminal of web page resources
CN110032702A (en) Webpage display process, device, equipment and storage medium
CN110224870A (en) Interface monitoring method, apparatus calculates equipment and storage medium
CN110442771A (en) A kind of method and device that the detection website based on deep learning is distorted
CN110851823A (en) Data access method, device, terminal and storage medium
CN110225048A (en) Data transmission method, device, first terminal and storage medium
CN109800003A (en) Using method for down loading, device, terminal and storage medium
CN109040339A (en) Cross-domain request processing method, device and equipment based on AJAX
CN108616835A (en) Internet resources acquisition methods, device, system and storage medium based on browser
CN109783176A (en) Switch the method and apparatus of the page

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301