Micro-application page display method, device and equipment
By obtaining and utilizing the configuration information of the application and binding the applet and the micro-application, the problem of micro-application page display complexity is solved and a more flexible and intuitive page display is achieved.
Patent Information
- Application Number
- CN202110935535.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-08-16
AI Technical Summary
In the existing technology, the way to enter the micro application is complicated and the user operation is difficult, resulting in poor page display flexibility of the micro application.
By obtaining the configuration information of the application and binding multiple mini programs and micro applications, the user can directly click the micro application icon on the preset page of the application to display the corresponding page, and use the configuration information to determine the relationship between the mini programs and micro applications. , and load the display page according to the entrance address and resource package.
It reduces the difficulty of user operations and improves the display flexibility of micro-application pages. Users can directly manage and display micro-applications in the preset page of the application.
Smart Images

Figure CN113641274B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and specifically relates to a micro-application page display method, device and equipment. Background Art
[0002] The terminal device can be installed with an application (APP), some small programs can be integrated on the APP, and the small program can have different functional modules, each of which can be called a micro application.
[0003] In the related art, each mini program has only one entry address. If you want to enter different micro-applications in the mini program, you must first enter the mini program through the mini program's unique entry address, and then click on the corresponding micro-application in the mini program to display the micro-application page on the terminal device. As can be seen from the above, the way to enter the micro-application is too complicated and difficult for users to operate, resulting in poor flexibility in the display of the micro-application page. Summary of the invention
[0004] The present invention relates to a micro-application page display method, device and equipment, which reduce the user's operation difficulty and improve the flexibility of the micro-application page display.
[0005] In a first aspect, an embodiment of the present invention provides a method for displaying a micro-application page, comprising:
[0006] Obtain configuration information corresponding to the first application, wherein the configuration information includes identifiers of multiple mini-programs corresponding to the first application and an identifier of a micro-application corresponding to each mini-program;
[0007] Determine a plurality of micro-applications corresponding to the first application according to the configuration information, and display icons of the plurality of micro-applications on a preset page of the first application;
[0008] In response to a click operation on the icon of the first micro-application, determining a first mini-program corresponding to the first micro-application according to the configuration information, wherein the first mini-program includes the first micro-application, and the plurality of micro-applications include the first micro-application;
[0009] Display a page corresponding to the first micro-application in the first mini-program.
[0010] In a possible implementation, displaying a page corresponding to the first micro-application in the first mini-program includes:
[0011] Obtaining the entry address corresponding to the first mini program;
[0012] According to the entry address, the identifier of the first micro-application, and the resource package of the first applet loaded into the first application, a page corresponding to the first micro-application in the first applet is displayed.
[0013] In a possible implementation, displaying a page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application, and the resource package of the first mini-program loaded into the first application program includes:
[0014] Determine whether the latest version of the resource package corresponding to the first mini-program has been loaded in the first application;
[0015] If yes, displaying a page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application and the resource package of the latest version;
[0016] If not, the latest version of the resource package is downloaded from the mini-program server, and a page corresponding to the first micro-application in the first mini-program is displayed according to the entry address, the identifier of the first micro-application and the latest version of the resource package.
[0017] In a possible implementation, determining whether the latest version of the resource package corresponding to the first mini-program has been loaded in the first application includes:
[0018] Determine whether the resource package corresponding to the first mini program has been loaded in the first application;
[0019] If so, obtain the latest version number corresponding to the first mini program and the current version number corresponding to the first mini program loaded in the first application, and determine whether the latest version of the resource package corresponding to the first mini program has been loaded in the first application according to the latest version number and the current version number;
[0020] If not, it is determined that the latest version of the resource package corresponding to the first applet has not been loaded in the first application.
[0021] In a possible implementation, judging, according to the latest version number and the current version number, whether the latest version of the resource package corresponding to the first mini-program has been loaded in the first application includes:
[0022] If the latest version number is greater than the current version number, it is determined that the latest version of the resource package corresponding to the first mini-program is not loaded in the first application;
[0023] If the latest version number is equal to the current version number, it is determined that the latest version of the resource package corresponding to the first mini-program has been loaded in the first application.
[0024] In a possible implementation, determining a plurality of micro-applications corresponding to the first application according to the configuration information includes:
[0025] Obtaining a micro-application display operation input by a user in the first application;
[0026] According to the micro-application display operation, multiple micro-applications corresponding to the first application are obtained in the configuration information.
[0027] In a possible implementation, obtaining configuration information corresponding to the first application includes:
[0028] If the terminal device locally stores the configuration information, then obtaining the configuration information locally from the terminal device;
[0029] If the terminal device does not store the configuration information locally, the configuration information is obtained from the micro-application configuration server.
[0030] In a second aspect, an embodiment of the present invention provides a micro-application page display device, including an acquisition module, a first display module, a determination module, and a second display module, wherein:
[0031] The acquisition module is used to acquire configuration information corresponding to the first application, wherein the configuration information includes identifiers of multiple mini-programs corresponding to the first application and an identifier of a micro-application corresponding to each mini-program;
[0032] The first display module is used to determine a plurality of micro-applications corresponding to the first application according to the configuration information, and display icons of the plurality of micro-applications in a preset page of the first application;
[0033] The determination module is used to, in response to a click operation on the icon of the first micro-application, determine a first mini-program corresponding to the first micro-application according to the configuration information, wherein the first mini-program includes the first micro-application, and the plurality of micro-applications include the first micro-application;
[0034] The second display module is used to display a page corresponding to the first micro-application in the first mini-program.
[0035] In a possible implementation manner, the second display module is specifically used for:
[0036] Obtaining the entry address corresponding to the first mini program;
[0037] According to the entry address, the identifier of the first micro-application, and the resource package of the first applet loaded into the first application, a page corresponding to the first micro-application in the first applet is displayed.
[0038] In a possible implementation manner, the second display module is specifically used for:
[0039] Determine whether the latest version of the resource package corresponding to the first mini-program has been loaded in the first application;
[0040] If yes, displaying a page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application and the resource package of the latest version;
[0041] If not, the latest version of the resource package is downloaded from the mini-program server, and a page corresponding to the first micro-application in the first mini-program is displayed according to the entry address, the identifier of the first micro-application and the latest version of the resource package.
[0042] In a possible implementation manner, the second display module is specifically used for:
[0043] Determine whether the resource package corresponding to the first mini program has been loaded in the first application;
[0044] If so, obtain the latest version number corresponding to the first mini program and the current version number corresponding to the first mini program loaded in the first application, and determine whether the latest version of the resource package corresponding to the first mini program has been loaded in the first application according to the latest version number and the current version number;
[0045] If not, it is determined that the latest version of the resource package corresponding to the first applet has not been loaded in the first application.
[0046] In a possible implementation manner, the second display module is specifically used for:
[0047] If the latest version number is greater than the current version number, it is determined that the latest version of the resource package corresponding to the first mini-program is not loaded in the first application;
[0048] If the latest version number is equal to the current version number, it is determined that the latest version of the resource package corresponding to the first mini-program has been loaded in the first application.
[0049] In a possible implementation manner, the first display module is specifically used for:
[0050] Obtaining the entry address corresponding to the first mini program;
[0051] According to the entry address, the identifier of the first micro-application, and the resource package of the first applet loaded into the first application, a page corresponding to the first micro-application in the first applet is displayed.
[0052] In a possible implementation manner, the acquisition module is specifically used to:
[0053] If the terminal device locally stores the configuration information, then obtaining the configuration information locally from the terminal device;
[0054] If the terminal device does not store the configuration information locally, the configuration information is obtained from the micro-application configuration server.
[0055] In a third aspect, an embodiment of the present invention provides a micro-application page display device, including: a processor and a memory;
[0056] The memory stores computer-executable instructions;
[0057] The processor executes the computer-executable instructions stored in the memory, so that the micro-application page display device executes the micro-application page display method described in the first aspect.
[0058] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the method for displaying a micro-application page described in the first aspect is implemented.
[0059] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the page display method of the micro-application described in the first aspect.
[0060] The embodiment of the present invention provides a method, device and equipment for displaying a micro-application page, first obtaining configuration information corresponding to a first application, the configuration information including the identifiers of multiple mini-programs corresponding to the first application and the identifier of a micro-application corresponding to each mini-program; determining multiple micro-applications corresponding to the first application according to the configuration information, and displaying the icons of multiple micro-applications in a preset page of the first application; the user clicks the icon of the first micro-application, determines the first mini-program corresponding to the first micro-application according to the configuration information, and displays the page corresponding to the first micro-application in the first mini-program. Binding a mini-program to multiple micro-applications, by clicking the micro-application icon in the APP, the terminal device can display the page of the micro-application in the mini-program, which reduces the user's operation difficulty and improves the flexibility of the micro-application page display. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1This is a schematic diagram of an application scenario provided by an embodiment of the present invention;
[0062] Figure 2 It is a flow chart of a method for displaying a micro-application page provided by an embodiment of the present invention;
[0063] Figure 3 is a schematic diagram of displaying icons of multiple micro-applications in a preset page of a first application program provided by an embodiment of the present invention;
[0064] Figure 4 It is a flowchart of another micro-application page display method provided by an embodiment of the present invention;
[0065] Figure 5 A schematic diagram of a micro-application page display method provided by an embodiment of the present invention;
[0066] Figure 6 for Figure 5 The logical timing diagram of the page display method of the micro application shown;
[0067] Figure 7 A schematic diagram of the structure of a micro-application page display device provided by an embodiment of the present invention;
[0068] Figure 8 A schematic diagram of the structure of a micro-application page display device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0069] First, those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention. Those skilled in the art can make adjustments to them as needed to adapt to specific application scenarios.
[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] For ease of understanding, the following Figure 1 , the application scenarios to which the embodiments of the present invention are applicable are described.
[0072] Figure 1 The present invention provides an application scenario diagram. Figure 1 , including a mini program server 101, a micro application configuration server 102 and a terminal device 103.
[0073] The mini-program server 101 may provide a plurality of mini-programs, and the terminal device 103 may download the mini-programs from the mini-program server 101 .
[0074] The micro-application configuration server 102 may generate configuration information corresponding to the application program. For example, the configuration information may include the relationship between the mini-program and the micro-application, program information for configuring the mini-program, application information of the micro-application, and the like.
[0075] The terminal device 103 is installed with an APP (such as a communication application, a payment application, an office application, etc.), and multiple mini-programs can be integrated in the APP. Each mini-program can include different functional modules, and each functional module is a micro-application. The terminal device 103 can obtain configuration information from the micro-application configuration server 102. When the terminal device 103 needs to display the mini-program or micro-application page, the terminal device 103 can download the mini-program from the mini-program server 101.
[0076] In the related art, a mini program has only one entry address. If you want to enter a micro-application in the mini program, you can only open the mini program in the APP first and click the micro-application icon in the mini program to make the terminal device display the interface corresponding to the micro-application. The above method of displaying micro-applications is too complicated and difficult for users to operate, resulting in poor flexibility in the display of micro-application pages.
[0077] In order to improve the flexibility of the page display of the micro-application, in an embodiment of the present invention, for any application installed in the terminal device, the micro-application configuration server can pre-generate the configuration information of the application, and display the icons of the micro-applications in all the mini-programs integrated by the application in the preset page of the application. When the user needs to use any micro-application through the terminal device, the icon of the micro-application can be operated so that the terminal device can display the page of the micro-application based on the configuration information of the application. In the above process, the user directly operates the icon of the micro-application in the preset page of the application, which can make the terminal device display the page of the micro-application, reduce the difficulty of user operation, and improve the flexibility of the page display of the micro-application.
[0078] The technical solution of the present invention is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or displayed contents will not be described repeatedly in different embodiments.
[0079] Figure 2 A schematic diagram of a method for displaying a micro-application page provided by an embodiment of the present invention. Figure 2 , the method may include:
[0080] S201. Obtain configuration information corresponding to a first application.
[0081] The execution subject of the embodiment of the present invention can be a terminal device, or a page display device of a micro-application set in the terminal device, and the page display device of the micro-application can be implemented by software or by a combination of software and hardware. The terminal device can be various devices such as a smart phone, a smart watch, a tablet computer or a desktop computer.
[0082] The first application refers to an application installed in the terminal device, which is the host APP of the mini-program and micro-application. For example, the first application can be a social application, payment application, office application, etc. installed in the mobile phone.
[0083] The configuration information may include the correspondence between the mini-program and the micro-application. For example, the configuration information may include the identifiers of multiple mini-programs corresponding to the first application program and the identifier of the micro-application corresponding to each mini-program.
[0084] The configuration information corresponding to the first application may be obtained in the following manner: if the terminal device stores the configuration information locally, the configuration information is obtained locally from the terminal device; if the terminal device does not store the configuration information locally, the configuration information is obtained from the micro-application configuration server.
[0085] Optionally, when the first application is started, configuration information can be obtained from the server and stored locally on the sub-terminal device. Alternatively, configuration information can be obtained when the terminal device needs to run a mini-program or micro-application through the first application. In this case, if the terminal device has configuration information stored locally, the configuration information is obtained locally from the terminal device; if the terminal device does not have configuration information stored locally, the configuration information is obtained from the micro-application configuration server.
[0086] S202: Determine multiple micro-applications corresponding to the first application according to the configuration information, and display icons of the multiple micro-applications in a preset page of the first application.
[0087] A micro-application can be a functional module in a mini-program, and one mini-program can be bound to multiple micro-applications.
[0088] The multiple micro-applications corresponding to the first application may be determined in the following manner: obtaining a micro-application display operation input by a user in the first application; and obtaining the multiple micro-applications corresponding to the first application in the configuration information according to the micro-application display operation.
[0089] The micro-application display operation is an operation initiated by a user to display a micro-application. Taking the first application as a social application as an example, after the user enters the social application interface, pulling down the social application interface indicates that the user has initiated an operation to display a micro-application.
[0090] For ease of understanding, the following Figure 3 , displaying multiple micro-application icons on a preset page of a first application is described.
[0091] Figure 3 A schematic diagram of displaying multiple micro-application icons in a preset page of a first application program provided by an embodiment of the present invention. Figure 3 , including page 301 and page 302, page 301 is the display interface of the first application, and page 302 is the display interface of the micro-application (preset page). The user pulls down the display interface of the first application (page 301), and after the terminal device detects the pull-down operation input by the user, the 9 micro-applications corresponding to the first application can be obtained in the configuration information, and the icons of the 9 micro-applications are displayed in the preset page of the first application.
[0092] S203: In response to a click operation on the icon of the first micro-application, determine a first mini-program corresponding to the first micro-application according to the configuration information.
[0093] The first mini-program includes multiple micro-applications, and the multiple micro-applications include the first micro-application.
[0094] S204: Display a page corresponding to the first micro-application in the first mini-program.
[0095] The page corresponding to the first micro-application in the first mini-program can be displayed in the following manner: obtain the entry address corresponding to the first mini-program, and display the page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application, and the resource package of the first mini-program loaded into the first application.
[0096] The first applet may have multiple entry addresses, each entry address corresponds to a micro-application. The entry address may be a URL address.
[0097] The entry address corresponding to the first mini program can be obtained from the mini program list file. The mini program list file includes the mini program icon, name, version number, permissions, entry address URL list, etc.
[0098] The mini-program list file can be obtained in the following ways: if the terminal device stores the mini-program list file locally, obtain the mini-program list file from the terminal device locally; if the terminal device does not store the mini-program list file locally, obtain the mini-program list file from the server.
[0099] exist Figure 2 In the embodiment shown, the configuration information corresponding to the first application is first obtained, and the configuration information includes the identifiers of multiple small programs corresponding to the first application and the identifier of the micro-application corresponding to each small program; the multiple micro-applications corresponding to the first application are determined according to the configuration information, and the icons of the multiple micro-applications are displayed in the preset page of the first application; after the user clicks the icon of the first micro-application, the terminal device can determine the first small program corresponding to the first micro-application according to the configuration information, and display the page corresponding to the first micro-application in the first small program. By binding a small program to multiple micro-applications, the user can directly operate the icon of the micro-application in the preset page of the application, so that the terminal device can display the page of the micro-application, which reduces the difficulty of user operation and improves the flexibility of the page display of the micro-application.
[0100] Based on any of the above embodiments, Figure 4 The illustrated embodiment provides a detailed description of the page display method of the above-mentioned micro-application.
[0101] Figure 4 A flowchart of another micro-application page display method provided by an embodiment of the present invention. Figure 4 , the method may include:
[0102] S401. Obtain configuration information corresponding to a first application.
[0103] It should be noted that the execution process of S401 can refer to the execution process of S201, and will not be repeated here.
[0104] The configuration information may include the micro-application icon, micro-application version number, micro-application name, micro-application identifier, jump mini-program name, mini-program version number, mini-program identifier, mini-program entry address and corresponding parameters, permissions, etc.
[0105] S402: Determine multiple micro-applications corresponding to the first application according to the configuration information, and display icons of the multiple micro-applications in a preset page in the first application.
[0106] It should be noted that the execution process of S402 can refer to the execution process of S202, which will not be described in detail here.
[0107] S403: In response to a click operation on the icon of the first micro-application, determine a first mini-program corresponding to the first micro-application according to the configuration information.
[0108] It should be noted that the execution process of S403 can refer to the execution process of S203, which will not be described in detail here.
[0109] S404: Obtain the entry address corresponding to the first mini program.
[0110] It should be noted that the execution process of S404 can refer to the execution process of S204, which will not be described in detail here.
[0111] S405: Determine whether the latest version of the resource package corresponding to the first applet has been loaded into the first application.
[0112] If yes, execute S407.
[0113] If not, execute S406-S407.
[0114] Whether the latest version of the resource package corresponding to the first mini program has been loaded in the first application can be determined in the following way: determine whether the resource package corresponding to the first mini program has been loaded in the first application; if so, obtain the latest version number corresponding to the first mini program and the current version number corresponding to the first mini program loaded in the first application, and determine whether the latest version of the resource package corresponding to the first mini program has been loaded in the first application based on the latest version number and the current version number; if not, determine that the latest version of the resource package corresponding to the first mini program has not been loaded in the first application.
[0115] Whether the latest version of the resource package corresponding to the first mini program has been loaded in the first application can be determined based on the latest version number and the current version number in the following way: if the latest version number is greater than the current version number, it is determined that the latest version of the resource package corresponding to the first mini program has not been loaded in the first application; if the latest version number is equal to the current version number, it is determined that the latest version of the resource package corresponding to the first mini program has been loaded in the first application.
[0116] S406: Download the resource package of the first mini program from the mini program server.
[0117] The resource package of the first applet downloaded from the applet server is the resource package of the latest version.
[0118] S407: Display a page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application, and the latest version of the mini-program resource package.
[0119] The first application obtains the latest version of the resource package, and the terminal device displays the page corresponding to the first micro-application in the first applet according to the relationship between the entry address and the identifier of the first micro-application.
[0120] exist Figure 4In the illustrated embodiment, the configuration information corresponding to the first application is first obtained, and the icons of multiple micro-applications are displayed in the preset page of the first application according to the configuration information. When the user needs to use any micro-application through the terminal device, the icon of the micro-application can be operated so that the terminal device can obtain the entry address corresponding to the first applet based on the configuration information of the first application. It is determined whether the latest version of the resource package corresponding to the first applet has been loaded in the first application; if so, the page corresponding to the first micro-application in the first applet is displayed according to the entry address, the identifier of the first micro-application, and the latest version of the resource package; if not, the latest version of the resource package is downloaded from the applet server, and then the page corresponding to the first micro-application in the first applet is displayed according to the entry address, the identifier of the first micro-application, and the latest version of the resource package. The user directly operates the icon of the micro-application in the preset page of the application, so that the terminal device can display the page of the micro-application, which reduces the difficulty of user operation and improves the flexibility of the page display of the micro-application. At the same time, since the micro-application icon is displayed in the preset page of the applet, the micro-application can be desktop managed in the preset page.
[0121] Based on any of the above embodiments, Figure 5 The specific example shown provides a detailed description of the page display method of the micro-application.
[0122] Figure 5 A schematic diagram of a micro-application page display method provided by an embodiment of the present invention. , see Figure 5 When the APP in the terminal device is started, the configuration information is obtained from the micro-application configuration server. The configuration information includes the micro-application icon, micro-application version number, micro-application name, micro-application identifier, jump mini-program name, mini-program version number, mini-program identifier, mini-program entry address and corresponding parameters, permissions, etc.
[0123] The APP may include an APP micro-application manager. After the terminal device detects a micro-application display operation input by the user, the terminal device displays 9 micro-applications in a preset page of the mini-program according to the configuration information through the APP micro-application manager.
[0124] The APP may also include a small program address resolver. After the user clicks on the first micro-application icon in the preset page, the terminal device determines the first small program corresponding to the first micro-application by parsing the configuration information through the small program address resolver. The terminal device determines whether the resource package corresponding to the first small program has been loaded in the first application according to the entry address of the small program obtained by parsing; if so, the latest version number corresponding to the first small program and the current version number corresponding to the first small program loaded in the first application are obtained, and according to the latest version number and the current version number, it is determined whether the latest version of the resource package corresponding to the first small program has been loaded in the first application. If the latest version of the resource package corresponding to the first small program has been loaded in the first application, the page corresponding to the first micro-application in the first small program is displayed according to the entry address, the identifier of the first micro-application, and the latest version of the resource package; if the latest version of the resource package corresponding to the first small program is not loaded in the first application, the latest version of the resource package is downloaded from the server, and then the page corresponding to the first micro-application in the first small program is displayed according to the entry address, the identifier of the first micro-application, and the latest version of the resource package. The user can directly operate the icon of the micro-application in the preset page of the application program to make the terminal device display the page of the micro-application, which reduces the difficulty of user operation and improves the flexibility of the micro-application page display.
[0125] Figure 6 for Figure 5 The logical timing diagram of the micro-application page display method shown in Figure 1 is as follows. Figure 6 , including servers and terminal devices. The terminal devices include APP manager, APP micro application manager, and mini program address resolver.
[0126] The terminal device obtains configuration information from the micro-application configuration server through the APP micro-application manager, and displays the micro-application in the preset page of the mini-program according to the configuration information. After the user clicks the micro-application icon, the terminal device parses the configuration information through the mini-program address resolver to obtain the mini-program address. The terminal device determines whether the APP has loaded the latest version of the resource package of the mini-program according to the mini-program address through the APP manager. If not, the latest version of the resource package of the mini-program is loaded from the mini-program server. After loading, the terminal device displays the micro-application page through the APP manager. The configuration information in the micro-application configuration server can be changed at any time, realizing the dynamic binding and unbinding of micro-applications and mini-programs, reducing maintenance and operation costs.
[0127] Figure 7 A schematic diagram of the structure of a micro-application page display device provided by an embodiment of the present invention. Figure 7 The micro-application page display device 10 may include an acquisition module 11, a first display module 12, a determination module 13, and a second display module 14, wherein:
[0128] The acquisition module 11 is used to acquire configuration information corresponding to the first application, where the configuration information includes identifiers of multiple mini-programs corresponding to the first application and identifiers of micro-applications corresponding to each mini-program;
[0129] The first display module 12 is used to determine multiple micro-applications corresponding to the first application according to the configuration information, and display icons of the multiple micro-applications in a preset page of the first application;
[0130] The determination module 13 is used to, in response to a click operation on the icon of the first micro-application, determine a first mini-program corresponding to the first micro-application according to the configuration information, wherein the first mini-program includes the first micro-application, and the plurality of micro-applications include the first micro-application;
[0131] The second display module 14 is used to display a page corresponding to the first micro-application in the first mini-program.
[0132] The micro-application page display device 10 provided in the embodiment of the present invention can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0133] In a possible implementation manner, the second display module 14 is specifically used for:
[0134] Get the entry address corresponding to the first mini program;
[0135] According to the entry address, the identifier of the first micro-application, and the resource package of the first applet loaded into the first application, a page corresponding to the first micro-application in the first applet is displayed.
[0136] In a possible implementation manner, the second display module 14 is specifically used for:
[0137] Determine whether the latest version of the resource package corresponding to the first applet has been loaded in the first application;
[0138] If so, displaying a page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application and the latest version of the resource package;
[0139] If not, the resource package of the latest version is downloaded from the server, and the page corresponding to the first micro-application in the first applet is displayed according to the entry address, the identifier of the first micro-application and the resource package of the latest version.
[0140] In a possible implementation manner, the second display module 14 is specifically used for:
[0141] Determine whether the resource package corresponding to the first applet has been loaded in the first application;
[0142] If so, obtain the latest version number corresponding to the first mini program and the current version number corresponding to the first mini program loaded in the first application, and determine whether the latest version of the resource package corresponding to the first mini program has been loaded in the first application based on the latest version number and the current version number;
[0143] If not, it is determined that the latest version of the resource package corresponding to the first applet has not been loaded in the first application.
[0144] In a possible implementation manner, the second display module 14 is specifically used for:
[0145] If the latest version number is greater than the current version number, it is determined that the latest version of the resource package corresponding to the first mini program is not loaded in the first application;
[0146] If the latest version number is equal to the current version number, it is determined that the latest version of the resource package corresponding to the first applet has been loaded in the first application.
[0147] In a possible implementation manner, the first display module 12 is specifically used for:
[0148] Get the entry address corresponding to the first mini program;
[0149] According to the entry address, the identifier of the first micro-application, and the resource package of the first applet loaded into the first application, a page corresponding to the first micro-application in the first applet is displayed.
[0150] In a possible implementation manner, the acquisition module 11 is specifically used for:
[0151] If the terminal device has configuration information stored locally, the configuration information is obtained locally from the terminal device;
[0152] If the terminal device does not store the configuration information locally, the configuration information is obtained from the server.
[0153] The micro-application page display device 10 provided in the embodiment of the present invention can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0154] Figure 8 A schematic diagram of the structure of a micro-application page display device provided by an embodiment of the present invention. Figure 8 The micro-application page display device 20 may include: a memory 21 and a processor 22. Exemplarily, the memory 21 and the processor 22 are interconnected via a bus 23.
[0155] The memory 21 is used to store computer-executable instructions;
[0156] The processor 22 is used to execute the computer execution instructions stored in the memory, so that the micro-application page display device 20 executes the above-mentioned micro-application page display method.
[0157] Figure 8 The page display device of the micro-application shown in the embodiment can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0158] An embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the above-mentioned micro-application page display method.
[0159] An embodiment of the present invention may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the above-mentioned micro-application page display method.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for displaying a micro-application page, characterized in that: include: Obtain configuration information corresponding to the first application, wherein the configuration information includes identifiers of multiple mini-programs corresponding to the first application and an identifier of a micro-application corresponding to each mini-program; Determine multiple micro-applications corresponding to the first application according to the configuration information, and display icons of the multiple micro-applications in a preset page of the first application, where the first application refers to an application installed in the terminal device, and the micro-applications are functional modules in the mini-program; In response to a click operation on the icon of the first micro-application, determining a first mini-program corresponding to the first micro-application according to the configuration information, wherein the first mini-program includes the first micro-application, and the plurality of micro-applications include the first micro-application; Display a page corresponding to the first micro-application in the first mini-program.
2. The micro-application page display method according to claim 1, characterized in that: Displaying a page corresponding to the first micro-application in the first mini-program includes: Obtaining the entry address corresponding to the first mini program; According to the entry address, the identifier of the first micro-application, and the resource package of the first applet loaded into the first application program, a page corresponding to the first micro-application in the first applet is displayed.
3. The micro-application page display method according to claim 2, characterized in that: Displaying a page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application, and the resource package of the first mini-program loaded into the first application program includes: Determine whether the latest version of the resource package corresponding to the first mini-program has been loaded in the first application; If yes, displaying a page corresponding to the first micro-application in the first mini-program according to the entry address, the identifier of the first micro-application and the resource package of the latest version; If not, the latest version of the resource package is downloaded from the mini-program server, and a page corresponding to the first micro-application in the first mini-program is displayed according to the entry address, the identifier of the first micro-application and the latest version of the resource package.
4. The micro-application page display method according to claim 3, characterized in that: Determining whether the latest version of the resource package corresponding to the first mini-program has been loaded in the first application includes: Determine whether the resource package corresponding to the first mini program has been loaded in the first application; If so, obtain the latest version number corresponding to the first mini program and the current version number corresponding to the first mini program loaded in the first application, and determine whether the latest version of the resource package corresponding to the first mini program has been loaded in the first application based on the latest version number and the current version number; If not, it is determined that the latest version of the resource package corresponding to the first applet has not been loaded in the first application.
5. The micro-application page display method according to claim 4, characterized in that: Judging, according to the latest version number and the current version number, whether the latest version of the resource package corresponding to the first mini-program has been loaded in the first application, includes: If the latest version number is greater than the current version number, it is determined that the latest version of the resource package corresponding to the first mini-program is not loaded in the first application; If the latest version number is equal to the current version number, it is determined that the latest version of the resource package corresponding to the first mini-program has been loaded in the first application.
6. The micro-application page display method according to any one of claims 1 to 5, characterized in that: Determining a plurality of micro-applications corresponding to the first application according to the configuration information includes: Obtaining a micro-application display operation input by a user in the first application; According to the micro-application display operation, multiple micro-applications corresponding to the first application are obtained in the configuration information.
7. The micro-application page display method according to any one of claims 1 to 6, characterized in that: Obtain configuration information corresponding to the first application, including: If the terminal device locally stores the configuration information, then obtaining the configuration information locally from the terminal device; If the terminal device does not store the configuration information locally, the configuration information is obtained from the micro-application configuration server.
8. A micro-application page display device, characterized in that: It includes an acquisition module, a first display module, a determination module and a second display module, wherein: The acquisition module is used to acquire configuration information corresponding to the first application, wherein the configuration information includes identifiers of multiple mini-programs corresponding to the first application and an identifier of a micro-application corresponding to each mini-program, wherein the first application refers to an application installed in the terminal device, and the micro-application is a functional module in the mini-program; The first display module is used to determine a plurality of micro-applications corresponding to the first application according to the configuration information, and display icons of the plurality of micro-applications in a preset page of the first application. The determination module is used to, in response to a click operation on the icon of the first micro-application, determine a first mini-program corresponding to the first micro-application according to the configuration information, wherein the first mini-program includes the first micro-application, and the plurality of micro-applications include the first micro-application; The second display module is used to display a page corresponding to the first micro-application in the first mini-program.
9. A micro-application page display device, characterized in that: include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the page display method of the micro-application as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the micro-application page display method described in any one of claims 1 to 7.
11. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the page display method of the micro-application described in any one of claims 1 to 7.
