CN112631565A - Service fusion method and device, computer equipment and storage medium - Google Patents

Service fusion method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112631565A
CN112631565A CN202011563517.3A CN202011563517A CN112631565A CN 112631565 A CN112631565 A CN 112631565A CN 202011563517 A CN202011563517 A CN 202011563517A CN 112631565 A CN112631565 A CN 112631565A
Authority
CN
China
Prior art keywords
code
service
card
target
script
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
CN202011563517.3A
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.)
Shenzhen Yunzhijia Network Co ltd
Original Assignee
Shenzhen Yunzhijia Network 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 Shenzhen Yunzhijia Network Co ltd filed Critical Shenzhen Yunzhijia Network Co ltd
Priority to CN202011563517.3A priority Critical patent/CN112631565A/en
Publication of CN112631565A publication Critical patent/CN112631565A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Abstract

The application relates to a service convergence method, a service convergence device, computer equipment and a storage medium. The method comprises the following steps: acquiring a bottom layer card code; acquiring a service code of a target service according to a target coding mode specified by a bottom card code; fusing the bottom layer card code and the service code to obtain a service card code; and rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode. By adopting the method, the service fusion efficiency can be improved.

Description

Service fusion method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service fusion method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, a cross-service convergence technology appears, which means that other services are merged into one service platform, wherein the other services may include a plurality of services, so as to implement collaborative work. In the conventional technology, a corresponding container is usually created for a service to be merged through an iframe element, and then a page of the corresponding service is accessed through a URL (Uniform Resource Locator), so as to display corresponding content. However, in the conventional cross-service convergence method, when the coding modes of the service platform and each service are not consistent, the service platform and each service cannot be compatible, so that the service convergence efficiency is low.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a service convergence method, an apparatus, a computer device, and a storage medium, which can improve service convergence efficiency.
A method of service convergence, the method comprising:
acquiring a bottom layer card code;
acquiring a service code of a target service according to a target coding mode specified by the bottom card code;
fusing the bottom layer card code and the service code to obtain a service card code;
and rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode.
In one embodiment, the method further comprises:
creating a business card and determining a target business corresponding to the business card;
acquiring service information of the target service;
and configuring the service card according to the service information of the target service.
In one embodiment, the service card code includes: the system comprises a service card template code, a service card script code and a service card style code;
the fusing the bottom layer card code and the service code to obtain a service card code, including:
fusing the template code of the bottom layer card code and the template code of the service code to obtain a service card template code;
fusing the script code of the bottom layer card code and the script code of the service code to obtain a service card script code;
and fusing the style book code of the bottom layer card code and the style code of the service code to obtain the service card style code.
In one embodiment, the rendering the service card corresponding to the service card code to the service fusion platform conforming to the target encoding mode includes:
generating a card component object according to the service card template code, the service card script code and the service card style code;
determining a target card container; the target card container is arranged on a service fusion platform conforming to the target coding mode;
and rendering the business card corresponding to the card component object to the target card container by calling an application program interface of the document object model.
In one embodiment, the determining the target card container includes:
acquiring a mapping relation list of candidate card containers and candidate services;
acquiring a service identifier of the target service;
and determining a target card container corresponding to the service identifier of the target service according to the mapping relation list.
In one embodiment, the method comprises:
analyzing the service card template code in an unreadable form into a service card template code in a readable form by a template code analysis tool;
analyzing the business card script codes in an unreadable form into business card script codes in a readable form by a script code analyzing tool;
and analyzing the service card style code in the unreadable form into a service card style code in a readable form by a style code analysis tool.
In one embodiment, the service card template code is an HTML code, and the script code analysis tool is an Vue tool; the script code of the business card is a JavaScript code, and the script code analysis tool is a Babel tool; the business card style code is CSS code, and the style code analysis tool is a Less tool.
A service convergence device, the device comprising:
the acquisition module is used for acquiring a bottom layer card code; acquiring a service code of a target service according to a target coding mode specified by the bottom card code;
the fusion module is used for fusing the bottom layer card code and the service code to obtain a service card code;
and the rendering module is used for rendering the business card corresponding to the business card code to a business fusion platform conforming to the target coding mode.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a bottom layer card code;
acquiring a service code of a target service according to a target coding mode specified by the bottom card code;
fusing the bottom layer card code and the service code to obtain a service card code;
and rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a bottom layer card code;
acquiring a service code of a target service according to a target coding mode specified by the bottom card code;
fusing the bottom layer card code and the service code to obtain a service card code;
and rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode.
According to the service fusion method, the service fusion device, the computer equipment and the storage medium, the service code of the target service is obtained by obtaining the bottom layer card code according to the target coding mode specified by the bottom layer card code. And fusing the bottom layer card code and the service code to obtain the service card code. And rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode. Therefore, a uniform target coding mode is provided through the bottom layer card code, and the service code of the target service is obtained according to the target coding mode, so that the coding mode of the service code of the target service is consistent with the coding mode of the service fusion platform, the compatibility of the target service and the service fusion platform is ensured, and the service fusion efficiency is improved.
Drawings
Fig. 1 is an application scenario diagram of a service convergence method in an embodiment;
fig. 2 is a schematic flow chart of a service convergence method in an embodiment;
fig. 3 is a schematic flow chart of a service convergence method in another embodiment;
fig. 4 is a block diagram of a service convergence device according to an embodiment;
fig. 5 is a block diagram of a service convergence device in another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The service convergence method provided by the application can be applied to the application environment shown in fig. 1. The application environment comprises a terminal 102 and a server 104, wherein a service convergence platform runs on the terminal. The terminal 102 and the server 104 communicate via a network. The terminal 102 may specifically include a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
The terminal 102 obtains the bottom layer card code from the server 104, and obtains the service code of the target service according to the target coding mode specified by the bottom layer card code. The terminal 102 fuses the bottom layer card code and the service code to obtain the service card code. The terminal 102 renders the service card corresponding to the service card code to the service fusion platform conforming to the target coding mode.
In an embodiment, as shown in fig. 2, a service convergence method is provided, which is described by taking the application of the method to the terminal 102 in fig. 1 as an example, and includes the following steps:
s202, acquiring the bottom layer card code.
Wherein, the bottom layer card code is the bottom layer code of the business card. The business card is a card embedded with a target business function.
Specifically, the developer can obtain the bottom layer card code written by the developer based on the terminal.
In one embodiment, the developer may also write the underlying card code based on the third-party device, and the third device may acquire the underlying card code written by the developer based on the third-party device and store the written underlying card code to the server. The terminal can establish communication connection with the server and can acquire the bottom layer card code from the server based on the communication connection.
And S204, acquiring the service code of the target service according to the target coding mode specified by the bottom layer card code.
The target encoding method is a syntax specification set for the editing code. The target service is a service that implements a certain function. For example, the target service may specifically be a hundred-degree search service, a google search service, a hundred-degree translation service, or a translation service with a dictionary.
Specifically, the bottom layer card code specification has a target coding mode. The user can determine the target service and edit the service code of the target service according to the target coding mode specified by the bottom card code. Furthermore, the terminal can obtain the service code of the target service edited by the user according to the target coding mode specified by the bottom card code.
And S206, fusing the bottom layer card code and the service code to obtain the service card code.
Wherein, the service card code is a code for realizing the target service in the service card.
Specifically, after the bottom layer card code and the service code are obtained, the terminal may fuse the bottom layer card code and the service code to obtain the service card code.
And S208, rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode.
The service integration platform is a platform integrated with one or more service functions at the same time. For example, a business integration platform integrates a hundred-degree search business, a google search business, a hundred-degree translation business and a track dictionary translation business at the same time.
Specifically, the service convergence platform is constructed according to a target coding mode, and conforms to the target coding mode. The service convergence platform is provided with a target card container which can be arranged at any position of a service interface of the terminal. The terminal can render the business card corresponding to the business card code to a target card container in the business fusion platform according with the target coding mode.
In the service fusion method, the service code of the target service is acquired according to the target coding mode specified by the bottom layer card code by acquiring the bottom layer card code. And fusing the bottom layer card code and the service code to obtain the service card code. And rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode. Therefore, a uniform target coding mode is provided through the bottom layer card code, and the service code of the target service is obtained according to the target coding mode, so that the coding mode of the service code of the target service is consistent with the coding mode of the service fusion platform, the compatibility of the target service and the service fusion platform is ensured, and the service fusion efficiency is improved.
In an embodiment, the service convergence method specifically further includes: creating a business card and determining a target business corresponding to the business card; acquiring service information of a target service; and configuring a service card according to the service information of the target service.
Specifically, the developer may trigger a creation operation for the service card based on the terminal, and the terminal may locally create the service card in response to the creation operation for the service card by the developer. The terminal can determine the target service corresponding to the service card, namely determine the target service to be embedded into the service card. Each service corresponds to respective service information, and after the terminal determines the target service, the terminal can acquire the service information of the target service and configure a service card according to the service information of the target service.
In an embodiment, the service information may specifically include at least one of a name of the service, an icon of the service, an ID (Identity Document) of the service, interface information of the service, and the like.
In the embodiment, the service card is configured according to the service information of the target service, so that the service card carries the service information of the target service, and the readability of the service card is enhanced.
In one embodiment, the service card code includes: a service card template code, a service card script code and a service card style code, and step S206, that is, a step of fusing the bottom layer card code and the service code to obtain a service card code, specifically including: fusing the template code of the bottom layer card code and the template code of the service code to obtain a service card template code; fusing the script code of the bottom layer card code and the script code of the service code to obtain the service card script code; and fusing the style book code of the bottom layer card code and the style code of the service code to obtain the service card style code.
Wherein, the service card template code is a structure frame code of the service card. The service card script code is the service logic code of the service card. The service card style code is a style code of the service card. The style of the service card may specifically include at least one of a color of the service card, a transparency of the service card, a font size of the service card, and the like.
In particular, the underlying card code may include template code, script code, and style code. The service code may also include template code, script code, and style code. The terminal can fuse the template code of the bottom layer card code and the template code of the service code to obtain the service card template code. The terminal can fuse the script code of the bottom layer card code and the script code of the service code to obtain the service card script code. The terminal can fuse the style book code of the bottom layer card code and the style code of the service code to obtain the service card style code.
In the embodiment, the template codes of the bottom layer card codes and the template codes of the service codes are fused respectively, the script codes of the bottom layer card codes and the script codes of the service codes are fused, and the style codes of the bottom layer card codes and the style codes of the service codes are fused, so that the fusion of the service card codes is regular and can be followed, and the fusion efficiency of the service card codes is improved.
In an embodiment, the step S208, that is, the step of rendering the service card corresponding to the service card code to the service fusion platform conforming to the target encoding mode specifically includes: generating a card component object according to the service card template code, the service card script code and the service card style code; determining a target card container; the target card container is arranged on the service fusion platform conforming to the target coding mode; and rendering the business card corresponding to the card component object to a target card container by calling an application program interface of the document object model.
The Document Object Model (DOM) is an Application Programming Interface (API) Document based on a tree.
Specifically, the terminal may call a vue.extended () function, and jointly generate a corresponding card component object according to the service card template code, the service card script code, and the service card style code. The user may select a target card container among the plurality of candidate card containers, and the terminal may determine the target card container in response to the user's selection operation. The target card container is arranged on the service fusion platform conforming to the target coding mode. The terminal can render the service card corresponding to the card component object to the target card container by calling an application program interface of the document object model, namely dom.
In the embodiment, the service cards corresponding to the card component objects are rendered to the target card container by calling the application program interface of the document object model, so that the service cards can be normally displayed, and the display effect of the service cards is improved.
In one embodiment, the step of determining the target card container specifically includes: acquiring a mapping relation list of candidate card containers and candidate services; acquiring a service identifier of a target service; and determining a target card container corresponding to the service identifier of the target service according to the mapping relation list.
The service identifier is a character string uniquely identifying the service. The service identifier may specifically include at least one of a number, a letter, a special symbol, and the like. The special symbol may specifically include at least one of underline, number, percentage, and asterisk keys.
Specifically, the user may bind the container identifiers of more than one candidate card container with the service identifiers of the corresponding candidate services, respectively, and generate a mapping relationship list between the candidate card containers and the candidate services. The terminal can obtain a mapping relation list of the candidate card container and the candidate service. The terminal can obtain the service identifier of the target service and search the target card container corresponding to the service identifier of the target service in the mapping relation list.
In the embodiment, the target card container corresponding to the service identifier of the target service is searched according to the service identifier of the target service and the mapping relation list, so that the searching efficiency and accuracy of the target card container are improved, and the service fusion efficiency is further improved.
In an embodiment, the service convergence method specifically further includes: analyzing the unreadable business card template code into a readable business card template code by a template code analyzing tool; analyzing the business card script codes in the unreadable form into business card script codes in a readable form by a script code analyzing tool; and analyzing the service card style code in the unreadable form into a service card style code in a readable form by a style code analysis tool.
Wherein the template code analysis tool is a tool for analyzing the template code. The script code parsing tool is a tool for parsing script code. A style code parsing tool is a tool for parsing a style code.
Specifically, for the terminal, the service card template code, the service card script code, and the service card style code are unreadable before being parsed, that is, the terminal cannot execute the service card template code, the service card script code, and the service card style code. The terminal can analyze the unreadable business card template code into a readable business card template code through a template code analysis tool. The terminal can analyze the business card script codes in the unreadable form into business card script codes in the readable form through a script code analysis tool. The terminal can analyze the service card style code in the unreadable form into a service card style code in a readable form through a style code analysis tool.
In the above embodiment, the template code analysis tool, the script code analysis tool and the style code analysis tool are used to analyze the service card template code, the service card script code and the service card style code, so that the terminal can smoothly execute the service card template code, the service card script code and the service card style code, and the service fusion efficiency is further improved.
In one embodiment, the service card template code is HTML code, and the script code analysis tool is Vue tool; the script code of the business card is a JavaScript code, and the script code analysis tool is a Babel tool; the business card style code is CSS code, and the style code analysis tool is a Less tool.
Specifically, the terminal may parse HTML code through the Vue tool, JavaScript code through the Babel tool, and CSS code through the Less tool.
In one embodiment, as shown in fig. 3, the terminal may locally create a service card for the target service in response to the creation of the user, and configure the service card accordingly. The terminal can obtain the service card code corresponding to the service card. The service card code comprises three parts: the system comprises a service card template code, a service card script code and a service card style code. The terminal can analyze the service card template codes through an Vue tool, and the terminal can analyze the service card script codes through a Babel tool and analyze the service card style codes through a Less tool. Furthermore, the terminal may jointly generate a card component object from the service card template code, the service card script code, and the service card style code through the vue. And the terminal can call a DOM.apendchildren () function to render the card component object to the service convergence platform.
It should be understood that although the various steps of fig. 2 are shown in order, the steps are not necessarily performed in order. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a service convergence apparatus 400, including: an obtaining module 401, a fusing module 402, and a rendering module 403, wherein:
an obtaining module 401, configured to obtain a bottom layer card code; and acquiring the service code of the target service according to the target coding mode specified by the bottom layer card code.
And the fusion module 402 is configured to fuse the bottom layer card code and the service code to obtain a service card code.
And a rendering module 403, configured to render the service card corresponding to the service card code to a service fusion platform conforming to the target encoding mode.
In one embodiment, the service card code includes: the system comprises a service card template code, a service card script code and a service card style code. The fusion module 402 is further configured to fuse the template code of the bottom layer card code and the template code of the service code to obtain a service card template code; fusing the script code of the bottom layer card code and the script code of the service code to obtain the service card script code; and fusing the style book code of the bottom layer card code and the style code of the service code to obtain the service card style code.
In one embodiment, the fusion module 402 is further configured to generate a card component object according to the service card template code, the service card script code, and the service card style code; determining a target card container; the target card container is arranged on the service fusion platform conforming to the target coding mode; and rendering the business card corresponding to the card component object to a target card container by calling an application program interface of the document object model.
In one embodiment, the fusion module 402 is further configured to obtain a mapping relationship list between the candidate card container and the candidate service; acquiring a service identifier of a target service; and determining a target card container corresponding to the service identifier of the target service according to the mapping relation list.
In one embodiment, the service card template code is HTML code, and the script code analysis tool is Vue tool; the script code of the business card is a JavaScript code, and the script code analysis tool is a Babel tool; the business card style code is CSS code, and the style code analysis tool is a Less tool.
Referring to fig. 5, in an embodiment, the service convergence apparatus 400 further includes: a configuration module 404 and a parsing module 405, wherein:
a configuration module 404, configured to create a service card and determine a target service corresponding to the service card; acquiring service information of a target service; and configuring a service card according to the service information of the target service.
The analysis module 405 is configured to analyze the unreadable service card template code into a readable service card template code by using a template code analysis tool; analyzing the business card script codes in the unreadable form into business card script codes in a readable form by a script code analyzing tool; and analyzing the service card style code in the unreadable form into a service card style code in a readable form by a style code analysis tool.
The service fusion device acquires the service code of the target service according to the target coding mode specified by the bottom layer card code by acquiring the bottom layer card code. And fusing the bottom layer card code and the service code to obtain the service card code. And rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode. Therefore, a uniform target coding mode is provided through the bottom layer card code, and the service code of the target service is obtained according to the target coding mode, so that the coding mode of the service code of the target service is consistent with the coding mode of the service fusion platform, the compatibility of the target service and the service fusion platform is ensured, and the service fusion efficiency is improved.
For specific limitations of the service convergence device, reference may be made to the above limitations of the service convergence method, which is not described herein again. The various modules in the service fusion device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be the terminal 102 in fig. 1, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a service convergence method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a bottom layer card code;
acquiring a service code of a target service according to a target coding mode specified by a bottom card code;
fusing the bottom layer card code and the service code to obtain a service card code;
and rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
creating a business card and determining a target business corresponding to the business card;
acquiring service information of a target service;
and configuring a service card according to the service information of the target service.
In one embodiment, the service card code includes: the processor executes the computer program and further realizes the following steps:
fusing the template code of the bottom layer card code and the template code of the service code to obtain a service card template code;
fusing the script code of the bottom layer card code and the script code of the service code to obtain the service card script code;
and fusing the style book code of the bottom layer card code and the style code of the service code to obtain the service card style code.
In one embodiment, the processor when executing the computer program further performs the following steps
Generating a card component object according to the service card template code, the service card script code and the service card style code;
determining a target card container; the target card container is arranged on the service fusion platform conforming to the target coding mode;
and rendering the business card corresponding to the card component object to a target card container by calling an application program interface of the document object model.
In one embodiment, the processor when executing the computer program further performs the following steps
Acquiring a mapping relation list of candidate card containers and candidate services;
acquiring a service identifier of a target service;
and determining a target card container corresponding to the service identifier of the target service according to the mapping relation list.
In one embodiment, the processor when executing the computer program further performs the following steps
Analyzing the unreadable business card template code into a readable business card template code by a template code analyzing tool;
analyzing the business card script codes in the unreadable form into business card script codes in a readable form by a script code analyzing tool;
and analyzing the service card style code in the unreadable form into a service card style code in a readable form by a style code analysis tool.
In one embodiment, the service card template code is HTML code, and the script code analysis tool is Vue tool; the script code of the business card is a JavaScript code, and the script code analysis tool is a Babel tool; the business card style code is CSS code, and the style code analysis tool is a Less tool.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a bottom layer card code;
acquiring a service code of a target service according to a target coding mode specified by a bottom card code;
fusing the bottom layer card code and the service code to obtain a service card code;
and rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode.
In one embodiment, the computer program when executed by the processor further performs the steps of:
creating a business card and determining a target business corresponding to the business card;
acquiring service information of a target service;
and configuring a service card according to the service information of the target service.
In one embodiment, the service card code includes: the service card template code, the service card script code and the service card style code, when executed by the processor, further implementing the steps of:
fusing the template code of the bottom layer card code and the template code of the service code to obtain a service card template code;
fusing the script code of the bottom layer card code and the script code of the service code to obtain the service card script code;
and fusing the style book code of the bottom layer card code and the style code of the service code to obtain the service card style code.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a card component object according to the service card template code, the service card script code and the service card style code;
determining a target card container; the target card container is arranged on the service fusion platform conforming to the target coding mode;
and rendering the business card corresponding to the card component object to a target card container by calling an application program interface of the document object model.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a mapping relation list of candidate card containers and candidate services;
acquiring a service identifier of a target service;
and determining a target card container corresponding to the service identifier of the target service according to the mapping relation list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the unreadable business card template code into a readable business card template code by a template code analyzing tool;
analyzing the business card script codes in the unreadable form into business card script codes in a readable form by a script code analyzing tool;
and analyzing the service card style code in the unreadable form into a service card style code in a readable form by a style code analysis tool.
In one embodiment, the service card template code is HTML code, and the script code analysis tool is Vue tool; the script code of the business card is a JavaScript code, and the script code analysis tool is a Babel tool; the business card style code is CSS code, and the style code analysis tool is a Less tool.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A service convergence method, characterized in that the method comprises:
acquiring a bottom layer card code;
acquiring a service code of a target service according to a target coding mode specified by the bottom card code;
fusing the bottom layer card code and the service code to obtain a service card code;
and rendering the service card corresponding to the service card code to a service fusion platform conforming to the target coding mode.
2. The method of claim 1, further comprising:
creating a business card and determining a target business corresponding to the business card;
acquiring service information of the target service;
and configuring the service card according to the service information of the target service.
3. The method of claim 1, wherein the service card code comprises: the system comprises a service card template code, a service card script code and a service card style code;
the fusing the bottom layer card code and the service code to obtain a service card code, including:
fusing the template code of the bottom layer card code and the template code of the service code to obtain a service card template code;
fusing the script code of the bottom layer card code and the script code of the service code to obtain a service card script code;
and fusing the style book code of the bottom layer card code and the style code of the service code to obtain the service card style code.
4. The method according to claim 3, wherein the rendering the service card corresponding to the service card code to the service fusion platform conforming to the target encoding mode includes:
generating a card component object according to the service card template code, the service card script code and the service card style code;
determining a target card container; the target card container is arranged on a service fusion platform conforming to the target coding mode;
and rendering the business card corresponding to the card component object to the target card container by calling an application program interface of the document object model.
5. The method of claim 4, wherein the determining a target card container comprises:
acquiring a mapping relation list of candidate card containers and candidate services;
acquiring a service identifier of the target service;
and determining a target card container corresponding to the service identifier of the target service according to the mapping relation list.
6. The method of claim 4, wherein the method comprises:
analyzing the service card template code in an unreadable form into a service card template code in a readable form by a template code analysis tool;
analyzing the business card script codes in an unreadable form into business card script codes in a readable form by a script code analyzing tool;
and analyzing the service card style code in the unreadable form into a service card style code in a readable form by a style code analysis tool.
7. The method of claim 6, wherein the service card template code is HTML code, and the script code parsing tool is Vue tool; the script code of the business card is a JavaScript code, and the script code analysis tool is a Babel tool; the business card style code is CSS code, and the style code analysis tool is a Less tool.
8. A service convergence apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a bottom layer card code; acquiring a service code of a target service according to a target coding mode specified by the bottom card code;
the fusion module is used for fusing the bottom layer card code and the service code to obtain a service card code;
and the rendering module is used for rendering the business card corresponding to the business card code to a business fusion platform conforming to the target coding mode.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011563517.3A 2020-12-25 2020-12-25 Service fusion method and device, computer equipment and storage medium Pending CN112631565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011563517.3A CN112631565A (en) 2020-12-25 2020-12-25 Service fusion method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011563517.3A CN112631565A (en) 2020-12-25 2020-12-25 Service fusion method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112631565A true CN112631565A (en) 2021-04-09

