CN113434122A - Multi-role page creation method and device, server and readable storage medium - Google Patents

Multi-role page creation method and device, server and readable storage medium Download PDF

Info

Publication number
CN113434122A
CN113434122A CN202110732778.1A CN202110732778A CN113434122A CN 113434122 A CN113434122 A CN 113434122A CN 202110732778 A CN202110732778 A CN 202110732778A CN 113434122 A CN113434122 A CN 113434122A
Authority
CN
China
Prior art keywords
page
component information
page component
target
identifier
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
CN202110732778.1A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110732778.1A priority Critical patent/CN113434122A/en
Publication of CN113434122A publication Critical patent/CN113434122A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method, a device, a server and a readable storage medium for creating a multi-role page, belonging to the technical field of computers and block chains, wherein the method comprises the following steps: acquiring a login request sent by terminal equipment, wherein the login request comprises a user role identifier and a first page identifier of a current page displayed by the terminal equipment; acquiring first page component information corresponding to a user role identifier and second page component information corresponding to the first page identifier; determining target page component information to be issued to the terminal equipment according to the first page component information and the second page component information; and sending the target page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the target page component information. The page component information needing to be modified is replaced by the target page component information without modifying the component information of the whole page, so that the cost of creating the multi-role page is reduced, and the page creating efficiency is improved.

Description

