CN113835700A - Activity online method and device, electronic equipment and computer readable storage medium - Google Patents

Activity online method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113835700A
CN113835700A CN202111033062.9A CN202111033062A CN113835700A CN 113835700 A CN113835700 A CN 113835700A CN 202111033062 A CN202111033062 A CN 202111033062A CN 113835700 A CN113835700 A CN 113835700A
Authority
CN
China
Prior art keywords
activity
file
layout
information
online
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111033062.9A
Other languages
Chinese (zh)
Inventor
郑星辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111033062.9A priority Critical patent/CN113835700A/en
Publication of CN113835700A publication Critical patent/CN113835700A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and a device for online activity, electronic equipment and a computer-readable storage medium, and the method comprises the following steps: configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file; dragging the page components in a visual editing interface to obtain a layout file corresponding to each page component; building the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity; deploying the code information, and determining an activity entry corresponding to the target activity so that a user can access the target activity according to the activity entry; by independently developing the bottom logic of the online activity and the layout of the page components and establishing the reference relationship after independent development, the development efficiency of the online activity is improved, the online period of the online activity is shortened, the page components are developed in a dragging mode, and the development efficiency of the layout information and the attribute information of the page components is improved.

Description

Activity online method and device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for online activity, electronic equipment and a computer-readable storage medium.
Background
With the rapid development of computer technology, the variety of online activities, such as online lottery activities, online voting activities, etc., is increasing, and these online activities are popular among the public due to their simple operation and convenient use.
At present, the deployment and online of these online activities need to go through the flow steps of UI design, code compiling, function research and development, function test, interface performance test, server deployment and the like, wherein UI design and code compiling efficiency have an important influence on the online time of the online activities, and the traditional development mode is often difficult to meet the requirements of the activities on timely online.
Disclosure of Invention
The embodiment of the application provides an online activity method, an online activity device, electronic equipment and a computer-readable storage medium, which can shorten the online activity period and accelerate online activity.
The embodiment of the application provides a movable online method, which comprises the following steps:
configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file;
dragging the page components in a visual editing interface to obtain a layout file corresponding to each page component;
building the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity;
and deploying the code information, and determining an activity entry corresponding to the target activity, so that the user can access the target activity according to the activity entry.
Correspondingly, this application embodiment still provides an activity winding device, includes:
the configuration module is used for configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file;
the dragging module is used for dragging the page components in the visual editing interface to obtain a layout file corresponding to each page component;
the reference module is used for establishing the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity;
and the deployment module is used for deploying the code information and determining an activity entrance corresponding to the target activity so that the user can access the target activity according to the activity entrance.
Optionally, in some embodiments of the present invention, the layout file includes an abstract syntax tree file, and the dragging module includes:
the first acquisition unit is used for acquiring layout information and attribute information corresponding to the dragged page component;
and the constructing unit is used for constructing the abstract syntax tree file corresponding to the page component according to the layout information and the attribute information.
Optionally, in some embodiments of the present invention, the building unit includes:
a disassembling subunit, configured to disassemble the layout information and the attribute information to obtain at least one component object node;
the first determining subunit is used for determining a father node corresponding to each component object node;
and the drawing child unit is used for drawing the abstract syntax tree corresponding to the page component according to the object forming node and the father node to obtain the abstract syntax tree file corresponding to the page component.
Optionally, in some embodiments of the present invention, the layout file includes an object numbered musical notation file, and the dragging module includes:
the second acquisition unit is used for acquiring layout information and attribute information corresponding to the dragged page component;
the extraction unit is used for extracting the composition objects of the layout information and the attribute information to obtain at least one composition object information corresponding to the page component;
and the establishing unit is used for establishing an object numbered musical notation file corresponding to the page component according to the composition object information.
Optionally, in some embodiments of the present invention, the establishing unit includes:
the second determining subunit is used for determining the attribute name corresponding to the composition object information;
the mapping subunit is established and used for establishing the mapping relation between the attribute names and the constituent object information;
and the numbered musical notation establishing subunit is used for establishing an object numbered musical notation file corresponding to the page component according to the mapping relation.
Optionally, in some embodiments of the present invention, the reference module includes:
the determining unit is used for determining the number information corresponding to the service logic configuration file;
and the second establishing unit is used for establishing the mapping relation between the reference attribute and the number information in the layout file.
Optionally, in some embodiments of the present invention, the deployment module includes:
and the verification unit is used for directly deploying the code information after the logic verification of the target activity passes.
According to the method and the device, the efficiency of online activity development is improved by independently developing the business logic configuration file and the layout file of the online activity, the online activity is formed by establishing the reference between the layout file and the business logic configuration file, the reusability of the business logic configuration file or the layout file is improved, and the code information after the reference is established is directly deployed, so that the online efficiency of the online activity can be improved, wherein the layout file of the page assembly is formed by dragging in the visual editing interface, the efficiency of the layout file development is improved, and the online period of the online activity is shortened.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of an activity online method provided in an embodiment of the present application;
FIG. 2 is a flowchart illustrating an activity online method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a storage structure of a layout file in an active online method according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an active threading device provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides a mobile online method, a mobile online device, electronic equipment and a storage medium. Specifically, the embodiment of the present application provides a movable online device suitable for an electronic device, where the electronic device may be a terminal or a server. Among them, the terminal may be a Computer, a notebook, a desktop, or a Personal Computer (PC), etc. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the server may be directly or indirectly connected through wired or wireless communication.
For example, please refer to fig. 1, in the embodiment of the present application, a terminal and a server jointly execute an activity online method as an example, wherein other devices may be added on the basis of the terminal and the server to assist in completing the activity online method, and the types of the other devices are not limited herein; the terminal and the server are connected through a network, for example, a wired or wireless network connection, and the specific implementation process is as follows:
the method comprises the steps of configuring business logic corresponding to at least one page component of a target activity on a terminal device A to obtain at least one business logic configuration file, dragging the page component in a visual editing interface of the terminal device A to obtain a layout file of page component layout, building reference of the layout file to the business logic configuration file on the terminal device A to obtain code information corresponding to the target activity, deploying the code information corresponding to the target activity to a server B to complete online of the target activity, and providing an activity entrance of the target activity to facilitate a user to access the target activity through the activity entrance.
In the embodiment of the application, the target activity includes an online lottery activity, and the service logic configuration file includes configuration of the underlying logic of the online lottery activity, where the underlying logic of the online lottery activity includes setting of lottery probability, control of picking time, setting of lottery limiting conditions, and the like.
The layout file includes the configuration of the attributes and layout of the interface components of the online lottery activity, for example, the layout design of the lottery interface of the online lottery activity is performed, the layout design of pictures, buttons or characters is included, and the online lottery interface elements are constructed.
According to the method and the device, the efficiency of online activity development is improved by independently developing the service logic configuration file and the layout file of the online activity, the online activity is formed by establishing the reference between the layout file and the service logic configuration file, the reusability of the service logic configuration file or the layout file is increased, and the code information after the reference is established is directly deployed, so that the online efficiency of the online activity can be improved, wherein the layout file of the page assembly is formed by dragging in the visual editing interface, the efficiency of the layout file development is improved, and the online period of the online activity is shortened; the layout of the page components, the configuration of the bottom layer logic and the establishment of the reference relation between the layout and the bottom layer logic are carried out on the terminal equipment, so that the design of the code information corresponding to the online activities is realized, and the online function of the online activities is realized by deploying the code information to the server.
The embodiment of the application provides a movable online method, which specifically comprises the following steps:
configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file;
the method comprises the steps of configuring the bottom layer logic of the online activity independently to obtain a service logic configuration file, improving the efficiency of bottom layer logic development, increasing the reusability of the bottom layer logic and enabling the bottom layer logic to be referred repeatedly.
Dragging the page components in a visual editing interface to obtain a layout file corresponding to each page component;
the page components are developed in a drag-and-drop Development mode, Development efficiency of layout files corresponding to the page components is improved, wherein the visual editing interface comprises a Low-Code Development Platform (LCDP) interface, and Development and creation of the page components are completed by dragging the components on the Low-Code Development Platform interface.
Building the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity;
the method comprises the steps of establishing a reference of a layout file to a business logic configuration file, establishing a combined binding between an interface of an online activity and a bottom layer logic, and further forming code information corresponding to the online activity, wherein the independent development of the layout file and the business logic configuration file and the establishment of a reference relation can improve the efficiency of online activity development and the reusability of the layout file or the business logic configuration file.
And deploying the code information, and determining an activity entry corresponding to the target activity, so that the user can access the target activity according to the activity entry.
The online function of the online activity is completed by deploying the code information, and the activity entry is determined, so that a user can conveniently access the online activity according to the activity entry and participate in the online activity.
According to the method and the device, the efficiency of online activity development is improved by independently developing the business logic configuration file and the layout file of the online activity, the online activity is formed by establishing the reference between the layout file and the business logic configuration file, the reusability of the business logic configuration file or the layout file is improved, and the code information after the reference is established is directly deployed, so that the online efficiency of the online activity can be improved, wherein the layout file of the page assembly is formed by dragging in the visual editing interface, the efficiency of the layout file development is improved, and the online period of the online activity is shortened.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
Referring to fig. 2, fig. 2 is a flowchart illustrating an activity online method according to an embodiment of the present application. The specific flow of the activity online method can be as follows:
101. and configuring the business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file.
In the embodiment of the present application, the target activity includes an online activity, and the user may participate in the activity online, for example, an online lottery activity, an online voting activity, an online statistics activity, an online question and answer activity, and the like.
In this embodiment, the online activity may include presentation in the form of a web page (e.g., H5), an application (e.g., app), or an applet, and in this embodiment, the online activity may be presented on a display screen of a large-screen terminal (e.g., a television, a computer, or a desktop), so as to facilitate a user to participate in the online activity.
The configuration of the online activity service logic includes code development of the online activity underlying logic, for example, in the embodiment of the present application, taking the online lottery activity as an example, the development of the online lottery activity underlying logic code includes setting of lottery probability, control of picking time, setting of lottery limiting conditions, and the like.
The independent development of the business logic of the online activities is convenient for subsequent adaptation with different page components, for example, for different online activities, the corresponding business logic configuration file is called through the corresponding layout file, so that the construction of codes of different online activities can be realized, the online activity development efficiency is improved, and the online period of the online activities is shortened.
In the embodiment of the application, the service logic configuration file can be configured in advance, corresponding function tests are carried out, the tested service logic configuration file is stored in the file library, the construction of the online activity is completed through selection and reference of the service logic configuration file in the file library in the subsequent development process aiming at the specific online activity, the development efficiency of the online activity is improved, and the service logic configuration file stored in the file library is subjected to the function tests, so that after the online activity is constructed, only the logic of the online activity needs to be simply verified, the function of the online activity does not need to be integrally tested, the online period of the online activity is shortened, and the online activity is accelerated.
102. And dragging the page components in the visual editing interface to obtain a layout file corresponding to each page component.
In the embodiment of the application, the layout file is used for describing the layout and the attributes of the page assembly, and belongs to the front-end design part in the field of software product development.
In the embodiment of the application, the visual editing interface comprises a Low-Code Development Platform (LCDP) interface, and the Development and creation of the page component are completed by dragging the component on the Low-Code Development Platform interface, wherein the Development and creation of the page component are performed by the Low-Code Development Platform, so that the overall Development efficiency of online activities is improved, and the online period of the online activities is shortened.
In the embodiment of the application, after the page component is subjected to dragging type development, fine tuning of the page component can be realized by adjusting the code, for example, the style, the layout, the size, the position in the interface and the like of the page component are adjusted, wherein the page component can meet the personalized requirements of a user by fine tuning the code after dragging development, and the development efficiency of the layout file is improved by dragging and fine tuning.
In this embodiment of the present application, the layout and the attributes of the page components may be designed in a form of an Abstract Syntax Tree (AST), that is, optionally, in some embodiments, the layout file includes an abstract syntax tree file, and then the step "obtaining a layout file corresponding to each page component" includes:
acquiring layout information and attribute information corresponding to the dragged page component;
and constructing an abstract syntax tree file corresponding to the page component according to the layout information and the attribute information.
The abstract syntax tree file is formed by disassembling a code formed after dragging, for example, in the embodiment of the present application, after a page component is dragged and developed, an original code file (such as a JS source code) corresponding to the page component is formed, and then, in the embodiment of the present application, the code in the original code file is disassembled to form an abstract syntax tree file corresponding to the original code file, for example, a script source code (JS source code) corresponding to the page component is converted into an abstract syntax tree by a script Parser (javascript Parser), where the script Parser (javascript Parser) includes a parsing architecture (esprma), a compiler (traceur), a Parser (acorn), and the like, where the layout and attributes of the page component are stored in a form of a syntax abstract tree, which may facilitate subsequent loading and application of the layout file;
for example, an Abstract Syntax Tree (AST) is a tree representation of the abstract syntax structure of the source code, and each node on the tree represents a structure in the source code, which is abstract because the abstract syntax tree does not represent every detail of the real syntax, for example, the nesting brackets are hidden in the structure of the tree and are not represented in the form of nodes. The abstract syntax tree does not depend on the syntax of the source language, that is, the context used in the parsing stage is grammatical-free, because when the grammar is written, the grammar is often equivalently transformed (left recursion, backtracking, ambiguity and the like are eliminated), which introduces some redundant components into the grammar analysis, adversely affects the subsequent stages, and even makes the combined stages confused. For this reason, many compilers often construct a parse tree (abstract syntax tree) independently, creating a clear interface for the front-end and back-end.
Since the abstract syntax tree does not depend on the syntax of the source language, the online activities can be displayed in the form of a webpage (H5), an application or an applet by converting the layout and attribute information of the page components into the abstract syntax tree, namely, the loading and the application of the layout file are conveniently realized.
In this embodiment of the present application, the abstract syntax tree may be determined according to an object node corresponding to the layout and the attribute and a parent node to which the node belongs, that is, optionally, in some embodiments, the step "building an abstract syntax tree file corresponding to the page component according to the layout information and the attribute information" includes:
disassembling the layout information and the attribute information to obtain at least one object forming node;
determining a father node corresponding to each component object node;
and drawing the abstract syntax tree corresponding to the page component according to the composition object node and the father node to obtain the abstract syntax tree file corresponding to the page component.
The composition object nodes include at least one node object formed by disassembling the layout and attribute information, for example, the node object includes page names, page description information, interface element information and the like corresponding to the layout and attribute information, and the abstract syntax tree corresponding to the page component can be drawn by disassembling each node object and determining a parent node corresponding to each node object, so as to obtain the abstract syntax tree file.
In this embodiment of the present application, the layout and the attributes of the page components may be designed in a form of Object Notation (JSON, JavaScript Object Notation), that is, optionally, in some embodiments, the layout file includes an Object Notation file, and the step "obtaining a layout file corresponding to each page component" includes:
acquiring layout information and attribute information corresponding to the dragged page component;
extracting composition objects of the layout information and the attribute information to obtain at least one composition object information corresponding to the page component;
and establishing an object numbered musical notation file corresponding to the page component according to the information of the composed object.
The composition object comprises the size, the dimension, the position, the color and the frame data of the page component, and the information of characters, pictures and the like of the page component.
The layout information and the attribute information are combined into an object to be extracted and stored as an object numbered musical notation file, so that the object numbered musical notation file corresponding to the layout and attribute information of the page component is generated, the object numbered musical notation file is conveniently loaded after the online activity is started, and the page component is rendered and drawn.
The object numbered musical notation file stores and represents data by adopting a text format completely independent of a programming language, and any programming language can call the object numbered musical notation file, so that the layout and the attribute of the page component are stored by adopting the object numbered musical notation file, and the loading and the application of the layout and the attribute information of the page component can be conveniently realized.
The object numbered musical notation file stores data in a key value pair form, so that an attribute name corresponding to a component object needs to be determined, and an object numbered musical notation file corresponding to a page component is determined according to a mapping relation between the attribute name and the component object, that is, optionally, in some embodiments, the step of "establishing the object numbered musical notation file corresponding to the page component according to component object information" includes:
determining attribute names corresponding to the composition object information;
establishing a mapping relation between the attribute name and the information of the composition object;
and establishing an object numbered musical notation file corresponding to the page component according to the mapping relation.
For example, please refer to fig. 3, fig. 3 is a schematic diagram illustrating a storage structure of a component object in an object profile file in the embodiment of the present application, where the attribute name includes a page name (name), a page configuration (pageConfig), and page elements (elemenents), where the page elements (elemenents) further include an element number (id), an element type (type), an element component name (elemename), an element name (name), an element attribute (prop), an element layout (layout), and the like, where the storage of the layout information and the attribute information of the page component is realized by storing the component object corresponding to the attribute name and the attribute name, and the storage is in the form of the object profile file, which is also convenient for loading and applying the layout file.
The generation of the object numbered musical notation file corresponding to the page component can be realized by establishing the mapping relation between the attribute name and the corresponding component object information.
103. And establishing the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity.
The business logic configuration file comprises the bottom logic of the online activity, the layout file comprises the page component layout and attribute information of the online activity, the association between the bottom logic code of the online activity and the front-end page component code is realized by establishing the reference relationship between the layout file and the business logic configuration file, and the whole code information corresponding to the online activity can be obtained.
In the embodiment of the application, the business logic configuration file can be configured and tested firstly, then stored in the file library, then the page component corresponding to the online activity is dragged and developed according to the development requirements of different online activities, then the corresponding business logic configuration file in the file library is quoted according to the business requirements of the online activities, and the code information corresponding to the online activities is constructed, wherein the online activities only need to develop the front-end page component in the development process through the configuration and the test of the business logic configuration file in advance, then the corresponding business logic configuration file is called, so that the development efficiency of the online activities is improved, wherein, the business logic configuration file is tested after being developed firstly, so the online activities formed after the quote is built only need to be subjected to simple logic verification, the function test of the online activity is not needed, and the online period of the online activity is shortened.
In this embodiment of the present application, the reference of the layout file to the service logic configuration file may be implemented by establishing a mapping relationship with the service logic configuration file, that is, optionally, in some embodiments, the step "establishing the reference of the layout file to the service logic configuration file" includes:
determining number information corresponding to the service logic configuration file;
and establishing a mapping relation between the reference attribute and the number information in the layout file.
The mapping relation between the reference attribute in the layout file and the number information corresponding to the business logic configuration file is established, so that the layout file can be automatically referenced to the corresponding business logic configuration file after being loaded, for example, the number information or name information of the business logic configuration file is stored in the reference attribute of the layout file, and the application of the layout file to the corresponding business logic configuration file is realized.
104. And deploying the code information, and determining an activity entry corresponding to the target activity, so that the user can access the target activity according to the activity entry.
The code information is deployed to a server to complete online of the online activity, wherein the establishment of an activity entry can facilitate a user to access the online activity and participate in the online activity, and the activity entry comprises a link and the like.
In this embodiment of the present application, before deploying the code information corresponding to the online activity, it may be further ensured that the online activity is feasible by performing logic verification on the online activity, that is, optionally, in some embodiments, the step "deploying the code information" includes:
and when the logic verification of the target activity passes, directly deploying the code information.
Wherein, the online activity after online can be ensured to be feasible by logically verifying the online activity before online.
According to the method and the device, the efficiency of online activity development is improved by independently developing the business logic configuration file and the layout file of the online activity, the online activity is formed by establishing the reference between the layout file and the business logic configuration file, the reusability of the business logic configuration file or the layout file is improved, and the code information after the reference is established is directly deployed, so that the online efficiency of the online activity can be improved, wherein the layout file of the page assembly is formed by dragging in the visual editing interface, the efficiency of the layout file development is improved, and the online period of the online activity is shortened.
In order to better implement the activity online method, the application also provides the activity online device based on the activity online method. Wherein the noun is the same as that in the above-mentioned active online method, and the details of the implementation can refer to the description in the embodiment of the method.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an active on-line device provided in the present application, where the active on-line device may include a configuration module 201, a dragging module 202, a reference module 203, and a deployment module 204, which may specifically be as follows:
the configuration module 201 is configured to configure a service logic corresponding to at least one page component in the target activity, so as to obtain at least one service logic configuration file.
The service logic configuration file comprises configuration and storage of the bottom layer logic of the online activity, and the service logic of the online activity is independently developed, so that subsequent adaptation with different page assemblies is facilitated, for example, for different online activities, the corresponding service logic configuration file is called through the corresponding layout file, so that the construction of codes of different online activities can be realized, the online activity development efficiency is improved, and the online period of the online activity is shortened.
The dragging module 202 is configured to drag the page components in the visual editing interface to obtain a layout file corresponding to each page component.
The method and the device have the advantages that the page component development efficiency is improved through the dragging type development of the page component, the personalized requirements of users are met through fine adjustment of dragged codes, and the overall development efficiency of the layout file corresponding to the page component is improved.
Optionally, in some embodiments of the present invention, the layout file includes an abstract syntax tree file, and the dragging module 202 includes:
the first acquisition unit is used for acquiring layout information and attribute information corresponding to the dragged page component;
and the constructing unit is used for constructing the abstract syntax tree file corresponding to the page component according to the layout information and the attribute information.
The page layout and the attribute information are stored through the abstract syntax tree, and the application of the layout file can be facilitated.
Optionally, in some embodiments of the present invention, the building unit includes:
a disassembling subunit, configured to disassemble the layout information and the attribute information to obtain at least one component object node;
the first determining subunit is used for determining a father node corresponding to each component object node;
and the drawing child unit is used for drawing the abstract syntax tree corresponding to the page component according to the object forming node and the father node to obtain the abstract syntax tree file corresponding to the page component.
Optionally, in some embodiments of the present invention, the layout file includes an object numbered musical notation file, and the dragging module 202 includes:
the second acquisition unit is used for acquiring layout information and attribute information corresponding to the dragged page component;
the extraction unit is used for extracting the composition objects of the layout information and the attribute information to obtain at least one composition object information corresponding to the page component;
and the establishing unit is used for establishing an object numbered musical notation file corresponding to the page component according to the composition object information.
The object numbered musical notation file comprises a JSON file, layout and attribute information of the page assembly are stored by using the JSON file, and the layout file can be conveniently loaded and applied.
Optionally, in some embodiments of the present invention, the establishing unit includes:
the second determining subunit is used for determining the attribute name corresponding to the composition object information;
the mapping subunit is established and used for establishing the mapping relation between the attribute names and the constituent object information;
and the numbered musical notation establishing subunit is used for establishing an object numbered musical notation file corresponding to the page component according to the mapping relation.
And the reference module 203 is used for establishing reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity.
Optionally, in some embodiments of the present invention, the reference module 203 includes:
the determining unit is used for determining the number information corresponding to the service logic configuration file;
and the second establishing unit is used for establishing the mapping relation between the reference attribute and the number information in the layout file.
The deployment module 204 is configured to deploy the code information and determine an activity entry corresponding to the target activity, so that the user can access the target activity according to the activity entry.
Optionally, in some embodiments of the present invention, the asset information is associated with service information, and the deployment module 204 includes:
and the verification unit is used for directly deploying the code information after the logic verification of the target activity passes.
In the embodiment of the application, the configuration module 201 configures the service logic of the online activity to obtain a service logic configuration file, the dragging module 202 drags and develops the page component in the visual editing interface to obtain a layout file corresponding to the page component, the reference module 203 establishes application of the layout file to the service logic configuration file to obtain code information corresponding to the online activity, the deployment module 204 performs online deployment on the code information after reference establishment and creates an activity entry entering the online activity, so that a user can conveniently access the online activity according to the activity entry.
The method and the device for online activity development improve online activity development efficiency through independent development of the business logic configuration file and the layout file of the online activity, form the online activity through reference establishment between the layout file and the business logic configuration file, increase reusability of the business logic configuration file or the layout file, directly deploy code information after the reference establishment, and improve online activity efficiency, wherein the layout file of the page assembly is formed through dragging in a visual editing interface, improve layout file development efficiency, and shorten online activity period.
In addition, the present application also provides an electronic device, as shown in fig. 5, which shows a schematic structural diagram of the electronic device related to the present application, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file; dragging the page components in a visual editing interface to obtain a layout file corresponding to each page component; building the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity; and deploying the code information, and determining an activity entry corresponding to the target activity, so that the user can access the target activity according to the activity entry.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to the method and the device, the efficiency of online activity development is improved by independently developing the business logic configuration file and the layout file of the online activity, the online activity is formed by establishing the reference between the layout file and the business logic configuration file, the reusability of the business logic configuration file or the layout file is improved, and the code information after the reference is established is directly deployed, so that the online efficiency of the online activity can be improved, wherein the layout file of the page assembly is formed by dragging in the visual editing interface, the efficiency of the layout file development is improved, and the online period of the online activity is shortened.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium having stored therein a plurality of instructions that can be loaded by a processor to perform the steps of any of the active online methods provided herein. For example, the instructions may perform the steps of:
configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file; dragging the page components in a visual editing interface to obtain a layout file corresponding to each page component; building the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity; and deploying the code information, and determining an activity entry corresponding to the target activity, so that the user can access the target activity according to the activity entry.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any activity online method provided by the present application, the beneficial effects that can be achieved by any activity online method provided by the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The above detailed description is provided for a mobile online method, an apparatus, an electronic device, and a storage medium, and the principles and embodiments of the present invention are explained in the present specification by using specific examples, and the descriptions of the above examples are only used to help understand the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A mobile threading method, comprising:
configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file;
dragging the page components in a visual editing interface to obtain a layout file corresponding to each page component;
building the reference of the layout file to the service logic configuration file to obtain the code information corresponding to the target activity;
and deploying the code information, and determining an activity entry corresponding to the target activity, so that a user can access the target activity according to the activity entry.
2. The method of claim 1, wherein the layout file comprises an abstract syntax tree file, and wherein obtaining the layout file corresponding to each page component comprises:
acquiring layout information and attribute information corresponding to the dragged page component;
and constructing an abstract syntax tree file corresponding to the page component according to the layout information and the attribute information.
3. The method according to claim 2, wherein the constructing the abstract syntax tree file corresponding to the page component according to the layout information and the attribute information comprises:
disassembling the layout information and the attribute information to obtain at least one object forming node;
determining a father node corresponding to each composition object node;
and drawing an abstract syntax tree corresponding to the page component according to the composition object node and the father node to obtain an abstract syntax tree file corresponding to the page component.
4. The method of claim 1, wherein the layout file comprises an object numbered musical notation file, and the obtaining the layout file corresponding to each page component comprises:
acquiring layout information and attribute information corresponding to the dragged page component;
performing component object extraction on the layout information and the attribute information to obtain at least one component object information corresponding to the page component;
and establishing an object numbered musical notation file corresponding to the page component according to the composition object information.
5. The method according to claim 4, wherein the creating an object profile file corresponding to the page component according to the constituent object information comprises:
determining the attribute name corresponding to the composition object information;
establishing a mapping relation between the attribute name and the composition object information;
and establishing an object numbered musical notation file corresponding to the page component according to the mapping relation.
6. The method of claim 1, wherein the establishing a reference to the business logic configuration file by the layout file comprises:
determining number information corresponding to the service logic configuration file;
and establishing a mapping relation between the reference attribute in the layout file and the number information.
7. The method of claim 1, wherein the deploying the code information comprises:
and when the logic verification of the target activity passes, directly deploying the code information.
8. An active thread applying apparatus, comprising:
the configuration module is used for configuring business logic corresponding to at least one page component in the target activity to obtain at least one business logic configuration file;
the dragging module is used for dragging the page components in a visual editing interface to obtain a layout file corresponding to each page component;
the reference module is used for establishing the reference of the layout file to the business logic configuration file to obtain the code information corresponding to the target activity;
and the deployment module is used for deploying the code information and determining an activity entrance corresponding to the target activity so that a user can access the target activity according to the activity entrance.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the activity bringing method according to any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the steps of the activity bringing on-line method according to any one of claims 1 to 7.
CN202111033062.9A 2021-09-03 2021-09-03 Activity online method and device, electronic equipment and computer readable storage medium Pending CN113835700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111033062.9A CN113835700A (en) 2021-09-03 2021-09-03 Activity online method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111033062.9A CN113835700A (en) 2021-09-03 2021-09-03 Activity online method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113835700A true CN113835700A (en) 2021-12-24

