Shopping bag generation method, device, electronic device and storage medium
By determining the entrance identification and generation environment in the live streaming cargo scenario, obtaining configuration parameters and interaction parameters, and generating shopping bags, the problem of independent design of each entrance in the existing technology is solved, reducing customization costs and improving efficiency.
Patent Information
- Application Number
- CN202310189800.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2043-02-23
AI Technical Summary
In the live streaming scenario, the existing technology requires independent shopping bag design for each entrance, resulting in high customization costs and waste of labor and time costs.
By determining the entrance mark in the shopping bag generation instruction, the generation environment of the shopping bag to be generated is determined, and configuration parameters and interactive parameters are obtained based on the generation environment and shopping bag generation instruction, and shopping bags are generated to ensure the high reusability of the shopping bag view.
It reduces the cost of customization of shopping bags, improves the efficiency of shopping bag generation, reduces labor and time costs, and achieves high reusability of shopping bag view materials.
Smart Images

Figure CN117745369B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shopping bag generation, and particularly relates to a shopping bag generation method, device, electronic device and storage medium. Background Art
[0002] In the live streaming e-commerce scenario, the shopping bag is the main scenario for user consumption, so the shopping bag is also a functional point that users value more. To facilitate user consumption, for the shopping bag lists entered through different entrances, their data and view displays are quite different. Currently, the above effect is usually achieved by customizing an exclusive shopping bag page for each entrance. However, this method requires customization for each individual entrance once, resulting in a relatively high customization cost. At the same time, when a certain element on the page needs to be changed, it is also necessary to modify the shopping bags customized for each entrance separately, causing a waste of relatively high labor costs and time costs. Summary of the Invention
[0003] In order to solve the above problems existing in the prior art, the embodiments of the present application provide a shopping bag generation method, device, electronic device and storage medium, which can ensure high reusability of the shopping bag view, and then there is no need to design independent shopping bags for each generation entrance, reducing the customization cost of the shopping bag.
[0004] In a first aspect, an embodiment of the present application provides a shopping bag generation method, which includes:
[0005] Determine the entrance identifier of the shopping bag generation instruction, where the entrance identifier is used to identify the entrance that sends the shopping bag generation instruction;
[0006] Determine the generation environment of the shopping bag to be generated according to the entrance identifier;
[0007] Obtain configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, where the configuration parameters are used to identify the interface elements included in the shopping bag to be generated and the view configuration of the interface elements, and the interaction parameters are used to identify the interaction logic of the shopping bag to be generated;
[0008] Generate the shopping bag to be generated according to the configuration parameters, interaction parameters and entrance identifier.
[0009] In a possible implementation manner, obtaining the configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction includes:
[0010] Determine the shopping bag type of the shopping bag to be generated according to the shopping bag generation instruction;
[0011] Determine the environment configuration pool according to the generation environment, where the environment configuration pool includes at least one environment configuration file, and each environment configuration file in the at least one environment configuration file corresponds to a shopping bag type;
[0012] Determine a target environment configuration file in at least one environment configuration file according to the shopping bag type of the shopping bag to be generated, where the shopping bag type corresponding to the target environment configuration file is the same as the shopping bag type of the shopping bag to be generated;
[0013] Analyze the target environment configuration file to obtain configuration parameters and interaction parameters.
[0014] In a possible implementation manner, generating the shopping bag to be generated according to the configuration parameters, interaction parameters, and entry identifier includes:
[0015] Generate a public view configuration and a specific view configuration according to the configuration parameters, where the common view configuration is used to record the public first view elements and the first display rules, and the first display rules are used to record the display positions and display conditions of the first view elements in the shopping bag to be generated. The specific view configuration is used to record the second view elements unique to the shopping bag to be generated and the second display rules, and the second display rules are used to record the display positions and display conditions of the second view elements in the shopping bag to be generated;
[0016] Obtain a first view material library according to the entry identifier, where the first view material library is used to store the view materials of the merchant;
[0017] Obtain a target view material group from the first view material library and the second view material library according to the public view configuration and the specific view configuration, where the target view material group includes at least one constituent view material, and the second view material library is used to store the view materials of the shopping bag to be generated;
[0018] Typeset at least one constituent view material according to the public view configuration and the specific view configuration, and associate at least one constituent view material according to the interaction parameters to generate the shopping bag to be generated.
[0019] In a possible implementation manner, typesetting at least one constituent view material according to the public view configuration and the specific view configuration, and associating at least one constituent view material according to the interaction parameters to generate the shopping bag to be generated includes:
[0020] Determine at least one main page view material from at least one constituent view material according to the public view configuration and the specific view configuration;
[0021] Typeset at least one main page view material according to the public view configuration and the specific view configuration to obtain the main page of the shopping bag to be generated;
[0022] Associate at least one event view material with the main page according to interaction parameters, and set the display rules of at least one event view material to generate a shopping bag to be generated, where at least one event view material is the view material remaining after removing at least one main page view material from at least one constituent view material.
[0023] In a possible implementation manner, the entry identifier includes a merchant identifier. Based on this, according to the entry identifier, obtain a first view material library, including:
[0024] Query the merchant database according to the merchant identifier to obtain the first view material library.
[0025] In a possible implementation manner, the first view elements recorded in the public view configuration include: title, subtitle, and function area.
[0026] In a second aspect, an embodiment of the present application provides a shopping bag generation device, including:
[0027] An analysis module, configured to determine the entry identifier of the shopping bag generation instruction, where the entry identifier is used to identify the entry for sending the shopping bag generation instruction;
[0028] A generation module, configured to determine the generation environment of the shopping bag to be generated according to the entry identifier, obtain configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, where the configuration parameters are used to identify the interface elements included in the shopping bag to be generated and the view configuration of the interface elements, the interaction parameters are used to identify the interaction logic of the shopping bag to be generated, and generate the shopping bag to be generated according to the configuration parameters, interaction parameters, and entry identifier.
[0029] In a possible implementation manner, in terms of obtaining configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, the generation module is specifically configured to:
[0030] Determine the shopping bag type of the shopping bag to be generated according to the shopping bag generation instruction;
[0031] Determine an environment configuration pool according to the generation environment, where the environment configuration pool includes at least one environment configuration file, and each environment configuration file in the at least one environment configuration file corresponds to a shopping bag type;
[0032] Determine a target environment configuration file from the at least one environment configuration file according to the shopping bag type of the shopping bag to be generated, where the shopping bag type corresponding to the target environment configuration file is the same as the shopping bag type of the shopping bag to be generated;
[0033] Analyze the target environment configuration file to obtain configuration parameters and interaction parameters.
[0034] In a possible implementation manner, in terms of generating a shopping bag to be generated according to configuration parameters, interaction parameters, and an entry identifier, the generating module is specifically configured to:
[0035] Generate a public view configuration and a specific view configuration according to the configuration parameters, where the public view configuration is used to record public first view elements and a first display rule, and the first display rule is used to record the display position and display conditions of the first view elements in the shopping bag to be generated; the specific view configuration is used to record second view elements unique to the shopping bag to be generated and a second display rule, and the second display rule is used to record the display position and display conditions of the second view elements in the shopping bag to be generated;
[0036] Obtain a first view material library according to the entry identifier, where the first view material library is used to store view materials of a merchant;
[0037] Obtain a target view material group from the first view material library and a second view material library according to the public view configuration and the specific view configuration, where the target view material group includes at least one constituent view material, and the second view material library is used to store view materials of the shopping bag to be generated;
[0038] Typeset at least one constituent view material according to the public view configuration and the specific view configuration, and associate at least one constituent view material according to the interaction parameters to generate the shopping bag to be generated.
[0039] In a possible implementation manner, in terms of typesetting at least one constituent view material according to the public view configuration and the specific view configuration, and associating at least one constituent view material according to the interaction parameters to generate the shopping bag to be generated, the generating module is specifically configured to:
[0040] Determine at least one main page view material from at least one constituent view material according to the public view configuration and the specific view configuration;
[0041] Typeset at least one main page view material according to the public view configuration and the specific view configuration to obtain the main page of the shopping bag to be generated;
[0042] Associate at least one event view material with the main page according to the interaction parameters, and set the display rule of at least one event view material to generate the shopping bag to be generated, where at least one event view material is the view material remaining after removing at least one main page view material from at least one constituent view material.
[0043] In a possible implementation manner, the entry identifier includes a merchant identifier. Based on this, in terms of obtaining the first view material library according to the entry identifier, the generating module is specifically configured to:
[0044] Query the merchant database based on the merchant identifier to obtain the first view material library.
[0045] In a possible implementation manner, the first view elements recorded in the public view configuration include: a title, a subtitle, and a function area.
[0046] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory so that the electronic device executes the method as in the first aspect.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method as in the first aspect.
[0048] In a fifth aspect, an embodiment of the present application provides a computer program product, and the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer is operable to enable the computer to execute the method as in the first aspect.
[0049] Implementing the embodiments of the present application has the following beneficial effects:
[0050] In the embodiments of the present application, by determining the entry identifier included in the shopping bag generation instruction, the generation environment of the shopping bag to be generated is determined. Then, according to the generation environment and the shopping bag generation instruction, the corresponding configuration parameters and interaction parameters are matched, and the corresponding view materials are obtained from the general view material library through the configuration parameters, interaction parameters, and entry identifier to generate the shopping bag. Thus, by defining the corresponding configuration parameters and interaction parameters for each entry, the uniqueness of the shopping bag page generated by each entry can be ensured. At the same time, through the general view material library, all entries share the view materials, thus ensuring the high reusability of the shopping bag view materials. There is no need to perform independent shopping bag design for each generation entry, reducing the customization cost of the shopping bag. In addition, when it is necessary to change a certain element on the page, only the view materials in the view material library need to be changed, and then it can be applied to all entries, reducing the labor cost and time cost of shopping bag generation. Description of the Drawings
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are 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.
[0052] Figure 1Schematic diagram of the hardware structure of a shopping bag generation device provided by an embodiment of the present application;
[0053] Figure 2 Schematic diagram of the process of a shopping bag generation method provided by an embodiment of the present application;
[0054] Figure 3 Schematic diagram of the process of a method for generating a shopping bag to be generated according to configuration parameters, interaction parameters, and an entry identifier provided by an embodiment of the present application;
[0055] Figure 4 Schematic diagram of a viewModel role provided by an embodiment of the present application;
[0056] Figure 5 Schematic diagram of a view role provided by an embodiment of the present application;
[0057] Figure 6 Schematic diagram of the process of shopping bag generation based on Factory provided by an embodiment of the present application;
[0058] Figure 7 Block diagram of the functional modules of a shopping bag generation device provided by an embodiment of the present application;
[0059] Figure 8 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0060] 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 part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0061] The terms "first", "second", "third", "fourth", etc. in the specification, claims, and accompanying drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices.
[0062] References herein to "embodiments" mean that a particular feature, result, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0063] Refer to Figure 1 , Figure 1 which is a schematic hardware structure diagram of a shopping bag generation device provided for an embodiment of the present application. The shopping bag generation device 100 includes at least one processor 101, a communication line 102, a memory 103, and at least one communication interface 104.
[0064] In this embodiment, the processor 101 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application solution.
[0065] The communication line 102 can include a path for transmitting information between the above components.
[0066] The communication interface 104 can be any transceiver-like device (such as an antenna, etc.) for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc.
[0067] The memory 103 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0068] In this embodiment, the memory 103 can exist independently and be connected to the processor 101 through the communication line 102. The memory 103 can also be integrated with the processor 101. The memory 103 provided in the embodiment of the present application generally can be non-volatile. Among them, the memory 103 is used to store computer-executable instructions for executing the solution of the present application, and is controlled by the processor 101 to execute. The processor 101 is used to execute the computer-executable instructions stored in the memory 103, so as to implement the method provided in the following embodiments of the present application.
[0069] In an alternative embodiment, the computer-executable instructions can also be referred to as application code, and the present application does not make specific limitations thereon.
[0070] In an alternative embodiment, the processor 101 can include one or more CPUs, such as Figure 1 CPU0 and CPU1 in
[0071] In an alternative embodiment, the shopping bag generating device 100 can include multiple processors, such as Figure 1 the processor 101 and the processor 107 in
[0072] In an alternative embodiment, if the shopping bag generating device 100 is a server, for example, it can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. Then the shopping bag generating device 100 can also include an output device 105 and an input device 106. The output device 105 communicates with the processor 101 and can display information in various ways. For example, the output device 105 can be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device 106 communicates with the processor 101 and can receive user input in various ways. For example, the input device 106 can be a mouse, a keyboard, a touch screen device, or a sensing device, etc.
[0073] The above-mentioned shopping bag generating device 100 can be a general-purpose device or a special-purpose device. The embodiments of the present application do not limit the type of the shopping bag generating device 100.
[0074] The following will describe a shopping bag generating method disclosed in the present application:
[0075] Refer to Figure 2 , Figure 2 which is a schematic flowchart of a shopping bag generating method provided by an embodiment of the present application. The shopping bag generating method includes the following steps:
[0076] 201: Determine the entry identifier of the shopping bag generation instruction.
[0077] In this embodiment, the entry identifier is used to identify the entry for sending the shopping bag generation instruction. Specifically, when the user terminal detects that the user clicks a button / virtual button associated with the shopping bag generation function, the user terminal obtains the identifier of the button / virtual button as the entry identifier and adds it to the shopping bag generation instruction and sends it to the server. Based on this, after receiving the shopping bag generation instruction, the server can analyze the instruction and then extract the entry identifier therein.
[0078] 202: Determine the generation environment of the shopping bag to be generated according to the entry identifier.
[0079] In this embodiment, the generation environment of the shopping bag to be generated is determined by the entry identifier, that is, the page environment where the user clicks the button / virtual button associated with the shopping bag generation function. Specifically, in this embodiment, each entry identifier can be pre-associated with a generation environment. Thus, after obtaining the entry identifier, the corresponding generation environment can be queried through the entry identifier.
[0080] 203: Obtain configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction.
[0081] In this embodiment, each generation environment corresponds to an environment configuration pool, which includes at least one environment configuration file, and each environment configuration file corresponds to a type of shopping bag. Exemplarily, each environment configuration file may include configuration parameters and interaction parameters. Among them, the configuration parameters are used to identify the interface elements included in the shopping bag to be generated and the view configurations of the interface elements, and the interaction parameters are used to identify the interaction logic of the shopping bag to be generated. That is, the configuration parameters are used to determine the page layout of the shopping bag to be generated and the view elements filled therein, and the interaction parameters are used to determine the interaction events in the shopping bag to be generated. For example, when clicking on a certain view element, what kind of interaction event will occur.
[0082] In this embodiment, it is possible to first determine the type of the shopping bag to be generated based on the shopping bag generation instruction, and then determine the environment configuration file of the same type in the environment configuration pool corresponding to the generation environment. Subsequently, analyze the environment configuration file to obtain the configuration parameters and interaction parameters therein.
[0083] 204: Generate the shopping bag to be generated according to the configuration parameters, interaction parameters, and entry identifier.
[0084] In this embodiment, a method for generating a shopping bag to be generated according to configuration parameters, interaction parameters, and an entry identifier is provided, specifically as Figure 3 shown:
[0085] 301: Generate a public view configuration and a specific view configuration according to the configuration parameters.
[0086] In this embodiment, the common view configuration is used to record the public first view elements and the first display rules. The first display rules are used to record the display positions and display conditions of the first view elements in the shopping bag to be generated. The specific view configuration is used to record the second view elements unique to the shopping bag to be generated and the second display rules. The second display rules are used to record the display positions and display conditions of the second view elements in the shopping bag to be generated.
[0087] Exemplarily, in this embodiment, the view data can be divided into two parts: a common part and a specific part. Among them, the common part may include: data that is mostly consistent, such as titles, subtitles, function areas, etc.; the specific part may include: data customized according to its own needs in different scenarios, as well as merchant data, such as data in a list.
[0088] Specifically, in this embodiment, it is possible to define a bizConfig role to control the display of data. At the same time, since the data in the specific part has different data sources and different display rules in different scenarios, different bizDataHandlers can be defined for processing. Among them, it is possible to first define a viewModel role to carry the data, and make the viewModel include a bizConfig part and a bizDataHandler part, as Figure 4 shown.
[0089] 302: Obtain the first view material library according to the entry identifier.
[0090] In this embodiment, the first view material library is used to store the view materials of merchants. Specifically, the entry identifier includes a merchant identifier. In this embodiment, when generating a shopping bag generation instruction, the merchant information of the page where the user clicks a button / virtual button associated with the shopping bag generation function can also be obtained to generate a corresponding merchant identifier. Then, after fusing the merchant representation and the entry identifier, it is associated into the shopping bag generation instruction.
[0091] 303: Obtain a target view material group from the first view material library and the second view material library according to the public view configuration and the specific view configuration.
[0092] In this embodiment, the target view material group includes at least one constituent view material. The second view material library is used to store the view materials of the shopping bag to be generated, which may include a public partial view and a specific partial view for composing the shopping bag.
[0093] 304: Typeset at least one constituent view material according to the public view configuration and the specific view configuration, and associate at least one constituent view material according to the interaction parameters to generate a shopping bag to be generated.
[0094] In this embodiment, at least one main page view material can be determined from at least one constituent view material according to the public view configuration and the specific view configuration. Then, at least one main page view material is typeset according to the public view configuration and the specific view configuration to obtain the main page of the shopping bag to be generated. Finally, at least one event view material is associated with the main page according to the interaction parameters, and the display rules of at least one event view material are set to generate a shopping bag to be generated, where at least one event view material is the view material remaining after removing at least one main page view material from at least one constituent view material.
[0095] Specifically, in this embodiment, the interaction parameters are used to define the behaviors and display rules of view elements in the shopping bag view. Among them, the display rule can be understood as: according to the rules of the view, the overall view is divided into functional areas one by one to facilitate the functions to be displayed in different scenario configurations, that is, the display rule defines the conditions under which the corresponding functional area is displayed and the rules of how to display. The behavior rule can be understood as: different scenarios perform different events for the same behavior, that is, it defines the events that will occur on the shopping bag page under a certain behavior operation. For example, events such as a secondary menu will pop up after clicking a certain view element.
[0096] In this embodiment, a view role can be defined to manage the rules defined by the interaction parameters, such as Figure 5As shown, a view can hold a collection of view items. Different scenarios configure the required functional views according to the config, and different scenarios can define bizEventHandler for event response.
[0097] Thus, in this embodiment, three roles related to the generation environment can be defined and generated for the shopping bag by configuring parameters and interaction parameters. Specifically, these three roles are: bizDataHandler: specific data processing, bizEventHandler: event processing, and bizConfig: common data and view configuration.
[0098] In this embodiment, these three roles can be unified and converged into a new role definition: Scene, representing different generation scenarios. At the same time, in order to provide highly configurable definitions and improve the efficiency of shopping bag generation, a Factory can also be defined to play the role of the creator. Thus, the process of shopping bag generation can be as Figure 6 shown, that is, first, the Factory corresponds to the Scene of the generation environment, and then the Scene creates bizConfig, bizDataHandler, and bizEventHandler according to the configuration parameters and interaction parameters. Finally, the entire Scene is injected into the viewController, and the viewController is responsible for allocating different roles to the viewModel and view to generate the shopping bag.
[0099] In summary, in the shopping bag generation method provided by the present invention, the generation environment of the shopping bag to be generated is determined by determining the entry identifier included in the shopping bag generation instruction. Then, according to the generation environment and the shopping bag generation instruction, the corresponding configuration parameters and interaction parameters are matched, and the corresponding view materials are obtained from the general view material library through the configuration parameters, interaction parameters, and entry identifier to generate the shopping bag. Thus, by defining the corresponding configuration parameters and interaction parameters for each entry, the uniqueness of the shopping bag page generated by each entry can be ensured. At the same time, through the general view material library, all entries share the view materials, thus ensuring the high reusability of the shopping bag view materials. There is no need to perform independent shopping bag design for each generation entry, reducing the customization cost of the shopping bag. In addition, when it is necessary to change a certain element on the page, only the view material in the view material library needs to be changed, and it can be applied to all entries, reducing the labor cost and time cost of shopping bag generation.
[0100] Refer to Figure 7 , Figure 7 which is the functional module composition block diagram of a shopping bag generation device provided by an embodiment of the present application. As Figure 7As shown, the shopping bag generation device 700 includes:
[0101] An analysis module 701 for determining an entry identifier of a shopping bag generation instruction, where the entry identifier is used to identify the entry for sending the shopping bag generation instruction;
[0102] A generation module 702 for determining a generation environment of a shopping bag to be generated according to the entry identifier, and obtaining configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, where the configuration parameters are used to identify interface elements included in the shopping bag to be generated and view configurations of the interface elements, the interaction parameters are used to identify the interaction logic of the shopping bag to be generated, and generating the shopping bag to be generated according to the configuration parameters, the interaction parameters, and the entry identifier.
[0103] In an embodiment of the present invention, in terms of obtaining configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, the generation module 702 is specifically configured to:
[0104] Determine the shopping bag type of the shopping bag to be generated according to the shopping bag generation instruction;
[0105] Determine an environment configuration pool according to the generation environment, where the environment configuration pool includes at least one environment configuration file, and each of the at least one environment configuration file corresponds to a shopping bag type;
[0106] Determine a target environment configuration file from the at least one environment configuration file according to the shopping bag type of the shopping bag to be generated, where the shopping bag type corresponding to the target environment configuration file is the same as the shopping bag type of the shopping bag to be generated;
[0107] Analyze the target environment configuration file to obtain configuration parameters and interaction parameters.
[0108] In an embodiment of the present invention, in terms of generating the shopping bag to be generated according to the configuration parameters, the interaction parameters, and the entry identifier, the generation module 702 is specifically configured to:
[0109] Generate a public view configuration and a specific view configuration according to the configuration parameters, where the common view configuration is used to record public first view elements and a first display rule, and the first display rule is used to record the display position and display conditions of the first view elements in the shopping bag to be generated, and the specific view configuration is used to record second view elements unique to the shopping bag to be generated and a second display rule, and the second display rule is used to record the display position and display conditions of the second view elements in the shopping bag to be generated;
[0110] Obtain a first view material library according to the entry identifier, where the first view material library is used to store view materials of merchants;
[0111] Obtain a target view material group from the first view material library and the second view material library according to the public view configuration and the specific view configuration, where the target view material group includes at least one constituent view material, and the second view material library is used to store the view materials of the shopping bag to be generated.
[0112] Typeset at least one constituent view material according to the public view configuration and the specific view configuration, and associate at least one constituent view material according to the interaction parameters to generate the shopping bag to be generated.
[0113] In an embodiment of the present invention, in terms of typesetting at least one constituent view material according to the public view configuration and the specific view configuration, and associating at least one constituent view material according to the interaction parameters to generate the shopping bag to be generated, the generation module 702 is specifically used for:
[0114] Determine at least one main page view material from at least one constituent view material according to the public view configuration and the specific view configuration;
[0115] Typeset at least one main page view material according to the public view configuration and the specific view configuration to obtain the main page of the shopping bag to be generated;
[0116] Associate at least one event view material with the main page according to the interaction parameters, and set the display rules of at least one event view material to generate the shopping bag to be generated, where at least one event view material is the view material remaining after removing at least one main page view material from at least one constituent view material.
[0117] In an embodiment of the present invention, the entry identifier includes a merchant identifier. Based on this, in terms of obtaining the first view material library according to the entry identifier, the generation module 702 is specifically used for:
[0118] Query the merchant database according to the merchant identifier to obtain the first view material library.
[0119] In an embodiment of the present invention, the first view elements recorded in the public view configuration include: title, subtitle, and function area.
[0120] Refer to Figure 8 , Figure 8 which is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As Figure 8 shown, the electronic device 800 includes a transceiver 801, a processor 802, and a memory 803. They are connected by a bus 804. The memory 803 is used to store computer programs and data, and can transmit the data stored in the memory 803 to the processor 802.
[0121] The processor 802 is used to read the computer program in the memory 803 and perform the following operations:
[0122] Determine the entry identifier of the shopping bag generation instruction, where the entry identifier is used to identify the entry for sending the shopping bag generation instruction;
[0123] Determine the generation environment of the shopping bag to be generated according to the entry identifier;
[0124] Obtain configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, where the configuration parameters are used to identify the interface elements included in the shopping bag to be generated and the view configurations of the interface elements, and the interaction parameters are used to identify the interaction logic of the shopping bag to be generated;
[0125] Generate the shopping bag to be generated according to the configuration parameters, interaction parameters and entry identifier.
[0126] In an embodiment of the present invention, in terms of obtaining configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, the processor 802 is specifically configured to perform the following operations:
[0127] Determine the shopping bag type of the shopping bag to be generated according to the shopping bag generation instruction;
[0128] Determine an environment configuration pool according to the generation environment, where the environment configuration pool includes at least one environment configuration file, and each environment configuration file in the at least one environment configuration file corresponds to a shopping bag type;
[0129] Determine a target environment configuration file from the at least one environment configuration file according to the shopping bag type of the shopping bag to be generated, where the shopping bag type corresponding to the target environment configuration file is the same as the shopping bag type of the shopping bag to be generated;
[0130] Analyze the target environment configuration file to obtain configuration parameters and interaction parameters.
[0131] In an embodiment of the present invention, in terms of generating the shopping bag to be generated according to the configuration parameters, interaction parameters and entry identifier, the processor 802 is specifically configured to perform the following operations:
[0132] Generate a public view configuration and a specific view configuration according to the configuration parameters, where the common view configuration is used to record the public first view elements and the first display rules, and the first display rules are used to record the display positions and display conditions of the first view elements in the shopping bag to be generated, and the specific view configuration is used to record the second view elements unique to the shopping bag to be generated and the second display rules, and the second display rules are used to record the display positions and display conditions of the second view elements in the shopping bag to be generated;
[0133] Obtain a first view material library according to the entry identifier, where the first view material library is used to store the view materials of the merchant;
[0134] Obtain a target view material group from a first view material library and a second view material library according to a public view configuration and a specific view configuration, where the target view material group includes at least one constituent view material, and the second view material library is used to store view materials for generating a shopping bag.
[0135] Typeset at least one constituent view material according to the public view configuration and the specific view configuration, and associate at least one constituent view material according to interaction parameters to generate a shopping bag to be generated.
[0136] In an embodiment of the present invention, in the aspect of typesetting at least one constituent view material according to the public view configuration and the specific view configuration, and associating at least one constituent view material according to interaction parameters to generate a shopping bag to be generated, the processor 802 is specifically configured to perform the following operations:
[0137] Determine at least one main page view material from at least one constituent view material according to the public view configuration and the specific view configuration;
[0138] Typeset at least one main page view material according to the public view configuration and the specific view configuration to obtain the main page of the shopping bag to be generated;
[0139] Associate at least one event view material with the main page according to the interaction parameters, and set the display rules of at least one event view material to generate a shopping bag to be generated, where at least one event view material is the view material remaining after removing at least one main page view material from at least one constituent view material.
[0140] In an embodiment of the present invention, the entrance identifier includes a merchant identifier. Based on this, in the aspect of obtaining the first view material library according to the entrance identifier, the processor 802 is specifically configured to perform the following operations:
[0141] Query the merchant database according to the merchant identifier to obtain the first view material library.
[0142] In an embodiment of the present invention, the first view elements recorded in the public view configuration include: title, subtitle, and function area.
[0143] It should be understood that the shopping bag generation device in the present application may include a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a palm computer, a notebook computer, a mobile Internet device MID (Mobile Internet Devices, abbreviated as: MID), a robot, or a wearable device, etc. The above shopping bag generation devices are only examples, not exhaustive, and include but are not limited to the above shopping bag generation devices. In practical applications, the above shopping bag generation device may further include: an intelligent vehicle-mounted terminal, a computer device, etc.
[0144] Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software combined with a hardware platform. Based on such an understanding, all or part of the technical solution of the present invention that contributes to the background art can be embodied in the form of a software product. The computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments of the present invention.
[0145] Therefore, the embodiments of the present application also provide a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement some or all of the steps of any one of the shopping bag generation methods described in the above method embodiments. For example, the storage medium may include a hard disk, a floppy disk, an optical disk, a magnetic tape, a magnetic disk, a USB flash drive, a flash memory, etc.
[0146] The embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to cause a computer to execute some or all of the steps of any one of the shopping bag generation methods described in the above method embodiments.
[0147] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0148] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0149] In several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical or other forms.
[0150] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0151] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software program modules.
[0152] If the above-mentioned integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned memory includes: USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical disks and other various media that can store program codes.
[0153] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. This program can be stored in a computer-readable memory. The memory can include: flash drives, read-only memories (abbreviation: ROM), random access memories (abbreviation: RAM), magnetic disks, or optical disks, etc.
[0154] The above has introduced the embodiments of the present application in detail. Specific examples are used herein to elaborate on the principles and embodiments of the present application. The description of the above embodiments is only for helping to understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for generating a shopping bag, characterized in that, the method includes: Determine the entry identifier of the shopping bag generation instruction, where the entry identifier is used to identify the entry for sending the shopping bag generation instruction; Determine the generation environment of the shopping bag to be generated according to the entry identifier; wherein, different entry identifiers correspond to different generation environments; Obtain configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, where the configuration parameters are used to identify the interface elements included in the shopping bag to be generated and the view configuration of the interface elements, and the interaction parameters are used to identify the interaction logic of the shopping bag to be generated; Generate the shopping bag to be generated according to the configuration parameters, the interaction parameters and the entry identifier.
2. The method according to claim 1, characterized in that, the obtaining of the configuration parameters and the interaction parameters according to the generation environment and the shopping bag generation instruction includes: Determine the shopping bag type of the shopping bag to be generated according to the shopping bag generation instruction; Determine an environment configuration pool according to the generation environment, where the environment configuration pool includes at least one environment configuration file, and each environment configuration file in the at least one environment configuration file corresponds to a shopping bag type; Determine a target environment configuration file in the at least one environment configuration file according to the shopping bag type of the shopping bag to be generated, where the shopping bag type corresponding to the target environment configuration file is the same as the shopping bag type of the shopping bag to be generated; Analyze the target environment configuration file to obtain the configuration parameters and the interaction parameters.
3. The method according to claim 1, characterized in that, the generating of the shopping bag to be generated according to the configuration parameters, the interaction parameters and the entry identifier includes: Generate a public view configuration and a specific view configuration according to the configuration parameters, where the public view configuration is used to record public first view elements and a first display rule, and the first display rule is used to record the display position and display conditions of the first view elements in the shopping bag to be generated, and the specific view configuration is used to record second view elements unique to the shopping bag to be generated and a second display rule, and the second display rule is used to record the display position and display conditions of the second view elements in the shopping bag to be generated; Obtain a first view material library according to the entry identifier, where the first view material library is used to store view materials of merchants; Obtain a target view material group in the first view material library and a second view material library according to the public view configuration and the specific view configuration, where the target view material group includes at least one constituent view material, and the second view material library is used to store view materials of the shopping bag to be generated; Typeset the at least one constituent view material according to the public view configuration and the specific view configuration, and associate the at least one constituent view material according to the interaction parameters to generate the shopping bag to be generated.
4. The method according to claim 3, characterized in that, Typesetting the at least one component view material according to the public view configuration and the specific view configuration, and associating the at least one component view material according to the interaction parameters to generate the to-be-generated shopping bag, including: Determining at least one main page view material from the at least one component view material according to the public view configuration and the specific view configuration; Typesetting the at least one main page view material according to the public view configuration and the specific view configuration to obtain the main page of the to-be-generated shopping bag; Associating at least one event view material with the main page according to the interaction parameters and setting display rules for the at least one event view material to generate the to-be-generated shopping bag, where the at least one event view material is the view material remaining after removing the at least one main page view material from the at least one component view material.
5. The method according to claim 3 or 4, wherein, the entry identifier includes a merchant identifier; The obtaining a first view material library according to the entry identifier includes: Querying a merchant database according to the merchant identifier to obtain the first view material library.
6. The method according to claim 3 or 4, wherein, The first view elements recorded in the public view configuration include: a title, a subtitle, and a function area.
7. A shopping bag generation device, wherein, the device includes: An analysis module, configured to determine an entry identifier of a shopping bag generation instruction, where the entry identifier is used to identify an entry for sending the shopping bag generation instruction; A generation module, configured to determine a generation environment of the to-be-generated shopping bag according to the entry identifier, obtain configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, where different entry identifiers correspond to different generation environments, the configuration parameters are used to identify interface elements included in the to-be-generated shopping bag and view configurations of the interface elements, the interaction parameters are used to identify the interaction logic of the to-be-generated shopping bag, and generate the to-be-generated shopping bag according to the configuration parameters, the interaction parameters, and the entry identifier.
8. The device according to claim 7, wherein, In terms of obtaining configuration parameters and interaction parameters according to the generation environment and the shopping bag generation instruction, the generation module is specifically configured to: Determine a shopping bag type of the to-be-generated shopping bag according to the shopping bag generation instruction; Determine an environment configuration pool according to the generation environment, where the environment configuration pool includes at least one environment configuration file, and each environment configuration file in the at least one environment configuration file corresponds to a shopping bag type; Determine a target environment configuration file from the at least one environment configuration file according to the shopping bag type of the to-be-generated shopping bag, where the shopping bag type corresponding to the target environment configuration file is the same as the shopping bag type of the to-be-generated shopping bag; Analyze the target environment configuration file to obtain the configuration parameters and the interaction parameters.
9. An electronic device, wherein, Comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for performing the steps in the method according to any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1-6.
11. A computer program product, characterized in that, the computer program product includes a computer-readable storage medium storing a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1-6.
Citation Information
Patent Citations
Page processing method and device, application server and storage medium
CN110895783A
Interface generation method and device, server and storage medium
CN112306486A