Multi-role page creation method and device, server and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for creating a multi-role page, a server, and a readable storage medium.
Background
The existing multi-role or multi-flow management system has many roles, and pages corresponding to each role are different, so that each role needs to develop one set of pages, or different layouts are embedded in one page, so that many pages needing to be created cause high development cost, and if a role is newly added in business requirements, developers need to develop and create a new page, so that the existing multi-role page configuration scheme has high development cost, and therefore, how to reduce the creation cost of a multi-role page and improve the page creation efficiency is a problem to be solved urgently at present.
Disclosure of Invention
The application mainly aims to provide a multi-role page creation method, device, server and readable storage medium, aiming at reducing the creation cost of multi-role pages and improving the page creation efficiency.
In a first aspect, the present application provides a method for creating a multi-role page, including:
the method comprises the steps of obtaining a login request sent by terminal equipment, wherein the login request comprises a user role identifier and a first page identifier of a current page displayed by the terminal equipment;
acquiring first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier;
determining target page component information to be issued to the terminal equipment according to the first page component information and the second page component information;
and sending the target page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the target page component information.
In a second aspect, the present application also provides a multi-role page creation apparatus, including: the device comprises an acquisition module, a determination module and a sending module, wherein:
the acquisition module is used for acquiring a login request sent by terminal equipment, wherein the login request comprises a user role identifier and a first page identifier of a current page displayed by the terminal equipment;
the acquiring module is further configured to acquire first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier;
the determining module is used for determining target page component information to be issued to the terminal equipment according to the first page component information and the second page component information;
and the sending module is used for sending the target page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identifier according to the target page component information.
In a third aspect, the present application further provides a server, which includes a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the multi-role page creation method as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the multi-role page creation method as described above.
The application provides a multi-role page creating method, a device, a server and a readable storage medium, acquires a user role identifier sent by a terminal device and a first page identifier of a current page displayed by the terminal device, and acquiring first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier, then according to the first page component information and the second page component information, the target page component information which needs to be rebuilt for the page to be created can be known, the target page component information is sent to the terminal equipment, so that the terminal device can create and display the target page corresponding to the user role identification according to the target page component information, replace the page component information needing to be modified through the target page component information, without modifying the component information of the whole page, the cost of creating the multi-role page is reduced and the efficiency of page creation is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating steps of a method for creating a multi-role page according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another multi-role page creation method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating steps of another multi-role page creation method according to an embodiment of the present application;
FIG. 4 is a block diagram of an apparatus for creating a multi-role page according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of another multi-role page creation apparatus provided in the embodiments of the present application;
FIG. 6 is a schematic block diagram of another multi-role page creation apparatus provided in the embodiments of the present application;
fig. 7 is a block diagram schematically illustrating a structure of a server according to an embodiment of the present disclosure.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a multi-role page creating method and device, a server and a readable storage medium. The multi-role page creation method can be applied to a server, and the server can be a single server or a server cluster consisting of a plurality of single servers.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating steps of a method for creating a multi-role page according to an embodiment of the present application.
As shown in fig. 1, the multi-role page creation method includes steps S101 to S104.
Step S101, a login request sent by a terminal device is obtained, wherein the login request comprises a user role identifier and a first page identifier of a current page displayed by the terminal device.
The method comprises the steps that terminal equipment obtains a user account input by a user and generates a login request according to the user account; and determining whether the login request is a legal login request, and sending the login request to the server when the login request is determined to be the legal login request. The terminal device can be an electronic device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable device. By checking whether the login request is legal or not, the efficiency of page creation is improved.
In an embodiment, the manner of obtaining the login request input by the user may be: when the terminal equipment is touch screen equipment, a user account input by a user on the touch screen is obtained, and a login request is generated according to the user account and an account password. Or when the terminal equipment is externally connected key equipment, acquiring a user account input by the user on the key equipment, and generating a login request according to the user account and the account password. The touch screen device may be a touch screen device such as a smart phone and a tablet computer, the key device may be a keyboard, and the terminal device may be a mobile phone, a tablet computer, a desktop computer, a personal assistant, and the like.
In an embodiment, the manner of determining whether the login request is a legal login request may be: determining whether a user account in the login request conforms to a preset rule, and if the user account in the login request conforms to the preset rule, determining that the login request is a legal login request; and if the user account does not accord with the preset rule, the login request of the user is an illegal login request. The preset rule may be set according to an actual situation, for example, the preset rule may be a length of an account, or a suffix domain name of the account.
Illustratively, the preset rules are that the account length is 6 digits, the user account 1 is qwerty 1, the user account 2 is asdf78, the user account 3 is poiu741, the user account 4 is cfs45, and the user account 5 is ertdf1, where the account length of the user account 1 is 6, the account length of the user account 2 is 6, the account length of the user account 3 is 7, the account length of the user account 4 is 5, and the account length of the user account 5 is 6, and the account lengths of the user account 3 and the user account 4 are not the account length 6 of the preset rules, so that the login request corresponding to the user account 1 is a legal login request, the login request corresponding to the user account 2 is a legal login request, the login request corresponding to the user account 5 is a legal login request, and the login requests corresponding to the user accounts 3 and the user accounts 4 are illegal login requests.
In an embodiment, when determining that the login request is a legal login request, the terminal device sends the login request to the server, and the server obtains the login request sent by the terminal device, where the login request includes a user role identifier and a first page identifier of a current page displayed by the terminal device. The user role identification is used for identifying the role of the user, different roles correspond to different authorities, and the first page identification is used for identifying the current page. And acquiring the role identification of the user and the page identification information of the current page, and generating a login request according to the role identification and the page identification information of the current page.
For example, the user role identification determination manner may be: and determining the user role identification according to the identification bit of the user account, specifically, obtaining a mapping relation table between the identification bit and the user role identification, and determining the user role identification according to the identification bit and the mapping relation table. The mapping relation table is established in advance according to the identification position and the user role identification. The user role identification of the user can be accurately determined through the mapping relation table.
And S102, acquiring first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier.
The page component information is a bottom file data packet used for creating a target page.
In an embodiment, the manner of obtaining the first page component information corresponding to the user role identifier may be: acquiring a mapping relation table between preset user role identification and page component information; and determining the first page component information according to the mapping relation table and the user role identification. The mapping relation table is established in advance according to the user role identification and the page component information, the establishment of the mapping relation table can be established according to actual conditions, and the mapping relation table is not limited in the embodiment of the application. Through the mapping relation table and the user role identification, the first page component information can be accurately obtained.
Illustratively, the user role identifier is a role identifier a, page component information corresponding to the role identifier a is searched from a preset mapping relation table between the user role identifier and the page component information, and the obtained page component information includes a file data packet 1, a file data packet 2 and a file data packet 5. For another example, the user role identifier is a role identifier B, the page component information of the role identifier B is searched from a mapping relation table between preset user role identifiers and page component information, and the obtained page component information includes a file data packet 2, a file data packet 6 and a file data packet 8.
In an embodiment, the manner of obtaining the second page component information corresponding to the first page identifier may be: and acquiring a mapping relation table between the first page identifier and the second page component information, and determining the second page component information according to the first page identifier and the mapping relation table. The mapping relation table is established in advance according to the first page identifier and the second page component information, the establishment of the mapping relation table can be established according to actual situations, and the embodiment of the application is not particularly limited to this. And the second page component information corresponding to the first page identification can be accurately determined through the mapping relation table.
Step S103, determining target page component information to be issued to the terminal equipment according to the first page component information and the second page component information.
Comparing the first page component information with the second page component information, and screening out page component information of which the first page component information is different from the first page component information; and taking the different page component information as target page component information. The page component information of the page to be created and the current page can be obtained by screening the page component information of which the first page component information is different from the first page component information.
Illustratively, the first page component information includes a file data package 1, a file data package 2, and a file data package 5, and the second page component information includes a file data package 2, a file data package 6, and a file data package 8, then the first page component information includes that the file data package 1 and the file data package 5 are different page component information from the second page component information, and then the target page component information includes the file data package 1 and the file data package 5.
It should be noted that the file data packet includes page parameters and page position information, and if only the page display parameters are the same and the positions are different, the file data packet is different. For example, if a is displayed in the area 1 of the page 1 and a is displayed in the area 2 of the page 2, the file package 1 is required for generating the page 1 and the file package 2 is required for generating the page 2.
And step S104, sending the target page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the target page component information.
And sending the target page component information to the terminal equipment, reading a file data packet in the target page component information by the terminal equipment, and creating and displaying a target page corresponding to the user role according to the file data packet. And writing the file data packet in the target page component information into the current page, and covering the file data at the corresponding position of the current page to obtain the target page.
Specifically, the terminal device reads page position information and page parameters in a file data packet of the target page component information, determines an area of a page to be modified according to the page position information, writes the page parameters into the area of the page to be modified to replace original page parameters in the area, and displays the written target page to complete creation of the target page corresponding to the target user role identifier.
In an embodiment, the first page component information includes a presentation time period of at least one page component, and the terminal device is configured to display the at least one page component in the target page based on the presentation time period. Illustratively, the user role is a client, the client page includes a commodity promotion area 1, the commodity promoted in the commodity promotion area 1 is a from 8 to 10, the commodity promoted in the commodity promotion area 1 is B from 10 to 12, the commodity promoted in the commodity promotion area 1 is C from 12 to 15, and the commodity promoted in the commodity promotion area 1 is D from 15 to 20, so that the terminal device displays page component information corresponding to 8 to 10 points in the target page based on 8 to 10 points, and similarly displays page components corresponding to each time period in sequence. And the target page is displayed through the time setting time period, so that the page creating efficiency and accuracy are improved.
In one embodiment, an update instruction of page component information sent by a display device is obtained, wherein the update instruction is determined based on an operation of a user in a page editing page displayed by the display device, and the page editing page is used for displaying a page edited by the user; acquiring a target user role identifier and page component updating information corresponding to the page component information to be updated from the updating instruction; and updating the page component information corresponding to the target user role identification according to the page component updating information. The display device may be selected according to actual conditions, which is not specifically limited in the embodiment of the present application, and for example, the display device may be a mobile phone, a tablet computer, a desktop computer, and the like. By editing the display page and updating the page component information corresponding to the target user role identification according to the edited page component, the operability of the page is improved and the user experience is improved.
The method for creating a multi-role page provided in the above embodiment obtains a user role identifier sent by a terminal device and a first page identifier of a current page displayed by the terminal device, obtains first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier, then, according to the first page component information and the second page component information, can know target page component information that needs to be reconstructed for a page to be created, and sends the target page component information to the terminal device, so that the terminal device creates and displays a target page corresponding to the user role identifier according to the target page component information, and replaces the page component information that needs to be modified by the target page component information without modifying component information of the whole page, thereby reducing cost for creating a multi-role page and improving efficiency of page creation.
In an embodiment, as shown in fig. 2, step S104 is followed by step S105 to step S106.
Step S105, acquiring a second page identifier of the created page sent by the terminal device, and detecting whether the created page is complete according to the second page identifier.
The method comprises the steps of obtaining a second page identification of a created page sent by a terminal device, detecting whether the created page is complete or not according to the second page identification, if the created page is determined to be complete, determining that a page to be created corresponding to a user role identification is created, and if the created page is determined to be incomplete, determining that the page to be created corresponding to the user role identification is not created. By acquiring the second page identifier of the created page, whether the page to be created is complete can be accurately determined, and the user experience is further improved.
In an embodiment, according to the second page identifier, the manner of detecting whether the created page is complete may be: and detecting whether a missing data area exists in the page where the second page identifier is located, if so, determining that the created page is incomplete, and if not, determining that the created page is complete. By detecting the data in the page where the second page identifier is located, whether the created page is complete or not can be accurately determined, and the accuracy of creating the multi-role page is improved.
And step S106, if the created page is not complete, sending the first page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the first page component information.
And when the created page is determined to be incomplete, sending the first page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the first page component information. When the created page is determined to be incomplete, the target page corresponding to the user role identifier is created and displayed through the first page component information, and the page creation accuracy is improved.
The method for creating a multi-role page provided in the above embodiment obtains a second page identifier of a created page sent by a terminal device, and detects whether the created page is complete according to the second page identifier; and if the created page is not complete, the first page component information is sent to the terminal equipment, so that the terminal equipment can create and display a target page corresponding to the user role identifier according to the first page component information, and the page creation accuracy is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating steps of another multi-role page creation method according to an embodiment of the present application.
As shown in fig. 3, the multi-role page creation method includes steps S201 to S204.
Step S201, obtaining a sending time of the login request, and determining a target time period of the sending time from a plurality of preset time periods.
The preset time periods may be set according to actual conditions, and this is not specifically limited in the embodiment of the present application. Illustratively, the preset time periods include 0 point to 6 points, 6 point to 9 points, 9 point to 12 points, 12 point to 14 points, 14 point to 16 points, 16 point to 18 points, 18 point to 20 points, and 20 point to 24 points, and the sending time of the login request is 9 points and 15 minutes, so that the target time period of the sending time of the login request is 9 points to 12 points.
Step S202, obtaining a plurality of history login requests received in the target time period, where the history login requests are login requests received before the sending time.
Illustratively, the target time period is 9 to 12 points, and the obtained 9 to 12 historical login requests obtain a plurality of historical login requests including login request 1, login request 2, login request 3, login request 4, login request 5, login request 6, login request 7 and login request 8.
Step S203, according to the user role identification in each historical login request, counting the number of different user role identifications, and determining the user role identification with the largest number as the target role identification.
Illustratively, the historical login requests include login request 1, login request 2, login request 3, login request 4, login request 5, login request 6, login request 7, and login request 8, wherein the user role identifier of login request 1 is a first identifier, the user role identifier of login request 2 is a third identifier, the user role identifier of login request 3 is a second identifier, the user role identifier of login request 4 is a first identifier, the user role identifier of login request 5 is a first identifier, the user role identifier of login request 6 is a third identifier, the user role identifier of login request 7 is a first identifier, and the user role identifier of login request 8 is a second identifier, the number of times that the user role identifier is a first identifier is 4, the number of times that the user role identifier is a second identifier is 2, the number of times that the user role identifier is a first identifier is 2, therefore, the number of times that the user role is identified as the first identifier is the largest, and the user role is identified as the first identifier and determined as the target role identifier.
Step S204, sending the page component information corresponding to the target role identification to the terminal equipment, so that the terminal equipment can create and display a corresponding page according to the page component information corresponding to the target role identification.
And after the target role identification is obtained, acquiring page component information corresponding to the target role identification, and sending the page component information corresponding to the target role identification to the terminal equipment so that the terminal equipment can create and display a corresponding page according to the page component information corresponding to the target role identification. The page with the most login requests in each time period is used as the home page, so that the page creation times of the terminal equipment are reduced, and the creation efficiency is improved.
The method for creating a multi-role page provided by the embodiment obtains the sending time of the login request, and determines the target time period of the sending time from a plurality of preset time periods; acquiring a plurality of historical login requests received in a target time period, wherein the historical login requests are login requests received before the sending time; counting the number of different user role identifications according to the user role identification in each historical login request, and determining the user role identification with the largest number as a target role identification; and sending the page component information corresponding to the target role identification to the terminal equipment so that the terminal equipment can create and display a corresponding page according to the page component information corresponding to the target role identification. The page with the most login requests in each time period is used as the home page, so that the page creation times of the terminal equipment are reduced, and the creation efficiency is improved.
Referring to fig. 4, fig. 4 is a schematic block diagram of a multi-role page creation apparatus according to an embodiment of the present application.
As shown in fig. 4, the multi-role page creation apparatus 300 includes: an obtaining module 310, a determining module 320, and a sending module 330, wherein:
the obtaining module 310 is configured to obtain a login request sent by a terminal device, where the login request includes a user role identifier and a first page identifier of a current page displayed by the terminal device;
the obtaining module 310 is further configured to obtain first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier;
the determining module 320 is configured to determine, according to the first page component information and the second page component information, target page component information to be issued to the terminal device;
the sending module 330 is configured to send the target page component information to the terminal device, so that the terminal device creates and displays a target page corresponding to the user role identifier according to the target page component information.
In an embodiment, the determining module 320 is further configured to:
acquiring a mapping relation table between preset user role identification and page component information;
and determining the first page component information according to the mapping relation table and the user role identification.
In an embodiment, the determining module 320 is further configured to:
comparing the first page component information with the second page component information, and screening out page component information of which the first page component information is different from the first page component information;
and taking the different page component information as the target page component information.
In an embodiment, the first page component information includes a presentation time period of at least one page component, and the terminal device is configured to display the at least one page component in the target page based on the presentation time period.
In an embodiment, the multi-role page creation apparatus 300 is further configured to:
acquiring an update instruction of page component information sent by display equipment, wherein the update instruction is determined based on the operation of a user in a page editing page displayed by the display equipment, and the page editing page is used for displaying a page edited by the user;
acquiring a target user role identifier and page component updating information corresponding to the page component information to be updated from the updating instruction;
and updating the page component information corresponding to the target user role identification according to the page component updating information.
Referring to fig. 5, fig. 5 is a schematic block diagram of another multi-role page creation apparatus according to an embodiment of the present application.
As shown in fig. 5, the multi-character page creation apparatus 300 further includes: a detection module 340, wherein:
the obtaining module 310 is further configured to obtain a second page identifier of the created page sent by the terminal device;
the detecting module 340 is configured to detect whether the created page is complete according to the second page identifier;
the sending module 330 is further configured to send the first page component information to the terminal device if the created page is incomplete, so that the terminal device creates and displays a target page corresponding to the user role identifier according to the first page component information.
Referring to fig. 6, fig. 6 is a schematic block diagram of another multi-role page creation apparatus according to an embodiment of the present application.
As shown in fig. 6, the multi-role page creation apparatus 400 includes an acquisition module 410, a determination module 420, a statistics module 430, and a transmission module 440, wherein:
the obtaining module 410 is configured to obtain a sending time of the login request;
the determining module 420 is configured to determine a target time period of the sending time from a plurality of preset time periods;
the obtaining module 410 is further configured to obtain a plurality of historical login requests received in the target time period, where the historical login requests are login requests received before the sending time;
a counting module 430, configured to count the number of different user role identifiers according to the user role identifier in each historical login request, and determine the user role identifier with the largest number as a target role identifier;
the sending module 440 is configured to send the page component information corresponding to the target role identifier to the terminal device, so that the terminal device creates and displays a corresponding page according to the page component information corresponding to the target role identifier.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the multi-role page creation apparatus described above may refer to the corresponding process in the foregoing embodiment of the multi-role page creation apparatus, and will not be described herein again.
Referring to fig. 7, fig. 7 is a schematic block diagram of a server according to an embodiment of the present disclosure.
As shown in fig. 7, the server 500 includes a processor 502 and a memory 503 connected by a system bus 501, wherein the memory 503 may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the multi-persona page creation methods.
The processor 502 is used to provide computing and control capabilities, supporting the operation of the entire server.
The internal memory provides an environment for running a computer program in the non-volatile storage medium, which when executed by the processor causes the processor to perform any one of the multi-role page creation methods.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the bus 501 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 503 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 502 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
the method comprises the steps of obtaining a login request sent by terminal equipment, wherein the login request comprises a user role identifier and a first page identifier of a current page displayed by the terminal equipment;
acquiring first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier;
determining target page component information to be issued to the terminal equipment according to the first page component information and the second page component information;
and sending the target page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the target page component information.
In an embodiment, when implementing the obtaining of the first page component information corresponding to the user role identifier, the processor is configured to implement:
acquiring a mapping relation table between preset user role identification and page component information;
and determining the first page component information according to the mapping relation table and the user role identification.
In one embodiment, when the processor determines the target page component information to be delivered to the terminal device according to the first page component information and the second page component information, the processor is configured to implement:
comparing the first page component information with the second page component information, and screening out page component information of which the first page component information is different from the first page component information;
and taking the different page component information as the target page component information.
In an embodiment, after the processor implements sending the target page component information to the terminal device, so that the terminal device creates and displays a target page corresponding to the user role identifier according to the target page component information, the processor is further configured to implement:
acquiring a second page identifier of the created page sent by the terminal equipment, and detecting whether the created page is complete or not according to the second page identifier;
and if the created page is not complete, sending the first page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the first page component information.
In one embodiment, the processor is further configured to implement:
the first page component information comprises a display time period of at least one page component, and the terminal equipment is used for displaying the at least one page component in the target page based on the display time period.
In one embodiment, the processor is further configured to implement:
acquiring the sending time of the login request, and determining a target time period of the sending time from a plurality of preset time periods;
obtaining a plurality of historical login requests received in the target time period, wherein the historical login requests are login requests received before the sending time;
counting the number of different user role identifications according to the user role identification in each historical login request, and determining the user role identification with the largest number as a target role identification;
and sending the page component information corresponding to the target role identification to the terminal equipment so that the terminal equipment can create and display a corresponding page according to the page component information corresponding to the target role identification.
In one embodiment, the processor is further configured to implement:
acquiring an update instruction of page component information sent by display equipment, wherein the update instruction is determined based on the operation of a user in a page editing page displayed by the display equipment, and the page editing page is used for displaying a page edited by the user;
acquiring a target user role identifier and page component updating information corresponding to the page component information to be updated from the updating instruction;
and updating the page component information corresponding to the target user role identification according to the page component updating information.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the server described above may refer to the corresponding process in the foregoing multi-role page creation method embodiment, and details are not described here again.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to various embodiments of the multi-role page creation method in the present application.
The computer-readable storage medium may be an internal storage unit of the server according to the foregoing embodiment, for example, a hard disk or a memory of the server. The computer readable storage medium may also be an external storage device of the server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the server.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for creating a multi-role page, comprising:
the method comprises the steps of obtaining a login request sent by terminal equipment, wherein the login request comprises a user role identifier and a first page identifier of a current page displayed by the terminal equipment;
acquiring first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier;
determining target page component information to be issued to the terminal equipment according to the first page component information and the second page component information;
and sending the target page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the target page component information.
2. The method for creating a multi-role page as claimed in claim 1, wherein said obtaining the first page component information corresponding to the user role identifier comprises:
acquiring a mapping relation table between preset user role identification and page component information;
and determining the first page component information according to the mapping relation table and the user role identification.
3. The method for creating a multi-role page as claimed in claim 1, wherein the determining the target page component information to be delivered to the terminal device according to the first page component information and the second page component information comprises:
comparing the first page component information with the second page component information, and screening out page component information of which the first page component information is different from the first page component information;
and taking the different page component information as the target page component information.
4. The method for creating a multi-role page according to any one of claims 1-3, wherein after the sending the target page component information to the terminal device for the terminal device to create and display the target page corresponding to the user role identifier according to the target page component information, the method further comprises:
acquiring a second page identifier of the created page sent by the terminal equipment, and detecting whether the created page is complete or not according to the second page identifier;
and if the created page is not complete, sending the first page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identification according to the first page component information.
5. The multi-role page creation method of any one of claims 1-3, wherein the first page component information includes a presentation time period of at least one page component, the terminal device being configured to display the at least one page component in the target page based on the presentation time period.
6. The multi-persona page creation method of any of claims 1-3, wherein the method further comprises:
acquiring the sending time of the login request, and determining a target time period of the sending time from a plurality of preset time periods;
obtaining a plurality of historical login requests received in the target time period, wherein the historical login requests are login requests received before the sending time;
counting the number of different user role identifications according to the user role identification in each historical login request, and determining the user role identification with the largest number as a target role identification;
and sending the page component information corresponding to the target role identification to the terminal equipment so that the terminal equipment can create and display a corresponding page according to the page component information corresponding to the target role identification.
7. The multi-persona page creation method of any of claims 1-3, wherein the method further comprises:
acquiring an update instruction of page component information sent by display equipment, wherein the update instruction is determined based on the operation of a user in a page editing page displayed by the display equipment, and the page editing page is used for displaying a page edited by the user;
acquiring a target user role identifier and page component updating information corresponding to the page component information to be updated from the updating instruction;
and updating the page component information corresponding to the target user role identification according to the page component updating information.
8. A multi-role page creation apparatus, characterized in that the multi-role page creation apparatus comprises: the device comprises an acquisition module, a determination module and a sending module, wherein:
the acquisition module is used for acquiring a login request sent by terminal equipment, wherein the login request comprises a user role identifier and a first page identifier of a current page displayed by the terminal equipment;
the acquiring module is further configured to acquire first page component information corresponding to the user role identifier and second page component information corresponding to the first page identifier;
the determining module is used for determining target page component information to be issued to the terminal equipment according to the first page component information and the second page component information;
and the sending module is used for sending the target page component information to the terminal equipment so that the terminal equipment can create and display a target page corresponding to the user role identifier according to the target page component information.
9. A server, characterized in that the server comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the multi-persona page creation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, performs the steps of the multi-persona page creation method of any of claims 1 to 7.
CN202110732778.1A 2021-06-29 2021-06-29 Multi-role page creation method and device, server and readable storage medium Pending CN113434122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110732778.1A CN113434122A (en) 2021-06-29 2021-06-29 Multi-role page creation method and device, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110732778.1A CN113434122A (en) 2021-06-29 2021-06-29 Multi-role page creation method and device, server and readable storage medium

