CN115220782A - Activity configuration method and device, readable medium and electronic equipment - Google Patents

Activity configuration method and device, readable medium and electronic equipment Download PDF

Info

Publication number
CN115220782A
CN115220782A CN202210927940.XA CN202210927940A CN115220782A CN 115220782 A CN115220782 A CN 115220782A CN 202210927940 A CN202210927940 A CN 202210927940A CN 115220782 A CN115220782 A CN 115220782A
Authority
CN
China
Prior art keywords
configuration
state
target
parameter
activity
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
CN202210927940.XA
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210927940.XA priority Critical patent/CN115220782A/en
Publication of CN115220782A publication Critical patent/CN115220782A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The method comprises the steps of responding to a received activity configuration request triggered by a user, obtaining a configuration file of a target component, wherein the configuration file comprises a first configuration file and a second configuration file, the first configuration file is used for determining a UI (user interface) display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity; configuring the target activity according to the configuration file of the target component; in this way, the target activity is configured through the first configuration file used for determining the UI display style of the target activity and the second configuration file used for determining the control instruction of the target activity, so that the flexibility of activity configuration can be effectively improved, and the activity configuration efficiency can also be effectively improved.

Description

Activity configuration method and device, readable medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an activity configuration method and apparatus, a readable medium, and an electronic device.
Background
In the face of activity configuration with new scene requirements, the current commonly used configuration method is to perform modification iteration on an existing activity component, or copy an existing activity component code and modify the activity component on the basis of the existing activity component code so as to configure and obtain an activity component with a new scene; however, when an iteration is modified on an existing active component, compatibility processing is generally performed on a page using the existing active component, so that there is a risk of causing errors on other pages; on the basis of the existing activity component codes, modification does not affect historical activities, but the problems of poor flexibility and low activity configuration efficiency exist.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The disclosure provides an activity configuration method, an activity configuration device, a readable medium and an electronic device.
In a first aspect, the present disclosure provides a method of activity configuration, the method comprising:
the method comprises the steps of responding to an activity configuration request triggered by a user, obtaining configuration files of a target component, wherein the configuration files comprise a first configuration file and a second configuration file, the first configuration file is used for determining a UI display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity;
configuring the target activity according to the configuration file of the target component.
In a second aspect, the present disclosure provides an active configuration apparatus, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to respond to an activity configuration request triggered by a user to acquire configuration files of a target component, the configuration files comprise a first configuration file and a second configuration file, the first configuration file is used for determining a UI display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity;
a configuration module configured to configure the target activity according to the profile of the target component.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect above.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the steps of the method of the first aspect above.
According to the technical scheme, the configuration files of the target component are obtained by responding to an activity configuration request triggered by a user, wherein the configuration files comprise a first configuration file and a second configuration file, the first configuration file is used for determining a UI (user interface) display style of the target activity, and the second configuration file is used for determining a control instruction of the target activity; configuring the target activity according to the configuration file of the target component; in this way, the target activity is configured through the first configuration file for determining the UI display style of the target activity and the second configuration file for determining the control instruction of the target activity, so that the flexibility of activity configuration can be effectively improved, and the activity configuration efficiency can also be effectively improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 is a disassembled schematic view of the components provided by an exemplary embodiment of the present disclosure;
FIG. 2 is a logical block diagram of one view and instructions provided by an exemplary embodiment of the present disclosure;
FIG. 3 is a logic block diagram providing a view and instructions according to the embodiment shown in FIG. 2;
FIG. 4 is a flow chart illustrating a method of activity configuration according to an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a component configuration interface shown in an exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a component configuration interface shown in FIG. 5 according to the embodiment of the present disclosure;
FIG. 7 is a schematic diagram of another component configuration interface shown in the embodiment of FIG. 5 according to the present disclosure;
FIG. 8 is a schematic view of a movable assembly interface shown in an exemplary embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a profile code shown in an exemplary embodiment of the present disclosure;
FIG. 10 is a block diagram of an active configuration apparatus shown in an exemplary embodiment of the present disclosure;
fig. 11 is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Before describing the specific embodiments of the present disclosure in detail, the following description is first made on application scenarios of the present disclosure, and the present disclosure may be applied to a process of configuring an active component, where usually, performance and logic of one active component are determined when program code is written, and a user is supported to perform configuration by several attributes exposed to the outside in an application process, and there is no more variable space for the configuration, if a new scenario needs to be added or a new logic needs to be added, in a related art, either iteration is modified on an existing active component, or existing active component code is copied and modified on the basis of the existing active component code, however, when iteration is modified on an existing active component, a page using the existing active component is usually subjected to compatibility processing, and thus there is a risk of causing errors in other pages; on the basis of the existing activity component codes, modification does not affect historical activities, but the problems of poor flexibility and low activity configuration efficiency exist. The inventor finds that any one movable assembly can be disassembled into three parts: view (View), state (State), and Command (Command), referred to as CSV (Command State View) mode temporarily, as shown in fig. 1 (fig. 1 is a component disassembly diagram provided in an exemplary embodiment of the present disclosure), wherein a View contains representations and styles, such as buttons, pictures, texts, etc., and is one of the representations of the View (as shown in fig. 2, fig. 2 is a logical block diagram of one of the views and commands provided in an exemplary embodiment of the present disclosure), and pictures, texts, font color sizes, etc., all belong to the styles. The view is responsible for monitoring the interaction behavior of the user and emits the interaction behavior in the form of an event, and the state records the interaction process of the user, for example, the state of a prize drawing button has three values: the initial state is the receivable prize, and after the prize is clicked, the prize is switched to the received prize. The view binds the corresponding state, judges the state value through the condition, applies different view styles (as shown in figure 2), namely realizes updating the view expression according to the user interaction behavior; the instruction includes three parts (as shown in fig. 2), the starting point of the instruction is a monitoring event (e.g., page loading completion, component loading completion, user click), the event is triggered from a view, the condition may be various, such as determining whether the event is a PC end or an H5 end, or determining whether the event is currently in a state of prize claimable, and the action may be a popup window, a link jump, an execution http interface, an update state, and the like, where the update state is an action to implement a state value flow logic, and after the action is ended, the condition may be linked to the action to support a longer execution link. The above specific execution logic in fig. 2 may refer to fig. 3 (fig. 3 is a logic block diagram providing a view and an instruction according to the embodiment shown in fig. 2), that is, the refresh of component styles may be realized by disassembling an active component into a UI (User Interaction) management and instruction engine, and integrating a state management library supporting a Publish/Subscribe (Publish/Subscribe) mode, and connecting this action of setting a state.
Based on the above findings, the present disclosure provides an activity configuration method, an apparatus, a readable medium, and an electronic device, where the method includes: the method comprises the steps that a configuration file of a target component is obtained by responding to an activity configuration request triggered by a user, wherein the configuration file comprises a first configuration file and a second configuration file, the first configuration file is used for determining a UI display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity; configuring the target activity according to the configuration file of the target component; in this way, the target activity is configured through the first configuration file used for determining the UI display style of the target activity and the second configuration file used for determining the control instruction of the target activity, so that the flexibility of activity configuration can be effectively improved, and the activity configuration efficiency can also be effectively improved.
The technical scheme of the disclosure is explained in detail by combining specific embodiments.
FIG. 4 is a flow chart illustrating a method of activity configuration according to an exemplary embodiment of the present disclosure; as shown in fig. 4, the method may include:
step 101, in response to receiving an activity configuration request triggered by a user, obtaining a configuration file of a target component, where the configuration file includes a first configuration file and a second configuration file, the first configuration file is used to determine a UI display style of the target activity, and the second configuration file is used to determine a control instruction of the target activity.
The user can send an HTTP request or start a parameter configuration APP and the like by clicking a preset configuration request button to trigger an activity configuration request.
The obtaining of the configuration file of the target component in this step can be implemented by the steps shown in S1 to S3:
s1, obtaining presentation logic configuration parameters and instruction logic configuration parameters through a preset component configuration interface, wherein the presentation logic configuration parameters comprise an activity state parameter, a state condition parameter and a state presentation style parameter, and the presentation logic configuration parameters are used for determining a UI (user interface) presentation style of a target activity; the instruction logic configuration parameters include an event state parameter, an event condition parameter and an execution instruction parameter, and the instruction logic configuration parameters are control instructions for determining the target activity. The preset component configuration interface can comprise a presentation configuration sub-interface and an instruction configuration sub-interface, wherein the presentation configuration sub-interface comprises an active state configuration area, a state condition configuration area and a state presentation style configuration area; the command configuration sub-interface comprises an event state configuration area, an event condition configuration area and an execution command configuration area; the state presentation style configuration region may include a presentation style configuration sub-region and a style configuration sub-region.
In S1, the active state parameter input by the user may be acquired through the active state configuration area; acquiring the state condition parameters input by a user through the state condition configuration area; acquiring the state expression style parameter input by a user through the state expression style configuration area; acquiring the event state parameters input by a user through the event state configuration area; acquiring the event condition parameters input by a user through the event condition configuration area; and acquiring the execution instruction parameters input by the user through the instruction configuration area.
Optionally, the state expression style configuration region includes an expression style configuration sub-region and a style configuration sub-region, and the acquiring the state expression style parameter input by the user through the state expression style configuration region may include: after receiving a target expression form input by a user through the expression form configuration subarea, displaying a target style configuration subarea corresponding to the target expression form; and acquiring the state expression style parameter corresponding to the target expression form through the target style configuration sub-area.
It should be noted that the active state configuration area may be an interface, a window, a tab, an input box or a selectable option for configuring an active state parameter, the state condition configuration area may be an interface, a window, a tab, an input box or a selectable option for configuring a state condition parameter, the state expression style configuration area may be an interface, a window, a tab, an input box or a selectable option for configuring a state expression style parameter, wherein the expression form configuration area and the style configuration area may be a window in an interface for configuring a state expression style parameter, a tab in a window for configuring a state expression style parameter, and an input box or a selectable option in a tab for configuring a state expression style parameter, and the event state configuration area may be an interface, a window, a tab, an input box or a selectable option for configuring an event state parameter, and the event condition configuration area may be an interface, a window, a tab, an input box or a selectable option for configuring an event condition parameter.
Illustratively, as shown in fig. 5, fig. 5 is a schematic diagram of a component configuration interface according to an exemplary embodiment of the present disclosure, in fig. 5, clicking on the UI configuration tab reveals the presentation configuration sub-interface, clicking on the command configuration tab reveals the command configuration sub-interface shown in fig. 6, and fig. 6 is a schematic diagram of a component configuration interface according to an exemplary embodiment of the present disclosure shown in fig. 5; a plurality of options shown behind the form title shown in the presentation configuration sub-interface are the state presentation style configuration regions, and when one of the options is selected, a style configuration sub-region corresponding to a specific form can be displayed in the region on the left, as shown in fig. 7, fig. 7 is a schematic diagram of another component configuration interface shown according to the embodiment shown in fig. 5 of the present disclosure, and an image size, an image brightness, an image hue, a text font, a text font color, a font size, a button shape, and the like are shown in the style configuration sub-region.
It should be further noted that the active status parameter is used to characterize the interaction status that may occur during the interaction with the user, for example, as shown in fig. 8, fig. 8 is a schematic diagram of an active component interface according to an exemplary embodiment of the present disclosure, fig. 8 is a schematic diagram of a prize drawing button configured to support three statuses, the function of the prize drawing button is to click the prize drawing button to draw a prize when the current active status is a prize drawable status, and the active status parameter may include, during the configuration process, the following buttons that are changed to be drawn after the prize drawing is successful: the activity state value is 0 and is used for representing the non-receivable prize; the activity state value is 1, which represents the non-winning prize; the activity state value is 2, which represents the awarded prize; that is, when the user does not have the condition of receiving the prize, the state value corresponding to the active state is 0, when the user qualifies for receiving the prize but does not click the preset prize receiving button, the state value corresponding to the current active state is 1, and when the user clicks the preset prize receiving button, the state value corresponding to the active state is 2.
The status condition parameter is used to specify the condition information that should be satisfied when a certain target style is to be displayed, and still taking fig. 8 as an example above, when the user clicks the award drawing button, the current activity status value is 2, the condition status parameter may include determining whether the current activity status value is 0, 1, or 2, and in the case of determining that the current activity status value is 2, the UI expression may be performed according to the status expression style corresponding to the status condition that satisfies the current activity status value of 2; for example, in the above fig. 8, when the condition that the current activity state value is 2 is satisfied, the corresponding presentation style is to present the taken picture, when the current activity state value is determined to be 0, UI presentation may be performed according to the status presentation style that satisfies the status condition that the current activity state value is 0, and when the current activity state value is determined to be 1, UI presentation may be performed according to the status presentation style that satisfies the condition that the current activity state value is 1. The status expression style parameter may include a target expression form, which may include a button form, a picture form, a text form, etc., and an expression style parameter, which may be a specific image size, picture brightness, picture tone, a text font color, a font size, a button shape, etc. The configuration of the presentation logic configuration parameters shown in fig. 8 above can be performed by the following table 1, as shown in table 1:
Figure BDA0003780384690000091
TABLE 1
The event status parameter may be an event that the event monitoring system may monitor in the target activity, such as a user click, a page load completion, a user login, a logout, and a resource access. The event condition parameter may be whether the event is determined to be a PC terminal or an H5 terminal, whether a certain event occurs, whether the event is in a certain APP environment, or the like. The parameters of the execution instruction can comprise opening/closing a popup window, jumping, JSbridge, executing an HTTP interface, reporting a buried point, copying to a clipboard, triggering a certain event and the like.
Still taking the prize drawing button configuration process shown in the above figure as an example, the configuration of the event status parameter, the event condition parameter, and the execution instruction parameter can be performed according to the following contents shown in table 2, which are as follows:
Figure BDA0003780384690000092
TABLE 2
And S2, generating the first configuration file according to the performance logic configuration parameters.
In S2, the presentation logic configuration parameters include an activity state parameter, a state condition parameter and a state presentation style parameter, and a preset presentation logic code frame may be obtained; embedding the active state parameter, the state condition parameter and the state expression style parameter into the expression logic code frame to obtain the first configuration file.
The first configuration file is configured to, when the target activity is triggered, perform UI display according to a target activity style corresponding to the state expression style parameter if the target activity state parameter satisfies a target state condition corresponding to the state condition parameter under the condition that the current activity state is determined to be the target activity state corresponding to the activity state parameter according to the target activity state parameter.
It should be noted that the activity state parameter, the first mapping relationship between the state condition parameter and the state expression style parameter may be established through the expression logic code framework, so as to implement the function of determining the UI expression part of the target activity component according to the configured expression logic configuration parameter, that is, if the target activity state parameter satisfies the target state condition corresponding to the state condition parameter, the UI expression is performed according to the target activity style corresponding to the state expression style parameter.
And S3, generating the second configuration file according to the instruction logic configuration parameters.
In S3, the instruction logic configuration parameters include an event state parameter, an event condition parameter, and an execution instruction parameter, and a preset instruction logic code frame may be obtained; embedding the event state parameter, the event condition parameter and the execution instruction parameter into the instruction logic code framework to obtain the second configuration file.
The second configuration file is configured to, when the target activity is triggered, execute the target instruction corresponding to the execution instruction parameter if the target event state parameter satisfies the target event condition corresponding to the event condition parameter under the condition that the current event state is determined to be the target event state corresponding to the event state parameter according to the target event state parameter.
It should be noted that, here, a second mapping relationship among the event state parameter, the event condition parameter, and the execution instruction parameter is established through the instruction logic code framework, so as to implement a function of executing a preset action instruction when it is determined that the current event state parameter satisfies a certain event condition according to the configured instruction logic configuration parameter.
Illustratively, as shown in fig. 9, fig. 9 is a schematic diagram of a profile code according to an exemplary embodiment of the present disclosure; in fig. 9, the codes shown in lines 2 to 29 are code programs corresponding to the first configuration file, in lines 2 to 29, the data in the quotation marks are representation logic configuration parameters, and the data other than the quotation marks are representation logic code frames; the codes shown in the 30 th to 42 th lines are code programs corresponding to the second configuration file, in the 30 th to 42 th lines, data in quotation marks are instruction logic configuration parameters, and data except the quotation marks are instruction logic code frames.
Through the steps shown in S1 to S3, the visual configuration of the first configuration file and the second configuration file can be effectively realized, so that the visual configuration of the UI display style and the control instruction is realized, and the improvement of user experience is facilitated.
Step 102, configuring the target activity according to the configuration file of the target component.
In this step, the configuration of the target activity is completed by running the configuration file including the first configuration file and the second configuration file.
According to the technical scheme, the presentation logic configuration parameters for determining the UI display style of the target activity and the instruction logic configuration parameters for determining the control instruction of the target activity are obtained through the preset component configuration interface, so that the visual configuration of the UI display style and the control instruction is realized, the flexibility of activity configuration can be effectively improved, and the activity configuration efficiency can also be effectively improved.
FIG. 10 is a block diagram of an active configuration apparatus shown in an exemplary embodiment of the present disclosure; as shown in fig. 10, the apparatus may include:
an obtaining module 501, configured to obtain, in response to receiving an activity configuration request triggered by a user, a configuration file of a target component, where the configuration file includes a first configuration file and a second configuration file, the first configuration file is used to determine a UI display style of a target activity, and the second configuration file is used to determine a control instruction of the target activity;
a configuration module 502 configured to configure the target activity according to the configuration file of the target component.
According to the technical scheme, the target activity is configured through the first configuration file used for determining the UI display style of the target activity and the second configuration file used for determining the control instruction of the target activity, so that the flexibility of activity configuration can be effectively improved, and the activity configuration efficiency can also be effectively improved.
Optionally, the obtaining module 501 is configured to:
acquiring an expression logic configuration parameter and an instruction logic configuration parameter through a preset component configuration interface;
generating the first configuration file according to the performance logic configuration parameters;
and generating the second configuration file according to the instruction logic configuration parameters.
Optionally, the presentation logic configuration parameters include an activity status parameter, a status condition parameter and a status presentation style parameter, and the obtaining module 501 is configured to:
acquiring a preset expression logic code frame;
embedding the active state parameters, the state condition parameters and the state expression style parameters into the expression logic code framework to obtain the first configuration file;
the first configuration file is configured to, when the target activity is triggered, perform UI display according to a target activity style corresponding to the state expression style parameter if the target activity state parameter satisfies a target state condition corresponding to the state condition parameter under the condition that the current activity state is determined to be the target activity state corresponding to the activity state parameter according to the target activity state parameter.
Optionally, the instruction logic configuration parameters include an event status parameter, an event condition parameter, and an execution instruction parameter, and the obtaining module 501 is configured to:
acquiring a preset instruction logic code frame;
embedding the event state parameter, the event condition parameter and the execution instruction parameter into the instruction logic code framework to obtain the second configuration file.
The second configuration file is configured to, when the target activity is triggered, execute the target instruction corresponding to the execution instruction parameter if the target event state parameter satisfies the target event condition corresponding to the event condition parameter, under a condition that the current event state is determined to be the target event state corresponding to the event state parameter according to the target event state parameter.
Optionally, the preset component configuration interface includes a presentation configuration sub-interface and an instruction configuration sub-interface;
the presentation configuration sub-interface comprises an active state configuration area, a state condition configuration area and a state presentation style configuration area;
the instruction configuration sub-interface comprises an event state configuration area, an event condition configuration area and an execution instruction configuration area.
Optionally, the obtaining module 501 is configured to:
acquiring the activity state parameters input by a user through the activity state configuration area;
acquiring the state condition parameters input by a user through the state condition configuration area;
acquiring the state expression style parameter input by a user through the state expression style configuration area;
acquiring the event state parameters input by a user through the event state configuration area;
acquiring the event condition parameters input by a user through the event condition configuration area;
and acquiring the execution instruction parameters input by the user through the instruction configuration area.
Optionally, the state representation style configuration region includes a representation form configuration sub-region and a style configuration sub-region, and the obtaining module 501 is configured to:
after receiving a target expression form input by a user through the expression form configuration subarea, displaying a target style configuration subarea corresponding to the target expression form;
and acquiring the state expression style parameter corresponding to the target expression form through the target style configuration sub-area.
According to the technical scheme, the presentation logic configuration parameters for determining the UI display style of the target activity and the instruction logic configuration parameters for determining the control instruction of the target activity are acquired through the preset component configuration interface, so that the visual configuration of the UI display style and the control instruction is realized, the flexibility of activity configuration can be effectively improved, and the activity configuration efficiency can also be effectively improved.
Referring now to FIG. 11, shown is a schematic diagram of a structure of an electronic device 600 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present disclosure.
As shown in fig. 11, the electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 11 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the communication may be performed using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may be separate and not incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving an activity configuration request triggered by a user, acquiring a configuration file of a target component, wherein the configuration file comprises a first configuration file and a second configuration file, the first configuration file is used for determining a UI (user interface) display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity; configuring the target activity according to the configuration file of the target component.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, and including conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. For example, the obtaining module may be further described as "obtaining a configuration file of the target component in response to receiving a user-triggered activity configuration request, the configuration file including a first configuration file and a second configuration file, the first configuration file being used for determining a UI presentation style of the target activity, and the second configuration file being used for determining a control instruction of the target activity".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In accordance with one or more embodiments of the present disclosure, example 1 provides an activity configuration method, the method comprising:
acquiring configuration files of a target component, wherein the configuration files comprise a first configuration file and a second configuration file, the first configuration file is used for determining a UI (user interface) display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity;
configuring the target activity according to the configuration file of the target component.
Example 2 provides the method of example 1, the obtaining a configuration file for the target component, including:
acquiring an expression logic configuration parameter and an instruction logic configuration parameter through a preset component configuration interface;
generating the first configuration file according to the performance logic configuration parameters;
and generating the second configuration file according to the instruction logic configuration parameters.
In accordance with one or more embodiments of the present disclosure, example 3 provides the method of example 2,
the presentation logic configuration parameters include an activity state parameter, a state condition parameter, and a state presentation style parameter, and the generating the first configuration file according to the presentation logic configuration parameters includes:
acquiring a preset expression logic code frame;
embedding the active state parameter, the state condition parameter and the state expression style parameter into the expression logic code frame to obtain the first configuration file;
the first configuration file is configured to, when the target activity is triggered, perform UI display according to a target activity style corresponding to the state expression style parameter if the target activity state parameter satisfies a target state condition corresponding to the state condition parameter under the condition that the current activity state is determined to be the target activity state corresponding to the activity state parameter according to the target activity state parameter.
In accordance with one or more embodiments of the present disclosure, example 4 provides the method of example 2,
the instruction logic configuration parameters include an event state parameter, an event condition parameter and an execution instruction parameter, and the generating the second configuration file according to the instruction logic configuration parameters includes:
acquiring a preset instruction logic code frame;
embedding the event state parameter, the event condition parameter and the execution instruction parameter into the instruction logic code frame to obtain the second configuration file;
the second configuration file is configured to, when the target activity is triggered, execute the target instruction corresponding to the execution instruction parameter if the target event state parameter satisfies the target event condition corresponding to the event condition parameter, under a condition that the current event state is determined to be the target event state corresponding to the event state parameter according to the target event state parameter.
Example 5 provides the method of example 2, the preset component configuration interface comprising a presentation configuration sub-interface and an instruction configuration sub-interface;
the presentation configuration sub-interface comprises an active state configuration area, a state condition configuration area and a state presentation style configuration area;
the instruction configuration sub-interface comprises an event state configuration area, an event condition configuration area and an execution instruction configuration area.
Example 6 provides the method of example 5, wherein obtaining the performance logic configuration parameters and the instruction logic configuration parameters via the pre-set component configuration interface includes:
acquiring an activity state parameter input by a user through the activity state configuration area;
acquiring state condition parameters input by a user through the state condition configuration area;
acquiring a state expression style parameter input by a user through the state expression style configuration area;
acquiring event state parameters input by a user through the event state configuration area;
acquiring event condition parameters input by a user through the event condition configuration area;
and acquiring the execution instruction parameters input by the user through the instruction configuration area.
Example 7 provides the method of example 6, the state representation style configuration region including a representation configuration sub-region and a style configuration sub-region, the obtaining the state representation style parameter input by the user through the state representation style configuration region including:
after receiving a target expression form input by a user through the expression form configuration subarea, displaying a target style configuration subarea corresponding to the target expression form;
and acquiring the state expression style parameter corresponding to the target expression form through the target style configuration sub-area.
Example 8 provides, in accordance with one or more embodiments of the present disclosure, an active configuration apparatus, comprising:
the obtaining module is configured to obtain a configuration file of the target component in response to receiving an activity configuration request triggered by a user, wherein the configuration file comprises a first configuration file and a second configuration file, the first configuration file is used for determining a UI (user interface) display style of the target activity, and the second configuration file is used for determining a control instruction of the target activity;
a configuration module configured to configure the target activity according to the configuration file of the target component.
Example 9 provides, in accordance with one or more embodiments of the present disclosure, a computer-readable medium having a computer program stored thereon, the program, when executed by a processing device, implementing the steps of the method of any of examples 1-7 above.
Example 10 provides, in accordance with one or more embodiments of the present disclosure, an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the steps of the method of any of examples 1-7 above.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (10)

