CN113656124A - Login page generation method and device - Google Patents

Login page generation method and device Download PDF

Info

Publication number
CN113656124A
CN113656124A CN202110870402.7A CN202110870402A CN113656124A CN 113656124 A CN113656124 A CN 113656124A CN 202110870402 A CN202110870402 A CN 202110870402A CN 113656124 A CN113656124 A CN 113656124A
Authority
CN
China
Prior art keywords
login
page
file
template
service type
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.)
Granted
Application number
CN202110870402.7A
Other languages
Chinese (zh)
Other versions
CN113656124B (en
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110870402.7A priority Critical patent/CN113656124B/en
Publication of CN113656124A publication Critical patent/CN113656124A/en
Application granted granted Critical
Publication of CN113656124B publication Critical patent/CN113656124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a login page generation method and a login page generation device, relates to the technical field of computers, and particularly relates to the field of cloud platforms. The specific implementation scheme is as follows: acquiring a target service type in a plurality of service types supported by a cloud server, and acquiring a page login logic file corresponding to the target service type; acquiring a universal login template of a login page of a cloud server; and packaging the universal login template and the page login logic file and sending the packaged universal login template and the page login logic file to the client so as to generate a target login page matched with the target service type at the client. The method and the device for logging in the multiple service types generate the login template which is universal for each service type, reduce repeated development work of the login template, improve development efficiency and further reduce development cost.

Description

Login page generation method and device
Technical Field
The disclosure relates to the technical field of computers, in particular to the field of cloud platforms, and specifically relates to a login page generation method and a login page generation device.
Background
More and more businesses and individuals are beginning to use cloud servers for the storage of information and materials. In the related art, the cloud server logs in for different roles, and the cloud server needs to provide respective adaptive login pages, so that a front end needs to develop a plurality of login pages to adapt to back-end services of different roles, development work is repeated, and cost is wasted.
Disclosure of Invention
The disclosure provides a generation method, a generation device, equipment and a storage medium for a login page.
According to one aspect of the disclosure, a method for generating a login page is provided, which includes acquiring a target service type in a plurality of service types supported by a cloud server, and acquiring a page login logic file corresponding to the target service type; acquiring a universal login template of a login page of the cloud server; and packaging the general login template and the page login logic file and sending the packaged general login template and the page login logic file to a client so as to generate a target login page matched with the target service type at the client.
The login page generation method provided by the disclosure generates a login template which is universal for each service type aiming at a plurality of service types, reduces repeated development work of the login template, improves development efficiency, and can reduce development cost.
According to another aspect of the present disclosure, there is provided a login page generation apparatus, including: the system comprises a type acquisition module, a service type acquisition module and a service type acquisition module, wherein the type acquisition module is used for acquiring a target service type in a plurality of service types supported by a cloud server and acquiring a page login logic file corresponding to the target service type; the template acquisition module is used for acquiring a universal login template of a login page of the cloud server; and the page generation module is used for packaging the general login template and the page login logic file and sending the packaged general login template and the page login logic file to a client so as to generate a target login page matched with the target service type at the client.
The login page generation device provided by the disclosure generates a login template which is universal for each service type aiming at a plurality of service types, reduces repeated development work of the login template, improves development efficiency, and can reduce development cost.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of generating a landing page according to the first aspect of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method for generating a landing page of the first aspect of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of generating a landing page of the first aspect of the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic diagram of a generation method of a landing page according to an exemplary embodiment of the present disclosure.
FIG. 2 is a schematic diagram of obtaining a generic login template according to an exemplary embodiment of the present disclosure.
FIG. 3 is a schematic diagram of a generation of a target landing page, according to an example embodiment of the present disclosure.
FIG. 4 is a diagram of configuration information for a generic login template, according to an example embodiment of the present disclosure.
Fig. 5 is a general flowchart of a method of generating a landing page according to an exemplary embodiment of the present disclosure.
Fig. 6 is a schematic diagram of a login page generation apparatus according to an exemplary embodiment of the present disclosure.
Fig. 7 is a schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Computer Technology refers to the Technology of Computer fast and accurate calculation, logic judgment and artificial simulation to make quantitative calculation and analysis for the system, and provides means and tools for solving the problem of complex system.
The cloud computing platform is also called a cloud platform, and is a service based on hardware resources and software resources, and provides computing, network and storage capabilities. Cloud computing platforms can be divided into 3 classes: the cloud computing platform comprises a storage type cloud platform taking data storage as a main part, a computing type cloud platform taking data processing as a main part and a comprehensive cloud computing platform taking computing and data storage processing into consideration.
Fig. 1 is a method for generating a landing page according to an exemplary embodiment of the present application, and as shown in fig. 1, the method for generating a landing page includes the following steps:
s101, acquiring a target service type in a plurality of service types supported by a cloud server, and acquiring a page login logic file corresponding to the target service type.
Optionally, the plurality of service types supported by the cloud server includes: public clouds, industry clouds, private clouds, and the like. The public cloud is formed by the way that a plurality of users work together on the same server to share resources; the industry cloud is a cloud platform which is established and maintained by an organization playing a leading role or mastering key resources in the industry or a certain area, and provides paid or unpaid services for the industry interior or related organizations and the public in a public or semi-public mode; private clouds are extensions and optimizations of enterprise legacy data centers that can provide storage capacity and processing power for a variety of functions.
Determining one service type from a plurality of service types supported by the cloud server as a target service type, and acquiring a page login logic file corresponding to the target service type. The page login logic file has the main functions of: setting initialization data, registering the life cycle of the current page, registering an event processing function, responding to the click of a user, acquiring the position of the user and the like. And the developer writes the page login logic file according to the specific semantics to obtain the page login logic file corresponding to the target service type. For example, an industry cloud can be selected as a target service type, and a page login logic file corresponding to the industry cloud is obtained. The different service types correspond to different login logics, and the page login logic file is a file which is selected by a developer according to the different service types and corresponds to the different login logics.
S102, acquiring a universal login template of a login page of the cloud server.
According to the page function required to be realized by each service type, a universal login template suitable for all service types can be extracted and generated. Optionally, a custom header, a login account box, a password entry box, a verification code entry box, etc. may be included on the universal login template.
As an implementation manner, when obtaining the universal login template of the login page of the cloud server, the functions to be implemented by the universal login template may be preset, and the universal login template is generated.
As another implementation manner, login page requirements of different service types may be obtained, and based on the login page requirements, a general login template is generated.
S103, packaging the general login template and the page login logic file and sending the packaged general login template and the page login logic file to the client so as to generate a target login page matched with the target service type at the client.
And packaging the universal login template and the page login logic file, wherein the packaged content comprises both a basic function module in the configuration information and a specific function module in the configuration information, and sending the packaged configuration information to the client so as to generate a target login page matched with the target service type at the client. The generated target login page renders template contents corresponding to the developed login logic, so that the target login page dynamically generates call and transmits contents, and performs data interaction with a data body requesting to be transmitted, so as to realize a complete login function.
The embodiment of the application provides a method for generating a login page, which comprises the steps of obtaining a target service type in a plurality of service types supported by a cloud server and obtaining a page login logic file corresponding to the target service type; acquiring a universal login template of a login page of a cloud server; and packaging the universal login template and the page login logic file and sending the packaged universal login template and the page login logic file to the client so as to generate a target login page matched with the target service type at the client. The method and the device for logging in the multiple service types generate the login template which is universal for each service type, reduce repeated development work of the login template, improve development efficiency and further reduce development cost.
Fig. 2 is a method for generating a landing page according to an exemplary embodiment of the present application. The Software Development Kit (SDK) has a small data volume, a simple interface, and covers a large number of Development languages. On the basis of the above embodiment, as shown in fig. 2, the method for generating a login page includes the following steps:
s201, acquiring a universal login template of a login page of the cloud server.
And extracting the basic page functions which are common to all the service types from the login page requirements of all the service types, wherein the basic page functions which are common to all the service types can comprise a user login account, a password input box, a title self-defining box and the like.
Optionally, the extraction process mainly includes code analysis, i.e., an integral login logic, and if a mobile phone number needs to be entered to obtain a corresponding short message verification code, or a login template is dynamically called according to randomly generated picture input picture content for verification, so that the login process can be adapted to various service scenes.
The universal login template has universality and is generated based on the basic page function, so that repeated development work in a development process can be reduced, the development efficiency is improved, the code coupling rate is reduced, and the development cost is reduced.
S202, generating a Software Development Kit (SDK) file of the universal login template of the login page of the cloud server.
SDKs are generally a collection of development tools used by some software engineers to build application software for a particular software package, software framework, hardware platform, operating system, etc. In the embodiment of the application, after the general login template is obtained, the SDK file of the corresponding general login template can be generated, so that the personalized login page corresponding to each service type can be developed on the SDK file.
After the SDK file is generated, the SDK file can be stored in a set position, and when the personalized login page needs to be developed based on the SDK file, the SDK file can be called from the set position, a plurality of same SDK files do not need to be stored in a development end, and resources are saved. Alternatively, the SDK file may be called in the following two ways:
as an implementation mode, a pre-written reference script file is operated, and the SDK file is obtained based on the address information of the SDK file in the reference script file. For example, the following steps are carried out: the script is used for reference, the same script does not need to be written repeatedly, only JavaScript is created in a separate file, js is used as a suffix for storage, and then the file is referred by using the src attribute in the < script > tag.
As another implementation manner, a package download instruction is generated according to the storage path of the SDK file, and the SDK file is downloaded according to the package download instruction. For example, the following steps are carried out: and generating npm a download instruction according to the storage path of the SDK file, and downloading the SDK file according to npm the download instruction.
In the embodiment of the disclosure, the SDK file is generated after the general login template is obtained, so that the personalized login page can be developed on the SDK file, the data volume of the developed login page is small, the development of various development languages can be compatible, and the flexibility is higher.
On the basis of the foregoing embodiment, fig. 3 is a method for generating a login page according to an exemplary embodiment of the present application, as shown in fig. 3, a generic login template and a page login logic file are packaged and sent to a client, so as to generate a target login page matching a target service type at the client, including the following steps:
s301, analyzing the dependency relationship between the functional modules in the SDK file and the page login logic file.
And injecting an entry file of the page login logic file into the packaging plug-in, and determining a starting function module for constructing the dependency graph based on the entry file. And analyzing the dependency relationship among the functional modules by the packaging plug-in with the initial functional module as a starting point.
Alternatively, the packaging plug-in can use WebPack, and the core function of WebPack is to package pre-written modular code and generate code that can run in a browser. The WebPack can be regarded as a module packer, can analyze a project structure, finds a JavaScript module and other expanding languages (Scas, TypeScript and the like) which cannot be directly run, and packs the JavaScript module and the expanding languages into a hypertext Markup Language (HTML) format for output. WebPack analyzes the entry file to generate a starting functional module, and the WebPack recursively reads the file content depended by the starting functional module to serve as a dependency graph built in the WebPack, wherein the dependency graph maps the dependency relationship among the functional modules.
As shown in fig. 4, the WebPack is composed of a plug-in (plugins) module and an injection (boot) module, where plugins is a plug-in for customizing the WebPack building process in various ways, and the boot module is a code module for mainly determining the dependency relationship to generate the HTML page script in a package manner. The SDK file in fig. 4 includes general basic functions, such as an interface (API), a title (title), a logo (logo), a slogan (slogan), and the like.
S302, packaging each functional module based on the dependency relationship to generate an HTML page script.
Based on the dependency relationship among the functional modules, the WebPack plug-in packs the functional modules to generate an HTML page script. HTML is one way to implement a front-end page. The HTML page script is composed of a series of tags, mainly static resources such as < div >, < p > tags and a Cascading Style Sheet (CSS) with a set page format, and dynamic resources are composed of native javascript, js for short, so as to reduce the volume of generated packets.
As an implementable mode, a parameter configuration file of a basic page function corresponding to the target service type is obtained and synchronously packaged into an HTML page script together with an SDK file and a page login logic file. The basic functions of the function modules can be customized by the parameter configuration file of the basic page function, for example, the fonts, colors and the like of the login account box can be set by the user, or the verification code box uses a digital verification code or a letter verification code or a page background color or a page background style and the like. By synchronously packaging the parameter configuration files of the basic page functions, the basic function modules on the login page can have certain differences in display forms, and the display effects are richer and more diversified.
S303, sending the HTML page script to the client to generate a target login page.
And sending the generated HTML page script to the client, and generating a target login page by the client based on the HTML page script. The target login page generated by the client is generated through the generated script language content, namely the source code of the HTML page script of the front-end language.
In the embodiment of the disclosure, the individual login page can be developed based on the SDK file of the general login template, and the repeated development work of the login template is reduced. And the dependency relationship between the files is directly analyzed based on the packaging plug-in, and the packaging processing can be carried out based on the dependency relationship, so that the packaging process is more efficient and accurate, and the development efficiency of the login page can be improved.
Fig. 5 is a method for generating a landing page according to an exemplary embodiment of the present application, and as shown in fig. 5, the method for generating a landing page includes the following steps:
s501, a target service type in a plurality of service types supported by the cloud server is obtained, and a page login logic file corresponding to the target service type is obtained.
S502, extracting the general basic page function of each service type from the login page requirement of each service type.
And S503, generating a universal login template according to the basic page function.
Regarding steps S502 to S503, the above embodiments have been specifically described, and are not described again here.
S504, generating an SDK file of a universal login template of a login page of the cloud server.
And S505, analyzing the dependency relationship between the functional modules in the SDK file and the page login logic file.
S506, packaging each functional module based on the dependency relationship to generate the HTML page script.
And S507, sending the HTML page script to the client to generate a target login page.
Regarding steps S504 to S507, the above embodiments have been specifically described, and are not described herein again.
The embodiment of the application provides a method for generating a login page, which comprises the steps of obtaining a target service type in a plurality of service types supported by a cloud server and obtaining a page login logic file corresponding to the target service type; acquiring a universal login template of a login page of a cloud server; and packaging the universal login template and the page login logic file and sending the packaged universal login template and the page login logic file to the client so as to generate a target login page matched with the target service type at the client. The method and the device for logging in the multiple service types generate the login template which is universal for each service type, reduce repeated development work of the login template, improve development efficiency and further reduce development cost.
Fig. 6 is a device for generating a landing page according to an exemplary embodiment of the present application, and as shown in fig. 6, the device 600 for generating a landing page includes: a type obtaining module 61, a template obtaining module 62 and a page generating module 63, wherein:
the type obtaining module 61 is configured to obtain a target service type of multiple service types supported by the cloud server, and obtain a page login logic file corresponding to the target service type;
the template obtaining module 62 is configured to obtain a general login template of a login page of the cloud server;
and the page generation module 63 is configured to package the general login template and the page login logic file and send the package to the client, so as to generate a target login page matched with the target service type at the client.
The embodiment of the application provides a login page generation device, which is used for acquiring a target service type in a plurality of service types supported by a cloud server and acquiring a page login logic file corresponding to the target service type; acquiring a universal login template of a login page of a cloud server; and packaging the universal login template and the page login logic file and sending the packaged universal login template and the page login logic file to the client so as to generate a target login page matched with the target service type at the client. The method and the device for logging in the multiple service types generate the login template which is universal for each service type, reduce repeated development work of the login template, improve development efficiency and further reduce development cost.
Further, the template obtaining module 62 is further configured to: and generating an SDK file of a universal login template of a login page of the cloud server.
Further, the page generating module 63 is further configured to: and packaging the SDK file and the page login logic file to generate an HTML page script of the hypertext markup language, and sending the HTML page script to the client to generate a target login page.
Further, the page generating module 63 is further configured to: analyzing the dependency relationship between each functional module in the SDK file and the page login logic file; and packaging each functional module based on the dependency relationship to generate an HTML page script.
Further, the page generating module 63 is further configured to: injecting an entry file of the page login logic file into a packaging plug-in, and determining an initial function module for constructing a dependency graph based on the entry file; and analyzing the dependency relationship among the functional modules by the packaging plug-in with the initial functional module as a starting point.
Further, the template obtaining module 62 is further configured to: and generating a universal login template of the login page according to the login page requirement of each service type of the cloud server.
Further, the template obtaining module 62 is further configured to: extracting a general basic page function of each service type from the login page requirement of each service type; and generating a universal login template according to the basic page function.
Further, the page generating module 63 is further configured to: and acquiring a parameter configuration file of a basic page function corresponding to the target service type, and synchronously packaging the parameter configuration file, the SDK file and the page login logic file into an HTML page script.
Further, the template obtaining module 62 is further configured to: and running a pre-written reference script file, and acquiring the SDK file based on the address information of the SDK file in the reference script file.
Further, the template obtaining module is further configured to: and generating a package downloading instruction according to the storage path of the SDK file, and downloading the SDK file according to the package downloading instruction.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 701 executes the respective methods and processes described above, such as the generation method of the login page. For example, in some embodiments, the method of generating a landing page may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method for generating a landing page described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured by any other suitable means (e.g., by means of firmware) to perform the generation method of the landing page.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (23)

1. A method for generating a login page comprises the following steps:
acquiring a target service type in a plurality of service types supported by a cloud server, and acquiring a page login logic file corresponding to the target service type;
acquiring a universal login template of a login page of the cloud server;
and packaging the general login template and the page login logic file and sending the packaged general login template and the page login logic file to a client so as to generate a target login page matched with the target service type at the client.
2. The method of claim 1, wherein after obtaining the generic login template for the login page of the cloud server, further comprising:
and generating a Software Development Kit (SDK) file of the universal login template of the login page of the cloud server.
3. The method of claim 2, wherein said packaging said generic login template with said page login logic file comprises:
and packaging the SDK file and the page login logic file to generate an HTML page script, and sending the HTML page script to the client to generate the target login page.
4. The method of claim 3, wherein said packaging said SDK file and said page login logic file comprises:
analyzing the dependency relationship between the functional modules in the SDK file and the page login logic file;
and packaging each functional module based on the dependency relationship to generate the HTML page script.
5. The method of claim 4, wherein analyzing the dependency relationship between the functional modules in the SDK file and the page login logic file comprises:
injecting an entry file of the page login logic file into a packaging plug-in, and determining a starting function module for constructing the dependency graph based on the entry file;
and analyzing the dependency relationship among the functional modules by the packaging plug-in with the starting functional module as a starting point.
6. The method of any of claims 2-5, wherein prior to said obtaining a generic login template for a login page of the cloud server, further comprising:
and generating the universal login template of the login page according to the login page requirement of each service type of the cloud server.
7. The method of claim 6, wherein the generating a generic landing template for the landing page according to the landing page requirements for each of the traffic types of the cloud server comprises:
extracting a basic page function which is general for each service type from the login page requirement of each service type;
and generating the universal login template according to the basic page function.
8. The method of claim 7, wherein the method further comprises:
and acquiring a parameter configuration file of the basic page function corresponding to the target service type, and synchronously packaging the parameter configuration file, the SDK file and the page login logic file into the HTML page script.
9. The method of any of claims 2-5, wherein the obtaining a generic login template for a login page of the cloud server comprises:
and running a pre-written reference script file, and acquiring the SDK file based on the address information of the SDK file in the reference script file.
10. The method of any of claims 2-5, wherein the Software Development Kit (SDK) file referencing a generic login template for the login page of the cloud server comprises:
and generating a package downloading instruction according to the storage path of the SDK file, and downloading the SDK file according to the package downloading instruction.
11. A login page generation apparatus, comprising:
the system comprises a type acquisition module, a service type acquisition module and a service type acquisition module, wherein the type acquisition module is used for acquiring a target service type in a plurality of service types supported by a cloud server and acquiring a page login logic file corresponding to the target service type;
the template acquisition module is used for acquiring a universal login template of a login page of the cloud server;
and the page generation module is used for packaging the general login template and the page login logic file and sending the packaged general login template and the page login logic file to a client so as to generate a target login page matched with the target service type at the client.
12. The apparatus of claim 11, wherein the template acquisition module is further configured to:
and generating an SDK file of a universal login template of the login page of the cloud server.
13. The apparatus of claim 12, wherein the page generation module is further configured to:
and packaging the SDK file and the page login logic file to generate an HTML page script, and sending the HTML page script to the client to generate the target login page.
14. The apparatus of claim 13, wherein the page generation module is further configured to:
analyzing the dependency relationship between the functional modules in the SDK file and the page login logic file;
and packaging each functional module based on the dependency relationship to generate the HTML page script.
15. The apparatus of claim 14, wherein the page generation module is further configured to:
injecting an entry file of the page login logic file into a packaging plug-in, and determining a starting function module for constructing the dependency graph based on the entry file;
and analyzing the dependency relationship among the functional modules by the packaging plug-in with the starting functional module as a starting point.
16. The apparatus of any of claims 12-15, wherein the template acquisition module is further configured to:
and generating the universal login template of the login page according to the login page requirement of each service type of the cloud server.
17. The apparatus of claim 16, wherein the template acquisition module is further configured to:
extracting a basic page function which is general for each service type from the login page requirement of each service type;
and generating the universal login template according to the basic page function.
18. The apparatus of claim 17, wherein the page generation module is further configured to:
and acquiring a parameter configuration file of the basic page function corresponding to the target service type, and synchronously packaging the parameter configuration file, the SDK file and the page login logic file into the HTML page script.
19. The apparatus of any of claims 12-15, wherein the template acquisition module is further configured to:
and running a pre-written reference script file, and acquiring the SDK file based on the address information of the SDK file in the reference script file.
20. The apparatus of any of claims 12-15, the template acquisition module further to:
and generating a package downloading instruction according to the storage path of the SDK file, and downloading the SDK file according to the package downloading instruction.
21. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-10.
22. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-10.
23. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-10.
CN202110870402.7A 2021-07-30 2021-07-30 Login page generation method and device Active CN113656124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110870402.7A CN113656124B (en) 2021-07-30 2021-07-30 Login page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110870402.7A CN113656124B (en) 2021-07-30 2021-07-30 Login page generation method and device

Publications (2)

Publication Number Publication Date
CN113656124A true CN113656124A (en) 2021-11-16
CN113656124B CN113656124B (en) 2024-06-28

Family

ID=78490132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110870402.7A Active CN113656124B (en) 2021-07-30 2021-07-30 Login page generation method and device

Country Status (1)

Country Link
CN (1) CN113656124B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138331A (en) * 2021-12-03 2022-03-04 携程旅游网络技术(上海)有限公司 Method, system, device and medium for selecting commodities based on embedded platform
CN114237572A (en) * 2021-12-17 2022-03-25 北京金堤科技有限公司 Method, device, equipment and storage medium for native engineering integrated development framework
CN114546389A (en) * 2022-04-25 2022-05-27 浙江大华技术股份有限公司 Front-end page generation method, audio and video analysis method, device and medium
CN114625458A (en) * 2022-02-16 2022-06-14 中国建设银行股份有限公司 Page data processing method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6871221B1 (en) * 2000-01-21 2005-03-22 Scriptlogic Corporation Method and apparatus to manage network client logon scripts using a graphical management and administration tool
CN103155479A (en) * 2010-10-29 2013-06-12 株式会社日立制作所 Information authentication method and information authentication system
CN103200156A (en) * 2012-01-05 2013-07-10 腾讯科技(深圳)有限公司 Template application method, application system, terminal and server
CN105701183A (en) * 2016-01-07 2016-06-22 无锡天脉聚源传媒科技有限公司 User personalized template implementation method and apparatus
CN106156131A (en) * 2015-04-08 2016-11-23 苏宁云商集团股份有限公司 Templating online page editing method and system
CN111338631A (en) * 2018-12-18 2020-06-26 北京奇虎科技有限公司 Generation method and device of universal interface framework and computing equipment
CN112052013A (en) * 2020-08-03 2020-12-08 完美世界(北京)软件科技发展有限公司 Software package generation method and device, storage medium and electronic device
CN112394931A (en) * 2020-11-18 2021-02-23 浩云科技股份有限公司 Static page configuration optimization control method and device for front-end page
CN114594934A (en) * 2022-03-09 2022-06-07 众安信息技术服务有限公司 Visual page generation method, device, equipment and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6871221B1 (en) * 2000-01-21 2005-03-22 Scriptlogic Corporation Method and apparatus to manage network client logon scripts using a graphical management and administration tool
CN103155479A (en) * 2010-10-29 2013-06-12 株式会社日立制作所 Information authentication method and information authentication system
CN103200156A (en) * 2012-01-05 2013-07-10 腾讯科技(深圳)有限公司 Template application method, application system, terminal and server
CN106156131A (en) * 2015-04-08 2016-11-23 苏宁云商集团股份有限公司 Templating online page editing method and system
CN105701183A (en) * 2016-01-07 2016-06-22 无锡天脉聚源传媒科技有限公司 User personalized template implementation method and apparatus
CN111338631A (en) * 2018-12-18 2020-06-26 北京奇虎科技有限公司 Generation method and device of universal interface framework and computing equipment
CN112052013A (en) * 2020-08-03 2020-12-08 完美世界(北京)软件科技发展有限公司 Software package generation method and device, storage medium and electronic device
CN112394931A (en) * 2020-11-18 2021-02-23 浩云科技股份有限公司 Static page configuration optimization control method and device for front-end page
CN114594934A (en) * 2022-03-09 2022-06-07 众安信息技术服务有限公司 Visual page generation method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗佳伟;孙雪峰;李琳;: "基于百度AI平台的Web人脸注册和登录系统的设计", 中国新通信, no. 11, 5 June 2018 (2018-06-05) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138331A (en) * 2021-12-03 2022-03-04 携程旅游网络技术(上海)有限公司 Method, system, device and medium for selecting commodities based on embedded platform
CN114237572A (en) * 2021-12-17 2022-03-25 北京金堤科技有限公司 Method, device, equipment and storage medium for native engineering integrated development framework
CN114237572B (en) * 2021-12-17 2023-04-14 北京金堤科技有限公司 Method, device, equipment and storage medium for native engineering integrated development framework
CN114625458A (en) * 2022-02-16 2022-06-14 中国建设银行股份有限公司 Page data processing method and device, electronic equipment and storage medium
CN114546389A (en) * 2022-04-25 2022-05-27 浙江大华技术股份有限公司 Front-end page generation method, audio and video analysis method, device and medium

Also Published As

Publication number Publication date
CN113656124B (en) 2024-06-28

Similar Documents

Publication Publication Date Title
CN113656124B (en) Login page generation method and device
US10277702B2 (en) Method and apparatus for accessing an enterprise resource planning system via a mobile device
CN109101294B (en) Data acquisition method, plug-in, electronic equipment and storage medium
CN113568626B (en) Dynamic packaging and application package opening method and device and electronic equipment
CN113031946A (en) Method and device for rendering page component
CN113536185B (en) Application page loading method, storage medium and related equipment
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN113220367A (en) Applet running method and device, electronic equipment and storage medium
CN112130830A (en) Interface generation method and device and electronic equipment
CN113836462A (en) Page description file generation method, device, equipment and storage medium
CN113407745A (en) Data annotation method and device, electronic equipment and computer readable storage medium
CN110765610A (en) PDM (product data management) integration method and device, computer equipment and storage medium
CN116302218A (en) Function information adding method, device, equipment and storage medium
CN108984221B (en) Method and device for acquiring multi-platform user behavior logs
CN114995800A (en) Project development method and device, electronic equipment and storage medium
CN114661402A (en) Interface rendering method and device, electronic equipment and computer readable medium
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN113642295A (en) Page layout method, page layout device and computer program product
CN108984318B (en) Message delivery method and device based on driving model and readable storage medium
CN113870394A (en) Animation generation method, device, equipment and storage medium
CN113362111A (en) Content sending method and device and electronic equipment
CN112882711A (en) Rendering method, device, equipment and storage medium
CN112632293A (en) Industry map construction method and device, electronic equipment and storage medium
CN111552898A (en) Flowchart drawing method and device based on Html5, computer equipment and storage medium
CN111680032B (en) Method and device for processing information sending task and electronic equipment

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
GR01 Patent grant
GR01 Patent grant