Publications (1)

Publication Number Publication Date
CN113434122A true CN113434122A (en) 2021-09-24

Family

ID=77757952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110732778.1A Pending CN113434122A (en) 2021-06-29 2021-06-29 Multi-role page creation method and device, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN113434122A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867715A (en) * 2021-09-27 2021-12-31 平安国际智慧城市科技股份有限公司 Page bottom bar configuration method, device, equipment and storage medium
CN116743761A (en) * 2022-10-26 2023-09-12 荣耀终端有限公司 Cooperative working method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682144A (en) * 2016-12-20 2017-05-17 上海亿账通互联网科技有限公司 Page display method and device
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium
CN110673907A (en) * 2019-08-30 2020-01-10 深圳壹账通智能科技有限公司 Multi-role page jumping method and device, computer equipment and readable storage medium
CN110750260A (en) * 2019-09-10 2020-02-04 苏宁云计算有限公司 Page content management method and device
CN113032078A (en) * 2021-03-30 2021-06-25 深圳市中科明望通信软件有限公司 Page display method and device, electronic equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682144A (en) * 2016-12-20 2017-05-17 上海亿账通互联网科技有限公司 Page display method and device
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium
CN110673907A (en) * 2019-08-30 2020-01-10 深圳壹账通智能科技有限公司 Multi-role page jumping method and device, computer equipment and readable storage medium
CN110750260A (en) * 2019-09-10 2020-02-04 苏宁云计算有限公司 Page content management method and device
WO2021047238A1 (en) * 2019-09-10 2021-03-18 苏宁云计算有限公司 Method and device for page content management
CN113032078A (en) * 2021-03-30 2021-06-25 深圳市中科明望通信软件有限公司 Page display method and device, electronic equipment and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867715A (en) * 2021-09-27 2021-12-31 平安国际智慧城市科技股份有限公司 Page bottom bar configuration method, device, equipment and storage medium
CN113867715B (en) * 2021-09-27 2024-07-05 深圳平安智慧医健科技有限公司 Page bottom column configuration method, device, equipment and storage medium
CN116743761A (en) * 2022-10-26 2023-09-12 荣耀终端有限公司 Cooperative working method and electronic equipment
CN116743761B (en) * 2022-10-26 2024-04-16 荣耀终端有限公司 Cooperative working method and electronic equipment

