A method, apparatus, and medium for configuring software functions
By detecting the acquisition instructions of the target object, finding and obtaining functional components, the problem of poor experience in the existing technology is solved, and flexible configuration of functions and improvement of user experience is achieved.
Patent Information
- Application Number
- CN202210562989.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-05-23
AI Technical Summary
In the existing software design, the target object can only choose one version of the software product, which leads to a poor experience because it cannot flexibly obtain separate functions.
By detecting the acquisition instructions of the target object, finding the corresponding functional components, and obtaining and building interfaces in the database to realize on-demand configuration of functions.
It improves the user experience of the target object, allows flexible acquisition of required functions without obtaining unnecessary functions, and improves the user experience.
Smart Images

Figure CN115048135B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of software, and in particular to a method, device, and medium for configuring software functions. Background Art
[0002] In current software design, software products are divided into different versions, and corresponding interfaces for different versions of software products are directly designed at the front end. Each version of the software product has fixed functions, and these functions are reflected through the interface. For example, the same software product is divided into a regular version and a premium version. The regular version of the software product corresponds to some basic functions, while the premium version of the software product corresponds to some other additional functions. The target object can obtain the corresponding version of the software product according to actual needs.
[0003] However, this solution has certain drawbacks. When the target object obtains the software product, it can only select one version, that is, it can only obtain the functions corresponding to the software product of that version. If the target object needs to use one of the functions in another version, it can only obtain all the functions corresponding to the entire version, which will result in a poor experience for the target object.
[0004] Therefore, how to improve the experience of the target object is an urgent problem to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a method, device, and medium for configuring software functions to improve the experience of the target object.
[0006] To solve the above technical problems, this application provides a method for configuring software functions, including:
[0007] Detect the acquisition instructions of the target object for each function in the software;
[0008] If the acquisition instruction is detected, find the function corresponding to the acquisition instruction;
[0009] Obtain the target component corresponding to the function; wherein, each function is pre-stored in the database in the form of a component, and the target component is one or more of the components;
[0010] Build an interface according to the target component.
[0011] Preferably, the function includes: a parent function and sub-functions; wherein, the parent function corresponds to multiple sub-functions;
[0012] The obtaining the target component corresponding to the function includes:
[0013] Obtain the target component of the basic sub-function in the parent function;
[0014] If the acquisition instruction indicates that other sub - functions need to be acquired, then acquire the target component corresponding to the corresponding sub - function.
[0015] Preferably, the software includes multiple versions, and among them, the functions corresponding to different versions of the software are not exactly the same.
[0016] Preferably, the multiple versions of the software have different levels; among them, the functions corresponding to the version with a higher level cover the functions corresponding to the version with a lower level.
[0017] Preferably, after detecting the acquisition instruction and finding the function corresponding to the acquisition instruction, it further includes:
[0018] If it is detected that the target object already has the function corresponding to the acquisition instruction, then stop acquiring the corresponding target component and return a prompt message.
[0019] Preferably, after building the interface according to the target component, it further includes:
[0020] Load the historical data of the corresponding function.
[0021] Preferably, after building the interface according to the target component, it further includes:
[0022] Render the interface according to the rendering parameters predefined for the target component.
[0023] To solve the above - mentioned technical problems, the present application also provides a software function configuration device, including:
[0024] A detection module, configured to detect the acquisition instructions of the target object for each function in the software;
[0025] A search module, configured to search for the function corresponding to the acquisition instruction if the acquisition instruction is detected;
[0026] An acquisition module, configured to acquire the target component corresponding to the function; wherein, each function is pre - stored in a database in the form of a component, and the target component is one or more of the components;
[0027] A building module, configured to build an interface according to the target component.
[0028] To solve the above - mentioned technical problems, the present application also provides a software function configuration device, including: a memory, configured to store a computer program;
[0029] A processor, configured to implement the steps of the above - mentioned software function configuration method when executing the computer program.
[0030] To solve the above technical problems, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above software function configuration method are implemented.
[0031] For the software function configuration method provided by the present application, a software has multiple functions. After a target object has the software, it may need to obtain some functions of the software. Therefore, it is necessary to detect the acquisition instructions of the target object for each function in the software; if an acquisition instruction is detected, the function corresponding to the acquisition instruction is searched. Each function is pre-stored in a database in the form of components. After it is clear which functions the target object wants to obtain, the target components corresponding to the functions are obtained, where the target components are one or more of the components. After obtaining the target components, an interface is built according to the target components, and the target object can operate on the interface with the corresponding functions. The software function configuration method provided by the present application can obtain only the corresponding function when the target object needs to use a function in the software, without obtaining other unnecessary functions, bringing a better experience to the target object.
[0032] The present application further provides a software function configuration device and a computer-readable storage medium, which correspond to the above method, so they have the same beneficial effects as the above method. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0034] Figure 1 It is a flowchart of a software function configuration method provided by an embodiment of the present application;
[0035] Figure 2 It is a software development flowchart provided by an embodiment of the present application;
[0036] Figure 3 It is a flowchart of building an interface provided by an embodiment of the present application;
[0037] Figure 4 It is a corresponding relationship diagram between an interface and functions provided by an embodiment of the present application;
[0038] Figure 5 It is a corresponding relationship diagram between different versions of software and each function provided by an embodiment of the present application;
[0039] Figure 6 It is a structural diagram of a software function configuration device provided by an embodiment of the present application;
[0040] Figure 7 This is a structural diagram of a configuration device for software functions provided by another embodiment of the present application. Specific implementation manners
[0041] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0042] The core of the present application is to provide a method, device, and medium for configuring software functions to improve the experience of the target object.
[0043] To enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation manners.
[0044] The front-end device for the display interface can be a terminal, and the terminal includes but is not limited to various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. At present, the functions of different versions of software are fixed, which brings a bad user experience. Therefore, the present application provides a method for configuring software functions. Figure 1 This is a flowchart of a method for configuring software functions provided by an embodiment of the present application; as Figure 1 shown, the method includes the following steps:
[0045] S10: Detect the acquisition instructions of the target object for each function in the software.
[0046] Generally, after the target object can first obtain some basic functions of the software, it can then issue acquisition instructions to obtain other functions. The target object can also only have a framework of the software, and this framework does not include any functions. The target object can directly obtain the functions it needs. The type of the software is not limited here. It can be a general shopping software, etc. The interface of the software is not limited to the web interface, and can also be an application (APP), h5, mini-program, etc.
[0047] S11: If an acquisition instruction is detected, find the function corresponding to the acquisition instruction.
[0048] The acquisition instruction corresponds to the function. After detecting the acquisition instruction, the corresponding function can be found in the pre-defined corresponding relationship. The type of the acquisition instruction is not limited, and the way for the target object to send the acquisition instruction is not required either. Generally, the acquisition instruction can be sent through the interface of the software itself.
[0049] S12: Obtain the target component corresponding to the function; among them, each function is pre-stored in the database in the form of a component, and the target component is one or more of the components.
[0050] The target component is the component obtained by the target object. When designing the software, each function is saved in the database (Data Base, DB) in the form of a component. When there is an acquisition instruction to obtain a component, the corresponding target component can be directly obtained from the database. After defining the original small-unit components as components with business meanings, they can be directly used when building the interface.
[0051] S13: Build the interface according to the target component.
[0052] Generally, the target object will have an original interface and obtain other functions on the basis of the original interface; after obtaining the target component, a new interface is rebuilt according to the target component, and the new function corresponding to the target component can be realized on the new interface. What is important in the building process is the definition of the target component, the description of special differences and agreements, so as to ensure that when building the interface, it is clear how to render and use. And these definitions should not be limited to a specific platform or language. If there are special features, they can also be clearly defined in the component to ensure normal building.
[0053] In the early design, each element can be disassembled into the smallest unit components first. Simple elements such as input boxes, complex ones such as time boxes, or trees, etc. It can be disassembled very finely or relatively coarsely, depending on the actual needs. The finer the disassembly, the higher the reuse degree, and vice versa, but the coarser disassembly is easier to implement. When building the interface, various components need to be used. Components are also called front-end controls (widgets). The smallest unit components specifically include: such as input (input box), Radio (radio box), Checkbox (checkbox), Select (drop-down box), date_picker (time control), Switch (switch), etc. Components can be HTML standard components or custom components. The components saved in the database are generally the components that have been combined or defined by these smallest unit components through metadata in advance. The defined components can directly implement the corresponding functions. When building the interface, the defined components are directly used. When sending the acquisition instruction, the target object can request the interface url and access the database according to the urlkey in the url to obtain the corresponding target component.
[0054] Figure 2A software development flow chart provided by an embodiment of this application; as Figure 2 shown, designers design components and define metadata, combine or define the components through the metadata to achieve corresponding functions, then pass the designed metadata and components into the configuration center through the configuration management platform, and finally store them in the DB. The target object accesses the software through APP, applet, H5, etc., and stores relevant data in the database. Figure 3 A flow chart for building an interface provided by an embodiment of this application; as Figure 3 shown, the target object can request the url in different ways at the front end, then the back-end server starts to obtain corresponding data in the database DB, and finally returns all the obtained interface data to the WEB server to build the interface, where the business data is all the data to be filled on the interface, including components and various rendering parameters, etc. Figure 4 A corresponding relationship diagram between an interface and functions provided by an embodiment of this application; as Figure 4 shown, different interfaces include different components. The first product interface includes: 1. Unpaid orders, 2. Shipped orders, 3. Received orders, 5. Extend the delivery time, 6. Handling methods for insufficient product specifications and inventory; while the second product interface includes: 1. Unpaid orders, 2. Shipped orders, 4. Overseas shopping order settings. The corresponding components for the corresponding functions will be displayed on the corresponding interface. The following will be described in the form of a table Figure 4 as follows.
[0055] Table 1 Set of each minimum unit component
[0056] wid widget name 1 Input Simple Input Box Input 2 Radio Radio Button Form (Radio) 3 Switch Switch 4 InputTimeHour Time Component - Hour (InputTime) 5 InputTimeDay Time Component - Days (InputTime) 6 Checkbox Checkbox
[0057] Table 2 Define components (bid) through metadata
[0058]
[0059] Table 3 Interface (pid)
[0060] pid pageName 1 First Product Interface 2 Second Product Interface
[0061] Table 4 Corresponding relationship between interface and metadata
[0062] id pid bid 1 1 1 2 1 2 3 1 3 4 1 5 5 1 6 6 2 1 7 2 2 8 2 4
[0063] As shown in Tables 1 to 4, each simple component is defined through metadata, so that when the target object uses it, it can clearly know what the role of the component is. Both the first product interface and the second product interface can select the defined components. As Figure 4 shown, it represents the corresponding relationship between the interface and the components, and finally obtains the corresponding relationship as Figure 4 shown.
[0064] The configuration method of software functions provided by the embodiments of the present application. A software has multiple functions. After a target object owns the software, it may need to obtain some functions of the software. Therefore, it is necessary to detect the acquisition instructions of each function in the software by the target object. If an acquisition instruction is detected, the function corresponding to the acquisition instruction is searched for. Each function is stored in a database in the form of components in advance. After it is clear which functions the target object wants to obtain, the target components corresponding to the functions are obtained, where the target components are one or more of the components. After obtaining the target components, an interface is built according to the target components, and the target object can operate on the interface with the corresponding functions. The configuration method of software functions provided by the embodiments of the present application enables the target object to only obtain the corresponding function when it needs to use a function in the software, without obtaining other unnecessary functions, bringing a better experience to the target object.
[0065] In practical applications, the target object needs to own the software first before it can obtain each function. When obtaining the software, some basic functions will be obtained. Since the requirements of different target objects are different, the types of functions obtained should also be different. For example, both a customer and a merchant obtain a software, but the functions required by the customer and the merchant are different. Therefore, the embodiments of the present application provide a solution. The software includes multiple versions, where the functions corresponding to different versions of the software are not exactly the same. In addition, the multiple versions of the software can have different levels; among them, the functions corresponding to the version with a higher level cover the version with a lower level. For example, a software can be divided into a customer version and a merchant version. When the target object obtains the software, it can directly obtain the corresponding version, and then can obtain the corresponding functions based on this version. Both the customer version and the merchant version can be set with multiple versions. For example, the customer version has a regular version and a premium version, and the target object can obtain them according to actual needs. In addition, for special target objects, a dedicated customized version can also be set to meet special needs. The solution provided by the embodiments of the present application enables different versions of the software to have different functions, and the target object can obtain the corresponding version according to actual needs, improving the experience of the target object. In addition, if the target object wants to upgrade from the regular version to the premium version, it actually obtains the components that the regular version does not have compared to the premium version.
[0066] When designing the software, a function may be composed of multiple sub-functions. Therefore, the functions provided by the embodiments of the present application include: a parent function and sub-functions; where the parent function corresponds to multiple sub-functions; obtaining the target components corresponding to the function includes: obtaining the target components of the basic sub-functions in the parent function; if the acquisition instruction indicates that other sub-functions need to be obtained, the target components of the corresponding sub-functions are obtained.
[0067] Figure 5A correspondence diagram between different versions of software and various functions provided by the embodiments of the present application; only one example provided by the embodiments of the present application is shown in the figure, which does not limit other ways. For example, Figure 5 As shown, taking a shopping software as an example, the software includes multiple versions, including the general version, the business district version, the premium version, the customized version, etc. Different versions correspond to different mother functions, including general functions, overseas shopping subsidiary functions, invoice functions, customization functions, etc. Different versions of the software correspond to different mother functions respectively. For example, after obtaining the general version of the software, the target object has the general functions and overseas shopping subsidiary functions. Each mother function corresponds to multiple sub-functions respectively, including: order automatic closing time, automatic after-sales, real-name authentication - identity, overseas shopping - agreement, overseas shopping and non-overseas shopping settlement together, whether overseas shopping restricts shipping from the same warehouse, electronic invoice, invoice issuing entity, customization options and other selection functions; the sub-functions are directly displayed on the interface. For example, after obtaining the general version of the software, the target object has the general functions and overseas shopping subsidiary functions, and the general functions include the selection function of the order automatic closing time. The target object can directly select the order automatic closing time on the interface. In the above text, after the target object obtains the software of the corresponding version, it has the corresponding functions. However, the target object may need to obtain other functions. For example, after obtaining the general version of the software, the target object also needs to obtain the invoice function. Assuming that the basic sub-function of the invoice function only includes the selection function of the electronic invoice, then only the selection function of the electronic invoice can be obtained after obtaining the invoice function. If the target object also wants to obtain the selection function of the invoice issuing entity, it needs to be set separately in the acquisition instruction.
[0068] The functions in the solution provided by the embodiments of the present application include mother functions and sub-functions. When the target object obtains the functions, it can select the functions to be obtained according to actual needs. If the target object wants to obtain one of the mother functions, only the basic functions of the mother function will be obtained, and no other useless sub-functions will be attached. If other sub-functions need to be obtained, they can be set in the acquisition instruction, which provides convenience for the target object.
[0069] In actual application, the target object may repeatedly obtain some functions. Therefore, the embodiments of the present application provide a solution. After finding the function corresponding to the acquisition instruction, it further includes: if it is detected that the target object already has the function corresponding to the acquisition instruction, stop acquiring the corresponding target component and return a prompt message. This can avoid repeatedly acquiring components and at the same time prompt the target object that it already has the component, preventing the target object from acquiring it again.
[0070] In some software with historical data, such as shopping software, after the target object obtains a new function, the historical data corresponding to the function is generally stored in a database. Therefore, after building the interface according to the target component, it also includes: loading the historical data of the corresponding function. For example, in some shopping software, before the target object obtains the order classification function, there may already be multiple orders. Therefore, it is necessary to load this historical data to classify the orders and improve the usage experience of the target object.
[0071] After building the interface according to the target component, it is necessary to render each component of the interface. Therefore, the interface can also be rendered according to the rendering parameters predefined by the target component. Since different components use different rendering parameters, it is necessary to find the corresponding rendering parameters to ensure the rendering effect. Define and describe clearly the rendering parameters (features, attributes, methods, and parameter structures) of the components according to the display and rendering requirements of the components, so as to facilitate normal rendering and use on different terminals (web\app\mini-program\h5, etc.). For cross-platform and cross-terminal purposes, these rendering parameters do not contain restricted languages to avoid non-support for restricted languages on different terminals. However, if it is necessary to support special terminals, it is necessary to describe or mark in the features, and each terminal makes compatibility according to the description or mark. This step has nothing to do with the specific front-end (js / app) language, but only defines the standards of the components, and each terminal processes different components according to the standards.
[0072] In the above embodiments, the configuration method of software functions is described in detail. The present application also provides corresponding embodiments of the configuration device for software functions. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is from the perspective of functional modules, and the other is from the perspective of hardware.
[0073] From the perspective of functional modules, this embodiment provides a configuration device for software functions. Figure 6 For the structure diagram of the configuration device for software functions provided by the embodiments of the present application, as Figure 6 shown, the device includes:
[0074] A detection module 10, configured to detect the acquisition instructions of the target object for each function in the software;
[0075] A search module 11, configured to search for the function corresponding to the acquisition instruction if the acquisition instruction is detected;
[0076] An acquisition module 12, configured to acquire the target component corresponding to the function; wherein, each function is pre-stored in the database in the form of a component, and the target component is one or more of the components;
[0077] A building module 13, configured to build an interface according to the target component.
[0078] Since the embodiments of the apparatus part correspond to those of the method part, please refer to the descriptions of the embodiments of the method part for the embodiments of the apparatus part, which will not be elaborated here.
[0079] The software function configuration apparatus provided in this embodiment corresponds to the above method, so it has the same beneficial effects as the above method.
[0080] From a hardware perspective, this embodiment provides another software function configuration apparatus. Figure 7 It is a structural diagram of the software function configuration apparatus provided in another embodiment of the present application. As Figure 7 shown, the software function configuration apparatus includes: a memory 20 for storing computer programs;
[0081] a processor 21 for implementing the steps of the software function configuration method mentioned in the above embodiments when executing the computer programs.
[0082] The software function configuration apparatus provided in this embodiment may include but is not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.
[0083] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may further include an artificial intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.
[0084] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices and flash storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201. After the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the configuration method of the software function disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be transient storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the configuration method of the software function.
[0085] In some embodiments, the software function configuration device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0086] Those skilled in the art can understand that the structure shown in the figure does not constitute a limitation on the software function configuration device, and it may include more or fewer components than those shown in the figure.
[0087] The software function configuration device provided by the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: the configuration method of the software function.
[0088] The software function configuration device provided by this embodiment corresponds to the above method, so it has the same beneficial effects as the above method.
[0089] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the steps recorded in the above method embodiment.
[0090] It can be understood that if the methods in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0091] The computer-readable storage medium provided in this embodiment corresponds to the above method, so it has the same beneficial effects as the above method.
[0092] The above has introduced in detail a software function configuration method, device, and medium provided by the present application. The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
[0093] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device including the above element.
Claims
1. A configuration method for software functions, characterized in that, The interface of the software includes web interfaces, applications, h5, and applets, including: Detecting an acquisition instruction of a target object for each function in the software; If the acquisition instruction is detected, searching for the function corresponding to the acquisition instruction, where the function includes: a parent function and sub-functions; among them, the parent function corresponds to multiple sub-functions; Obtaining a target component corresponding to the function; where each function is pre-stored in a database in the form of a component, and the target component is one or more of the components; Among them, obtaining the target component corresponding to the function includes: obtaining the target component of the basic sub-function in the parent function; if the acquisition instruction indicates that other sub-functions need to be obtained, obtaining the target component of the corresponding sub-function; Building an interface according to the target component; Among them, the target object has an original interface, and the original interface includes the basic functions in the software. Building the interface according to the target component includes: rebuilding a new interface on the basis of the original interface according to the target component, so that the new functions corresponding to the target component can be implemented on the new interface.
2. The configuration method of the software function according to claim 1, wherein The software includes multiple versions, where the functions corresponding to different versions of the software are not completely the same.
3. The configuration method of the software function according to claim 2, wherein The multiple versions of the software have different levels; among them, the functions corresponding to the version with a higher level cover the functions corresponding to the version with a lower level.
4. The configuration method of the software function according to any one of claims 1 to 3, characterized in that, After the step of if the acquisition instruction is detected, searching for the function corresponding to the acquisition instruction, it further includes: If it is detected that the target object already has the function corresponding to the acquisition instruction, stopping obtaining the corresponding target component and returning a prompt message.
5. The configuration method of the software function according to claim 4, characterized in that, After building the interface according to the target component, it further includes: Loading the historical data of the corresponding function.
6. The configuration method of the software function according to claim 5, wherein, After building the interface according to the target component, it further includes: Rendering the interface according to the rendering parameters predefined by the target component.
7. A configuration device for software functions, characterized in that, The interface of the software includes web interfaces, applications, h5, and applets, including: A detection module for detecting an acquisition instruction of a target object for each function in the software; A search module for searching for the function corresponding to the acquisition instruction if the acquisition instruction is detected, where the function includes: a parent function and sub-functions; among them, the parent function corresponds to multiple sub-functions; An acquisition module for obtaining a target component corresponding to the function; where each function is pre-stored in a database in the form of a component, and the target component is one or more of the components; Among them, the acquisition module is specifically used for: obtaining the target component of the basic sub-function in the parent function; if the acquisition instruction indicates that other sub-functions need to be obtained, obtaining the target component of the corresponding sub-function; A building module for building an interface according to the target component; Among them, the target object has an original interface, and the original interface includes basic functions in the software. The building module is specifically configured to: rebuild a new interface on the basis of the original interface according to the target component, so as to implement the new function corresponding to the target component on the new interface.
8. A configuration device for software functions, characterized in that, It includes a memory for storing a computer program; a processor for implementing the steps of the configuration method of the software function according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps of the configuration method of the software function according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Component-based construction method and device for applet, equipment and medium
CN114489647A