CN113971257A - Function menu access method and device for hybrid application - Google Patents

Function menu access method and device for hybrid application Download PDF

Info

Publication number
CN113971257A
CN113971257A CN202111263595.6A CN202111263595A CN113971257A CN 113971257 A CN113971257 A CN 113971257A CN 202111263595 A CN202111263595 A CN 202111263595A CN 113971257 A CN113971257 A CN 113971257A
Authority
CN
China
Prior art keywords
function
menu
target
link
function menu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111263595.6A
Other languages
Chinese (zh)
Inventor
赵丽莎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202111263595.6A priority Critical patent/CN113971257A/en
Publication of CN113971257A publication Critical patent/CN113971257A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a function menu access method and device for hybrid application. The method comprises the following steps: the terminal displays at least one function menu corresponding to at least one function parameter in a page of the hybrid application; when receiving the triggering operation of a user on a target function menu, a terminal sends an access request corresponding to the target function menu to a server; the server acquires a target function link corresponding to the function parameter from a corresponding relation between a preset function link and the function parameter according to the function parameter of the target function menu carried by the access request, and sends the target function link to the terminal; and the terminal displays a target page corresponding to the target function menu according to the target function link. By configuring the corresponding relation between the function parameters and the function links in the server, the terminal can access the target function menu by using the target function links sent by the server instead of accessing based on the constants locally stored by the terminal, so that the accuracy and the flexibility of accessing the function menu of the hybrid application are improved.

Description

