A non-perceptual construction method of a drug sales e-commerce system based on WeChat applet
By building an e-commerce system for drug sales without perception in WeChat mini-programs, the problem of technical foundation and high cost in building an e-commerce system in the existing technology is solved, and the rapid and low-cost e-commerce system construction is achieved, which reduces the construction of a new e-commerce system. Technical difficulty.
Patent Information
- Application Number
- CN202210737453.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2042-06-27
AI Technical Summary
In the existing technology, building a drug sales e-commerce system based on WeChat mini-programs requires a certain technical foundation or relying on an external technical team, which leads to high technical difficulty and cost, which limits the construction ability of individuals or small enterprises.
By determining the ID of the drug and storing the picture and text data on the backend server, establishing the drug directory data, and building a startup page without perception in the WeChat applet, configuring UI interaction components and task processing components, capturing user interaction actions, and generating and send unconscious store opening tasks, process back-end data asynchronously and concurrently, load it into the page construction component, and realize the construction of virtual store pages.
The process of building a drug sales e-commerce system based on WeChat mini-programs without perception has been realized, reducing technical difficulties and costs, and allowing individuals or small businesses to easily build an e-commerce system, which can be completed within one minute.
Smart Images

Figure CN115131094B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a method, device, computer storage medium, and electronic device for seamlessly constructing a drug sales e-commerce system based on WeChat mini-programs. Background Art
[0002] WeChat is one of the most popular applications currently. It is a coded instruction sequence executed by a terminal with information processing capabilities such as a smart phone, or a symbolic instruction sequence or a symbolic statement sequence that can be automatically converted into a coded instruction sequence. It is essentially a new type of instant messaging tool. This instant messaging tool provides the function of WeChat applet, which makes it easy for users to develop feature-rich sub-applications based on WeChat, realizing the dream of "applications at your fingertips". Users can open the application by scanning or searching, without the need for users to install other applications independent of WeChat on the terminal, thereby improving the user experience. For developers, it simplifies the cumbersome APP development process, saves costs, and improves development efficiency.
[0003] Based on the above advantages of WeChat, it is very conducive to conducting commercial activities based on WeChat Mini Programs. For example, the product seller directly builds an e-commerce system based on WeChat Mini Programs. However, in the existing technology, to build an e-commerce system based on WeChat Mini Programs, the product seller also needs to have a certain technical foundation, or rely on an external technical team to achieve it. In addition, if the product seller is an individual, it greatly limits the construction of an e-commerce system based on WeChat Mini Programs; or, in other words, the construction of an e-commerce system based on WeChat Mini Programs is technically difficult and has high technical costs. Summary of the invention
[0004] The embodiments of the present disclosure provide a method, device, computer storage medium, and electronic device for seamlessly constructing a drug sales e-commerce system based on WeChat mini-programs, so as to overcome or alleviate the above-mentioned technical problems existing in the prior art.
[0005] The technical solution adopted in this disclosure is:
[0006] A method for constructing a drug sales e-commerce system without perception based on WeChat applet, comprising:
[0007] Determine the IDs of all drugs that can be sold in the constructed drug sales e-commerce system, and store the image data and text data of all drugs on the back-end image data server and text data server, respectively, and establish the corresponding relationship between the corresponding image data and text data based on the IDs of all drugs to form drug list data;
[0008] The imperceptible construction startup page of the drug sales e-commerce system is seamlessly embedded into the public page display component of the front-end WeChat applet for display, and a UI interaction component for triggering the imperceptible construction task of the drug sales e-commerce system is configured in the imperceptible construction startup page. The UI interaction component includes a task trigger component and a naming input component of the drug sales e-commerce system. The task trigger component is adjacent to the naming input component in the imperceptible construction startup page to remind the user that the branch name of the drug sales e-commerce system must be entered in the naming input component first, and then the task trigger component is clicked;
[0009] Based on the public action capture component of the front-end WeChat applet, the user's interactive operations on the non-perceptual construction startup page are captured and a corresponding action sequence is formed;
[0010] The public task processing component of the front-end WeChat applet determines, based on the action sequence, whether the action sequence of the user input content action of first inputting the name of the branch of the drug sales e-commerce system and then clicking the task trigger component is satisfied. If so, a non-perceptual store opening task that triggers the construction of the drug sales e-commerce system is generated, and the non-perceptual construction task includes the name of the head store of the drug sales e-commerce system and the name of the branch, as well as the timestamp of the click operation;
[0011] The public task processing component of the front-end WeChat applet adds the non-perceived store opening task to the task queue, and sends it to the communication acceleration engine set between the front-end WeChat applet and the image data server and the text data server. The communication acceleration engine performs asynchronous concurrent processing on the non-perceived store opening task and then forwards it to the back-end image data server and the text data server;
[0012] The image data server and the text data server respectively parse the received non-perceiving store opening task based on the task response components configured thereon, so as to respectively obtain the drug list data of all drugs that can be sold in the constructed drug sales e-commerce system from the image data server based on the data acquisition component, and first obtain the corresponding image data in the memory of the image data server and the corresponding text data in the memory of the text data server through the data acquisition component based on the drug list data, if not obtained, then obtain the corresponding image data in the hard disk storage directory of the image data server and obtain the corresponding text data in the hard disk storage directory of the text data server;
[0013] The image data server and the text data server respectively send the acquired image data and the text data to the communication acceleration engine based on the data sending components configured thereon for asynchronous concurrent processing and then forward them to the page building component embedded in the front-end WeChat applet;
[0014] The page construction component selects a page layout template preset in the page construction component according to the drug catalog data, and the acquired image data and text data.
[0015] Optionally, the storing of the image data and text data corresponding to all drugs on the image data server and the text data server at the back end, respectively, includes: storing the image data and text data corresponding to all drugs on the disk of the image data server and the text data server at the back end, respectively, and caching them in the memory of the image data server and the text data server through the set cache mechanism, so as to execute the acquisition of the corresponding image data in the memory of the image data server and the corresponding text data in the memory of the text data server based on the drug list data through the data acquisition component first, wherein the cache mechanism enables the image data to be cleared after the current life cycle in the memory of the image data server is reached, and enables the text data to be cleared after the current life cycle in the memory of the text data server is reached, and cached in the memory of the image data server and the text data server again at the beginning of the next life cycle.
[0016] Optionally, the corresponding relationship between the image data and the text data is established based on the IDs of all the drugs to form the drug list data, including: creating a key-value pair relationship, the key-value pair relationship includes a key parameter and a value parameter, the ID of the drug is used as the value of the key parameter, and the storage address of the image data corresponding to the drug on the image data server and the storage address of the text data corresponding to the drug on the text data server are used as the values of the value parameter to form the drug list data. Optionally, the image data is stored in an unstructured manner in the form of objects on the distributed image server.
[0017] Optionally, the creation of the unconscious construction startup page of the drug sales e-commerce system is seamlessly embedded in the public page display component of the front-end WeChat applet for display, including: capturing a click operation on the package cover of the unconscious construction startup page, and if captured, running the page logic code that implements the seamless embedding to create the unconscious construction startup page of the drug sales e-commerce system and embed it in the public page display component of the front-end WeChat applet for display.
[0018] Optionally, the page logic code for seamless embedding is run to create a non-perceived construction startup page of the drug sales e-commerce system and embed it into the public page display component of the front-end WeChat applet for display, including: obtaining the value of the head store name of the drug sales e-commerce system, and assigning the branch name of the drug sales e-commerce system to empty, so as to run the page logic code for seamless embedding, render the doorhead picture of the drug sales e-commerce system on the created non-perceived construction startup page, and at the same time, render the task trigger component and the naming input component of the drug e-commerce system.
[0019] Optionally, the naming input component is a text input box, which is preloaded with the name of the head office of the drug sales e-commerce system. At the same time, the name of the branch of the drug sales e-commerce system is kept empty so that the name of the branch of the drug sales e-commerce system is used as the content to be input.
[0020] A non-perception construction device of a drug sales e-commerce system based on WeChat applet, comprising:
[0021] The first program unit is used to determine the IDs corresponding to all drugs that can be sold in the constructed drug sales e-commerce system, and store the image data and text data corresponding to all drugs on the back-end image data server and text data server, respectively, and establish a corresponding relationship between the corresponding image data and text data based on the IDs of all drugs to form drug list data;
[0022] The second program unit is used to seamlessly embed the imperceptible construction startup page for creating the drug sales e-commerce system into the public page display component of the front-end WeChat applet for display, and configure a UI interaction component for triggering an imperceptible construction task of the drug sales e-commerce system in the imperceptible construction startup page, wherein the UI interaction component includes a task trigger component and a naming input component of the drug sales e-commerce system, and the task trigger component is adjacent to the naming input component in the imperceptible construction startup page to remind the user that the user needs to first input the name of a branch of the drug sales e-commerce system in the naming input component, and then click on the task trigger component;
[0023] The third program unit is used for capturing the user's interactive operations on the non-perceptual construction startup page and forming a corresponding action sequence based on the public action capture component of the front-end WeChat applet;
[0024] The fourth program unit is used to enable the public task processing component of the front-end WeChat applet to determine, according to the action sequence, whether the action sequence of the user input content action of first inputting the branch name of the drug sales e-commerce system and then clicking the task trigger component is satisfied, and if so, generate a non-perceived store opening task that triggers the construction of the drug sales e-commerce system, and the non-perceived construction task includes the head store name of the drug sales e-commerce system and the branch name, and the timestamp of the click operation;
[0025] The fifth program unit is used to enable the public task processing component of the front-end WeChat applet to add the non-perceived store opening task to the task queue, and send it to the communication acceleration engine set between the front-end WeChat applet and the image data server and the text data server, and the communication acceleration engine performs asynchronous concurrent processing on the non-perceived store opening task and then forwards it to the back-end image data server and the text data server;
[0026] The sixth program unit is used to enable the image data server and the text data server to parse the received non-perceived store opening task based on the task response components configured thereon, respectively, so as to obtain the drug list data of all drugs that can be sold in the constructed drug sales e-commerce system from the image data server based on the data acquisition component, and first obtain the corresponding image data in the memory of the image data server through the data acquisition component based on the drug list data, and obtain the corresponding text data in the memory of the text data server; if not obtained, then obtain the corresponding image data in the hard disk storage directory of the image data server, and obtain the corresponding text data in the hard disk storage directory of the text data server;
[0027] A seventh program unit is used to enable the image data server and the text data server to send the acquired image data and the text data to the communication acceleration engine for asynchronous concurrent processing and then forward them to the page construction component embedded in the front-end WeChat applet based on the data sending components configured thereon;
[0028] The eighth program unit is used to enable the page construction component to select a page layout template preset in the page construction component according to the drug catalog data and the acquired image data and text data.
[0029] A computer storage medium having a computer executable program stored thereon, wherein the computer executable program is executed to implement a method according to any one of the embodiments of the present application.
[31] An electronic device comprising a memory and a processor, wherein the memory is used to store the computer executable program, and the processor is used to execute the computer executable program to implement a method according to any one of the embodiments of the present application.
[0030] In the disclosed embodiment, the IDs of all drugs that can be sold in the constructed drug sales e-commerce system are determined, and the image data and text data corresponding to all drugs are stored on the back-end image data server and the text data server, respectively, and a correspondence between the corresponding image data and text data is established based on the IDs of all drugs to form drug list data; the creation of an imperceptible construction startup page for the drug sales e-commerce system is seamlessly embedded in the public page display component of the front-end WeChat applet for display, and a UI interaction component for triggering an imperceptible construction task of the drug sales e-commerce system is configured in the imperceptible construction startup page, and the UI interaction component includes a task trigger Component, naming input component of the pharmaceutical e-commerce system, the task trigger component is adjacent to the naming input component in the unconscious construction startup page to remind the user that he needs to first enter the branch name of the pharmaceutical sales e-commerce system in the naming input component, and then click on the task trigger component; based on the public action capture component of the front-end WeChat applet, capture the user's interactive operations on the unconscious construction startup page and form a corresponding action sequence; the public task processing component of the front-end WeChat applet determines whether the user input content action is satisfied according to the action sequence, which is to enter the branch name of the pharmaceutical sales e-commerce system first and then click on the task trigger component. If so, a non-perceived store opening task is generated to trigger the construction of the drug sales e-commerce system, and the non-perceived construction task includes the name of the head store of the drug sales e-commerce system and the name of the branch store, as well as the timestamp of the click operation; the public task processing component of the front-end WeChat applet adds the non-perceived store opening task to the task queue, and sends it to the communication acceleration engine set between the front-end WeChat applet and the image data server and the text data server, and the communication acceleration engine performs asynchronous concurrent processing on the non-perceived store opening task and forwards it to the image data server and the text data server at the back end; the image data server and the text data server This data server parses the received non-perceived store opening task based on the task response component configured thereon, so as to obtain the drug list data of all drugs that can be sold in the constructed drug sales e-commerce system from the image data server based on the data acquisition component, and first obtains the corresponding image data in the memory of the image data server through the data acquisition component based on the drug list data, and obtains the corresponding text data in the memory of the text data server. If not obtained, then obtain the corresponding image data in the hard disk storage directory of the image data server, and obtain the corresponding text data in the hard disk storage directory of the text data server;The image data server and the text data server respectively send the acquired image data and text data to the communication acceleration engine based on the data sending components configured thereon for asynchronous concurrent processing and then forward them to the page building component embedded in the front-end WeChat applet; the page building component selects the page layout template preset in the page building component according to the drug catalog data and the acquired image data and text data, thus realizing the construction of an e-commerce system based on the WeChat applet, without any technical difficulty and with almost zero technical cost. ; BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 An application environment diagram of an application implementation system in one embodiment;
[0032] Figure 2 is a schematic diagram of the internal structure of a terminal in one embodiment;
[0033] Figure 3 It is a flowchart of a method for constructing a sales e-commerce system of a WeChat applet in an embodiment without perception;
[0034] Figure 4 It is a flowchart of a method for constructing a drug sales e-commerce system of a WeChat applet in an embodiment without perception;
[0035] Figure 5 It is a flowchart of a method for constructing a drug sales e-commerce system of a WeChat applet in an embodiment without perception;
[0036] Figure 6 It is a flowchart of a method for constructing a drug sales e-commerce system based on a WeChat applet in one embodiment;
[0037] Figure 7 It is a flowchart of a method for constructing a drug sales e-commerce system based on a WeChat applet in one embodiment; DETAILED DESCRIPTION
[0038] In order to make the technical problems, technical solutions and advantages to be solved by the present disclosure more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0039] Figure 1 This is an application environment diagram of an application implementation system in an embodiment. Figure 1The application implementation system includes a terminal 110, a picture data server 120, and a text data server 130. The picture data corresponding to all drugs are stored on the picture data server 120, and the text data corresponding to all drugs are stored on the text data server 130. The terminal 110 runs an operating system, and WeChat runs on the operating system to implement the method embodiment of the embodiment of the present application based on the WeChat subroutine.
[0040] The image data server 120 and the text data server 130 constitute a backend server, which are a single server or a server cluster.
[0041] Figure 2 FIG. 1 is a schematic diagram of the internal structure of a terminal in an embodiment. Figure 2 , the terminal includes a processor, a non-volatile storage medium, an internal memory, a network interface, a display screen and an input device connected through a system bus. Among them, the non-volatile storage medium of the terminal stores an operating system, and also stores an application processing device, which is used to implement an application processing method. The processor of the terminal is used to provide computing and control capabilities to support the operation of the entire terminal. The internal memory in the terminal provides an environment for the operation of the embodiment of the present application. The internal memory may store computer-readable instructions, and the computer-readable instructions are executed by the processor. The network interface of the terminal is used to communicate with the server over the network. The display screen of the terminal can be a liquid crystal display or an electronic ink display screen, and the input device of the terminal can be a touch layer covering the display screen, or a button, trackball or touchpad set on the terminal housing, or an external keyboard, touchpad or mouse, etc. The terminal can be a personal computer or a mobile terminal, such as a mobile phone, a tablet computer, a personal digital assistant or a wearable device, etc. Those skilled in the art can understand that, Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied. The specific terminal may include Figure 2 More or fewer components may be shown, or certain components may be combined, or may have a different arrangement of components.
[0042] Figure 3 FIG. 1 is a flowchart of a method for constructing a sales e-commerce system of a WeChat applet in an embodiment without perception; Figure 3 As shown, it includes:
[0043] S301, creating a non-perceptual construction startup page of the commodity and / or service sales e-commerce system based on the WeChat applet display;
[0044] S302, capturing the user's interactive operation on the non-perceptual construction startup page and forming a corresponding action sequence;
[0045] S303: In response to the action sequence at least including a user input content action and a user click component action, a non-perceived store opening task is generated to request the backend server to return the commodity and / or service association data required for creating the commodity and / or service sales e-commerce system;
[0046] Optionally, in this embodiment, a data sending component is configured on the background server, and the product association data required for creating the sales e-commerce system is returned through the data sending component.
[0047] Optionally, the goods and / or service related data required by the goods and / or service sales e-commerce system can be directly cached in the memory of the background server, and the data sending component can be run in the memory of the background server, so that the data can be quickly acquired and returned.
[0048] The commodity and / or service-related data include but are not limited to multimedia data and text data of the commodity and / or service. The multimedia data include audio and / or video data introducing the commodity; the text data include data such as price, attributes, performance, usage occasions, social evaluation, etc. introducing the commodity.
[0049] S304: Load the returned product and / or service related data, as well as the created virtual store background image and storefront multimedia into the virtual store page provided by the WeChat applet according to default settings.
[0050] In this embodiment, the commodity is determined according to the application scenario, such as clothing or medicine. The service is determined according to the application scenario, such as lawyer service, enterprise consulting service, etc.
[0051] For product or service providers who want to import customer traffic based on WeChat Mini Programs, as long as the above Figure 3 The technical solution provided in the embodiment is encapsulated into a code package and provided to any third party. The third party only needs to run the code package to quickly complete the construction of the goods and / or service sales e-commerce system on the WeChat applet, without the third party having to pay any technical costs to perform any technical processing. The construction process of the goods and / or service sales e-commerce system only requires the user to perform simple operations on the unconscious construction start page, which can be completed within one minute, thereby greatly reducing the cost of building the goods and / or service sales e-commerce system.
[0052] Specifically, the following description uses the scenario of drug sales where the commodity is specifically a drug for the purpose of illustration.
[0053] Figure 4FIG. 1 is a flowchart of a method for constructing a drug sales e-commerce system of a WeChat applet in an embodiment without perception; Figure 4 As shown, it includes:
[0054] S401, creating a startup page of the drug sales e-commerce system based on the WeChat applet display;
[0055] S402, capturing the user's interactive operation on the non-perceptual construction startup page and forming a corresponding action sequence;
[0056] S403, in response to the action sequence at least including a user input content action and a user click component action, generating a non-perceived store opening task to request the backend server to return the drug-related data required to create the drug sales e-commerce system;
[0057] In this embodiment, the drug-related data includes but is not limited to multimedia data and text data of the drug.
[0058] As mentioned above, a data sending component is configured on the background server, and the drug-related data required for creating the sales e-commerce system is returned through the data sending component.
[0059] Optionally, the drug-related data required by the drug sales e-commerce system can be directly cached in the memory of the background server, and the data sending component can be run in the memory of the background server, so that data acquisition and return can be completed quickly.
[0060] S404: Load the returned drug-related data, as well as the created virtual store background image and storefront multimedia into the virtual store page provided by the WeChat applet according to default settings.
[0061] Figure 5 FIG. 1 is a flowchart of a method for constructing a drug sales e-commerce system of a WeChat applet in an embodiment without perception; Figure 5 As shown, it includes:
[0062] S501, creating a startup page for the drug sales e-commerce system based on the WeChat applet display;
[0063] S502: capturing the user's interactive operation on the non-perceptual construction startup page and forming a corresponding action sequence;
[0064] S503, in response to the action sequence at least including a user input content action and a user click component action, generating a non-perceived store opening task to request the backend server to return the drug-related data required to create the drug sales e-commerce system;
[0065] Optionally, in this embodiment, the drug-related data includes but is not limited to multimedia data and text data of the drug.
[0066] Optionally, in this embodiment, a data sending component is configured on the background server, and the drug-related data required for creating the drug sales e-commerce system is returned through the data sending component.
[0067] S504: Load the returned drug-related data, as well as the created virtual store background image and storefront multimedia into the virtual store page provided by the WeChat applet according to default settings.
[0068] The following is an example of implementation in the drug sales application scenario. It should be noted that the above Figure 3-Figure 5 In the embodiment, the following embodiments may also be included but not described in the embodiment Figure 3-Figure 5 The embodiments record some steps, and the specific timing relationship can be flexibly set according to the application scenario without causing technical contradictions. Figure 3-Figure 5 The implementation of some steps in the embodiments can be carried out with reference to the following embodiments.
[0069] Figure 6 FIG. 1 is a flowchart of a method for constructing a drug sales e-commerce system based on a WeChat applet in an embodiment; Figure 6 As shown, it includes:
[0070] S601, displaying a startup page of creating a non-perceptual construction of the drug sales e-commerce system through a public page display component of the front-end WeChat applet;
[0071] Among them, the UI interaction component of the drug sales e-commerce system for triggering the unconscious construction task is configured in the unconscious construction startup page, and the UI interaction component includes a task trigger component and a naming input component of the drug sales e-commerce system, which is used to remind the user to enter the branch name of the drug sales e-commerce system in the naming input component and click the task trigger component;
[0072] Here, it should be noted that the position of the task trigger component and the naming input component of the drug e-commerce system in the non-perceptual construction startup page is not specifically limited. The form of the task trigger component and the naming input component of the drug e-commerce system is not specifically limited, for example, it can be triggered based on touch operation or voice control operation.
[0073] S602: Based on the public action capture component of the front-end WeChat applet, the user performs interactive operations on the non-perceptual construction startup page and forms a corresponding action sequence;
[0074] Specifically, in this embodiment, the above capture can be achieved based on events or code embedding. In this embodiment, the action sequence records the ID of the interactive action, the timestamp of the interactive action, and the mapping relationship between the contents targeted by the interactive action.
[0075] S603, based on the public action capture component of the front-end WeChat applet, determine whether the action sequence at least includes: the ID of the user input content action, the ID of the user click component action, and the mapping relationship between the branch name of the drug sales e-commerce system input in the naming input component, the timestamp of the input of the branch name, and the ID of the user input content action;
[0076] If yes, execute step 604, otherwise jump to step S603;
[0077] S604, the public task processing component of the front-end WeChat applet sends the non-perceptual store opening task to the communication acceleration engine, and the communication acceleration engine performs asynchronous concurrent processing on the non-perceptual store opening task and then forwards it to the image data server and the text data server of the back-end;
[0078] The communication acceleration engine is set between the front-end WeChat applet and the image data server and the text data server. The communication acceleration engine quickly and in real time sends the non-perceived store opening task to the back-end image data server and the text data server, requesting the image data server and the text data server to transmit the required image data and text data.
[0079] Specifically, the communication acceleration engine and the front-end WeChat applet can interact through the HTTP API interface to quickly and in real time forward the unconscious store opening task to the image data server and the text data server at the back end.
[0080] S605, the image data server and the text data server respectively respond to the received non-perceptual store opening task based on the task response components configured thereon, so as to send the corresponding image data and text data to the communication acceleration engine through the data sending components configured thereon for asynchronous concurrent processing and then forward it to the page building component embedded in the front-end WeChat applet;
[0081] Optionally, in this embodiment, the task response component and the data sending component are configured in the memory of the image data server and the text data server. At the same time, the image data and the text data are also cached in the memory of the image data server and the text data server, respectively, so that data sending can be realized directly based on internal fast.
[0082] S606. The page construction component loads the image data and the text data corresponding to the drug catalog data into the virtual store page provided by the WeChat applet through its public page display component based on a preset page layout template, and loads the virtual store background image and doorhead image into the virtual store page.
[0083] In this embodiment, the door header picture is a specific example of the above-mentioned door header multimedia.
[0084] Figure 7 FIG. 1 is a flowchart of a method for constructing a drug sales e-commerce system based on a WeChat applet in an embodiment; Figure 7 As shown, it includes:
[0085] S701, determining the IDs corresponding to all drugs that can be sold in the constructed drug sales e-commerce system, and storing the image data and text data corresponding to all drugs on the back-end image data server and text data server, respectively, and establishing a corresponding relationship between the corresponding image data and text data based on the IDs of all drugs to form drug list data;
[0086] In this embodiment, the text data includes a price description text of the drug, an introduction description text of the drug, and a user's evaluation description text of the drug; the introduction description text of the drug includes but is not limited to a description of the drug's functions and indications, drug type, drug classification, indications, drug effects, pharmacological interactions, etc.
[0087] S702, seamlessly embed the creation of the imperceptible construction startup page of the drug sales e-commerce system into the public page display component of the front-end WeChat applet for display, and configure the UI interaction component of the drug sales e-commerce system that triggers the imperceptible construction task in the imperceptible construction startup page;
[0088] In this embodiment, the UI interaction component includes a task trigger component and a naming input component of the drug e-commerce system. The task trigger component is adjacent to the naming input component in the unconscious construction startup page to remind the user that the user needs to first input the branch name of the drug sales e-commerce system in the naming input component and then click on the task trigger component.
[0089] S703, based on the public action capture component of the front-end WeChat applet, capturing the user's interactive operations performed on the non-perceptual construction startup page and forming a corresponding action sequence;
[0090] In this embodiment, the action sequence at least includes: the ID of the user input content action, the ID of the user click component action, and the branch name of the drug sales e-commerce system input in the naming input component, the mapping relationship between the timestamp of inputting the branch name and the ID of the user input content action, and the mapping relationship between the click operation on the task trigger component and the timestamp of the click operation and the ID of the user click component action;
[0091] S704, the public task processing component of the front-end WeChat applet determines, according to the action sequence, whether the action sequence of the user inputting content action is satisfied, that is, inputting the name of a branch of the drug sales e-commerce system first, and then clicking the task triggering component;
[0092] If yes, execute step S705, otherwise return to step S703:
[0093] S705: Generate a non-perceived store opening task that triggers the construction of the drug sales e-commerce system;
[0094] In this embodiment, the non-perceptual construction task includes the name of the head office of the drug sales e-commerce system and the name of the branch store, as well as the timestamp of the click operation;
[0095] S706, the public task processing component of the front-end WeChat applet adds the non-perceived store opening task to the task queue, and sends it to the communication acceleration engine set between the front-end WeChat applet and the image data server and the text data server;
[0096] In addition, it should be noted that by adding the seamless store opening task to the task queue, the public task processing component of the front-end WeChat applet as the task producer and the back-end server as the task consumer do not need to pay attention to any implementation details of each other, and they can be decoupled from each other, so that when there are multiple seamless store opening tasks, they can be processed concurrently.
[0097] S707, the communication acceleration engine performs asynchronous concurrent processing on the non-perceived store opening task and then forwards it to the image data server and the text data server of the backend;
[0098] S708, the image data server and the text data server respectively parse the received non-perceived store opening task based on the task response components configured thereon, so as to obtain the drug list data of all drugs that can be sold in the constructed drug sales e-commerce system from the image data server based on the data acquisition component;
[0099] S709, acquiring the image data and text data of the drug through the data acquisition component based on the drug list data;
[0100] Specifically, step S709 includes: first, obtaining the corresponding image data in the memory of the image data server, and obtaining the corresponding text data in the memory of the text data server, if not obtained, then obtaining the corresponding image data in the hard disk storage directory of the image data server, and obtaining the corresponding text data in the hard disk storage directory of the text data server;
[0101] The data acquisition components are loaded into the memory of the image data server and the text data server respectively, so as to improve the speed of data acquisition.
[0102] S710, the image data server and the text data server respectively send the acquired image data and the text data to the communication acceleration engine based on the data sending components configured thereon for asynchronous concurrent processing and then forward them to the page building component embedded in the front-end WeChat applet;
[0103] The data sending components are loaded into the memory of the picture data service end and the text data service end respectively to increase the speed of data sending.
[0104] S711, the page building component creates a virtual store page;
[0105] Specifically, in this embodiment, step S711 includes: selecting a page layout template preset in the page construction component according to the drug catalog data, and the acquired image data and text data, and loading the image data and the text data into the virtual store page provided by the WeChat applet through its public page display component according to the mapping relationship established by the ID of the corresponding drug, and loading the virtual store background image and doorhead image into the virtual store page.
[0106] Optionally, any of the above embodiments may also include: generating a user authority management model based on the set role access control policy, in which various system operation permissions are not directly granted to specific users, but a role set is established between the user set and the permission set, and each role corresponds to a set of corresponding permissions. Once a user is assigned an appropriate role, the user has all the operation permissions of this role. In this way, it is not necessary to assign permissions every time a user is created, as long as the user is assigned a corresponding role, and the role permission change is much less than the user permission change, which will simplify the user's permission management and reduce the system's overhead. The processing steps of the role assignment can be based on the needs of the application scenario, and are not fixed in timing, as long as they do not conflict with other steps.
[0107] Optionally, any of the above embodiments may further include: configuring an ERP back-end management interface, wherein the ERP back-end management interface includes: at least one of an order upload interface, a product acquisition interface, an inventory acquisition interface, a price acquisition interface, and a logistics callback interface.
[0108] Optionally, any of the above embodiments may also include: a drug association relationship between the ERP system and a constructed drug sales e-commerce system based on the drug approval number association.
[0109] Optionally, when a user uses the drug sales e-commerce system to purchase drugs, if the drug is a prescription drug, a prescription request is initiated to the Internet hospital, and the open request is added to the request message queue to bring the Internet hospital to consume to implement the prescription. When the prescription is completed, a logistics order for executing the drug is generated.
[0110] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM), etc.
[0111] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0112] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for constructing a drug sales e-commerce system without perception based on WeChat applet, characterized in that: include: Determine the IDs of all drugs that can be sold in the constructed drug sales e-commerce system; The image data and text data corresponding to all drugs are stored on the disk of the back-end image data server and the disk of the text data server respectively, and are cached in the memory of the image data server and the memory of the text data server through the set cache mechanism, so as to execute the acquisition of the corresponding image data in the memory of the image data server and the corresponding text data in the memory of the text data server based on the drug list data through the data acquisition component first, wherein the cache mechanism enables the image data to be cleared after the current life cycle in the memory of the image data server is reached, and enables the text data to be cleared after the current life cycle in the memory of the text data server is reached, and cached in the memory of the image data server and the memory of the text data server again at the beginning of the next life cycle; And based on the IDs of all drugs, a corresponding relationship between corresponding image data and text data is established to form drug list data; Capture the click operation on the package cover of the unconscious construction startup page. If captured, obtain the value of the head store name of the drug sales e-commerce system, and assign the branch store name of the drug sales e-commerce system to empty, so as to run the page logic code for seamless embedding, render the door head picture of the drug sales e-commerce system on the created unconscious construction startup page, and at the same time, render the task trigger component and the naming input component of the drug sales e-commerce system; A UI interaction component for triggering an unconscious construction task of the drug sales e-commerce system is configured in the unconscious construction startup page, wherein the UI interaction component includes a task trigger component and a naming input component of the drug sales e-commerce system. The task trigger component is adjacent to the naming input component in the unconscious construction startup page to remind the user that the user needs to first input the name of a branch of the drug sales e-commerce system in the naming input component and then click on the task trigger component. Based on the public action capture component of the front-end WeChat applet, the user's interactive operations on the non-perceptual construction startup page are captured and a corresponding action sequence is formed; The public task processing component of the front-end WeChat applet determines, based on the action sequence, whether the action sequence of the user inputting content precedes the inputting of the branch name of the drug sales e-commerce system and then clicking the task trigger component is satisfied. If so, a non-perceptual store opening task that triggers the construction of the drug sales e-commerce system is generated, and the non-perceptual construction task includes the name of the head office of the drug sales e-commerce system and the name of the branch, as well as the timestamp of the click operation; The public task processing component of the front-end WeChat applet adds the non-perceived store opening task to the task queue, and sends it to the communication acceleration engine set between the front-end WeChat applet and the image data server and the text data server. The communication acceleration engine performs asynchronous concurrent processing on the non-perceived store opening task and then forwards it to the back-end image data server and the text data server; The image data server and the text data server respectively parse the received non-perceiving store opening task based on the task response components configured thereon, so as to respectively obtain the drug list data of all drugs that can be sold in the constructed drug sales e-commerce system from the image data server based on the data acquisition component, and first obtain the corresponding image data in the memory of the image data server and the corresponding text data in the memory of the text data server through the data acquisition component based on the drug list data, if not obtained, then obtain the corresponding image data in the hard disk storage directory of the image data server and obtain the corresponding text data in the hard disk storage directory of the text data server; The image data server and the text data server respectively send the acquired image data and the text data to the communication acceleration engine based on the data sending components configured thereon for asynchronous concurrent processing and then forward them to the page building component embedded in the front-end WeChat applet; The page construction component selects a page layout template preset in the page construction component according to the drug list data, and the acquired image data and text data.
2. The method according to claim 1, characterized in that The method of establishing a correspondence between corresponding image data and text data based on the IDs of all drugs to form drug list data includes: creating a key-value pair relationship, the key-value pair relationship includes a key parameter and a value parameter, using the ID of the drug as the value of the key parameter, and using the storage address of the image data corresponding to the drug on the image data server and the storage address of the text data corresponding to the drug on the text data server as the value of the value parameter to form drug list data.
3. The method according to claim 1, characterized in that The image data is stored in an unstructured manner in the form of objects on the distributed image data server.
4. The method according to claim 1, characterized in that: The naming input component is a text input box, which is preloaded with the name of the head office of the drug sales e-commerce system. At the same time, the name of the branch of the drug sales e-commerce system is kept empty so that the name of the branch of the drug sales e-commerce system is used as the content to be input.
5. A non-perceptual construction device for a drug sales e-commerce system based on WeChat applet, characterized in that: include: The first program unit is used to determine the IDs corresponding to all drugs that can be sold in the constructed drug sales e-commerce system; the image data and text data corresponding to all drugs are stored on the disk of the back-end image data server and the disk of the text data server, respectively, and cached in the memory of the image data server and the memory of the text data server through the set cache mechanism, so as to execute the acquisition of the corresponding image data in the memory of the image data server and the corresponding text data in the memory of the text data server based on the drug list data through the data acquisition component, wherein the cache mechanism enables the image data to be cleared after the current life cycle in the memory of the image data server is reached, and enables the text data to be cleared after the current life cycle in the memory of the text data server is reached, and cached in the memory of the image data server and the memory of the text data server at the beginning of the next life cycle; and establish a corresponding relationship between the corresponding image data and the text data based on the IDs of all drugs to form drug list data; The second program unit is used to capture the click operation on the package cover of the imperceptible construction startup page. If captured, the value of the head store name of the drug sales e-commerce system is obtained, and the branch name of the drug sales e-commerce system is assigned to empty, so as to run the page logic code for seamless embedding, and render the door head picture of the drug sales e-commerce system on the created imperceptible construction startup page, and at the same time, render the task trigger component and the naming input component of the drug e-commerce system; and configure the UI interaction component of the drug sales e-commerce system for triggering the imperceptible construction task in the imperceptible construction startup page, the UI interaction component includes the task trigger component and the naming input component of the drug e-commerce system, and the task trigger component is adjacent to the naming input component in the imperceptible construction startup page to remind the user that the branch name of the drug sales e-commerce system must be entered in the naming input component first, and then the task trigger component is clicked; The third program unit is used for capturing the user's interactive operations on the non-perceptual construction startup page and forming a corresponding action sequence based on the public action capture component of the front-end WeChat applet; The fourth program unit is used to enable the public task processing component of the front-end WeChat applet to determine, according to the action sequence, whether the action sequence of the user inputting content precedes the action of inputting the branch name of the drug sales e-commerce system and then clicking the task trigger component, and if so, generate a non-perceived store opening task that triggers the construction of the drug sales e-commerce system, and the non-perceived construction task includes the head store name of the drug sales e-commerce system and the branch name, and the timestamp of the click operation; The fifth program unit is used to enable the public task processing component of the front-end WeChat applet to add the non-perceived store opening task to the task queue, and send it to the communication acceleration engine set between the front-end WeChat applet and the image data server and the text data server, and the communication acceleration engine performs asynchronous concurrent processing on the non-perceived store opening task and then forwards it to the back-end image data server and the text data server; The sixth program unit is used to enable the image data server and the text data server to parse the received non-perceived store opening task based on the task response components configured thereon, respectively, so as to obtain the drug list data of all drugs that can be sold in the constructed drug sales e-commerce system from the image data server based on the data acquisition component, and first obtain the corresponding image data in the memory of the image data server through the data acquisition component based on the drug list data, and obtain the corresponding text data in the memory of the text data server; if not obtained, then obtain the corresponding image data in the hard disk storage directory of the image data server, and obtain the corresponding text data in the hard disk storage directory of the text data server; A seventh program unit is used to enable the image data server and the text data server to send the acquired image data and the text data to the communication acceleration engine for asynchronous concurrent processing and then forward them to the page construction component embedded in the front-end WeChat applet based on the data sending components configured thereon; The eighth program unit is used to enable the page construction component to select a page layout template preset in the page construction component according to the drug list data and the acquired image data and text data.
6. A computer storage medium having a computer executable program stored thereon, wherein the computer executable program is executed to implement the method according to any one of claims 1 to 4.
7. An electronic device, comprising a memory and a processor, wherein the memory is used to store a computer executable program, and the processor is used to run the computer executable program to implement the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Abnormal information processing method and device
CN112416705A
Task processing method, apparatus, and system
WO2020034879A1