1. A method of activity configuration, the method comprising:
the method comprises the steps of responding to an activity configuration request triggered by a user, obtaining configuration files of a target component, wherein the configuration files comprise a first configuration file and a second configuration file, the first configuration file is used for determining a UI display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity;
configuring the target activity according to the configuration file of the target component.
2. The method of claim 1, wherein obtaining the configuration file of the target component comprises:
acquiring a performance logic configuration parameter and an instruction logic configuration parameter through a preset component configuration interface;
generating the first configuration file according to the performance logic configuration parameters;
and generating the second configuration file according to the instruction logic configuration parameters.
3. The method of claim 2, wherein the presentation logic configuration parameters include an active state parameter, a state condition parameter, and a state presentation style parameter, and wherein generating the first configuration file based on the presentation logic configuration parameters comprises:
acquiring a preset expression logic code frame;
embedding the active state parameters, the state condition parameters and the state representation style parameters into the representation logic code framework to obtain the first configuration file;
and when the target activity is triggered, under the condition that the current activity state is determined to be the target activity state corresponding to the activity state parameter according to the target activity state parameter, if the target activity state parameter meets the target state condition corresponding to the state condition parameter, performing UI display according to the target activity style corresponding to the state expression style parameter.
4. The method of claim 2, wherein the instruction logic configuration parameters comprise an event status parameter, an event condition parameter, and an execution instruction parameter, and wherein generating the second configuration file according to the instruction logic configuration parameters comprises:
acquiring a preset instruction logic code frame;
embedding the event state parameters, the event condition parameters and the execution instruction parameters into the instruction logic code framework to obtain the second configuration file;
and when the target activity is triggered, under the condition that the current event state is determined to be the target event state corresponding to the event state parameter according to the target event state parameter, if the target event state parameter meets the target event condition corresponding to the event condition parameter, executing the target instruction corresponding to the execution instruction parameter.
5. The method of claim 2, wherein the preset component configuration interface comprises a presentation configuration sub-interface and an instruction configuration sub-interface;
the expression configuration sub-interface comprises an active state configuration area, a state condition configuration area and a state expression style configuration area;
the instruction configuration sub-interface comprises an event state configuration area, an event condition configuration area and an execution instruction configuration area.
6. The method of claim 5, wherein the obtaining of the performance logic configuration parameters and the instruction logic configuration parameters through the preset component configuration interface comprises:
acquiring activity state parameters input by a user through the activity state configuration area;
acquiring state condition parameters input by a user through the state condition configuration area;
acquiring a state expression style parameter input by a user through the state expression style configuration area;
acquiring event state parameters input by a user through the event state configuration area;
acquiring event condition parameters input by a user through the event condition configuration area;
and acquiring an execution instruction parameter input by a user through the instruction configuration area.
7. The method according to claim 6, wherein the status expression style configuration region comprises an expression configuration sub-region and a style configuration sub-region, and the acquiring the status expression style parameter input by the user through the status expression style configuration region comprises:
after a target expression form input by a user through the expression form configuration subarea is received, displaying a target style configuration subarea corresponding to the target expression form;
and acquiring the state expression style parameters corresponding to the target expression form through the target style configuration subarea.
8. An activity configuration device, the device comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to respond to an activity configuration request triggered by a user to acquire configuration files of a target component, the configuration files comprise a first configuration file and a second configuration file, the first configuration file is used for determining a UI display style of a target activity, and the second configuration file is used for determining a control instruction of the target activity;
a configuration module configured to configure the target activity according to the configuration file of the target component.
9. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 7.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 7.
CN202210927940.XA 2022-08-03 2022-08-03 Activity configuration method and device, readable medium and electronic equipment Pending CN115220782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210927940.XA CN115220782A (en) 2022-08-03 2022-08-03 Activity configuration method and device, readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210927940.XA CN115220782A (en) 2022-08-03 2022-08-03 Activity configuration method and device, readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115220782A true CN115220782A (en) 2022-10-21