Similar Documents

Publication Publication Date Title
CN110597511A (en) Page automatic generation method, system, terminal equipment and storage medium
CN109597979B (en) List table generation method and device, computer equipment and storage medium
CN113434122A (en) Multi-role page creation method and device, server and readable storage medium
US11210404B2 (en) Blockchain-based state verifications of software component vulnerability database for software products
CN112001376B (en) Fingerprint identification method, device, equipment and storage medium based on open source component
CN110764913B (en) Data calculation method based on rule calling, client and readable storage medium
CN109491962B (en) File directory tree management method and related device
CN102057616B (en) Computer device for the time-based management of digital documents
WO2021174836A1 (en) Differential package generation method and apparatus, computer device, and storage medium
CN107656750A (en) Update of plug-in method and device
CN110543450A (en) Electronic document generation method and device, computer equipment and storage medium
CN111666087A (en) Operation rule updating method and device, computer system and readable storage medium
CN112580079A (en) Authority configuration method and device, electronic equipment and readable storage medium
CN111723077A (en) Data dictionary maintenance method and device and computer equipment
CN113434582B (en) Service data processing method and device, computer equipment and storage medium
CN111783119A (en) Form data security control method and device, electronic equipment and storage medium
JP2019528493A (en) Electronic device, list entry deduplication method, and computer-readable storage medium
JP2014130546A (en) File management program, file management device and file management method
CN114004197A (en) Form processing method and device, electronic equipment and medium
CN112528189B (en) Data-based component packaging method and device, computer equipment and storage medium
CN111857883B (en) Page data checking method and device, electronic equipment and storage medium
CN112307449B (en) Authority hierarchical management method, device, electronic equipment and readable storage medium
CN115004667B (en) Information pushing method, device, electronic equipment and computer readable medium
CN113810198A (en) SSD firmware digital signature method and device, computer equipment and storage medium
CN113364848A (en) File caching method and device, electronic equipment and storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210924