Family

ID=75325474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011563517.3A Pending CN112631565A (en) 2020-12-25 2020-12-25 Service fusion method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112631565A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method
CN110399128A (en) * 2019-07-26 2019-11-01 北京恒华伟业科技股份有限公司 Code file generation method and device
CN110955418A (en) * 2019-12-13 2020-04-03 中国南方电网有限责任公司 Code generation method and device, computer equipment and storage medium
CN111026396A (en) * 2019-12-13 2020-04-17 北京小米移动软件有限公司 Page rendering method and device, electronic equipment and storage medium
CN111147548A (en) * 2019-12-06 2020-05-12 深圳华锐金融技术股份有限公司 Service data processing method and device, computer equipment and storage medium
CN111352682A (en) * 2018-12-24 2020-06-30 北京嘀嘀无限科技发展有限公司 Page rendering method, device, server and readable storage medium
CN111580819A (en) * 2020-05-21 2020-08-25 深圳华锐金融技术股份有限公司 Page generation method and device, computer equipment and storage medium
US20200285454A1 (en) * 2019-03-04 2020-09-10 Next Pathway Inc. System and method for source code translation using stream expressions
CN111666526A (en) * 2020-06-17 2020-09-15 广州市百果园信息技术有限公司 Page generation method, device, equipment and storage medium
CN111880860A (en) * 2020-07-28 2020-11-03 北京浪潮数据技术有限公司 Service processing method, device and related equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method
CN111352682A (en) * 2018-12-24 2020-06-30 北京嘀嘀无限科技发展有限公司 Page rendering method, device, server and readable storage medium
US20200285454A1 (en) * 2019-03-04 2020-09-10 Next Pathway Inc. System and method for source code translation using stream expressions
CN110399128A (en) * 2019-07-26 2019-11-01 北京恒华伟业科技股份有限公司 Code file generation method and device
CN111147548A (en) * 2019-12-06 2020-05-12 深圳华锐金融技术股份有限公司 Service data processing method and device, computer equipment and storage medium
CN110955418A (en) * 2019-12-13 2020-04-03 中国南方电网有限责任公司 Code generation method and device, computer equipment and storage medium
CN111026396A (en) * 2019-12-13 2020-04-17 北京小米移动软件有限公司 Page rendering method and device, electronic equipment and storage medium
CN111580819A (en) * 2020-05-21 2020-08-25 深圳华锐金融技术股份有限公司 Page generation method and device, computer equipment and storage medium
CN111666526A (en) * 2020-06-17 2020-09-15 广州市百果园信息技术有限公司 Page generation method, device, equipment and storage medium
CN111880860A (en) * 2020-07-28 2020-11-03 北京浪潮数据技术有限公司 Service processing method, device and related equipment

