CN114546343A - Generation method and device of activity page - Google Patents

Generation method and device of activity page Download PDF

Info

Publication number
CN114546343A
CN114546343A CN202210153510.7A CN202210153510A CN114546343A CN 114546343 A CN114546343 A CN 114546343A CN 202210153510 A CN202210153510 A CN 202210153510A CN 114546343 A CN114546343 A CN 114546343A
Authority
CN
China
Prior art keywords
activity
module
determining
target
display
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
CN202210153510.7A
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210153510.7A priority Critical patent/CN114546343A/en
Publication of CN114546343A publication Critical patent/CN114546343A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Game Theory and Decision Science (AREA)
  • Artificial Intelligence (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a method and a device for generating a live page, and relates to cloud computing and computer technologies in an artificial intelligence technology. The specific implementation scheme is as follows: the method comprises the steps of receiving configuration information used for generating a target activity page, wherein the configuration information comprises the name of an activity module, calling display content data corresponding to the activity module according to the name of the activity module, determining context environment data corresponding to the display content data according to the configuration information, and generating the target activity page according to the display content data and the context environment data without introducing or rewriting logic codes, so that the efficiency of generating the target activity page is improved, the development cost of the target activity page is reduced, activities of various scenes can be flexibly met, and the technical effect of improving the flexibility and diversity of the target activity page is achieved.

Description

Generation method and device of activity page
Technical Field
The present disclosure relates to cloud computing and computer technologies in an artificial intelligence technology, and in particular, to a method and an apparatus for generating a live page.
Background
With the development of internet technology, more and more websites and merchants develop online activities, and the online activities often need to be subjected to page design according to the requirements of activity items to generate (front-end) activity pages.
In the prior art, for each activity, a corresponding activity template needs to be configured for each activity, so as to generate an activity page corresponding to the activity based on the activity template.
However, the method has the technical problems of long time for generating the activity page corresponding to the activity and low efficiency.
Disclosure of Invention
The present disclosure provides a method and an apparatus for generating an active page for improving generation efficiency of the active page.
According to a first aspect of the present disclosure, a method for generating a live page is provided, including:
receiving configuration information for generating a target activity page, wherein the configuration information comprises the name of an activity module;
calling display content data corresponding to the activity module according to the name of the activity module, and determining context environment data corresponding to the display content data according to the configuration information;
and generating the target activity page according to the display content data and the context environment data.
According to a second aspect of the present disclosure, there is provided an apparatus for generating a live page, including:
the system comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is used for receiving configuration information used for generating a target activity page, and the configuration information comprises the name of an activity module;
the calling unit is used for calling the display content data corresponding to the activity module according to the name of the activity module;
the determining unit is used for determining context environment data corresponding to the display content data according to the configuration information;
and the generating unit is used for generating the target activity page according to the display content data and the context environment data.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising: a computer program, stored in a readable storage medium, from which at least one processor of an electronic device can read the computer program, execution of the computer program by the at least one processor causing the electronic device to perform the method of the first aspect.
According to the method and the device for generating the activity page, the display content data are determined based on the name of the activity module, the context environment data are determined according to the configuration information, the technical characteristics of the target activity page are generated according to the display content data and the context environment data, and logic codes do not need to be introduced or rewritten, so that the efficiency of generating the target activity page is improved, the development cost of the target activity page is reduced, activities of various scenes can be flexibly met, and the technical effects of flexibility and diversity of the target activity page are improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
FIG. 3 is a schematic diagram according to a third embodiment of the present disclosure;
FIG. 4 is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 5 is a schematic diagram according to a fifth embodiment of the present disclosure;
FIG. 6 is a schematic diagram according to a sixth embodiment of the present disclosure;
fig. 7 is a block diagram of an electronic device for implementing a method of generating an activity page of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
With the development of internet technology, more and more websites and merchants develop online activities, and online activities often require User Interface Design (UI) Design, front-end development, back-end development, front-end and back-end joint debugging and other development processes to generate front-end activity pages (activity pages for short) according to the requirements of activity projects.
In some embodiments, for any activity, differences of UIs, activity rules, activity data and the like in the activity are considered, and therefore, development processes such as UI design, front-end and back-end development, front-end and back-end joint debugging and the like are performed on the activity to generate an activity page corresponding to the activity.
However, with this method, because there may be differences between activities, performing the above-mentioned process separately for each activity until obtaining an activity page corresponding to each activity, is likely to result in a long development time of the activity page corresponding to the activity, and thus results in technical problems of long online period of the activity, low efficiency, and the like.
In other embodiments, an activity template may be set for each activity, where the activity template includes two dimensions of content, where the content in one dimension is presentation content data and the content in the other dimension is context environment data; and packaging the Activity template as a component into an independent Activity Module (Activity Module), wherein the Activity Module also comprises display content data and context environment data.
If a certain activity page needs to use two or more activities, the activity modules corresponding to the two or more activities are introduced to generate a corresponding activity page, and the information displayed in the activity page by each activity module needs to be controlled by writing a logic code, such as the display position and the display duration of each activity module in the activity page.
However, with this method, on one hand, logic codes need to be introduced, and corresponding version release and online are also needed; on the other hand, when different active pages are generated, the logic code needs to be rewritten; in yet another aspect, the activity module may be misexposed because the activity module may be referenced multiple times.
To avoid at least one of the above technical problems, the inventors of the present disclosure have made creative efforts to obtain the inventive concept of the present disclosure: only the presentation content data is configured in the activity template, while the contextual environment data is determined based on the configuration information to generate the activity page in combination with the presentation content data and the contextual environment data.
Based on the inventive concept, the present disclosure provides a method and an apparatus for generating a moving page, which are applied to cloud computing and computer technologies in an artificial intelligence technology, so as to improve the efficiency of generating a moving page.
Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure, and as shown in fig. 1, a method for generating an activity page according to an embodiment of the present disclosure includes:
s101: configuration information for generating a target activity page is received.
The configuration information includes the name of the active module.
For example, the execution subject of this embodiment may be a generation device of an activity page (hereinafter, referred to as a generation device), and the generation device may be a server (such as a local server, or a cloud server, or a server cluster), or may be a terminal device, or may be a processor, or may be a chip, and the embodiment is not limited.
The "target" in the target activity page is used to distinguish from other activity pages in the following text, such as the history activity page, and cannot be understood as a limitation on the target activity page. The target activity page can be understood as the activity page which needs to be generated currently.
The configuration information refers to information for configuring the relevant content of the target activity page to generate the target activity page, and may be understood as relevant information for configuring the target activity page, and the target activity page may be generated through the configuration information.
In conjunction with the above analysis, the active module may be generated based on the active template, such as a separate module for generating an active page obtained by encapsulating the active template.
The following example implementation may be employed with respect to receiving configuration information:
in one example, the generating device may be connected to the information collecting device and receive configuration information sent by the information collecting device.
The information acquisition device may be a user equipment, such as a user terminal, and specifically may be a handheld mobile terminal. For example, the generating means may be connected to a hand-held mobile terminal through which the user may input the configuration information, and accordingly, the generating means receives the configuration information input by the user through the hand-held mobile terminal.
In another example, the generating device may provide a tool to input configuration information through which a user may transmit the configuration information to the generating device.
The tool for inputting the configuration information may be an interface for connecting with the external device, such as an interface for connecting with another storage device, and the configuration information transmitted by the external device is obtained through the interface.
For another example, the tool for inputting the configuration information may also be a display device, for example, the generating device may output an interface with a function of inputting the configuration information on the display device, and the user may input the configuration information to the generating device through the interface, and accordingly, the generating device obtains the configuration information.
For another example, the tool for inputting the configuration information may also be a sound collector, a keyboard, a mouse, and the like, for example, the user inputs the configuration information in a voice manner based on the sound collector, and for example, the user may input the configuration information through the keyboard and/or the mouse.
It should be understood that the above examples are only for illustrative purposes, and the possible ways of receiving the configuration information in the present embodiment are not to be construed as limitations on the ways of receiving the configuration information.
S102: and calling the display content data corresponding to the activity module according to the name of the activity module, and determining the context environment data corresponding to the display content data according to the configuration information.
The presentation content data may be understood as information related to the activity content of the activity characterized by the name of the activity module, that is, the presentation content data may be understood as data used for generating the content of the target activity page.
Contextual environment data may be understood as data related to the environment in which the presentation content data is located, i.e. contextual environment data may be understood as data related to the environment in which the target activity page is generated, such as the style and location of the presentation content data.
In combination with the above analysis, in some embodiments, the activity module may include the presentation content data and the context data, and in this embodiment, the activity module only corresponds to the presentation content data, and the context data is determined by the configuration information.
S103: and generating a target activity page according to the display content data and the context environment data.
Based on the above analysis, an embodiment of the present disclosure provides a method for generating an active page, including: receiving configuration information for generating a target activity page, wherein the configuration information comprises the name of an activity module, calling the display content data corresponding to the activity module according to the name of the activity module, determining the context environment data corresponding to the display content data according to the configuration information, generating a target activity page according to the display content data and the context environment data, in this embodiment, the content data is presented by determining the presentation content data based on the name of the activity module, determining the contextual environment data from the configuration information, to generate a target activity page from the presentation content data and the contextual environment data, without introducing or rewriting logic code, thereby realizing the purposes of improving the efficiency of generating the target activity page, reducing the development cost of the target activity page, and the method can flexibly meet the activities of various scenes, namely, the technical effects of improving the flexibility and the diversity of the target activity page.
Fig. 2 is a schematic diagram according to a second embodiment of the present disclosure, and as shown in fig. 2, a method for generating an activity page according to the embodiment of the present disclosure includes:
s201: configuration information for generating a target activity page is received.
Wherein, the configuration information includes: the name of the activity module, the activity type, the activity mounting node and the display style of the activity type.
It should be understood that, in order to avoid redundant statements, the present embodiment will not be described again with respect to the same technical features of the present embodiment as those of the above embodiments.
S202: and calling the display content data corresponding to the activity module according to the name of the activity module.
In some embodiments, S202 may include the steps of:
the first step is as follows: and determining the movable template corresponding to the movable module according to the name of the movable module.
The second step is as follows: the presentation content data is extracted from the activity template.
In combination with the above analysis, the activity module is obtained by encapsulating the activity template, and therefore, when the name of the activity module is obtained, the activity template of the activity module can be obtained by determining the encapsulation based on the name of the activity module, so as to extract the display content data from the activity template.
In this embodiment, the movable template is determined by combining the name of the movable module, so that the display content data is determined according to the determined movable template, the determined display content data has higher accuracy and reliability, and a target activity page generated based on the display content data has higher accuracy and reliability.
In some embodiments, the activity module may be pre-constructed so that the presentation content data corresponding to the activity module is called according to the name of the activity module. The construction method of the activity module comprises the following steps:
the first step is as follows: a plurality of historical activity pages are obtained.
The second step is as follows: and extracting the common characteristics of the plurality of historical activity pages, and constructing an activity module according to the common characteristics.
The number of the historical activity pages is not limited in this embodiment, and may be determined based on the needs, the history, and the tests.
For example, the number of historical activity pages may be relatively large for a scenario with relatively high accuracy requirements, whereas the number of historical activity pages may be relatively small for a scenario with relatively low accuracy requirements.
For example, if the number of the historical activity pages is N, the N historical activity pages are analyzed to obtain features of the N historical activity pages, and the features of the N historical activity pages are called common features.
In this embodiment, the activity module is constructed based on the common features by obtaining the common features, so that the activity module has higher universality, and the display content data determined based on the activity module has a technical effect of higher reliability.
In some embodiments, constructing the activity module from the commonality features includes: and extracting display content data for displaying the activity from the common characteristics, and constructing an activity module according to the display content data.
Illustratively, in combination with the above analysis, the display content data is data included in each of the N historical activity pages for displaying the content of the activity, and the display content data is extracted from the common characteristic, so that the display content data has universality, and thus when an activity module is constructed based on the display content data, the activity module has a technical effect of universal applicability.
In some embodiments, constructing the campaign module from the presentation content data comprises: and generating a movable template according to the display content data, and packaging the movable template into a movable module.
Based on the above analysis, since the presentation content data has a higher universality, when the active template is generated based on the presentation content data, it is possible to make the generated active template have a technical effect of higher universal applicability.
S203: a Uniform Resource Locator (URL) corresponding to the name of the active module is determined, and context environment data is obtained according to the URL.
In this embodiment, the context environment data is determined by combining the uniform resource locator, and the determined context environment data has the technical effects of higher accuracy and reliability because the uniform resource locator has uniqueness.
In conjunction with the above analysis, the configuration information also includes the type of activity.
That is, activities have type attributes, different activities may have different activity types, and may also have the same activity type, that is, the number of activities having the same activity type may be plural, e.g., activity a and activity B belong to the same activity type.
Exemplary activity types may include: a card flipping activity type, a lottery activity type, a downloading and delivering activity type, a daily gift activity type, a weekly gift activity type, a new person gift activity type, a jump connection activity type, a questionnaire customization activity type, a card and ticket activity type, a registration activity type, and the like, which are not listed one by one.
Based on the analysis, it can be known that the activity module is obtained by encapsulating the activity template, and the activity template is determined by the common characteristics of the historical activity pages, and the activity has the type attribute, so in some embodiments, for different types of attributes, the activity template corresponding to the type attribute may be generated, and then the activity module corresponding to the type attribute is obtained by encapsulating, and when the activity type is obtained, the activity module corresponding to the activity type may be determined from the activity modules, so as to determine the activity template corresponding to the activity module.
Illustratively, the lottery activity type is exemplarily set forth as follows:
the method comprises the steps of obtaining a plurality of historical activity pages with activity types being lottery activity types, extracting common characteristics of the historical activity pages, determining display content data of an activity template of the lottery activity types according to the common characteristics, generating the activity template of the lottery activity types according to the display content data, and packaging the activity template to obtain an activity module of the lottery activity types.
Correspondingly, activity templates and activity modules corresponding to activity types such as a turning activity type, a downloading and delivering activity type, a daily-present activity type, a weekly-present activity type, a new-person-present activity type, a skip-connection activity type, a questionnaire customization activity type, a card-coupon activity type, an entry activity type and the like are respectively generated.
And if the activity type in the received configuration information is the lottery activity type, acquiring an activity module corresponding to the lottery activity type from each activity module, and acquiring an activity template corresponding to the activity module of the lottery activity type so as to acquire the display content data from the activity template.
Correspondingly, the method for acquiring the context environment data according to the uniform resource locator comprises the following steps:
the first step is as follows: and determining the target activities displayed in the target activity page according to the activity types.
The second step is as follows: and determining a display path of the target activity in the target activity page according to the uniform resource locator.
The third step: and determining the context environment data according to the display path.
Similarly, "target" in a target activity is used to distinguish the target activity from other activities and is not to be construed as a definition of the target activity. A target activity may be understood as an activity corresponding to a target activity page.
For example, if the activity type is a lottery activity type, the target activity is a lottery activity, and the presentation path of the lottery activity in the target activity page is determined by the uniform resource locator, so as to determine the context data.
The display path is also called a network path or a URL path, and the display path may have three expression forms, which are: the present embodiment is not limited to the representation form of the display path, and includes a dynamic path, a static path, and a pseudo-static path (which refers to a form of changing a dynamic path into a static path, and is a static path in nature).
In this embodiment, the target activity, the display path, and the context environment data are sequentially determined by combining the activity type, so that the context environment data and the target activity are highly attached to each other, and the generated target activity page has the technical effects of high accuracy and reliability.
In combination with the above analysis, the configuration information further includes an active mount node, and accordingly, the determining of the context environment data according to the display path includes: and determining the display node of the target activity in the target activity page according to the display path and the activity mounting node, and determining context environment data according to the display node.
Illustratively, when a display path and an activity mount node (also referred to as a dom node) are determined, a node (namely, a display node) where a target activity is displayed in a target activity page may be determined, so that context environment data is determined according to the display node, and the context environment data is highly associated with the display node, so that when the target activity page is generated based on the context environment data, the target activity can be displayed accurately and completely, thereby improving the accuracy and reliability of the target activity page, and improving the technical effect of the experience of a user participating in the activity.
In some embodiments, the contextual environment data includes a presentation location of the target campaign within the target campaign page.
For example, the presentation position of the target activity in the target activity page can be determined according to the presentation node. For example, after determining the presentation node determination, the position of the presentation node in the target activity page may be determined as the presentation position.
In this embodiment, the context environment data includes the display position, so that different display positions of the target activity in the target activity page can be determined based on different configuration information, and a new code logic does not need to be introduced, which is convenient for adjusting the target activity page and reduces the technical effect of development cost.
In combination with the above analysis, the configuration information further includes a presentation style of the activity type, and accordingly, the presentation style of the activity type may be determined as a presentation style of the target activity in the target activity page, and the context environment data includes the presentation style of the target activity in the target activity page.
For example, the presentation style may be a dynamic presentation style, such as dynamically presenting (e.g., animation, etc.) the target activity in the target activity page; the presentation style may be a static presentation style, such as a static presentation (e.g., static display) of the target activity in the target activity page.
Similarly, in this embodiment, the context environment data includes the presentation style, so that different presentation styles of the target activity in the target activity page can be determined based on different configuration information, and a new code logic does not need to be introduced, which is convenient for adjusting the target activity page and reduces the technical effect of development cost.
In some embodiments, the configuration information may be read from a configuration file, and the configuration file may be obtained by configuring a file to be configured for a user.
For example, the file to be configured includes a field to be configured, the user may fill the field to be configured to obtain the configuration file, and accordingly, the generating device may read the configuration information from the configuration file.
For example, a module name field (module field) to be configured is included in the file to be configured, and the user can input the name of the active module to fill in the module field.
For another example, the file to be configured includes a presentation style field (entrysthyle field) to be configured, and the user may input a presentation style, such as a dynamic presentation style, to fill in the entrysthyle field.
As another example, the file to be configured includes an activity type field (activity type field) to be configured, and the user may input an activity type, such as a lottery activity type, to fill in the activity type field.
As another example, the file to be configured includes an active mount field (attach field) to be configured, and the user may input a dom node to fill in the attach field.
Based on the above analysis, in this embodiment, the data for generating the activity page is divided into two parts, which are the display content data and the context environment data, respectively, the activity template only includes the display content data, and the context environment data is determined by the configuration information, so that when the activity page needs to be generated, the display content data for generating the activity page may be determined first, and for the context environment data, the determination may be performed based on the configuration information, so as to meet the requirements of generating different activity pages with relative efficiency and low cost.
S204: and generating a target activity page according to the display content data and the context environment data.
Fig. 3 is a schematic diagram according to a third embodiment of the present disclosure, and as shown in fig. 3, a method for generating an activity page according to the embodiment of the present disclosure includes:
s301: configuration information for generating a target activity page is received.
Wherein, the configuration information includes: the name of the activity module and the activity presentation policy information.
Similarly, in order to avoid redundant descriptions, the technical features of the present embodiment that are the same as those of the above embodiments are not described again in this embodiment.
S302: and calling the display content data corresponding to the activity module according to the name of the activity module, and determining the context environment data corresponding to the display content data according to the configuration information.
S303: and generating a target activity page according to the display content data and the context environment data.
S304: and displaying the target activity page according to the activity display strategy information.
The activity display strategy information is used for representing strategies for displaying the target activity, such as the display duration and the like.
In combination with the above analysis, the file to be configured includes a field (may be one field or a plurality of fields) of the activity display policy information to be configured, and the user may input the activity display policy, such as the display duration, to fill the field of the activity display policy information.
In this embodiment, the activity display policy information is determined by combining the configuration information, so that the target activity page can be displayed on the basis of requirements, and the activity display policy information of the target activity page can be adjusted without introducing a new logic code, so as to improve the technical effects of flexibility and convenience in displaying the target activity page.
In some embodiments, if the campaign presentation policy information includes a presentation duration; the target activity page may be presented for the duration of the presentation.
In other embodiments, the activity presentation policy information may characterize that the target activity page is presented when the user first enters the corresponding system; the activity presentation strategy information can also represent that M (M is a positive integer greater than or equal to 1) days are out of date after the target activity page is presented to the user for the first time; the campaign presentation policy information may also characterize the target campaign pages as never being outdated, and so on, and is not further enumerated here.
Fig. 4 is a schematic diagram according to a fourth embodiment of the present disclosure, and as shown in fig. 4, an apparatus 400 for generating an activity page according to the embodiment of the present disclosure includes:
a receiving unit 401, configured to receive configuration information for generating a target activity page, where the configuration information includes a name of an activity module.
A calling unit 402, configured to call, according to the name of the activity module, the display content data corresponding to the activity module.
A determining unit 403, configured to determine, according to the configuration information, contextual environment data corresponding to the display content data.
A generating unit 404, configured to generate a target activity page according to the display content data and the context environment data.
Fig. 5 is a schematic diagram according to a fifth embodiment of the present disclosure, and as shown in fig. 5, an apparatus 500 for generating an activity page according to the embodiment of the present disclosure includes:
an obtaining unit 501 is configured to obtain a plurality of history activity pages.
The extracting unit 502 is configured to extract a commonality feature of a plurality of history activity pages.
A construction unit 503, configured to construct the activity module according to the commonality characteristics.
As can be seen in fig. 5, in some embodiments, the building unit 503 includes:
a first extracting sub-unit 5031, configured to extract, from the common features, the presentation content data for presenting the activity.
A building sub-unit 5032 configured to build the activity module according to the display content data.
In some embodiments, a building subunit 5032, comprising:
and the generation module is used for generating the movable template according to the display content data.
And the packaging module is used for packaging the movable template into a movable module.
A receiving unit 504, configured to receive configuration information for generating a target activity page, where the configuration information includes a name of an activity module and display policy information of an activity.
And a calling unit 505, configured to call, according to the name of the activity module, the display content data corresponding to the activity module.
As can be seen in fig. 5, in some embodiments, the invoking unit 505 includes:
a second determining sub-unit 5051 is configured to determine an activity template corresponding to the activity module according to the name of the activity module.
A second extraction sub-unit 5052 is used to extract the presentation content data from the active template.
A determining unit 506, configured to determine, according to the configuration information, contextual environment data corresponding to the presentation content data.
As can be seen in fig. 5, in some embodiments, the determining unit 506 includes:
a first determining subunit 5061, configured to determine a uniform resource locator corresponding to the name of the active module.
An obtaining subunit 5062 is configured to obtain contextual environment data according to the uniform resource locator.
In some embodiments, the configuration information also includes an activity type; an acquisition subunit 5062, comprising:
and the first determining module is used for determining the target activity displayed in the target activity page according to the activity type.
And the second determining module is used for determining the display path of the target activity in the target activity page according to the uniform resource locator.
And the third determining module is used for determining the context environment data according to the display path.
In some embodiments, the configuration information further includes an active mount node; a third determination module comprising:
and the first determining submodule is used for determining the display node of the target activity in the target activity page according to the display path and the activity mounting node.
And the second determining submodule is used for determining the context environment data according to the display node.
In some embodiments, the second determining sub-module is configured to determine, according to the presentation node, a presentation position of the target campaign in the target campaign page, wherein the context environment data includes the presentation position.
In some embodiments, the configuration information further includes a presentation style of the activity type; the first determining module is further used for determining the presentation style of the activity type as the presentation style of the target activity in the target activity page, wherein the context environment data comprises the presentation style of the target activity in the target activity page.
The generating unit 507 is configured to generate a target activity page according to the display content data and the context environment data.
And the display unit 508 is configured to display the target activity page according to the activity display policy information.
In some embodiments, the campaign presentation policy information comprises a presentation duration; the presentation unit 508 is configured to present the target activity page within the presentation duration.
Fig. 6 is a schematic diagram according to a sixth embodiment of the present disclosure, and as shown in fig. 6, an electronic device 600 in the present disclosure may include: a processor 601 and a memory 602.
A memory 602 for storing programs; the Memory 602 may include a volatile Memory (RAM), such as a Static Random Access Memory (SRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), and the like; the memory may also comprise a non-volatile memory, such as a flash memory. The memory 602 is used to store computer programs (e.g., application programs, functional modules, etc. that implement the methods described above), computer instructions, etc., which may be stored in partitions in one or more of the memories 602. And the above-described computer programs, computer instructions, data, etc. may be called by the processor 601.
The computer programs, computer instructions, etc. described above may be stored in one or more memories 602 in a partitioned manner. And the above-mentioned computer program, computer instruction, etc. can be called by the processor 601.
A processor 601, configured to execute the computer program stored in the memory 602 to implement the steps in the method according to the foregoing embodiments.
Reference may be made in particular to the description relating to the preceding method embodiment.
The processor 601 and the memory 602 may be separate structures or may be an integrated structure integrated together. When the processor 601 and the memory 602 are separate structures, the memory 602 and the processor 601 may be coupled by a bus 603.
The electronic device of this embodiment may execute the technical solution in the method, and the specific implementation process and the technical principle are the same, which are not described herein again.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
According to an embodiment of the present disclosure, the present disclosure also provides a computer program product comprising: a computer program, stored in a readable storage medium, from which at least one processor of the electronic device can read the computer program, and the execution of the computer program by the at least one processor causes the electronic device to perform the solutions provided by any of the above embodiments.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 701 executes the respective methods and processes described above, such as the generation method of the active page. For example, in some embodiments, the method of generating an active page may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the method for generating an activity page described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured by any other suitable means (e.g., by means of firmware) to perform the generation method of the active page.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (27)

1. A method for generating a moving page comprises the following steps:
receiving configuration information for generating a target activity page, wherein the configuration information comprises the name of an activity module;
calling display content data corresponding to the activity module according to the name of the activity module, and determining context environment data corresponding to the display content data according to the configuration information;
and generating the target activity page according to the display content data and the context environment data.
2. The method of claim 1, wherein determining contextual environment data corresponding to the presentation content data from the configuration information comprises:
determining a uniform resource locator corresponding to the name of the active module;
and acquiring the context environment data according to the uniform resource locator.
3. The method of claim 2, wherein the configuration information further includes an activity type; obtaining the context environment data according to the uniform resource locator, including:
determining the target activity displayed in the target activity page according to the activity type;
determining a display path of the target activity in the target activity page according to the uniform resource locator;
and determining the context environment data according to the display path.
4. The method of claim 3, wherein the configuration information further includes an active mount node; determining the contextual environment data according to the presentation path, comprising:
determining a display node of the target activity in the target activity page according to the display path and the activity mounting node;
and determining the context environment data according to the display node.
5. The method of claim 4, wherein determining the contextual environment data from the presentation node comprises:
and determining the display position of the target activity in the target activity page according to the display node, wherein the context environment data comprises the display position.
6. The method of claim 5, wherein the configuration information further includes a presentation style of the activity type; after determining a target activity to be presented in the target activity page according to the activity type, the method further comprises:
determining the presentation style of the activity type as the presentation style of the target activity in the target activity page, wherein the context environment data comprises the presentation style of the target activity in the target activity page.
7. The method according to any one of claims 1-6, further comprising activity presentation policy information in the configuration information; after generating the target activity page according to the presentation content data and the contextual environment data, the method further comprises:
and displaying the target activity page according to the activity display strategy information.
8. The method of claim 7, wherein the campaign presentation policy information comprises a presentation duration; displaying the target activity page according to the activity display strategy information, wherein the displaying comprises:
and displaying the target activity page within the display duration.
9. The method of any of claims 1-8, prior to invoking the presentation content data corresponding to the activity module according to the name of the activity module, the method further comprising:
acquiring a plurality of historical activity pages;
and extracting the common characteristics of the plurality of historical activity pages, and constructing the activity module according to the common characteristics.
10. The method of claim 9, wherein constructing the activity module according to the commonality characteristics comprises:
and extracting display content data for displaying the activity from the common characteristics, and constructing the activity module according to the display content data.
11. The method of claim 10, wherein building the campaign module from the presentation content data comprises:
and generating a movable template according to the display content data, and packaging the movable template into the movable module.
12. The method of any of claims 1-11, wherein invoking the presentation content data corresponding to the activity module according to the name of the activity module comprises:
determining a movable template corresponding to the movable module according to the name of the movable module;
and extracting the display content data from the activity template.
13. An apparatus for generating a moving page, comprising:
the system comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is used for receiving configuration information used for generating a target activity page, and the configuration information comprises the name of an activity module;
the calling unit is used for calling the display content data corresponding to the activity module according to the name of the activity module;
the determining unit is used for determining context environment data corresponding to the display content data according to the configuration information;
and the generating unit is used for generating the target activity page according to the display content data and the context environment data.
14. The apparatus of claim 13, wherein the determining unit comprises:
a first determining subunit, configured to determine a uniform resource locator corresponding to the name of the active module;
an obtaining subunit, configured to obtain the context environment data according to the uniform resource locator.
15. The apparatus of claim 14, wherein the configuration information further includes an activity type; the acquisition subunit includes:
the first determining module is used for determining the target activity displayed in the target activity page according to the activity type;
the second determining module is used for determining the display path of the target activity in the target activity page according to the uniform resource locator;
a third determining module, configured to determine the context environment data according to the display path.
16. The apparatus of claim 15, wherein an active mount node is further included in the configuration information; the third determining module includes:
the first determining submodule is used for determining a display node of the target activity in the target activity page according to the display path and the activity mounting node;
and the second determining submodule is used for determining the context environment data according to the display node.
17. The apparatus of claim 16, wherein the second determining submodule is configured to determine a presentation location of the target activity in the target activity page according to the presentation node, wherein the contextual data includes the presentation location.
18. The apparatus of claim 17, wherein the configuration information further includes a presentation style of the activity type; the first determining module is further configured to determine a presentation style of the campaign type as a presentation style of the target campaign in the target campaign page, where the contextual environment data includes the presentation style of the target campaign in the target campaign page.
19. The apparatus according to any one of claims 13-18, further comprising activity presentation policy information in the configuration information; the device further comprises:
and the display unit is used for displaying the target activity page according to the activity display strategy information.
20. The apparatus of claim 19, wherein the campaign presentation policy information comprises a presentation duration; the display unit is used for displaying the target activity page within the display duration.
21. The apparatus of any of claims 13-20, further comprising:
the acquisition unit is used for acquiring a plurality of historical activity pages;
the extracting unit is used for extracting the common characteristics of the plurality of historical activity pages;
and the construction unit is used for constructing the activity module according to the common characteristics.
22. The apparatus of claim 21, wherein the building unit comprises:
the first extraction subunit is used for extracting display content data used for displaying the activity from the common characteristics;
and the construction subunit is used for constructing the activity module according to the display content data.
23. The apparatus of claim 22, wherein the building subunit comprises:
the generation module is used for generating a movable template according to the display content data;
and the packaging module is used for packaging the movable template into the movable module.
24. The apparatus according to any one of claims 13-23, wherein the invoking unit comprises:
the second determining subunit is used for determining the movable template corresponding to the movable module according to the name of the movable module;
and the second extraction subunit is used for extracting the display content data from the movable template.
25. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-12.
26. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-12.
27. A computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method of any one of claims 1 to 12.
CN202210153510.7A 2022-02-18 2022-02-18 Generation method and device of activity page Pending CN114546343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210153510.7A CN114546343A (en) 2022-02-18 2022-02-18 Generation method and device of activity page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210153510.7A CN114546343A (en) 2022-02-18 2022-02-18 Generation method and device of activity page

Publications (1)

Publication Number Publication Date
CN114546343A true CN114546343A (en) 2022-05-27

Family

ID=81676479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210153510.7A Pending CN114546343A (en) 2022-02-18 2022-02-18 Generation method and device of activity page

Country Status (1)

Country Link
CN (1) CN114546343A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117853067A (en) * 2024-01-11 2024-04-09 玉溪师范学院 Intelligent agricultural production data processing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117853067A (en) * 2024-01-11 2024-04-09 玉溪师范学院 Intelligent agricultural production data processing method and system
CN117853067B (en) * 2024-01-11 2024-06-21 玉溪师范学院 Intelligent agricultural production data processing method and system

Similar Documents

Publication Publication Date Title
CN113722124B (en) Content processing method, device, equipment and storage medium of cloud mobile phone
CN113656124A (en) Login page generation method and device
CN116562249A (en) Form generation method, form generation device, electronic equipment and medium
CN113392346A (en) Path processing method and device for resource file, electronic equipment and storage medium
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN112862934B (en) Method, apparatus, device, medium, and product for processing animation
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN114546343A (en) Generation method and device of activity page
CN112860762A (en) Method and apparatus for detecting time period overlap
CN112947916A (en) Method, device, equipment and storage medium for realizing online canvas
CN113344620A (en) Method, device and storage medium for issuing welfare information
CN113691937A (en) Method for determining position information, cloud mobile phone and terminal equipment
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN112882711A (en) Rendering method, device, equipment and storage medium
CN113362111A (en) Content sending method and device and electronic equipment
CN113469732A (en) Content understanding-based auditing method and device and electronic equipment
US20200073916A1 (en) Collaborative documentation
CN113032040B (en) Method, apparatus, device, medium, and article for processing tasks
CN114095758B (en) Cloud image intercepting method and related device
CN115373659A (en) Business system construction method and device, electronic equipment and storage medium
CN116340689A (en) Website processing method and device
CN116233051A (en) Page sharing method, device and equipment for applet and storage medium
CN115756896A (en) Information processing method and device and electronic equipment

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