Family

ID=78962253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111033062.9A Pending CN113835700A (en) 2021-09-03 2021-09-03 Activity online method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113835700A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115455876A (en) * 2022-09-21 2022-12-09 芯华章科技(北京)有限公司 Method for debugging logic system design and electronic equipment
CN115543290A (en) * 2022-10-12 2022-12-30 睿珀智能科技有限公司 Visual programming method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115455876A (en) * 2022-09-21 2022-12-09 芯华章科技(北京)有限公司 Method for debugging logic system design and electronic equipment
CN115455876B (en) * 2022-09-21 2023-09-22 芯华章科技(北京)有限公司 Method for debugging logic system design and electronic equipment
CN115543290A (en) * 2022-10-12 2022-12-30 睿珀智能科技有限公司 Visual programming method and system
CN115543290B (en) * 2022-10-12 2024-04-19 睿珀智能科技有限公司 Visual programming method and system

Similar Documents

Publication Publication Date Title
CN102449598B (en) Bag design and generation
CN110944048B (en) Service logic configuration method and device
JP2023520420A (en) A batching technique for handling imbalanced training data for chatbots
CN113835700A (en) Activity online method and device, electronic equipment and computer readable storage medium
CN102667730A (en) Design time debugging
US20200409693A1 (en) File generation method, device and apparatus, and storage medium
JP7093397B2 (en) Question answering robot generation method and equipment
CN113069769B (en) Cloud game interface display method and device, electronic equipment and storage medium
CN110297633B (en) Transcoding method, device, equipment and storage medium
CN111708528A (en) Method, device and equipment for generating small program and storage medium
CN104199647A (en) Visualization system and implementation method based on IBM host
CN109966742A (en) The method and device of rendering performance data is obtained in game running
CN106484389B (en) Action stream segment management
CN112882930A (en) Automatic testing method and device, storage medium and electronic equipment
JP2022019524A (en) Modeling parameter configuration method, apparatus, device, computer storage medium, and computer program
CN107590110B (en) Text display method and device
CN116360735A (en) Form generation method, device, equipment and medium
CN114594934A (en) Visual page generation method, device, equipment and medium
CN114217789A (en) Function component expansion method, device, equipment, storage medium and program product
CN115113850A (en) Cross-platform application construction and operation method, server, terminal and system
US20210074265A1 (en) Voice skill creation method, electronic device and medium
WO2023169193A1 (en) Method and device for generating smart contract
CN115858556A (en) Data processing method and device, storage medium and electronic equipment
CN114968741A (en) Performance test method, system, equipment and medium based on scene platform
CN111831277B (en) Virtual data generation method, system, device and computer readable storage medium

Legal Events

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