Similar Documents

Publication Publication Date Title
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN108804159B (en) Javascript module loading method and preprocessing method and device thereof, and computer equipment
CN111176996A (en) Test case generation method and device, computer equipment and storage medium
CN109145235B (en) Method and device for analyzing webpage and electronic equipment
CN108595697B (en) Webpage integration method, device and system
CN112306620B (en) Multi-language loading method and device for user-defined form control
CN115268908A (en) Method, device, equipment and storage medium for self-defining configuration page
CN110309457B (en) Webpage data processing method, device, computer equipment and storage medium
CN111241793A (en) Method, system, and medium for parsing rich text editor content for native client rendering
CN111552903A (en) Page generation method and device based on HTML (Hypertext markup language) template and computer equipment
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
CN114816404A (en) Method and device for dynamically rendering view page, computer equipment and storage medium
CN111739136A (en) Rendering method, computer device, and storage medium
CN113283228A (en) Document generation method and device, electronic equipment and storage medium
CN112035113A (en) Navigation bar loading method, device, equipment and medium of H5 page
CN108418797A (en) Web access method, device, computer equipment and storage medium
CN110647350A (en) Interface document generation method and device, computer equipment and storage medium
US11126410B2 (en) Method and apparatus for building pages, apparatus and non-volatile computer storage medium
CN112631565A (en) Service fusion method and device, computer equipment and storage medium
CN115469908A (en) Application program generation method, device, system, computer equipment and storage medium
CN115293873A (en) Page processing method and device for credit granting flow, computer equipment and storage medium
CN113835704A (en) Layout file generation method, device, equipment and storage medium
CN114168875A (en) Page program generation method and device, computer equipment and storage medium
CN109656549B (en) Construction method and device of monitoring system, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination