Mini-program page link generation method, device, electronic device and storage medium

By receiving page description data during the mini program configuration, generating and translating it into mini program objects, and automatically generating jump links, the problem of reliance on manual communication for the acquisition of mini program page links in the existing technology has been solved, improving efficiency and accuracy, and reducing the cost.

CN114398025BActive Publication Date: 2025-02-11CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111621111.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-02-11
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

The acquisition of existing mini-program page links depends on repeated manual communication between technology and business parties, resulting in a large amount of labor cost consumption and information delivery errors.

Method used

During the applet configuration, add requests, including page description data, add them to applet native page data, generate page data, read and translate into applet objects, generate jump link data, and automatically generate links and related information. .

Benefits of technology

It improves the efficiency of operators to understand the basic information of each page, automatically traverses all page data, generates mini-program objects, reduces the cost of manually spelling links, avoids link spelling errors, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114398025B_ABST
    Figure CN114398025B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, electronic device and storage medium for generating a mini-program page link; the method is applied to a server, and the server stores mini-program native page data, including: during mini-program configuration, receiving an add request, the add request including page description data; adding the page description data to the mini-program native page data to generate first page data; reading the first page data to generate a first mini-program object; translating the first mini-program object to generate first jump link data. Through the embodiment of the present invention, a visual page of jump links and related information can be automatically generated for business personnel to verify content and obtain links, which solves the problems of a large amount of manpower cost consumption caused by manual splicing of links and link spelling errors caused by manual delivery. At the same time, when developing a large number of mini-program page functions, the QR code can be scanned for testing and verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method for generating a mini-program page link, a device for generating a mini-program page link, an electronic device and a storage medium. Background Art

[0002] As a product of the new era, mini programs have the characteristics of low development cost, easy maintenance, and easy dissemination compared to traditional APPs (Applications), and better meet the needs of users. In September 2020, the number of mini program users exceeded 890 million. The needs of users have also put forward new requirements for enterprises to quickly develop mini programs, quickly iterate, and quickly go online, especially for the establishment of mini programs on the current mainstream platforms, which can help enterprises better serve users.

[0003] In related technologies, link acquisition of mini program pages relies on repeated manual communication and processing between technical and business parties, which not only consumes a lot of labor costs, but also manual delivery is prone to a series of chain problems caused by information delivery errors. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a method for generating a mini-program page link and a corresponding mini-program page link generating device, an electronic device and a storage medium that overcome the above problems or at least partially solve the above problems.

[0005] An embodiment of the present invention discloses a method for generating a mini-program page link, which is applied to a server, wherein the mini-program native page data is stored on the server, and the method includes:

[0006] During configuration of the applet, receiving an add request, the add request including page description data;

[0007] Adding the page description data to the native page data of the mini program to generate first page data;

[0008] Read the first page data and generate a first applet object;

[0009] The first applet object is translated to generate first jump link data.

[0010] Optionally, the method further comprises:

[0011] The first jump link data and the page description data are visualized to generate a front-end page.

[0012] Optionally, the method comprises:

[0013] receiving an append request, wherein the append request includes an append parameter;

[0014] Translating the additional parameters to generate second page data;

[0015] Combining the second page data and the first applet object, generating a second applet object;

[0016] The second applet object is translated to generate second jump link data.

[0017] Optionally, a json5 component is provided on the server, and the step of adding the page description data to the native page data of the mini program to generate the first page data includes:

[0018] The json5 component is used to add the page description data to the native page data of the mini program to generate json5 data;

[0019] Determine that the json5 data is the first page data.

[0020] Optionally, a json component is further provided on the server, and the method further includes:

[0021] The json5 data is translated into a json file using the json component.

[0022] Optionally, the server is further provided with an fs module, and the step of reading the first page data and generating the first applet object comprises:

[0023] Using the fs module to read the first page data;

[0024] Traverse the first page corresponding to the first page data and generate a first applet object.

[0025] Optionally, the step of translating the first applet object to generate first jump link data includes:

[0026] Get the address translation algorithm;

[0027] The first applet object is translated according to the address translation algorithm to generate first jump link data.

[0028] The embodiment of the present invention further discloses a device for generating a link to a mini-program page, which is applied to a server, and the server stores mini-program native page data, and the device includes:

[0029] A first receiving module, used to receive an adding request during the configuration of the mini-program, wherein the adding request includes page description data;

[0030] A page description module, used to add the page description data to the native page data of the mini program to generate first page data;

[0031] A reading module, used for reading the first page data and generating a first applet object;

[0032] The first translation module is used to translate the first applet object to generate first jump link data.

[0033] An embodiment of the present invention also discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the mini-program page link generation method as described above.

[0034] An embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the mini-program page link generation method described above are implemented.

[0035] The embodiments of the present invention include the following advantages:

[0036] The embodiment of the present invention receives an addition request during the configuration of the mini-program, wherein the addition request includes page description data; adds the page description data to the native page data of the mini-program to generate first page data; facilitates operation personnel to understand the basic information of each page; reads the first page data to generate a first mini-program object; automatically traverses all page data to generate a first mini-program object to improve work efficiency; translates the first mini-program object to generate first jump link data; automatically generates links and related information for business personnel to verify content and obtain links, thereby solving the problems of large manpower costs caused by manual splicing of links and link spelling errors caused by manual delivery. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a flowchart of the steps of an embodiment of a method for generating a link to a mini program page of the present invention;

[0038] Figure 2 It is a flowchart of another embodiment of a method for generating a link to a mini-program page according to the present invention;

[0039] Figure 3 This is an example diagram of a front-end page of the present invention;

[0040] Figure 4 It is a structural block diagram of an embodiment of a device for generating a link to a mini-program page according to the present invention;

[0041] Figure 5 is a structural block diagram of an electronic device provided by an embodiment of the present invention;

[0042] Figure 6It is a structural block diagram of a storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] The operation of the Mini Program involves obtaining links to each page of the Mini Program. However, the Mini Program currently does not provide a link generation function for all pages within the Mini Program, and corresponding page links must be provided when the page is delivered. The traditional link extraction method relies on repeated manual communication and processing between technical personnel and business parties. The manual splicing of technical personnel based on business needs consumes a lot of labor costs, and manual delivery is prone to a series of chain problems caused by information delivery errors.

[0045] Reference Figure 1 , showing a step flow chart of an embodiment of a method for generating a mini-program page link of the present invention, the method is applied to a server, and the mini-program native page data is stored on the server.

[0046] It should be noted that the server is specifically a background server for operating the mini program. The background server stores the native page data of the mini program, which is the native data of the original page before the mini program page is processed. Among them, the native page data of the mini program can be stored in the local memory space of the background server, or in the storage space of a third-party database (such as cloud storage space, database) connected to the background server, and the embodiment of the present invention does not specifically limit this.

[0047] The method may specifically include the following steps:

[0048] Step 101, during the configuration of the mini-program, receiving an add request, wherein the add request includes page description data;

[0049] During the operation and configuration of the mini program, the technician can initiate an add request on a specified page. The add request is an add request for adding a page description to the native page. The server receives the add request, which includes page description data. The page description data is the data for adding a page description to each page in the mini program.

[0050] Step 102, adding the page description data to the native page data of the mini program to generate first page data;

[0051] After receiving the page description data, a page description is added to each native page of the mini program, and the first page data is generated by adding the page description data to the corresponding native page data of the mini program. The first page data refers to the page data after the native page is added with the page description.

[0052] Step 103, reading the first page data and generating a first applet object;

[0053] Each mini-program page in the first page data is read, and all mini-program pages are converted into a first mini-program page.

[0054] Step 104, translating the first applet object to generate first jump link data.

[0055] According to the rules of the main program where the mini program is located, an algorithm for translating the mini program page into a jump link is formulated, and the algorithm is called to generate the first jump link data. The first jump link data must at least include the jump address information and the QR code data corresponding to the jump address. The jump address information can specifically be scheme link information.

[0056] The embodiment of the present invention receives an addition request during the configuration of the mini-program, wherein the addition request includes page description data; adds the page description data to the native page data of the mini-program to generate first page data; facilitates operation personnel to understand the basic information of each page; reads the first page data to generate a first mini-program object; automatically traverses all page data to generate a first mini-program object to improve work efficiency; translates the first mini-program object to generate first jump link data; automatically generates links and related information for business personnel to verify content and obtain links, thereby solving the problems of large manpower costs caused by manual splicing of links and link spelling errors caused by manual delivery.

[0057] Reference Figure 2 , showing a step flow chart of another embodiment of a method for generating a mini-program page link of the present invention, the method is applied to a server, and the mini-program native page data is stored on the server.

[0058] The embodiment of the present invention can be applied to a background management server that operates a mini-program; the mini-program native page data is stored in the local memory of the server.

[0059] The method specifically comprises the following steps:

[0060] Step 201, during the configuration of the mini-program, receiving an add request, wherein the add request includes page description data;

[0061] During the operation and management of the mini program's pages, a request to add a page description may be received, the request to add includes page description data. Specifically, the page description data includes a page identifier and page description content, such as adding a page description such as "traffic management" to the first page.

[0062] Step 202, adding the page description data to the native page data of the mini program to generate first page data;

[0063] In actual applications, the native page data of the mini program can be provided with a page description field. When the page description data is received, the page description data can be added to the page description field to add the page description data to the native page of the mini program to generate the first page data.

[0064] In an optional embodiment of the present invention, a json5 component is provided on the server, and the step of adding the page description data to the native page data of the mini program to generate the first page data includes:

[0065] Sub-step S2021, using the json5 component to add the page description data to the native page data of the mini program to generate json5 data;

[0066] It should be noted that json5 is JavaScript Object Notation 5, and the json5 component can convert data into json5 format.

[0067] When you need to add page description data, you can use the json5 component to add the page description data to the page description field of the mini program native page data, and convert the mini program native page data with the page description field content into data in json5 format, i.e., json5 data. For example, you can add the page description of "traffic management" to the page description field of the mini program native page data, and then convert the mini program native page data with the page description of "traffic management" into json5 data.

[0068] Sub-step S2022, determining that the json5 data is the first page data.

[0069] After obtaining the json5 data, the json5 data may be determined as the first page data, making it easier to write and maintain the page data.

[0070] In an optional embodiment of the present invention, a json component is further provided on the server, and the method further includes:

[0071] Step S1, using the json component to translate the json5 data into a json file.

[0072] Since data in json5 format cannot be recognized when the corresponding main program corresponds to the mini program, the json component can be used to translate the data in json5 format into a json file, so that the entire content of the mini program after the page description can be recognized, thereby accurately displaying the mini program.

[0073] Specifically, gulp data packets and ulp data packets can be set in the json component to convert the json5 data input into the json component into a json file. It should be noted that gulp is an automated build tool, which is mainly used to set the program to automatically process static resources. The ulp data packet is an upper layer protocol data packet.

[0074] Step 203, reading the first page data and generating a first applet object;

[0075] The first page data is read, the specific content of each page in the first page data is confirmed, and all pages are converted into the first mini-program objects.

[0076] In an optional embodiment of the invention, the server is further provided with an fs module, and the step of reading the first page data and generating the first applet object comprises:

[0077] Sub-step S2031, using the fs module to read the first page data;

[0078] It should be noted that the fs module is a core module of Node.js, which is specifically used to operate files in the system. The common operation method is to use require('fs') to load the fs module for reading and writing files. All methods in the module have both synchronous and asynchronous forms. Node.js runs on JavaScript (a literal scripting language) on the server side. Node.js is a platform built on the Chrome (Google) JavaScript runtime. Node.js is an event-driven I / O (Input / Output) server-side JavaScript environment.

[0079] When the first page data needs to be converted into an object, the first page data is read using the fs module. Specifically, the first page data in the json5 format is read using the fs module.

[0080] Sub-step S2032, traverse the first page corresponding to the first page data, and generate a first mini-program object.

[0081] Each mini-program page in the first page data, namely the first page, is traversed, and all mini-program pages are converted into a first mini-program object.

[0082] Step 204, translating the first applet object to generate first jump link data;

[0083] After obtaining the first applet object, the corresponding preset algorithm can be called according to the applet setting rules of the main program to translate the first applet object into first jump link data. Specifically, the first jump link data at least includes a jump link address and a corresponding QR code.

[0084] In an optional embodiment of the present invention, the step of translating the first applet object to generate first jump link data includes:

[0085] Sub-step S2041, obtaining an address translation algorithm;

[0086] First, according to the target main program that the mini program needs to set, the corresponding address translation algorithm is obtained from the specified storage address according to different target main programs. The storage address can be the storage space of the backend server itself, or the address of a third-party database connected to the backend server. The embodiment of the present invention does not specifically limit this.

[0087] Sub-step S2042, translating the first mini-program object according to the address translation algorithm to generate first jump link data.

[0088] The first mini program object is then translated according to the acquired address translation algorithm to generate a scheme link address and a corresponding QR code as the first jump link data.

[0089] Step 205, visualizing the first jump link data and the page description data to generate a front-end page;

[0090] Visualize the first jump link data and the page description data to generate a front-end page. Figure 3 , shows an example diagram of a front-end page; the figure shows the page description content, the specific scheme link address and the corresponding QR code.

[0091] Specifically, the visualization operation may be to use a server (server component) to visualize the first jump link data and the page description data to generate a front-end page, so that business personnel can intuitively see the address of the mini-program page that needs to be promoted and exchanged and the page effect.

[0092] Step 206, receiving an additional request, wherein the additional request includes additional parameters;

[0093] In the displayed front-end page, there is an input window for additional parameters, and additional parameters can be input in the input window to send an additional request to the server. The additional request includes at least an additional parameter for a page, and the additional parameter can be an additional operating channel, an association with other pages, etc., which is not specifically limited in the embodiment of the present invention.

[0094] Step 207, translating the additional parameters to generate second page data;

[0095] After receiving the additional parameters, the additional parameters can be translated in the same way as the page description data is added to the native page data of the mini program, such as translating through the json5 component to generate the second page data.

[0096] Step 208, combining the second page data and the first applet object to generate a second applet object;

[0097] The second page data is an additional description only for each page in the first applet object. Therefore, the second page data can be combined with the first applet object, and then the combined data can be converted through the fs module to generate a second applet object.

[0098] Step 209, translating the second applet object to generate second jump link data.

[0099] The same algorithm used to translate the first applet object is called again to translate the second applet object and generate the second jump link data. The second jump link data is the address data generated after adding additional parameters, which may specifically include the scheme link address and the corresponding QR code. The scheme link address and the corresponding QR code are the QR codes that operators can actually put into operation. This simplifies the configuration difficulty of the business side, reduces the learning cost, and improves the work efficiency of the business.

[0100] The embodiment of the present invention receives an add request during the configuration of the mini program, the add request includes page description data; adds the page description data to the native page data of the mini program to generate the first page data; facilitates the operation personnel to understand the basic information of each page; reads the first page data to generate the first mini program object; automatically traverses all page data to generate the first mini program object to improve work efficiency; translates the first mini program object to generate the first jump link data; automatically generates links and related information for business personnel to verify content and obtain links, and solves the problems of a large amount of manpower cost consumption caused by manual splicing of links and link spelling errors caused by manual delivery. When the data is visualized, the business personnel can intuitively see the mini program page address and page effect that need to be promoted and exchanged. Receive an additional request, the additional request includes additional parameters; translate the additional parameters to generate the second page data; combine the second page data and the first mini program object to generate the second mini program object; translate the second mini program object to generate the second jump link data. Based on the actual business usage scenarios, we can provide services such as adding parameters and transcoding, so that the business party can add parameters independently without the need for technical access, which facilitates the business party to respond to the business quickly.

[0101] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0102] Reference Figure 4 , shows a structural block diagram of an embodiment of a device for generating a link to a mini-program page of the present invention, the device is applied to a server, the server stores the mini-program native page data, and the device may specifically include the following modules:

[0103] The first receiving module 401 is used to receive an adding request during the configuration of the mini-program, wherein the adding request includes page description data;

[0104] A page description module 402, used to add the page description data to the native page data of the mini program to generate first page data;

[0105] A reading module 403 is used to read the first page data and generate a first applet object;

[0106] The first translation module 404 is used to translate the first applet object to generate first jump link data.

[0107] In an optional embodiment of the present invention, the device further comprises:

[0108] A visualization module is used to visualize the first jump link data and the page description data to generate a front-end page.

[0109] In an optional embodiment of the present invention, the device further comprises:

[0110] A second receiving module, configured to receive an additional request, wherein the additional request includes additional parameters;

[0111] A second translation module, used for translating the additional parameters to generate second page data;

[0112] A combining module, used for combining the second page data and the first applet object to generate a second applet object;

[0113] The third translation module is used to translate the second applet object and generate second jump link data.

[0114] In an optional embodiment of the present invention, a json5 component is provided on the server, and the page description module 402 includes:

[0115] Add a submodule for adding page description data to the native page data of the mini program using the json5 component to generate json5 data;

[0116] A determination submodule is used to determine that the json5 data is the first page data.

[0117] In an optional embodiment of the present invention, a json component is further provided on the server, and the device further includes:

[0118] The fourth translation module is used to translate the json5 data into a json file using the json component.

[0119] In an optional embodiment of the present invention, the server is further provided with an fs module, and the reading module 403 includes:

[0120] A reading submodule, used for reading the first page data by using the fs module;

[0121] The traversal submodule is used to traverse the first page corresponding to the first page data and generate a first applet object.

[0122] In an optional embodiment of the present invention, the first translation module 404 includes:

[0123] Algorithm acquisition submodule, used to obtain address translation algorithm;

[0124] The translation submodule is used to translate the first applet object according to the address translation algorithm to generate first jump link data.

[0125] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0126] The embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, including:

[0127] A processor 501 and a storage medium 502, wherein the storage medium 502 stores a computer program executable by the processor 501, and when the electronic device is running, the processor 501 executes the computer program to perform the method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar to those of the method embodiment, and will not be repeated here.

[0128] The embodiment of the present invention also provides a computer readable storage medium, such as Figure 6 As shown, the storage medium stores a computer program 601, and the computer program 601 is executed by a processor to execute the method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar to those of the method embodiment, and will not be repeated here.

[0129] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0130] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0131] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0134] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0135] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0136] The above is a detailed introduction to a method, device, electronic device and storage medium for generating a mini-program page link provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for generating a link to a mini program page, characterized in that: Applied to a server, the server stores the mini-program native page data, the server is provided with a json5 component, a json component and an fs module, and the method comprises: During configuration of the applet, receiving an add request, the add request including page description data; Add the page description data to the mini-program native page data to generate first page data; wherein, the step of adding the page description data to the mini-program native page data to generate first page data includes: using the json5 component to add the page description data to the field of the mini-program native page data to generate json5 data; determining that the json5 data is the first page data; Read the first page data and generate a first applet object; wherein the step of reading the first page data and generating the first applet object comprises: using the fs module to read the first page data; traversing the first page corresponding to the first page data and generating the first applet object; Translating the first applet object to generate first jump link data; wherein the step of translating the first applet object to generate first jump link data comprises: obtaining an address translation algorithm; translating the first applet object according to the address translation algorithm to generate first jump link data; The json5 data is translated into a json file using the json component.

2. The method according to claim 1, characterized in that The method further comprises: The first jump link data and the page description data are visualized to generate a front-end page.

3. The method according to claim 1, characterized in that The method comprises: receiving an append request, wherein the append request includes an append parameter; Translating the additional parameters to generate second page data; Combining the second page data and the first applet object, generating a second applet object; The second applet object is translated to generate second jump link data.

4. A device for generating a link to a mini program page, characterized in that: Applied to a server, the server stores the mini-program native page data, the server is provided with a json5 component, a json component and an fs module, and the device comprises: A first receiving module, used to receive an adding request during the configuration of the mini-program, wherein the adding request includes page description data; A page description module, used to add the page description data to the native page data of the mini program to generate first page data; wherein the page description module includes: an adding submodule, used to use the json5 component to add the page description data to the native page data of the mini program to generate json5 data; a determining submodule, used to determine that the json5 data is the first page data; A reading module, used to read the first page data and generate a first applet object; wherein the reading module includes: a reading submodule, used to read the first page data using the fs module; a traversal submodule, used to traverse the first page corresponding to the first page data and generate a first applet object; A first translation module, used to translate the first applet object to generate first jump link data; wherein the first translation module includes: an algorithm acquisition submodule, used to acquire an address translation algorithm; a translation submodule, used to translate the first applet object according to the address translation algorithm to generate first jump link data; The fourth translation module is used to translate the json5 data into a json file using the json component.

5. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for generating a mini-program page link as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the mini-program page link generation method as described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Service parameter acquisition method and device, computer equipment and storage medium

    CN110688598A

  • Page construction method and device

    CN111984258A