CN117131302A - Service page generation method and device - Google Patents

Service page generation method and device Download PDF

Info

Publication number
CN117131302A
CN117131302A CN202210544905.XA CN202210544905A CN117131302A CN 117131302 A CN117131302 A CN 117131302A CN 202210544905 A CN202210544905 A CN 202210544905A CN 117131302 A CN117131302 A CN 117131302A
Authority
CN
China
Prior art keywords
page
service
target
template
data
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
CN202210544905.XA
Other languages
Chinese (zh)
Inventor
王会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202210544905.XA priority Critical patent/CN117131302A/en
Publication of CN117131302A publication Critical patent/CN117131302A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • 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
    • 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)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a business page generation method and device, and relates to the technical field of computers. One embodiment of the method comprises the following steps: receiving a user access request, wherein the user access request comprises a service page type to be accessed; determining a target page template and target page data corresponding to the target page template according to the service page type; and sending the target page template and the target page data to the client to render and generate the service page at the client. The embodiment improves the service page generation efficiency, reduces the development cost and improves the user experience.

Description

Service page generation method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a service page generating method and apparatus.
Background
With the development of internet services, in order to meet the customization requirements of different services, developers need to generate and display corresponding service pages according to different service requirements.
The existing method mainly develops a set of existing components for access by a business party so as to integrate the components in code engineering of the business party to improve the generation efficiency of business pages.
The prior art has at least the following problems:
in the existing page generation method, because the existing components are directly integrated in the code engineering to generate the page, when a service party (user) needs to modify configuration information, more development cost is consumed, so that service page generation efficiency is lower and user experience is poorer.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a service page generation method and device, which can determine a created page template according to the type of a service page to be accessed by a user, and further render and generate the service page, thereby improving the service page generation efficiency, reducing the development cost and improving the user experience.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a service page generating method, including:
receiving a user access request, wherein the user access request comprises a service page type to be accessed;
determining a target page template and target page data corresponding to the target page template according to the service page type;
and sending the target page template and the target page data to the client to render and generate the service page at the client.
Further, before the step of receiving the user access request, the method further comprises:
receiving user configuration information, wherein the user configuration information comprises a plurality of service page types and page data corresponding to the service page types;
and respectively creating page templates according to the multiple service page types, and determining page data corresponding to each page template.
Further, the step of creating a page template according to the plurality of service page types respectively further includes:
determining a page component corresponding to the page type according to each service page type, and determining the page component corresponding to the page data according to the data attribute of the page data;
and constructing a page module according to the page component.
Further, the user access request also comprises service data; after the step of determining the target page template and the target page data corresponding to the target page template according to the service page type, the method further comprises the following steps:
and updating the page data according to the service data.
Further, the user access request further includes page configuration update information, and after the step of determining the target page template and the target page data corresponding to the target page template according to the service page type, the method further includes:
updating the target page template according to the page configuration updating information, and determining target page data corresponding to the updated target page template.
Further, before the step of sending the target page template and the target page data to the client to render and generate the service page at the client, the method further comprises:
and checking a target field in the target page data, and determining that the check passes.
According to still another aspect of the embodiment of the present invention, there is provided a service page generating apparatus, including:
the receiving module is used for receiving a user access request, wherein the user access request comprises a service page type to be accessed;
the page template determining module is used for determining a target page template and target page data corresponding to the target page template according to the service page type;
and the business page generation module is used for sending the target page template and the target page data to the client so as to render and generate the business page at the client.
Further, the method also comprises a page template creation module, which is used for, before the step of receiving the user access request,:
receiving user configuration information, wherein the user configuration information comprises a plurality of user page types and page data corresponding to the plurality of page types;
and respectively creating a plurality of page templates according to the plurality of page types, and determining page data corresponding to each page template.
According to another aspect of an embodiment of the present invention, there is provided an electronic device for generating a service page, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the business page generation methods described above.
According to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements a business page generation method as any one of the above.
One embodiment of the above invention has the following advantages or benefits: because the user access request is received, wherein the user access request comprises the type of the business page to be accessed; determining a target page template and target page data corresponding to the target page template according to the service page type; the technical means of rendering and generating the service page at the client side is realized by sending the target page template and the target page data to the client side, so that the technical problems of more development cost, lower service page generation efficiency and poorer user experience in the existing page generation method are overcome, and the technical effects of determining the created page template according to the type of the service page to be accessed by the user, rendering and generating the service page are achieved, the service page generation efficiency is improved, the development cost is reduced, and the user experience is improved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a business page generating method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a main flow of a business page generating method according to still another embodiment of the present invention;
fig. 3 is a schematic diagram of main modules of a service page generating apparatus according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 5 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered 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 invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The business pages such as an order settlement page, an order detail page, a form page and the like of the e-commerce platform are basically consistent, when the business page is generated, a developer performs page development according to different business requirements, after the development is completed, the online needs to be deployed, the modification effect can be effectively seen after the online, and then regression test is required to be performed for existing problems, so that more human resources are wasted, and the page generation efficiency is lower.
On the other hand, under the condition that the existing components are integrated in the code engineering of the business side, when the product or the business side needs to modify part of business data, research and development personnel are required to conduct targeted research and development processing, business pages cannot be generated aiming at the existing components, and the technical problems of more resource consumption and lower page generation efficiency exist.
Fig. 1 is a schematic diagram of a main flow of a business page generating method according to an embodiment of the present invention; as shown in fig. 1, the service page generating method provided by the embodiment of the present invention mainly includes:
step S101, receiving a user access request, wherein the user access request comprises a service page type to be accessed.
Specifically, based on the type of the service page to be accessed by the user, a corresponding target page template and target page data corresponding to the target page template are determined subsequently, and then the corresponding service page is rendered and displayed at the client.
According to a specific implementation manner of the embodiment of the invention, the client can provide link access addresses for different page types, and the type of the business page to be accessed by the user can be determined according to the clicking operation of the user.
Step S102, determining a target page template and target page data corresponding to the target page template according to the service page type.
Through the arrangement, the pre-established target page template and the pre-input target page data are directly determined based on the service page type, so that the service page generation efficiency is remarkably improved, and the development cost and the maintenance cost are reduced.
Further, according to an embodiment of the present invention, before the step of receiving the user access request, the method further includes:
receiving user configuration information, wherein the user configuration information comprises a plurality of service page types and page data corresponding to the service page types;
and respectively creating page templates according to the multiple service page types, and determining page data corresponding to each page template.
Through the arrangement, the user configuration information comprises the service page types commonly used by the user and the corresponding page data, and further, the service templates of the corresponding types are respectively created based on the commonly used service page types, so that the corresponding service pages can be generated quickly and efficiently when the user accesses the service templates later.
Preferably, according to an embodiment of the present invention, the step of creating the page template according to the plurality of service page types, respectively, further includes:
determining a page component corresponding to the page type according to each service page type, and determining the page component corresponding to the page data according to the data attribute of the page data;
and constructing a page module according to the page component.
According to the service scene of the service system, the components are divided into a basic component (the basic component comprises a display style of the area and a display field of the corresponding area, and the acquired data is directly rendered) and an extension component (according to the information to be displayed, the corresponding interface is required to be requested to obtain configuration information, then the components are rendered and data are assembled, wherein the information to be displayed corresponds to the service data provided in the user access request), the basic component corresponds to the general data in the service scene, and a page template which can meet the types of a plurality of service pages of the service system is created based on the basic component and the general data, so that the applicable scene of the page generation method is expanded, the diversified requirements of users are met, and the user experience is improved.
Further, the user access request also comprises service data; after the step of determining the target page template and the target page data corresponding to the target page template according to the service page type, the method further comprises the following steps:
and updating the page data according to the service data.
According to the embodiment of the invention, a user can add service data in a user access request aiming at the information to be displayed, and if the service data corresponds to the basic component, the page data in the original component can be directly updated. Further, if the component corresponding to the service data is an extension component, the target service template can be updated, and the service data is further rendered into the updated target service template, so that the personalized requirements of the user are further met through the setting.
Illustratively, according to an embodiment of the present invention, the user access request further includes page configuration update information, and after the step of determining the target page template and the target page data corresponding to the target page template according to the service page type, the method further includes:
updating the target page template according to the page configuration updating information, and determining target page data corresponding to the updated target page template.
In the actual processing process, the page templates created before may not be suitable for new requirements due to updating iteration of the product or user requirements, at this time, page configuration updating information may be added in the user access request to update the target page templates, and meanwhile, the updated target page templates are locally stored to expand the number and types of local page templates.
Step S103, the target page template and the target page data are sent to the client side so as to render and generate the service page at the client side.
Through the setting, the page template is created at the server, the target page template is determined and updated, the page is rendered and generated at the client, and the corresponding service page is directly displayed to the user.
Further, before the step of sending the target page template and the target page data to the client to render and generate the service page at the client, the method further includes:
and checking a target field in the target page data, and determining that the check passes.
Specifically, a specific field or a contracted field in the target page data can be selected to construct a check rule, and by adding a check step, the generation of a service page meeting the requirements of users is ensured, and the user experience is further improved.
According to the technical scheme of the embodiment of the invention, the user access request is received, wherein the user access request comprises the type of the business page to be accessed; determining a target page template and target page data corresponding to the target page template according to the service page type; the technical means of rendering and generating the service page at the client side is realized by sending the target page template and the target page data to the client side, so that the technical problems of more development cost, lower service page generation efficiency and poorer user experience in the existing page generation method are overcome, and the technical effects of determining the created page template according to the type of the service page to be accessed by the user, rendering and generating the service page are achieved, the service page generation efficiency is improved, the development cost is reduced, and the user experience is improved.
Fig. 2 is a schematic diagram of a main flow of a business page generating method according to still another embodiment of the present invention; as shown in fig. 2, the service page generating method provided by the embodiment of the present invention mainly includes:
step S201, receiving user configuration information, wherein the user configuration information comprises a plurality of service page types and page data corresponding to the service page types.
Through the arrangement, the user configuration information comprises the service page types commonly used by the user and the corresponding page data, and further, the service templates of the corresponding types are respectively created based on the commonly used service page types, so that the corresponding service pages can be generated quickly and efficiently when the user accesses the service templates later.
Specifically, according to a specific implementation manner of the embodiment of the present invention, two SPAs (SinglePage Web Application, single page application) are respectively packaged at a server and a client, and a set of components is shared, wherein a drag configuration page template (including deletion and correction of the page template, and saving of user configuration information into a template system) is supported at the server, and the client renders and displays a final page according to the page template and page data configured at the server.
Step S202, determining a page component corresponding to the page type according to each service page type, and determining the page component corresponding to the page data according to the data attribute of the page data; and constructing a page module according to the page component.
According to the service scene of the service system, the components are divided into a basic component (the basic component comprises a display style of the area and a display field of the corresponding area, and the acquired data is directly rendered) and an extension component (according to the information to be displayed, the corresponding interface is required to be requested to obtain configuration information, then the components are rendered and data are assembled, wherein the information to be displayed corresponds to the service data provided in the user access request), the basic component corresponds to the general data in the service scene, and a page template which can meet the types of a plurality of service pages of the service system is created based on the basic component and the general data, so that the applicable scene of the page generation method is expanded, the diversified requirements of users are met, and the user experience is improved.
According to a specific implementation manner of the embodiment of the invention, a plurality of groups of page data can be used for maintaining user configuration information in a rendering view, in the process of creating a page template, a component is firstly dragged to an intermediate canvas area, page data corresponding to the component is copied, a new uuid (Universally Unique Identifier, universal unique identification code) is set, and the corresponding relation between the copied data and the component is added into the page data. In the rendering process, the subsequent client uses a cyclic v-for instruction to traverse the configuration data of the pagedata, each component is rendered to the middle area one by one, and which component is actually rendered is identified mainly by the is attribute. When a certain component (or floor) is selected, the current data is stored as active data (common data, namely current page data), and the active data can be modified and updated according to service data in a user access request later.
Step S203, a user access request is received, where the user access request includes a service page type to be accessed.
Specifically, based on the type of the service page to be accessed by the user, a corresponding target page template and target page data corresponding to the target page template are determined subsequently, and then the corresponding service page is rendered and displayed at the client.
According to a specific implementation manner of the embodiment of the invention, the client can provide link access addresses for different page types, and the type of the business page to be accessed by the user can be determined according to the clicking operation of the user.
Step S204, determining a target page template and target page data corresponding to the target page template according to the service page type.
Through the arrangement, the pre-established target page template and the pre-input target page data are directly determined based on the service page type, so that the service page generation efficiency is remarkably improved, and the development cost and the maintenance cost are reduced.
Further, the user access request also comprises service data; after the step of determining the target page template and the target page data corresponding to the target page template according to the service page type, the method further comprises the following steps:
and updating the page data according to the service data.
According to the embodiment of the invention, a user can add service data in a user access request aiming at the information to be displayed, and if the service data corresponds to the basic component, the page data in the original component can be directly updated. Further, if the component corresponding to the service data is an extension component, the target service template can be updated, and the service data is further rendered into the updated target service template, so that the personalized requirements of the user are further met through the setting.
According to a specific implementation manner of the embodiment of the present invention, if the user accesses an order settlement page, the service data may be an order number (skuid), and in the target page template, the page data corresponding to the original order number is updated and then used as new target page data, so that the order settlement information corresponding to the order number is displayed in the service page rendered and generated by the client.
Preferably, according to an embodiment of the present invention, the user access request further includes page configuration update information, and after the step of determining the target page template and the target page data corresponding to the target page template according to the service page type, the method further includes:
updating the target page template according to the page configuration updating information, and determining target page data corresponding to the updated target page template.
In the actual processing process, the page templates created before may not be suitable for new requirements due to updating iteration of the product or user requirements, at this time, page configuration updating information may be added in the user access request to update the target page templates, and meanwhile, the updated target page templates are locally stored to expand the number and types of local page templates.
Step S205, checking the target field in the target page data, and determining that the check passes.
Specifically, a specific field or a contracted field in the target page data can be selected to construct a check rule, and by adding a check step, the generation of a service page meeting the requirements of users is ensured, and the user experience is further improved.
Step S206, the target page template and the target page data are sent to the client side so as to render and generate the service page at the client side.
Through the setting, the page template is created at the server, the target page template is determined and updated, the page is rendered and generated at the client, and the corresponding service page is directly displayed to the user.
According to the technical scheme of the embodiment of the invention, the user access request is received, wherein the user access request comprises the type of the business page to be accessed; determining a target page template and target page data corresponding to the target page template according to the service page type; the technical means of rendering and generating the service page at the client side is realized by sending the target page template and the target page data to the client side, so that the technical problems of more development cost, lower service page generation efficiency and poorer user experience in the existing page generation method are overcome, and the technical effects of determining the created page template according to the type of the service page to be accessed by the user, rendering and generating the service page are achieved, the service page generation efficiency is improved, the development cost is reduced, and the user experience is improved.
Fig. 3 is a schematic diagram of main modules of a service page generating apparatus according to an embodiment of the present invention; as shown in fig. 3, the service page generating apparatus 300 provided in the embodiment of the present invention mainly includes:
the receiving module 301 is configured to receive a user access request, where the user access request includes a service page type to be accessed.
Specifically, based on the type of the service page to be accessed by the user, a corresponding target page template and target page data corresponding to the target page template are determined subsequently, and then the corresponding service page is rendered and displayed at the client.
According to a specific implementation manner of the embodiment of the invention, the client can provide link access addresses for different page types, and the type of the business page to be accessed by the user can be determined according to the clicking operation of the user.
The page template determining module 302 is configured to determine a target page template and target page data corresponding to the target page template according to the service page type.
Through the arrangement, the pre-established target page template and the pre-input target page data are directly determined based on the service page type, so that the service page generation efficiency is remarkably improved, and the development cost and the maintenance cost are reduced.
Further, according to an embodiment of the present invention, the service page generating device 300 further includes a page template creating module, where before the step of receiving the user access request, the page template creating module is configured to:
receiving user configuration information, wherein the user configuration information comprises a plurality of service page types and page data corresponding to the service page types;
and respectively creating page templates according to the multiple service page types, and determining page data corresponding to each page template.
Through the arrangement, the user configuration information comprises the service page types commonly used by the user and the corresponding page data, and further, the service templates of the corresponding types are respectively created based on the commonly used service page types, so that the corresponding service pages can be generated quickly and efficiently when the user accesses the service templates later.
Preferably, according to an embodiment of the present invention, the above page template creation module is further configured to:
determining a page component corresponding to the page type according to each service page type, and determining the page component corresponding to the page data according to the data attribute of the page data;
and constructing a page module according to the page component.
According to the service scene of the service system, the components are divided into a basic component (the basic component comprises a display style of the area and a display field of the corresponding area, and the acquired data is directly rendered) and an extension component (according to the information to be displayed, the corresponding interface is required to be requested to obtain configuration information, then the components are rendered and data are assembled, wherein the information to be displayed corresponds to the service data provided in the user access request), the basic component corresponds to the general data in the service scene, and a page template which can meet the types of a plurality of service pages of the service system is created based on the basic component and the general data, so that the applicable scene of the page generation method is expanded, the diversified requirements of users are met, and the user experience is improved.
Further, the user access request also comprises service data; the service page generating device 300 further includes an updating module, after determining the target page template and the target page data corresponding to the target page template according to the service page type, the updating module is configured to:
and updating the page data according to the service data.
According to the embodiment of the invention, a user can add service data in a user access request aiming at the information to be displayed, and if the service data corresponds to the basic component, the page data in the original component can be directly updated. Further, if the component corresponding to the service data is an extension component, the target service template can be updated, and the service data is further rendered into the updated target service template, so that the personalized requirements of the user are further met through the setting.
Illustratively, according to an embodiment of the present invention, the user access request further includes page configuration update information, and after the step of determining the target page template and the target page data corresponding to the target page template according to the service page type, the update module is further configured to:
updating the target page template according to the page configuration updating information, and determining target page data corresponding to the updated target page template.
In the actual processing process, the page templates created before may not be suitable for new requirements due to updating iteration of the product or user requirements, at this time, page configuration updating information may be added in the user access request to update the target page templates, and meanwhile, the updated target page templates are locally stored to expand the number and types of local page templates.
The service page generating module 303 is configured to send the target page template and the target page data to the client, so as to render and generate the service page at the client.
Through the setting, the page template is created at the server, the target page template is determined and updated, the page is rendered and generated at the client, and the corresponding service page is directly displayed to the user.
Further, the business page generating apparatus 300 further includes a checking module, before sending the target page template and the target page data to the client, for rendering and generating the business page by the client:
and checking a target field in the target page data, and determining that the check passes.
Specifically, a specific field or a contracted field in the target page data can be selected to construct a check rule, and by adding a check step, the generation of a service page meeting the requirements of users is ensured, and the user experience is further improved.
According to the technical scheme of the embodiment of the invention, the user access request is received, wherein the user access request comprises the type of the business page to be accessed; determining a target page template and target page data corresponding to the target page template according to the service page type; the technical means of rendering and generating the service page at the client side is realized by sending the target page template and the target page data to the client side, so that the technical problems of more development cost, lower service page generation efficiency and poorer user experience in the existing page generation method are overcome, and the technical effects of determining the created page template according to the type of the service page to be accessed by the user, rendering and generating the service page are achieved, the service page generation efficiency is improved, the development cost is reduced, and the user experience is improved.
Fig. 4 shows an exemplary system architecture 400 to which the business page generation method or business page generation apparatus of embodiments of the present invention may be applied.
As shown in fig. 4, a system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components contained in a particular architecture may be tailored to the application specific case). The network 404 is used as a medium to provide communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 405 via the network 404 using the terminal devices 401, 402, 403 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a server (by way of example only) that utilizes terminal devices 401, 402, 403 (performs business page generation/data processing) for a user. The server may analyze and process the received data such as the user access request, and feed back the processing result (e.g., the target page template, the target page data—only an example) to the terminal device.
It should be noted that, the service page generating method provided in the embodiment of the present invention is generally executed by the server 405, and accordingly, the service page generating device is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present invention. The terminal device or server shown in fig. 5 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a receiving module, a page template determining module, and a business page generating module. The names of these modules do not in any way constitute a limitation of the module itself, for example, the receiving module may also be described as "a module for receiving a user access request, wherein the user access request includes a service page type to be accessed".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: receiving a user access request, wherein the user access request comprises a service page type to be accessed; determining a target page template and target page data corresponding to the target page template according to the service page type; and sending the target page template and the target page data to the client to render and generate the service page at the client.
According to the technical scheme of the embodiment of the invention, the user access request is received, wherein the user access request comprises the type of the business page to be accessed; determining a target page template and target page data corresponding to the target page template according to the service page type; the technical means of rendering and generating the service page at the client side is realized by sending the target page template and the target page data to the client side, so that the technical problems of more development cost, lower service page generation efficiency and poorer user experience in the existing page generation method are overcome, and the technical effects of determining the created page template according to the type of the service page to be accessed by the user, rendering and generating the service page are achieved, the service page generation efficiency is improved, the development cost is reduced, and the user experience is improved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A business page generation method, comprising:
receiving a user access request, wherein the user access request comprises a service page type to be accessed;
determining a target page template and target page data corresponding to the target page template according to the service page type;
and sending the target page template and the target page data to a client to render and generate a service page at the client.
2. The service page generation method according to claim 1, wherein before the step of receiving a user access request, the method further comprises:
receiving user configuration information, wherein the user configuration information comprises a plurality of service page types and page data corresponding to the service page types;
and respectively creating page templates according to the multiple service page types, and determining page data corresponding to each page template.
3. The service page generation method according to claim 1, wherein the step of creating page templates from the plurality of service page types, respectively, further comprises:
determining a page component corresponding to each service page type, and determining the page component corresponding to the page data according to the data attribute of the page data;
and constructing the page module according to the page component.
4. The service page generation method according to claim 1, wherein the user access request further includes service data; after the step of determining a target page template and target page data corresponding to the target page template according to the service page type, the method further comprises the following steps:
and updating the page data according to the service data.
5. The service page generation method according to claim 4, wherein the user access request further includes page configuration update information, and after the step of determining a target page template and target page data corresponding to the target page template according to the service page type, the method further includes:
updating the target page template according to the page configuration updating information, and determining target page data corresponding to the updated target page template.
6. The service page generation method according to claim 1, wherein before the step of transmitting the target page template and the target page data to a client to render and generate a service page at the client, the method further comprises:
and checking the target field in the target page data, and determining that the check passes.
7. A service page generation apparatus, comprising:
the receiving module is used for receiving a user access request, wherein the user access request comprises a service page type to be accessed;
the page template determining module is used for determining a target page template and target page data corresponding to the target page template according to the service page type;
and the business page generation module is used for sending the target page template and the target page data to a client so as to render and generate a business page at the client.
8. The business page generating apparatus of claim 7, further comprising a page template creation module, prior to the step of receiving a user access request, for:
receiving user configuration information, wherein the user configuration information comprises a plurality of user page types and page data corresponding to the plurality of page types;
and respectively creating a plurality of page templates according to the plurality of page types, and determining page data corresponding to each page template.
9. An electronic device for generating a service page, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN202210544905.XA 2022-05-19 2022-05-19 Service page generation method and device Pending CN117131302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210544905.XA CN117131302A (en) 2022-05-19 2022-05-19 Service page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210544905.XA CN117131302A (en) 2022-05-19 2022-05-19 Service page generation method and device