Family

ID=83616314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210927940.XA Pending CN115220782A (en) 2022-08-03 2022-08-03 Activity configuration method and device, readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115220782A (en)

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
CN111629252B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
CN111459364B (en) Icon updating method and device and electronic equipment
CN110070592B (en) Generation method and device of special effect package and hardware device
CN110619100B (en) Method and apparatus for acquiring data
CN113505302A (en) Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment
CN114035879A (en) Page theme color changing method and device, electronic equipment and computer readable medium
CN111694629A (en) Information display method and device and electronic equipment
CN114021016A (en) Data recommendation method, device, equipment and storage medium
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN110134905B (en) Page update display method, device, equipment and storage medium
CN115470754A (en) Data analysis method and device, computer readable medium and electronic equipment
CN114187169B (en) Method, device, equipment and storage medium for generating video special effect package
CN115576458A (en) Application window display method, device, equipment and medium
CN111767062A (en) Application configuration data updating method, device, equipment and storage medium
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN114327453A (en) Page display method, device, equipment and storage medium
CN115220782A (en) Activity configuration method and device, readable medium and electronic equipment
CN111199519B (en) Method and device for generating special effect package
CN111367592B (en) Information processing method and device
CN112148417A (en) Page adjusting method and device, electronic equipment and computer readable medium
CN114428823B (en) Data linkage method, device, equipment and medium based on multidimensional variable expression
WO2023098611A1 (en) Special effect display method and apparatus, and device and storage medium
CN111294657A (en) Information processing method and device

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