Function menu access method and device for hybrid application
Technical Field
The invention relates to the technical field of mobile internet, in particular to a function menu access method and device for hybrid application.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Hybrid applications are applications that are intermediate between web applications and native applications. The hybrid application may be embedded in a native application, implementing business functions through a HTML5(Hyper Text Markup Language) page. In the development process of the hybrid application, an HTML5 page is usually run in WebView (web view), a function link corresponding to a function menu in an HTML5 page is configured as a constant at a local client, and when a user needs to access a certain function menu, the user directly accesses the function link corresponding to the function menu. The disadvantages of this method are as follows:
the HTML5 page of the hybrid application utilizes the local function link to access the corresponding function menu, so that the hybrid application is easy to access by mistake, the development flexibility is low, and the accuracy and the flexibility of the function menu access are low.
Disclosure of Invention
The embodiment of the invention provides a function menu access method of hybrid application, which is applied to a terminal and is used for accessing a target page corresponding to a target function menu by using a target function link configured in a server through the terminal instead of accessing based on a constant locally stored in the terminal, so that the accuracy of accessing the function menu is improved, technical personnel can conveniently and flexibly develop the hybrid application, and the accuracy and the flexibility of accessing the function menu of the hybrid application are improved, wherein the method comprises the following steps:
displaying at least one function menu corresponding to at least one function parameter in a page of a hybrid application according to the at least one function parameter configured in the hybrid application;
when receiving a trigger operation of a user on a target function menu in the page, sending an access request corresponding to the target function menu to a server, wherein the access request carries function parameters of the target function menu;
receiving a target function link returned by the server according to the function parameter of the access request;
and displaying a target page corresponding to the target function menu according to the target function link.
Optionally, before displaying at least one function menu corresponding to at least one function parameter in a page of the hybrid application according to the at least one function parameter configured in the hybrid application, the method further includes:
when the hybrid application is initialized, acquiring at least one function parameter corresponding to the user account from the server according to the user account of the user logging in the hybrid application, wherein the user account is a user account in a white list of a function menu corresponding to the at least one function parameter.
Optionally, if the target function menu is a debugging function menu, the target function link is a debugging function link corresponding to the debugging function menu; correspondingly, the displaying the target page corresponding to the target function menu according to the target function link includes:
and displaying a debugging page corresponding to the debugging function menu through a debugging console Vconsole and the debugging function link, wherein the debugging page comprises analysis data obtained by analyzing the production environment of the hybrid application through the Vconsole.
Optionally, after the target page corresponding to the target function menu is displayed according to the target function link, the method includes:
and updating the target function link corresponding to the target function menu in a local cache of the terminal.
The embodiment of the invention provides a function menu access method of hybrid application, which is applied to a server and is used for configuring a corresponding relation between a function parameter and a function link in the server and returning a target function link to a terminal, so that the terminal can display a target page corresponding to a target function menu according to the target function link to meet the access requirement of a user on the target function menu, but access is not performed based on a constant locally stored by the terminal, the accuracy of function menu access is improved, technical personnel can conveniently and flexibly develop the hybrid application, and the accuracy and flexibility of function menu access of the hybrid application are improved, and the method comprises the following steps:
receiving an access request sent by a terminal, wherein the access request is used for requesting to access a target function menu triggered by a user in a page of a hybrid application, and the access request carries function parameters of the target function menu;
determining a target function link corresponding to the function parameter of the target function menu from a corresponding relation between a function link and a function parameter which is configured in advance in the server according to the function parameter carried by the access request;
and sending the target function link to a terminal.
Optionally, the method further includes:
and updating the corresponding relation between the function link and the function parameter configured in the server.
The embodiment of the invention provides a function menu access device of hybrid application, which is applied in a terminal and used for accessing a target page corresponding to a target function menu by using a target function link configured in a server through the terminal instead of accessing based on a constant locally stored in the terminal, thereby improving the accuracy of function menu access, facilitating the flexible development of technical personnel on the hybrid application, and improving the accuracy and flexibility of function menu access of the hybrid application, and comprises:
the menu display module is used for displaying at least one function menu corresponding to at least one function parameter in a page of the hybrid application according to the at least one function parameter configured in the hybrid application;
the access request sending module is used for sending an access request corresponding to a target function menu to a server when receiving a triggering operation of a user on the target function menu in the page, wherein the access request carries the function parameters of the target function menu;
the function link receiving module is used for receiving a target function link returned by the server according to the function parameter of the access request;
and the page display module is used for displaying a target page corresponding to the target function menu according to the target function link.
Optionally, the apparatus further comprises:
an obtaining module, configured to obtain, when the hybrid application is initialized, at least one function parameter corresponding to a user account from the server according to the user account where the user logs in the hybrid application, where the user account is a user account in a white list of a function menu corresponding to the at least one function parameter.
Optionally, if the target function menu is a debugging function menu, the target function link is a debugging function link corresponding to the debugging function menu;
the page display module is used for displaying the debugging page corresponding to the debugging function menu through a debugging console Vconsole and the debugging function link, and the debugging page comprises analysis data obtained through analyzing the production environment of the hybrid application through the Vconsole.
Optionally, the apparatus further comprises:
and the function link updating module is used for updating the target function link corresponding to the target function menu in the local cache of the terminal.
The embodiment of the invention provides a function menu access device of hybrid application, which is applied in a server and used for configuring a corresponding relation between a function parameter and a function link in the server and returning a target function link to a terminal, so that the terminal can display a target page corresponding to a target function menu according to the target function link to meet the access requirement of a user on the target function menu, but not access based on a constant locally stored in the terminal, the accuracy of function menu access is improved, technical personnel can conveniently and flexibly develop the hybrid application, and the accuracy and flexibility of the function menu access of the hybrid application are improved, wherein the device comprises:
an access request receiving module, configured to receive an access request sent by a terminal, where the access request is used to access a target function menu triggered by a user in a page of a hybrid application, and the access request carries function parameters of the target function menu;
a determining module, configured to determine, according to the function parameter carried by the access request, a target function link corresponding to the function parameter of the target function menu from a correspondence between a function link and a function parameter pre-configured in the server;
and the function link sending module is used for sending the target function link to a terminal.
Optionally, the apparatus further comprises:
and the configuration updating module is used for updating the corresponding relation between the function link and the function parameter configured in the server.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the function menu access method of the hybrid application when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the function menu access method of the hybrid application is stored in the computer-readable storage medium.
According to the method for accessing the function menu of the hybrid application, provided by the embodiment of the invention, at least one function menu corresponding to at least one function parameter is displayed in a page of the hybrid application through a terminal according to the at least one function parameter configured in the hybrid application; when receiving a triggering operation of a user on a target function menu in the page, the terminal sends an access request corresponding to the target function menu to the server, wherein the access request carries the function parameters of the target function menu; the server receives the access request, acquires a target function link corresponding to the function parameter carried by the access request from a preset corresponding relation between the function link and the function parameter according to the function parameter carried by the access request, and sends the target function link to the terminal; the terminal receives a target function link returned by the server according to the function parameter of the access request; and the terminal displays a target page corresponding to the target function menu according to the target function link. By pre-configuring the corresponding relation between the function parameters and the function links in the server, the terminal can access the target page corresponding to the target function menu by using the target function links sent by the server instead of accessing based on the constants locally stored in the terminal, so that the accuracy of accessing the function menu is improved, technical personnel can conveniently and flexibly develop the hybrid application, and the accuracy and the flexibility of accessing the function menu of the hybrid application are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a flow chart of a method for accessing a function menu of a hybrid application according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a function menu accessing apparatus for hybrid applications according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a function menu accessing apparatus for hybrid applications according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a function menu accessing apparatus for hybrid applications according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a computer apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Fig. 1 is a signaling interaction diagram of a method for accessing a function menu of a hybrid application according to an embodiment of the present invention, where the method is implemented by a terminal and a server interactively. As shown in fig. 1, the method includes:
step 101, the terminal displays at least one function menu corresponding to at least one function parameter in a page of the hybrid application according to the at least one function parameter configured in the hybrid application.
In this example, the hybrid application: the application is between Web-App (webpage application) and Native-App (Native application). Although the hybrid application looks like an application, only one WebView (Web page view) can be analogized to an iframe (inline frame), and a Web-App (Web-App) is accessed inside, namely a shell which wraps a client, and a webpage of HTML5 (Hypertext Markup Language) is actually inside. The hybrid application may be embedded in a native application, implementing business functions through HTML5 pages. The HTML5 page is a web page running on the mobile terminal based on HTML 5. The HTML5 page may be provided with at least one function menu. For example, the function menu in the HTML5 page may be in the form of menu buttons, such as "associate", "loss", "activate", etc. menu buttons for the bank card in the HTML5 page. In this embodiment, the function parameter may include a function code of the function menu.
The mixed application can adopt JS (JavaScript) language, wherein JS (JavaScript) is a lightweight, interpreted or just-in-time compiling programming language with function priority; although it is named as a scripting language for developing Web pages, it is also used in many non-browser environments, JavaScript is based on prototypical programming, multi-modal dynamic scripting languages, and supports object-oriented, imperative, and declarative (e.g., functional programming) styles.
As an embodiment, the target function menu is a debugging function menu, and the target function link is a debugging function link corresponding to the debugging function menu. For example, the debug function menu in the HTML5 page may be a debug button, and a technician may trigger the debug button to obtain the debug function link from the server, and then perform analysis and debugging on the hybrid application through the debug page.
As an example, the terminal may be configured locally with the function parameters of the function menu. The terminal can acquire the function parameters when initializing the hybrid application so as to display the function menu corresponding to the function parameters. Before displaying at least one function menu corresponding to at least one function parameter in a page of the hybrid application according to the at least one function parameter configured in the hybrid application, a process of acquiring the function parameter from a server is further included, and the process may include the following steps: when the hybrid application is initialized, the terminal acquires at least one function parameter corresponding to a user account from the server according to the user account of the user logging in the hybrid application. And the user account is a user account in a white list of the function menu corresponding to the at least one function parameter.
In specific implementation, after the hybrid application is started, the user can log in the user account of the user in the hybrid application. The terminal can perform initialization operation on the hybrid application, and in the initialization process, the functional parameters corresponding to the user account can be acquired from the server through the user account. By configuring different white lists for different function menus, access users of the function menus can be displayed through the white lists. For example, for a debug function menu, the white list may include user accounts for background technicians so that the technicians may access the debug page.
And 102, when receiving the triggering operation of the user on the target function menu in the page, the terminal sends an access request corresponding to the target function menu to the server.
In this embodiment, the access request carries the function parameters of the target function menu; the server may be a background server for the hybrid application. The terminal may send an access request carrying the function code to the server. The target function menu may be a menu triggered by a user among at least one function menu displayed in the page. The trigger operation may be a click operation, a double click operation, or the like of the target function menu by the user.
In specific implementation, the terminal may send a request packet carrying an access request to the server.
As an embodiment, the access request may further carry a user account of the user requesting to access the target function menu. The user account may be an account that the user is logged into on the hybrid application.
And step 103, the server receives the access request sent by the terminal.
In this embodiment, the access request is used to access a target function menu triggered by the user in a page of the hybrid application. The server extracts the function parameters of the target function menu from the access request. As an embodiment, the server extracts, from the access request, a user account of the user requesting access to the target function menu.
And step 104, the server determines a target function link corresponding to the function parameter of the target function menu from the corresponding relationship between the function link and the function parameter pre-configured in the server according to the function parameter carried by the access request.
In the present embodiment, the server is configured with a plurality of correspondence relationships between function links and function parameters in advance.
In specific implementation, the server may configure an application function module in the middle station system, and configure a corresponding relationship between a plurality of function links and function parameters in the application function module menu.
As an example, the server may also be configured with whitelist access logic for the function menu. The list of function menus includes user accounts with access rights to the function menus. In this embodiment, when the server determines, according to the user account carried in the access request, whether the white list of the target function menu includes the user account carried in the access request, and when the server determines that the white list of the target function menu includes the user account carried in the access request, the server determines that the user has access permission, and the server performs the following step 105. In specific implementation, the server may be configured with a white list module, and a white list of the function menu is configured in the white list module, and the granularity of the white list may be configured based on needs, for example, the white list may be configured for the function menu, and may also be further configured for a sub-menu under the function menu, so that access permissions of users may be limited by the white list, and ranges of the function menus accessed by users with different permissions are also different; for example, technicians of the hybrid application can access the debugging page corresponding to the debugging function menu, and common users of the hybrid application do not have the right to access the debugging page, so that the flexibility of accessing the function menu of the hybrid application is further improved.
As an embodiment, the server may also maintain function links in the application function module at any time. The process may include: and the server updates the corresponding relation between the function link and the function parameter configured in the server.
Step 105, the server sends the target function link to the terminal.
And when the server determines that the user has the access right according to the white list of the target function menu and the user account carried by the access request, the server sends the target function link to the terminal.
In specific implementation, the server may return a response message to the terminal, where the response message carries the target function link.
And 106, the terminal receives the target function link returned by the server according to the function parameter of the access request.
In specific implementation, the terminal receives a response message returned by the server, and acquires the target function link from the response message.
And step 107, the terminal displays a target page corresponding to the target function menu according to the target function link.
In this embodiment, the terminal acquires a target page corresponding to the target function link from the server according to the target function link, and displays the target page.
In specific implementation, the target function link may be a website link, and the terminal may send an HTTP (hypertext Transfer Protocol) request for accessing a target page corresponding to the function menu to the server through the website link. Wherein the HTTP request is a request message from the client to the server. The request message of the HTTP request may include: in the message head line, a request method for a resource, an identifier of the resource, a protocol used, and the like.
As an embodiment, when the target function menu is a debugging function menu, the target function link is a debugging function link corresponding to the debugging function menu; and the terminal displays a debugging page corresponding to the debugging function menu according to the debugging function link. Among them, it can be realized by Vconsole (debug console); vconsol is a webpage front end debugging panel, is specially designed for the mobile phone Web (webpage) page size, and helps developers to carry out development and debugging work more conveniently. The step of displaying, by the terminal according to the target function link, a target page corresponding to the target function menu may include: and the terminal Vconsole is linked with the debugging function, and a debugging page corresponding to the debugging function menu is displayed, wherein the debugging page comprises analysis data obtained by analyzing the production environment of the hybrid application through the Vconsole. The technical staff can display the debugging page by using the Vconsole, and the analysis data in the debugging page can be error reporting data in the use process of the hybrid application by the user, for example, data such as execution errors and display errors generated in the use process of the hybrid application, so that the technical staff can analyze and debug the production problems based on the Vconsole without analyzing the production problems by means of a point-buried log recording mode and the like, and the flexibility of production problem analysis is further ensured.
In specific implementation, a terminal of a technician may be configured with a problem analysis module, and through the problem analysis module, a production problem may be analyzed by using Vconsole, and an analysis result may be output.
As an embodiment, the terminal may further update a function link in the cache, and after the terminal displays a target page corresponding to the target function menu according to the target function link, the embodiment may further include the following steps: and the terminal updates the target function link corresponding to the target function menu in the local cache of the terminal.
According to the method for accessing the function menu of the hybrid application, provided by the embodiment of the invention, at least one function menu corresponding to at least one function parameter is displayed in a page of the hybrid application through a terminal according to the at least one function parameter configured in the hybrid application; when receiving a triggering operation of a user on a target function menu in the page, the terminal sends an access request corresponding to the target function menu to the server, wherein the access request carries the function parameters of the target function menu; the server receives the access request, acquires a target function link corresponding to the function parameter carried by the access request from a preset corresponding relation between the function link and the function parameter according to the function parameter carried by the access request, and sends the target function link to the terminal; the terminal receives a target function link returned by the server according to the function parameter of the access request; and the terminal displays a target page corresponding to the target function menu according to the target function link. By pre-configuring the corresponding relation between the function parameters and the function links in the server, the terminal can access the target page corresponding to the target function menu by using the target function links sent by the server instead of accessing based on the constants locally stored in the terminal, so that the accuracy of accessing the function menu is improved, technical personnel can conveniently and flexibly develop the hybrid application, and the accuracy and the flexibility of accessing the function menu of the hybrid application are improved.
Based on the same inventive concept, the embodiment of the present invention further provides a function menu access device for a hybrid application, as described in the following embodiments. Because the principle of the hybrid application function menu access device for solving the problem is similar to the hybrid application function menu access method, the implementation of the hybrid application function menu access device can refer to the implementation of the hybrid application function menu access method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a schematic structural diagram of a function menu access device for a hybrid application according to an embodiment of the present invention, where the device is applied in a terminal, and as shown in fig. 2, the device includes:
a menu display module 201, configured to display, according to at least one function parameter configured in a hybrid application, at least one function menu corresponding to the at least one function parameter in a page of the hybrid application;
an access request sending module 202, configured to send, when receiving a trigger operation of a user on a target function menu in the page, an access request corresponding to the target function menu to a server, where the access request carries a function parameter of the target function menu;
a function link receiving module 203, configured to receive a target function link returned by the server according to the function parameter of the access request;
and a page display module 204, configured to display a target page corresponding to the target function menu according to the target function link.
In an embodiment of the present application, the apparatus further includes:
and the acquisition module is used for acquiring at least one function parameter corresponding to the user account from the server according to the user account of the user logging in the hybrid application when the hybrid application is initialized, wherein the user account is a user account in a white list of a function menu corresponding to the at least one function parameter.
In this embodiment of the application, if the target function menu is a debug function menu, the target function link is a debug function link corresponding to the debug function menu;
the page display module 204 is configured to display a debugging page corresponding to the debugging function menu through the debugging console Vconsole and the debugging function link, where the debugging page includes analysis data obtained by analyzing the production environment of the hybrid application through the Vconsole.
In an embodiment of the present application, the apparatus further includes:
and the function link updating module is used for updating the target function link corresponding to the target function menu in the local cache of the terminal.
Fig. 3 is a schematic structural diagram of a function menu access apparatus for a hybrid application according to an embodiment of the present invention, where the apparatus is applied in a server, and as shown in fig. 3, the apparatus includes:
an access request receiving module 301, configured to receive an access request sent by a terminal, where the access request is used to access a target function menu triggered by a user in a page of a hybrid application, and the access request carries function parameters of the target function menu;
a determining module 302, configured to determine, according to the function parameter carried in the access request, a target function link corresponding to the function parameter of the target function menu from a correspondence between a function link and a function parameter pre-configured in the server;
a function link sending module 303, configured to send the target function link to the terminal.
In the embodiment of the present application, as shown in fig. 4, the apparatus further includes:
and the configuration updating module 304 is configured to update the corresponding relationship between the function link and the function parameter configured in the server.
To achieve the above object, according to another aspect of the present application, there is also provided a computer apparatus. As shown in fig. 5, the computer device comprises a memory, a processor, a communication interface and a communication bus, wherein a computer program that can be run on the processor is stored in the memory, and the steps of the method of the above embodiment are realized when the computer program is executed by the processor.
The processor may be a Central Processing Unit (CPU). The Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and units, such as the corresponding program units in the above-described method embodiments of the present invention. The processor executes various functional applications of the processor and the processing of the work data by executing the non-transitory software programs, instructions and modules stored in the memory, that is, the method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more units are stored in the memory and when executed by the processor perform the method of the above embodiment.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the above method is stored.
In summary, the present invention has the following technical effects:
1. by pre-configuring the corresponding relation between the function parameters and the function links in the server, the terminal can access the target page corresponding to the target function menu by using the target function links sent by the server instead of accessing based on the constants locally stored in the terminal, so that the accuracy of accessing the function menu is improved, technical personnel can conveniently and flexibly develop the hybrid application, and the accuracy and the flexibility of accessing the function menu of the hybrid application are improved.
2. By configuring the white list of the function menu, the user in the white list has access right to the function menu, and the granularity of the white list can be configured in the server according to needs, for example, the white list can be configured for the function menu, and the white list can be further configured for submenus under the function menu, so that the access right of the user can be limited by the white list, and the ranges of the function menus accessed by the users with different rights are different; for example, technicians of the hybrid application can access the debugging page corresponding to the debugging function menu, and common users of the hybrid application do not have the right to access the debugging page, so that the flexibility of accessing the function menu of the hybrid application is further improved.
3. Utilize Vconsole and debugging functional link to show the debugging page through the terminal, and this debugging page obtains the analytic data including the production environment analysis through Vconsole to mixed application, make things convenient for technical staff to call out the mistake reporting data of mixed application in by the user's use, and carry out production problem analysis debugging based on Vconsole, and need not to carry out production problem analysis through modes such as buried point record log, the flexibility of production problem analysis has further been guaranteed.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (14)