Publications (1)

Publication Number Publication Date
CN117131302A true CN117131302A (en) 2023-11-28

Family

ID=88853189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210544905.XA Pending CN117131302A (en) 2022-05-19 2022-05-19 Service page generation method and device

Country Status (1)

Country Link
CN (1) CN117131302A (en)

Similar Documents

Publication Publication Date Title
CN110019350B (en) Data query method and device based on configuration information
US11132114B2 (en) Method and apparatus for generating customized visualization component
CN110473036B (en) Method and device for generating order number
CN111580820A (en) Applet generation method and device
CN109245908B (en) Method and device for switching master cluster and slave cluster
WO2021023149A1 (en) Method and apparatus for dynamically returning message
CN111177613A (en) Page processing method, device, equipment and storage medium
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN110807535A (en) Construction method and construction device of unified reservation platform and unified reservation platform system
CN110928594A (en) Service development method and platform
CN110647327B (en) Method and device for dynamic control of user interface based on card
CN113378346A (en) Method and device for model simulation
CN111382953A (en) Dynamic process generation method and device
CN112486482A (en) Page display method and device
CN109254778B (en) Method and apparatus for deploying an information flow system
CN112905225A (en) Method and device for creating continuous integration tool construction task
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN108804442B (en) Serial number generation method and device
CN113760487B (en) Service processing method and device
CN117131302A (en) Service page generation method and device
CN114255084A (en) Advertisement page display method, device and system
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113342450A (en) Page processing method and device, electronic equipment and computer readable medium
CN113448960A (en) Method and device for importing form file
CN113760886B (en) Method, apparatus, device and computer readable medium for providing data service

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