1. A method for accessing a function menu of a hybrid application is applied to a terminal and comprises the following steps:
displaying at least one function menu corresponding to at least one function parameter in a page of a hybrid application according to the at least one function parameter configured in the hybrid application;
when receiving a trigger operation of a user on a target function menu in the page, sending an access request corresponding to the target function menu to a server, wherein the access request carries function parameters of the target function menu;
receiving a target function link returned by the server according to the function parameter of the access request;
and displaying a target page corresponding to the target function menu according to the target function link.
2. The method of claim 1, wherein before displaying at least one function menu corresponding to at least one function parameter in a page of the hybrid application according to the at least one function parameter configured in the hybrid application, the method further comprises:
when the hybrid application is initialized, acquiring at least one function parameter corresponding to the user account from the server according to the user account of the user logging in the hybrid application, wherein the user account is a user account in a white list of a function menu corresponding to the at least one function parameter.
3. The method of claim 2, wherein the target function menu is a debug function menu, and the target function link is a debug function link corresponding to the debug function menu; correspondingly, the displaying the target page corresponding to the target function menu according to the target function link includes:
and displaying a debugging page corresponding to the debugging function menu through a debugging console Vconsole and the debugging function link, wherein the debugging page comprises analysis data obtained by analyzing the production environment of the hybrid application through the Vconsole.
4. The method of claim 1, wherein after displaying the target page corresponding to the target function menu according to the target function link, the method comprises:
and updating the target function link corresponding to the target function menu in a local cache of the terminal.
5. A method for accessing a function menu of a hybrid application is applied to a server and comprises the following steps:
receiving an access request sent by a terminal, wherein the access request is used for requesting to access a target function menu triggered by a user in a page of a hybrid application, and the access request carries function parameters of the target function menu;
determining a target function link corresponding to the function parameter of the target function menu from a corresponding relation between a function link and a function parameter which is configured in advance in the server according to the function parameter carried by the access request;
and sending the target function link to a terminal.
6. The method of claim 5, wherein the method further comprises:
and updating the corresponding relation between the function link and the function parameter configured in the server.
7. A function menu access apparatus for a hybrid application, the apparatus being applied in a terminal, comprising:
the menu display module is used for displaying at least one function menu corresponding to at least one function parameter in a page of the hybrid application according to the at least one function parameter configured in the hybrid application;
the access request sending module is used for sending an access request corresponding to a target function menu to a server when receiving a triggering operation of a user on the target function menu in the page, wherein the access request carries the function parameters of the target function menu;
the function link receiving module is used for receiving a target function link returned by the server according to the function parameter of the access request;
and the page display module is used for displaying a target page corresponding to the target function menu according to the target function link.
8. The apparatus of claim 7, wherein the apparatus further comprises:
an obtaining module, configured to obtain, when the hybrid application is initialized, at least one function parameter corresponding to a user account from the server according to the user account where the user logs in the hybrid application, where the user account is a user account in a white list of a function menu corresponding to the at least one function parameter.
9. The apparatus of claim 7, wherein the target function menu is a debug function menu, and the target function link is a debug function link corresponding to the debug function menu;
the page display module is used for displaying the debugging page corresponding to the debugging function menu through a debugging console Vconsole and the debugging function link, and the debugging page comprises analysis data obtained through analyzing the production environment of the hybrid application through the Vconsole.
10. The apparatus of claim 7, wherein the apparatus further comprises:
and the function link updating module is used for updating the target function link corresponding to the target function menu in the local cache of the terminal.
11. A function menu access apparatus for a hybrid application, the apparatus being applied in a server, comprising:
an access request receiving module, configured to receive an access request sent by a terminal, where the access request is used to access a target function menu triggered by a user in a page of a hybrid application, and the access request carries function parameters of the target function menu;
a determining module, configured to determine, according to the function parameter carried by the access request, a target function link corresponding to the function parameter of the target function menu from a correspondence between a function link and a function parameter pre-configured in the server;
and the function link sending module is used for sending the target function link to a terminal.
12. The apparatus of claim 11, wherein the apparatus further comprises:
and the configuration updating module is used for updating the corresponding relation between the function link and the function parameter configured in the server.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of accessing a menu of functions of a hybrid application of any of claims 1 to 6 when executing the computer program.
14. A computer-readable storage medium storing a computer program for executing the function menu access method of the hybrid application according to any one of claims 1 to 6.
CN202111263595.6A 2021-10-28 2021-10-28 Function menu access method and device for hybrid application Pending CN113971257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111263595.6A CN113971257A (en) 2021-10-28 2021-10-28 Function menu access method and device for hybrid application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111263595.6A CN113971257A (en) 2021-10-28 2021-10-28 Function menu access method and device for hybrid application

Publications (1)

Publication Number Publication Date
CN113971257A true CN113971257A (en) 2022-01-25

Family

ID=79588793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111263595.6A Pending CN113971257A (en) 2021-10-28 2021-10-28 Function menu access method and device for hybrid application

Country Status (1)

Country Link
CN (1) CN113971257A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745357A (en) * 2022-04-08 2022-07-12 中国银行股份有限公司 Method and device for acquiring external link address
CN115865436A (en) * 2022-11-22 2023-03-28 平安银行股份有限公司 Multi-application multi-page authority management method and device and computer equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745357A (en) * 2022-04-08 2022-07-12 中国银行股份有限公司 Method and device for acquiring external link address
CN115865436A (en) * 2022-11-22 2023-03-28 平安银行股份有限公司 Multi-application multi-page authority management method and device and computer equipment
CN115865436B (en) * 2022-11-22 2024-04-12 平安银行股份有限公司 Multi-application multi-page authority management method and device and computer equipment

Similar Documents

Publication Publication Date Title
US9448776B1 (en) Method and apparatus for converting a website into a native mobile application
US8849985B1 (en) On-the-fly instrumentation of Web applications, Web-pages or Web-sites
US10880227B2 (en) Apparatus, hybrid apparatus, and method for network resource access
US8285813B1 (en) System and method for emulating different user agents on a server
US7958232B1 (en) Dashboard for on-the-fly AJAX monitoring
US8639743B1 (en) System and method for on-the-fly rewriting of JavaScript
US8527860B1 (en) System and method for exposing the dynamic web server-side
US9858094B2 (en) Monitoring and actuation of view controller parameters to reach deep states without manual developer intervention
US9471704B2 (en) Shared script files in multi-tab browser
CN108415804B (en) Method for acquiring information, terminal device and computer readable storage medium
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
CN113971257A (en) Function menu access method and device for hybrid application
GB2589658A (en) Method and apparatus for running an applet
US10491629B2 (en) Detecting sensitive data sent from client device to third-party
CN110598135A (en) Network request processing method and device, computer readable medium and electronic equipment
CN112395027B (en) Widget interface generation method and device, storage medium and electronic equipment
CN112114890A (en) Method, device and equipment for processing small program and storage medium
CN108319474B (en) Page information generation method, device and equipment
CN109725887B (en) Data interaction method and device based on message research and development framework and terminal equipment
CN106557411B (en) Method and system for testing Hybrid application in Android system
CN113360377A (en) Test method and device
CN113609417A (en) Method, device, equipment and medium for processing mobile terminal page
US8938491B1 (en) System and method for secure binding of client calls and server functions
CN116302895A (en) User behavior collection method, device, equipment and medium based on Javascript
CN114385124A (en) Independent page jumping method, device and equipment based on Vue framework

Legal Events

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