CN109582401B - Promotion picture generation method and device, storage medium and computer equipment - Google Patents

Promotion picture generation method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN109582401B
CN109582401B CN201710890336.3A CN201710890336A CN109582401B CN 109582401 B CN109582401 B CN 109582401B CN 201710890336 A CN201710890336 A CN 201710890336A CN 109582401 B CN109582401 B CN 109582401B
Authority
CN
China
Prior art keywords
resource exchange
sub
resource
exchange information
picture
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.)
Active
Application number
CN201710890336.3A
Other languages
Chinese (zh)
Other versions
CN109582401A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710890336.3A priority Critical patent/CN109582401B/en
Publication of CN109582401A publication Critical patent/CN109582401A/en
Application granted granted Critical
Publication of CN109582401B publication Critical patent/CN109582401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • 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
    • G06Q30/0222During e-commerce, i.e. online transactions
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Abstract

The invention relates to a method and a device for generating a promotion picture, a storage medium and computer equipment, wherein the method comprises the following steps: acquiring a sub-application program identifier; displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification; collecting the resource exchange information input in the resource exchange information configuration page; and obtaining a promotion picture formed by filling the resource exchange information into a promotion picture template according to the resource exchange information through the sub-application program. The scheme provided by the application improves the generation efficiency of the promotion picture.

Description

Promotion picture generation method and device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for generating a promotion picture, a storage medium and computer equipment.
Background
With the development of computer technology and the progress of society, pictures are taken as an information carrier, the information carried by the pictures is more and more abundant, and the information displayed by the pictures is intuitive and easy to understand and is popular with users. Therefore, more and more users choose to add information intended to be conveyed to the picture, and further promote the information through the generated picture.
In the conventional technology, when information is added to a picture, an operator needs to manually and repeatedly perform manual adjustment to accurately add the information to an information display area of the picture. However, the traditional picture generation process needs a large amount of manual operation and is long in time, so that the efficiency of promoting picture generation is low.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for generating a promotional picture, a storage medium, and a computer device, for solving the problem of low efficiency in generating a promotional picture at present.
A promotional picture generation method, comprising:
acquiring a sub-application program identifier;
displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification;
collecting the resource exchange information input in the resource exchange information configuration page;
and obtaining a promotion picture formed by filling the resource exchange information into a promotion picture template according to the resource exchange information through the sub-application program.
A promotional picture generation apparatus comprising:
the acquisition module is used for acquiring the sub-application program identifier;
the display module is used for displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identifier;
the collection module is used for collecting the resource exchange information input on the resource exchange information configuration page;
and the processing module is used for obtaining the promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a sub-application program identifier;
displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification;
collecting the resource exchange information input in the resource exchange information configuration page;
and obtaining a promotion picture formed by filling the resource exchange information into a promotion picture template according to the resource exchange information through the sub-application program.
A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring a sub-application program identifier;
displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification;
collecting the resource exchange information input in the resource exchange information configuration page;
and obtaining a promotion picture formed by filling the resource exchange information into a promotion picture template according to the resource exchange information through the sub-application program.
According to the popularization picture generation method, the device, the storage medium and the computer equipment, after the sub application program of the popularization picture is determined to be obtained, the page provided for the user by the sub application program to configure the resource exchange information is displayed, the resource exchange information input by the user on the page is collected, and the popularization picture formed by filling the resource exchange information into the popularization picture template can be obtained. Therefore, the page of the sub-application program can be displayed without a complex application program installation process, so that the user can obtain the promotion picture comprising the resource exchange information only by inputting the resource exchange information on the page, the workload and time consumption caused by manual adjustment are avoided, and the generation efficiency of the promotion picture is greatly improved.
Drawings
FIG. 1 is a diagram of an application environment for a generalized picture generation method in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a generalized picture generation method in one embodiment;
FIG. 3 is a diagram illustrating the relationship between an operating system, a parent application, a child application, and child application pages, in one embodiment;
FIG. 4 is a schematic interface diagram of a resource exchange information configuration page in one embodiment;
FIG. 5 is a schematic diagram of an interface for a resource exchange type options page in one embodiment;
FIG. 6 is an interface diagram of a sub-application page showing promotional pictures in one embodiment;
fig. 7 is a schematic flow chart of a method for generating a promotional picture in another embodiment;
FIG. 8 is a timing diagram of promotional picture generation in one embodiment;
FIG. 9 is a block diagram showing a generalized picture generating apparatus according to an embodiment;
FIG. 10 is a block diagram of a processing module in one embodiment;
fig. 11 is a block diagram of a generalized picture generating apparatus according to another embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is an application environment diagram of the method for generating a promotional picture in an embodiment. Referring to fig. 1, the popularization picture generation method is applied to a popularization picture generation system. The popularization picture generating system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected through a network. An operating system is run on the terminal 110, a parent application program is run on the operating system, and the terminal 110 executes the promotion picture generation method through the parent application program. The server 120 is a server corresponding to the sub-application. In one embodiment, when the child application is provided by the parent application, the server 120 may also be the server to which the parent application corresponds.
Fig. 2 is a schematic flow chart of a method for generating a promotional picture in an embodiment. The embodiment is mainly illustrated by applying the method to the terminal 110 in fig. 1. Referring to fig. 2, the method for generating a promotional picture specifically includes the following steps:
s202, acquiring the sub-application program identification.
Wherein the sub-application identification is used to identify the corresponding sub-application. The sub-application identification may be a character string including at least one character of a number, a letter, and a symbol. The sub-application identification may specifically be a unique identifier (AppID) of the sub-application.
Specifically, an operating system is run on the terminal, and a parent application is run on the operating system. An Operating System (OS) is a computer program for managing and controlling hardware and software resources of a terminal, and is the most basic System software directly running on a bare computer of the terminal, and an application program needs to run under the support of the Operating System. The operating system may be a desktop operating system such as a Windows (Windows) operating system, a Linux operating system, or a Mac OS (apple desktop operating system), or may be a mobile operating system such as an iOS (apple mobile terminal operating system) or an Android operating system.
The parent application is a native application. A native application is an application that can run directly on an operating system. The parent application may be a social application, a mail application, or a gaming application, among others. The Social application program includes an instant messaging application, an SNS (Social Network Service) application, or a live application. The parent application may specifically be a WeChat program.
In one embodiment, the terminal can display the sub-application list through the parent application, receive a selection instruction acting on the options in the sub-application list, determine the selected option in the sub-application list according to the selection instruction, and thus obtain the sub-application identifier corresponding to the selected option. Each option in the sub-application list represents a sub-application, and the options can be in a graphic and/or text form. The sub-application list may include one or more options.
In one embodiment, the terminal may also provide a search box through the parent application, and the terminal obtains the characters input in the search box through the parent application, so as to analyze the input characters to obtain the sub-application identifications. The input characters are analyzed, the similarity between the input characters and the existing sub-application program identifiers can be calculated, and the sub-application program identifier with the similarity higher than the preset similarity and the maximum similarity is found, so that the sub-application program identifier is obtained.
In one embodiment, the terminal may further receive a session message through the parent application, detect whether the session message includes the sub-application identifier when the session message is received through the parent application, and extract the detected sub-application identifier when the session message is detected to include the sub-application identifier.
And S204, displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identifier.
The resource exchange information configuration page is a page for configuring resource exchange information. The resource exchange information is data reflecting the contents of the resource exchange. The resource exchange information may include resource exchange conditions, resource exchange shares, resource exchange quota, resource exchange time or resource exchange location, etc.
The resource exchange condition is a condition to be satisfied when resource exchange is performed. The resource exchange can be performed when the resource exchange condition is satisfied. In this embodiment, the resource exchange condition may be that the share of the first resource for exchange reaches a preset first resource share. That is, the resource exchange condition is determined to be satisfied only when the share of the first resource for exchange reaches the preset first resource share, thereby allowing resource exchange. For example, in a payment offer scenario, the resource exchange condition may be that the share of the paid monetary resource reaches a preset monetary resource share. If the payment reaches 10 yuan, the user is favored.
The resource exchange shares may include a share of a first resource for exchange and a share of a second resource resulting from the exchange. For example, in a payment offer scenario, the resource exchange shares may be a share of the monetary resource paid, and a share of the monetary resource returned. Such as paying 10 yuan for 1 yuan.
The resource exchange quota is the quota of the exchanged second resource, that is, the upper limit value of the share of the exchangeable second resource. For example, in a payment offer scenario, the resource exchange quota may be a quota of a returned monetary resource. Such as a maximum 20 dollar premium.
The resource exchange time is a time range in which resource exchange is allowed, and may be represented by a resource exchange start time and a resource exchange end time. Resource exchange times are, for example, 8/9/2017 to 9/20/2017. The resource exchange may be performed only during the resource exchange time.
The resource exchange location is a location where resource exchange is allowed. The resource exchange location may be an actual geographic location in a real scene or a virtual location in a virtual scene. The resource exchange location is such as a shop location in a real scene, or an internet shopping platform virtual shop address. The resource exchange can only be performed at the resource exchange location.
The resource is an item that can acquire ownership over a network, and includes at least one of a virtual item and a physical item. The virtual item includes at least one of an account value, an avatar product, a virtual charge card, a gaming accessory, and virtual currency. The physical object may be any object having a physical form that can be owned by a user, such as an electronic product, a toy, an artwork, a signature photo, and the like. Different resources may be exchanged.
A child application is an application that runs in the environment provided by the parent application. The parent application is a native application. A native application is an application that can run directly on an operating system. The child application is an application that can be implemented in the environment provided by the parent application. The sub-application may specifically be a social application, a file management application, a mail application, or a game application, etc. The parent application may specifically be a WeChat (WeChat) and the corresponding child application may be referred to as an applet.
Referring to fig. 3, an operating system is run on a terminal, a parent application is run on the operating system, and a child application is generated in an environment provided by the parent application, the child application including a child application page. The terminal can acquire the sub-application program identifier through the parent application program and display the sub-application program page of the sub-application program in the environment provided by the parent application program.
Specifically, the terminal may obtain, from a local or a server, a page configuration file corresponding to the sub-application identifier and used for configuring the resource exchange information configuration page through the parent application, further obtain the public component identifier from the page configuration file, and then select, from a public component library provided by the parent application, the public component corresponding to the public component identifier, thereby constructing the resource exchange information configuration page according to the selected public component.
Wherein the common component identification is used to uniquely identify the corresponding common component. The common component is a component which is provided by the parent application and can be shared by different child applications, has a visual form, and is a constituent unit of a child application page. The common component may also be encapsulated with logic code for handling events triggered for the common component. Different sub-applications share common components, and specifically may invoke the same common components at the same time or at different times. In one embodiment, common components may also be shared by parent and child applications.
S206, collecting the resource exchange information input in the resource exchange information configuration page.
Specifically, the terminal may collect the resource exchange information input on the resource exchange information configuration page through the parent application program, and after the parent application program finishes collecting the resource exchange information, the parent application program transmits the collected resource exchange information to the child application program corresponding to the child application program identifier. The terminal can also call a page input data acquisition interface provided by the parent application program through the sub application program corresponding to the sub application program identifier, and directly collect the resource exchange information input on the resource exchange information configuration page.
In one embodiment, a sub-application instance may be implemented by a sub-application logical layer unit and a corresponding sub-application view layer unit. The sub-application program view layer unit is used for processing views, and the sub-application program logic layer unit is used for processing data logic. The unit may specifically be a process or a thread, a sub-application view layer unit such as a sub-application view layer thread, and a sub-application logic layer unit such as a sub-application logic layer thread. Specifically, the child application program view layer unit may call a page input data acquisition interface provided by the parent application program, directly collect resource exchange information input at the resource exchange information configuration page, and transmit the collected resource exchange information to the child application program logic layer unit for subsequent data processing.
Referring to FIG. 4, an interface diagram of a resource exchange information configuration page in one embodiment is shown. The interface includes resource exchange information 410. The resource exchange information 410 includes a resource exchange condition 411, a resource exchange share 412, a resource exchange quota 413, a resource exchange time 414, or a resource exchange location 415.
And S208, obtaining the promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information through the sub-application program.
The popularization picture template is a picture with a preset content arrangement format and to be filled with popularization content. The promotion picture is a picture for promoting the content to be promoted. In this embodiment, the content to be promoted is resource exchange information.
Specifically, a parent application running on the terminal can obtain the promotion picture template from a local place or a server through a child application running in an environment provided by the parent application, and fills resource exchange information into the promotion picture template to form a promotion picture, so that the promotion picture is obtained. The method comprises the steps that a parent application program running on a terminal can send resource exchange information to a server through a child application program running in an environment provided by the parent application program, so that the server obtains a popularization picture template, the resource exchange information is filled into the popularization picture template to form a popularization picture, and the child application program downloads the popularization picture generated by the server from the server to obtain the popularization picture.
It will be appreciated that the above-mentioned server is a server corresponding to the sub-application. When the child application is provided by the parent application, the server may be a server corresponding to the child application or a server corresponding to the parent application.
According to the popularization picture generation method, after the sub-application program capable of obtaining the popularization picture is determined, the page provided for the user to configure the resource exchange information by the sub-application program is displayed, the resource exchange information input by the user on the page is collected, and the popularization picture formed by filling the resource exchange information into the popularization picture template can be obtained. Therefore, the page of the sub-application program can be displayed without a complex application program installation process, so that the user can obtain the promotion picture comprising the resource exchange information only by inputting the resource exchange information on the page, the workload and time consumption caused by manual adjustment are avoided, and the generation efficiency of the promotion picture is greatly improved.
In one embodiment, S204 includes: displaying a resource exchange type option page of the sub application program corresponding to the sub application program identification; showing resource exchange type options in a resource exchange type option page; selecting a resource exchange type option according to a selection instruction triggered in the resource exchange type option page; and jumping to a resource exchange information configuration page of the sub application program corresponding to the sub application program identification and associated with the selected resource exchange type option.
The resource exchange type option page is a page for showing resource exchange type options. Each resource exchange type option represents a resource exchange type, and the options can be in a graphic and/or text form. The resource exchange type options page may include one or more resource exchange type options. The resource exchange type is an identification for distinguishing between different classes of resource exchanges. The classification policy of resource exchange may be a classification policy based on resource exchange conditions, a classification policy of resource exchange shares, and the like.
The classification strategy based on the resource exchange condition can be divided into a conditional type and an unconditional type. The conditional type may specifically be a type in which the resource exchange can be performed only when the share of the first resource used for the exchange reaches a preset first resource share. For example, in the scenario of paying an offer, the offer is only given when the offer is paid for 10 yuan. The unconditional type may specifically be a type in which the share of the first resource not defined for exchange is directly accessible for resource exchange. For example, in the payment preference scenario, the payment is provided with a preference.
Classification strategies based on resource exchange shares can be divided into fixed share types and proportional share types. The fixed share type may specifically be a type where the fixed exchange gets shares of the second resource. For example, in the payment offer scenario, the full 10 yuan offer 1 yuan is paid. The proportion share type may specifically be a type that sets a share proportion of the switched derived second resource. If in the payment preferential scene, the payment can be preferential by 10%.
Specifically, the terminal may obtain, from a local or a server, a page configuration file corresponding to the sub-application identifier and used for configuring the resource exchange type option page through the parent application, further obtain the public component identifier from the page configuration file, and then select, from a public component library provided by the parent application, the public component corresponding to the public component identifier, thereby constructing the resource exchange type option page according to the selected public component. The terminal can receive a selection instruction acting on the resource exchange type option displayed in the resource exchange type option page through the parent application program, and determines the selected resource exchange type option according to the selection instruction, so that the resource exchange type corresponding to the selected option is obtained.
For example, FIG. 5 illustrates an interface diagram of a resource exchange type options page in one embodiment. Referring to fig. 5, the interface includes a resource exchange type option 510. And when the terminal selects the resource exchange type option according to a selection instruction triggered in the resource exchange type option page through the parent application program, jumping to a resource exchange information configuration page which corresponds to the sub-application program identifier and is associated with the selected resource exchange type option. Assuming that the resource exchange information configuration page shown in fig. 4 is a resource exchange information configuration page associated with the resource exchange type option selected by the user in fig. 5, the terminal jumps from the page shown in fig. 5 to the page shown in fig. 4 after detecting the selection instruction.
In one embodiment, jumping to a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification and associated with the selected resource exchange type option includes: acquiring a page configuration file of the sub-application program corresponding to the sub-application program identifier and associated with the selected resource exchange type option; selecting a public component from a public component library according to the page configuration file; and organizing the selected public components according to the page configuration file to generate a resource exchange information configuration page.
Specifically, the terminal can obtain the page configuration file of the sub-application program and associated with the selected resource exchange type option from a local or server through the parent application program. The terminal can determine a corresponding folder locally or in the server according to the sub-application program identifier, and further obtain the page configuration file associated with the selected resource exchange type option from the folder. Or, the terminal may obtain the page configuration file corresponding to the sub-application identifier and corresponding to the page identifier according to the corresponding relationship between the exchange type option and the page identifier. The page identifier is used for uniquely identifying a sub-application page included in a sub-application, and different sub-applications can use the same page identifier.
The page configuration file is a file for configuring a page presented by the sub application program. The page configuration file can be a source code or a file obtained by compiling the source code. The pages presented by the sub-applications are referred to as sub-application pages, and a sub-application may include one or more sub-application pages.
The terminal can obtain the public component identification from the page configuration file through the parent application program, and then selects the public component corresponding to the public component identification from the public component library provided by the parent application program, so that the resource exchange information configuration page is constructed according to the selected public component.
Specifically, the terminal can acquire the default component style data carried by the selected common component through the parent application program, so that the selected common component is organized and rendered according to the default component style data to form a resource exchange information configuration page. The default component style data is data describing the presentation form that the corresponding common component defaults to. The default component style data may include attributes such as location, size, color, font, and font size of the corresponding common component default in the resource exchange information configuration page. The terminal can specifically construct a resource exchange information configuration page through a browser control integrated by a parent application program according to the selected public component.
In this embodiment, the child application page is constructed by selecting a common component from a common component library provided by the parent application. Therefore, when the parent application program runs, the common component provided by the parent application program can be used for quickly constructing the child application program page, the installation time of the application program is shortened, and the use efficiency of the application program is improved.
In the embodiment, the resource exchange type option page for displaying the resource exchange type option and the resource exchange information configuration pages of different resource exchange types are provided, and after the user selects the resource exchange type, the resource exchange information configuration page related to the resource exchange type is displayed, so that the user does not need to position the resource exchange information configuration page which is intended to be opened by the user, and the user operation is greatly facilitated.
In one embodiment, S208 includes: determining a resource exchange type to which the resource exchange information belongs through the sub-application program; selecting a promotion picture template from a promotion picture template library corresponding to the resource exchange type; and filling the resource exchange information into the popularization picture template to form the popularization picture.
The popularization picture template library is stored with a plurality of popularization picture templates which are configured in advance. The server can classify the configured popularization picture templates according to the corresponding resource exchange types to obtain a plurality of popularization picture templates corresponding to the resource exchange types respectively, obtain a popularization picture template library of the resource exchange types, and establish a corresponding relation between the resource exchange types and the popularization picture template library.
Specifically, the terminal may obtain the resource exchange type of the currently input resource exchange information through a parent application program or a child application program running in an environment provided by the parent application program, query the correspondence between the resource exchange type and the popularization picture template library, find the popularization picture template library corresponding to the obtained resource exchange type, and then select the popularization picture template from the popularization picture template library. The popularization picture template library can be downloaded to the local from a server corresponding to the sub-application program through the sub-application program when the main application program runs the sub-application program, or downloaded to the local from the server corresponding to the sub-application program through the sub-application program when the popularization picture template needs to be selected.
In one embodiment, selecting a promotion picture template from a promotion picture template library corresponding to a resource exchange type includes: determining a resource share interval to which a resource exchange share specified by the resource exchange information belongs; inquiring the resource share type corresponding to the resource share interval; and selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type.
Wherein the resource share interval is a range of the number of resource shares. For example, in a payment scenario, the resource share interval may be a range of monetary resource amounts, such as 100-1000 dollars. The resource share type is a type divided according to the resource share interval, such as a high resource share type or a low resource share type.
Specifically, the server may divide the resource share intervals in advance, set a resource share type corresponding to each resource share interval, and configure a popularization picture template for the resource share type. When a popularization picture template is locally selected from a popularization picture template library, a resource share interval to which a resource exchange share specified by currently input resource exchange information belongs is determined, a resource share type corresponding to the resource share interval is inquired, and then the popularization picture template corresponding to the resource share type is selected.
For example, in a payment offer scenario, the server may set a resource exchange share threshold, divide the resource exchange shares that exceed the resource exchange share threshold into one resource share interval (high resource share type), and divide the resource exchange shares that do not exceed the resource exchange share threshold into one resource share interval (low resource share type). And configuring a horizontal promotion picture template (the picture length is greater than the picture width) for a high resource share type, and configuring a vertical promotion picture template (the picture length is less than the picture width) for a low resource share type. Then, when the popularization picture template is selected according to the resource share type, a transverse popularization picture template is selected according to the high resource share type, and a longitudinal popularization picture template is selected according to the low resource share type.
In this embodiment, different promotion picture templates are selected for different resource share types, so that the types of generated promotion pictures are enriched, and when the resource exchange information is filled into the promotion picture template selected according to the resource exchange share, the input dynamic data and the static data of the template are combined more reasonably.
In one embodiment, the populating the promotional picture template with the resource exchange information to form a promotional picture, includes: determining an anchor point corresponding to an information display area in the promotion picture template; determining an information arrangement mode according to the position relation between the anchor point and the information display area; and filling the resource exchange information into the information display area according to the information arrangement mode to form a promotion picture.
Wherein the information display area is an area where resource exchange information is filled. The promotional picture template includes a static data area and a dynamic data area. The static data area displays data inherent to the template. The dynamic data area, i.e., the information display area, is an area in which resource exchange information is filled. The anchor point is an information arrangement mode reference point set in the information display area in advance. The information arrangement mode is a mode of arranging resources in the information display area to exchange information. The information arrangement mode may specifically be an information alignment mode and the like. And determining the information arrangement mode according to the position relation between the anchor point and the information display area. For example, when the anchor point is located at a midpoint of a bottom side of the information display area, the information arrangement manner may be specifically set at the bottom and centered, and when the anchor point is located at a midpoint of a top side of the information display area, the information arrangement manner may be specifically set at the top and centered.
In one embodiment, according to an information arrangement mode, filling resource exchange information into an information display area to form a promotion picture, including: acquiring the data volume of resource exchange information and the size of an information display area; determining the font size of the resource exchange information according to the data size and the size; and according to the information arrangement mode, filling the resource exchange information into the information display area in a font size to form a promotion picture.
Specifically, the terminal can obtain the data size of the resource exchange information and the size of the information display area through a sub-application program running in an environment provided by a parent application program, divide the size of the information display area by the data size of the resource exchange information, select the font size and the text interval according to the calculation result, and fill the resource exchange information into the information display area according to the information arrangement mode by the selected font size and the text interval to form the popularization picture.
In this embodiment, the font size of the resource exchange information is correspondingly adjusted according to the size of the information display area and the data size of the resource exchange information, so that the resource exchange information to be displayed can be completely and accurately displayed, and the integrity and the accuracy of information display are ensured.
In the above embodiment, the information is filled according to the preset information arrangement mode of the template, so that the accuracy of the template use is ensured, and the formed popularization picture is complete and accurate.
In the embodiment, different promotion picture templates are configured according to different resource exchange types, the types of generated promotion pictures are enriched, and when the resource exchange information is filled into the promotion picture template selected according to the resource exchange type, the combination of the input dynamic data and the static data of the template is more reasonable and attractive.
In one embodiment, S208 includes: sending the resource exchange information to a server through a sub-application program, and enabling the server to fill the resource exchange information into a promotion picture template to form a promotion picture; receiving a notification fed back by the server after the promotion picture is formed; and downloading the promotion picture according to the notification.
Specifically, the terminal may transmit the acquired resource exchange information to the server through a sub application running in an environment provided by the parent application. After receiving the resource exchange information, the server may first query a resource exchange type to which the resource exchange information belongs, determine a resource share interval to which a resource exchange share specified by the resource exchange information belongs, and then query a resource share type corresponding to the resource share interval. And selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type. The server can determine the anchor point corresponding to the information display area in the promotion picture template, and the information arrangement mode is determined according to the position relation between the anchor point and the information display area. The server can obtain the data volume of the resource exchange information and the size of the information display area, determine the font size of the resource exchange information according to the data volume and the size, and fill the resource exchange information into the information display area in the font size according to the information arrangement mode to form the popularization picture.
Further, the server may feed back a notification to the terminal after forming the promotion picture. The notification is used to notify the terminal server that the promotional picture has been formed. The terminal can display the promotion picture downloading page through the parent application program, the promotion picture downloading entry can be displayed on the promotion picture downloading page, and the terminal can download the promotion picture from the server through the parent application program after detecting the triggering operation aiming at the promotion picture downloading entry.
In the embodiment, after the resource exchange information is collected, the resource exchange information is sent to the server, and the promotion picture is formed through the server, so that the promotion picture generation approaches are enriched. And moreover, the generation process of the promotion picture is completed on the server, the generation efficiency of the promotion picture is further improved, and the storage pressure of the local storage promotion picture template is reduced.
In one embodiment, the method for generating a promotional picture further comprises: displaying the promotion picture through a sub-application program; detecting a preset trigger operation corresponding to the promotion picture; and storing the promotion picture to a local storage directory according to a preset trigger operation.
The preset trigger operation may be an operation on a control in the interface, such as a touch operation or a cursor click operation on the control. The triggering operation may also be a continuous touch operation or a continuous click operation on the promotional picture, or a shaking operation or a voice instruction or the like triggered when the promotional picture is displayed.
Specifically, after the terminal downloads the promotion picture, the promotion picture can be displayed through the sub-application running in the environment provided by the main application. The terminal can detect the preset trigger operation corresponding to the promotion picture through the parent application program or the operation detection interface of the parent application program called by the child application program, and when the preset trigger operation is detected, the promotion picture is stored in the local storage directory. The local storage directory to which the popularization picture is stored when the terminal downloads the popularization picture is different from the local storage directory to which the popularization picture is stored according to the preset trigger operation. And the local storage directory during downloading is the default local storage directory of the sub-application program, and the promotion picture is stored in the local storage directory according to the preset trigger operation and is the local storage directory specified by the user.
For example, fig. 6 shows an interface diagram of a sub-application page displaying a promotional picture in one embodiment. Referring to fig. 6, the interface includes a promotional picture 610 and resource exchange information 611.
In this embodiment, a way of storing the promotion picture in a user-defined manner is provided, so that a user can quickly locate and acquire the promotion picture when needing to use the promotion picture.
As shown in fig. 7, in a specific embodiment, the method for generating a popularization picture specifically includes the following steps:
s702, acquiring the sub-application program identifier.
S704, displaying a resource exchange type option page of the sub-application program corresponding to the sub-application program identifier; the resource exchange type option is presented in a resource exchange type option page.
S706, selecting the resource exchange type option according to the selection instruction triggered in the resource exchange type option page.
S708, acquiring a page configuration file of the sub-application program corresponding to the sub-application program identifier and associated with the selected resource exchange type option; selecting a public component from a public component library according to the page configuration file; and organizing the selected public components according to the page configuration file to generate a resource exchange information configuration page.
S710, collecting the resource exchange information input on the resource exchange information configuration page.
S712, detecting whether a promotion picture template library is stored locally; if so, the process goes to step S714, and if not, the process goes to step S722.
S714, determining a resource share interval to which the resource exchange share specified by the resource exchange information belongs; inquiring the resource share type corresponding to the resource share interval; and selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type.
S716, determining an anchor point corresponding to the information display area in the popularization picture template; and determining an information arrangement mode according to the position relation between the anchor point and the information display area.
S718, acquiring the data volume of the resource exchange information and the size of an information display area; and determining the font size of the resource exchange information according to the data size and the size.
And S720, filling the resource exchange information into the information display area in a font size according to the information arrangement mode to form a promotion picture.
And S722, sending the resource exchange information to the server through the sub-application program, and enabling the server to fill the resource exchange information into the popularization picture template to form the popularization picture.
S724, receiving a notification fed back by the server after the promotion picture is formed; and downloading the promotion picture according to the notification.
S726, displaying the promotion picture through the sub-application program; detecting a preset trigger operation corresponding to the promotion picture; and storing the promotion picture to a local storage directory according to a preset trigger operation.
In this embodiment, after determining the sub-application program that can obtain the popularization picture, the page provided by the sub-application program to the user for configuring the resource exchange information is displayed, and then the resource exchange information input by the user on the page is collected, so that the popularization picture formed by filling the resource exchange information into the popularization picture template can be obtained. Therefore, the page of the sub-application program can be displayed without a complex application program installation process, so that the user can obtain the promotion picture comprising the resource exchange information only by inputting the resource exchange information on the page, the workload and time consumption caused by manual adjustment are avoided, and the generation efficiency of the promotion picture is greatly improved.
It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the sub-steps or the stages of other steps.
FIG. 8 illustrates a timing diagram that facilitates a picture generation process in one embodiment. Referring to fig. 8, the terminal may obtain, through the parent application, the sub-application identifier selected by the user, and display a resource exchange type option page of the sub-application corresponding to the sub-application identifier. The user can trigger a selection instruction on the resource exchange type option page, the sub-application program running in the parent application program obtains the resource exchange type option selected by the selection instruction, and the user jumps to a resource exchange information configuration page which corresponds to the sub-application program identifier and is associated with the selected resource exchange type option.
Furthermore, the user can input the resource exchange information on the resource exchange information configuration page, and the sub-application program sends the resource exchange information to the server after collecting the resource exchange information. The server selects the promotion picture template according to the received resource exchange information, fills the resource exchange information into the promotion picture template to form a promotion picture, and feeds back a notice after the promotion picture is formed.
The sub-application program can display the promotion picture downloading page after receiving the notification, and download and display the promotion picture according to a downloading instruction triggered by the user. The sub-application program can detect preset trigger operation corresponding to the promotion picture again, and the promotion picture is stored in the local storage directory according to the preset trigger operation.
As shown in fig. 9, in one embodiment, a promotional picture generation apparatus 900 is provided. Referring to fig. 9, the popularization picture generation apparatus 900 includes: an acquisition module 910, a display module 920, a collection module 930, and a processing module 940.
An obtaining module 910, configured to obtain a sub-application identifier.
The display module 920 is configured to display a resource exchange information configuration page of the sub application corresponding to the sub application identifier.
A collecting module 930, configured to collect the resource exchange information input on the resource exchange information configuration page.
And the processing module 940 is configured to obtain, according to the resource exchange information, a popularization picture formed by filling the resource exchange information in the popularization picture template.
After determining the sub-application program that can obtain the popularization picture, the popularization picture generation apparatus 900 displays the page provided by the sub-application program for the user to configure the resource exchange information, and further collects the resource exchange information input by the user on the page, so as to obtain the popularization picture formed by filling the resource exchange information into the popularization picture template. Therefore, the page of the sub-application program can be displayed without a complex application program installation process, so that the user can obtain the promotion picture comprising the resource exchange information only by inputting the resource exchange information on the page, the workload and time consumption caused by manual adjustment are avoided, and the generation efficiency of the promotion picture is greatly improved.
In one embodiment, the display module 920 is further configured to display a resource exchange type option page of the sub application corresponding to the sub application identifier; showing resource exchange type options in a resource exchange type option page; selecting a resource exchange type option according to a selection instruction triggered in the resource exchange type option page; and jumping to a resource exchange information configuration page of the sub application program corresponding to the sub application program identification and associated with the selected resource exchange type option.
In one embodiment, the display module 920 is further configured to obtain a page configuration file of the sub application corresponding to the sub application identifier and associated with the selected resource exchange type option; selecting a public component from a public component library according to the page configuration file; and organizing the selected public components according to the page configuration file to generate a resource exchange information configuration page.
In one embodiment, the processing module 940 is further configured to determine a resource exchange type to which the resource exchange information belongs; selecting a promotion picture template from a promotion picture template library corresponding to the resource exchange type; and filling the resource exchange information into the popularization picture template to form the popularization picture.
In one embodiment, the processing module 940 is further configured to determine a resource share interval to which the resource exchange share specified by the resource exchange information belongs; inquiring the resource share type corresponding to the resource share interval; and selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type.
In one embodiment, the processing module 940 is further configured to determine an anchor point corresponding to the information display area in the popularization picture template; determining an information arrangement mode according to the position relation between the anchor point and the information display area; and filling the resource exchange information into the information display area according to the information arrangement mode to form a promotion picture.
In one embodiment, the processing module 940 is further configured to obtain a data size of the resource exchange information and a size of the information display area; determining the font size of the resource exchange information according to the data size and the size; and according to the information arrangement mode, filling the resource exchange information into the information display area in a font size to form a promotion picture.
As shown in fig. 10, in one embodiment, the processing module 940 further includes:
a sending unit 941, configured to send the resource exchange information to the server, so that the server fills the resource exchange information in the popularization picture template to form a popularization picture.
A receiving unit 942 is configured to receive a notification fed back by the server after the promotional picture is formed.
A downloading unit 943, configured to download the promotion picture according to the notification.
As shown in fig. 11, in one embodiment, the promotional picture generating apparatus 900 further comprises: a storage module 950.
A storage module 950 for displaying the promotion picture; detecting a preset trigger operation corresponding to the promotion picture; and storing the promotion picture to a local storage directory according to a preset trigger operation.
FIG. 12 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the terminal 110 in fig. 1. As shown in fig. 12, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the promotional picture generation method. The internal memory may also store a computer program, and the computer program, when executed by the processor, may cause the processor to perform the promotional picture generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, or an external keyboard, a touch pad or a mouse, and the like. Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the promotional picture generation apparatus provided in this application may be implemented in the form of a computer program, where the computer program may run on a computer device as shown in fig. 12, and a non-volatile storage medium of the computer device may store various program modules constituting the promotional picture generation apparatus, such as the obtaining module 910, the displaying module 920, the collecting module 930, and the processing module 940 shown in fig. 9. The computer program composed of the respective program modules causes the processor to execute the steps in the popularization picture generation method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 12 may be used to obtain the sub-application identifier through the obtaining module 910 in the promotional picture generation apparatus 900 shown in fig. 9. And displaying a resource exchange information configuration page of the sub-application corresponding to the sub-application identification through the display module 920. The resource exchange information input at the resource exchange information configuration page is collected by the collection module 930. And obtaining the promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information through the processing module 940.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of: acquiring a sub-application program identifier; displaying a resource exchange information configuration page of the sub application program corresponding to the sub application program identification; collecting resource exchange information input on a resource exchange information configuration page; and obtaining the promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information through the sub-application program.
In one embodiment, displaying a resource exchange information configuration page of a sub-application corresponding to the sub-application identification comprises: displaying a resource exchange type option page of the sub application program corresponding to the sub application program identification; showing resource exchange type options in a resource exchange type option page; selecting a resource exchange type option according to a selection instruction triggered in the resource exchange type option page; and jumping to a resource exchange information configuration page of the sub application program corresponding to the sub application program identification and associated with the selected resource exchange type option.
In one embodiment, jumping to a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification and associated with the selected resource exchange type option includes: acquiring a page configuration file of the sub-application program corresponding to the sub-application program identifier and associated with the selected resource exchange type option; selecting a public component from a public component library according to the page configuration file; and organizing the selected public components according to the page configuration file to generate a resource exchange information configuration page.
In one embodiment, obtaining, by the sub-application program, a promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information includes: determining a resource exchange type to which the resource exchange information belongs through the sub-application program; selecting a promotion picture template from a promotion picture template library corresponding to the resource exchange type; and filling the resource exchange information into the popularization picture template to form the popularization picture.
In one embodiment, selecting a promotion picture template from a promotion picture template library corresponding to a resource exchange type includes: determining a resource share interval to which a resource exchange share specified by the resource exchange information belongs; inquiring the resource share type corresponding to the resource share interval; and selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type.
In one embodiment, the populating the promotional picture template with the resource exchange information to form a promotional picture, includes: determining an anchor point corresponding to an information display area in the promotion picture template; determining an information arrangement mode according to the position relation between the anchor point and the information display area; and filling the resource exchange information into the information display area according to the information arrangement mode to form a promotion picture.
In one embodiment, according to an information arrangement mode, filling resource exchange information into an information display area to form a promotion picture, including: acquiring the data volume of resource exchange information and the size of an information display area; determining the font size of the resource exchange information according to the data size and the size; and according to the information arrangement mode, filling the resource exchange information into the information display area in a font size to form a promotion picture.
In one embodiment, obtaining, by the sub-application program, a promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information includes: sending the resource exchange information to a server through a sub-application program, and enabling the server to fill the resource exchange information into a promotion picture template to form a promotion picture; receiving a notification fed back by the server after the promotion picture is formed; and downloading the promotion picture according to the notification.
In one embodiment, the computer program further causes the processor to perform the steps of: displaying the promotion picture through a sub-application program; detecting a preset trigger operation corresponding to the promotion picture; and storing the promotion picture to a local storage directory according to a preset trigger operation.
After determining the sub-application program capable of obtaining the popularization picture, the storage medium displays a page provided by the sub-application program for the user to configure the resource exchange information, and further collects the resource exchange information input by the user on the page, so that the popularization picture formed by filling the resource exchange information into the popularization picture template can be obtained. Therefore, the page of the sub-application program can be displayed without a complex application program installation process, so that the user can obtain the promotion picture comprising the resource exchange information only by inputting the resource exchange information on the page, the workload and time consumption caused by manual adjustment are avoided, and the generation efficiency of the promotion picture is greatly improved.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of: acquiring a sub-application program identifier; displaying a resource exchange information configuration page of the sub application program corresponding to the sub application program identification; collecting resource exchange information input on a resource exchange information configuration page; and obtaining the promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information through the sub-application program.
In one embodiment, displaying a resource exchange information configuration page of a sub-application corresponding to the sub-application identification comprises: displaying a resource exchange type option page of the sub application program corresponding to the sub application program identification; showing resource exchange type options in a resource exchange type option page; selecting a resource exchange type option according to a selection instruction triggered in the resource exchange type option page; and jumping to a resource exchange information configuration page of the sub application program corresponding to the sub application program identification and associated with the selected resource exchange type option.
In one embodiment, jumping to a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification and associated with the selected resource exchange type option includes: acquiring a page configuration file of the sub-application program corresponding to the sub-application program identifier and associated with the selected resource exchange type option; selecting a public component from a public component library according to the page configuration file; and organizing the selected public components according to the page configuration file to generate a resource exchange information configuration page.
In one embodiment, obtaining, by the sub-application program, a promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information includes: determining a resource exchange type to which the resource exchange information belongs through the sub-application program; selecting a promotion picture template from a promotion picture template library corresponding to the resource exchange type; and filling the resource exchange information into the popularization picture template to form the popularization picture.
In one embodiment, selecting a promotion picture template from a promotion picture template library corresponding to a resource exchange type includes: determining a resource share interval to which a resource exchange share specified by the resource exchange information belongs; inquiring the resource share type corresponding to the resource share interval; and selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type.
In one embodiment, the populating the promotional picture template with the resource exchange information to form a promotional picture, includes: determining an anchor point corresponding to an information display area in the promotion picture template; determining an information arrangement mode according to the position relation between the anchor point and the information display area; and filling the resource exchange information into the information display area according to the information arrangement mode to form a promotion picture.
In one embodiment, according to an information arrangement mode, filling resource exchange information into an information display area to form a promotion picture, including: acquiring the data volume of resource exchange information and the size of an information display area; determining the font size of the resource exchange information according to the data size and the size; and according to the information arrangement mode, filling the resource exchange information into the information display area in a font size to form a promotion picture.
In one embodiment, obtaining, by the sub-application program, a promotion picture formed by filling the resource exchange information into the promotion picture template according to the resource exchange information includes: sending the resource exchange information to a server through a sub-application program, and enabling the server to fill the resource exchange information into a promotion picture template to form a promotion picture; receiving a notification fed back by the server after the promotion picture is formed; and downloading the promotion picture according to the notification.
In one embodiment, the computer program further causes the processor to perform the steps of: displaying the promotion picture through a sub-application program; detecting a preset trigger operation corresponding to the promotion picture; and storing the promotion picture to a local storage directory according to a preset trigger operation.
After determining the sub-application program which can obtain the popularization picture, the computer equipment displays the page which is provided for the user to configure the resource exchange information by the sub-application program, further collects the resource exchange information input by the user on the page, and can obtain the popularization picture formed by filling the resource exchange information into the popularization picture template. Therefore, the page of the sub-application program can be displayed without a complex application program installation process, so that the user can obtain the promotion picture comprising the resource exchange information only by inputting the resource exchange information on the page, the workload and time consumption caused by manual adjustment are avoided, and the generation efficiency of the promotion picture is greatly improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. A method for generating a promotional picture, the method comprising:
acquiring a sub-application program identifier;
displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification;
collecting resource exchange information input on the resource exchange information configuration page, wherein the resource exchange information comprises resource exchange conditions and resource exchange shares;
determining, by the sub-application, a resource exchange type to which the resource exchange information belongs, the resource exchange type including at least one exchange type based on the resource exchange condition and based on the resource exchange share;
obtaining, by the sub-application, a promotion picture formed by filling the resource exchange information into a promotion picture template corresponding to the resource exchange type according to the resource exchange information, the promotion picture being a picture for promoting the resource exchange information;
displaying the promotion picture through the sub-application;
detecting a preset trigger operation corresponding to the promotion picture;
and storing the promotion picture to a local storage directory according to the preset trigger operation.
2. The method according to claim 1, wherein the displaying the resource exchange information configuration page of the sub-application corresponding to the sub-application identifier comprises:
displaying a resource exchange type option page of the sub-application program corresponding to the sub-application program identification;
displaying a resource exchange type option in the resource exchange type option page;
selecting a resource exchange type option according to a selection instruction triggered in the resource exchange type option page;
and jumping to a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification and associated with the selected resource exchange type option.
3. The method of claim 2, wherein the jumping to a resource exchange information configuration page of the sub-application identifying the corresponding sub-application and associated with the selected resource exchange type option comprises:
acquiring a page configuration file of the sub-application program corresponding to the sub-application program identifier and associated with the selected resource exchange type option;
selecting a public component from a public component library according to the page configuration file;
and organizing the selected public components according to the page configuration file to generate a resource exchange information configuration page.
4. The method of claim 1, further comprising:
determining a resource share interval to which a resource exchange share specified by the resource exchange information belongs;
inquiring the resource share type corresponding to the resource share interval;
and selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type.
5. The method according to claim 1, wherein the obtaining, according to the resource exchange information, a promotion picture formed by filling the resource exchange information into a promotion picture template corresponding to the resource exchange type includes:
determining an anchor point corresponding to an information display area in the popularization picture template;
determining an information arrangement mode according to the position relation between the anchor point and the information display area;
and filling the resource exchange information into the information display area according to the information arrangement mode to form a promotion picture.
6. The method according to claim 5, wherein the filling the resource exchange information into the information display area according to the information arrangement manner to form a promotion picture comprises:
acquiring the data volume of the resource exchange information and the size of the information display area;
determining the font size of the resource exchange information according to the data volume and the size;
and according to the information arrangement mode, filling the resource exchange information into the information display area according to the font size to form a promotion picture.
7. The method according to claim 1, wherein the obtaining, by the sub-application program, a promotion picture formed by filling the resource exchange information into a promotion picture template corresponding to the resource exchange type according to the resource exchange information includes:
sending the resource exchange information to a server through the sub-application program, and enabling the server to fill the resource exchange information into a promotion picture template to form a promotion picture;
receiving a notification fed back by the server after the promotion picture is formed;
and downloading the promotion picture according to the notification.
8. An apparatus for generating a promotional picture, the apparatus comprising:
the acquisition module is used for acquiring the sub-application program identifier;
the display module is used for displaying a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identifier;
the collecting module is used for collecting the resource exchange information input on the resource exchange information configuration page, and the resource exchange information comprises resource exchange conditions and resource exchange shares;
a processing module, configured to determine, by the sub-application, a resource exchange type to which the resource exchange information belongs, where the resource exchange type includes at least one exchange type based on the resource exchange condition and based on the resource exchange share; obtaining, by the sub-application, a promotion picture formed by filling the resource exchange information into a promotion picture template corresponding to the resource exchange type according to the resource exchange information, the promotion picture being a picture for promoting the resource exchange information;
and the storage module is used for displaying the promotion picture through the sub-application program, detecting a preset trigger operation corresponding to the promotion picture, and storing the promotion picture to a local storage directory according to the preset trigger operation.
9. The apparatus of claim 8, wherein the display module is further configured to display a resource exchange type option page of the sub-application corresponding to the sub-application identifier; displaying a resource exchange type option in the resource exchange type option page; selecting a resource exchange type option according to a selection instruction triggered in the resource exchange type option page; and jumping to a resource exchange information configuration page of the sub-application program corresponding to the sub-application program identification and associated with the selected resource exchange type option.
10. The apparatus according to claim 9, wherein the display module is further configured to obtain a page profile of the sub-application corresponding to the sub-application identifier and associated with the selected resource exchange type option; selecting a public component from a public component library according to the page configuration file; and organizing the selected public components according to the page configuration file to generate a resource exchange information configuration page.
11. The apparatus of claim 8, wherein the processing module is further configured to determine a resource share interval to which a resource exchange share specified by the resource exchange information belongs; inquiring the resource share type corresponding to the resource share interval; and selecting a promotion picture template corresponding to the resource share type from a promotion picture template library corresponding to the resource exchange type.
12. The apparatus of claim 8, wherein the processing module is further configured to determine an anchor point corresponding to an information display area in the promotional picture template; determining an information arrangement mode according to the position relation between the anchor point and the information display area; and filling the resource exchange information into the information display area according to the information arrangement mode to form a promotion picture.
13. The apparatus according to claim 12, wherein the processing module is further configured to obtain a data size of the resource exchange information and a size of the information display area; determining the font size of the resource exchange information according to the data volume and the size; and according to the information arrangement mode, filling the resource exchange information into the information display area according to the font size to form a promotion picture.
14. The apparatus of claim 8, wherein the processing module further comprises:
the sending unit is used for sending the resource exchange information to a server, so that the server fills the resource exchange information into a promotion picture template to form a promotion picture;
a receiving unit, configured to receive a notification fed back by the server after the promotion picture is formed;
and the downloading unit is used for downloading the promotion picture according to the notification.
15. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
16. A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
CN201710890336.3A 2017-09-27 2017-09-27 Promotion picture generation method and device, storage medium and computer equipment Active CN109582401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710890336.3A CN109582401B (en) 2017-09-27 2017-09-27 Promotion picture generation method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710890336.3A CN109582401B (en) 2017-09-27 2017-09-27 Promotion picture generation method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN109582401A CN109582401A (en) 2019-04-05
CN109582401B true CN109582401B (en) 2021-08-24

Family

ID=65912552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710890336.3A Active CN109582401B (en) 2017-09-27 2017-09-27 Promotion picture generation method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN109582401B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256998B (en) * 2019-07-22 2024-03-22 百度时代网络技术(北京)有限公司 Popularization information management method and device and electronic equipment
CN112799552A (en) * 2019-10-28 2021-05-14 腾讯科技(深圳)有限公司 Method and device for sharing promotion pictures and storage medium
CN110833693B (en) * 2019-11-07 2023-09-22 腾讯科技(深圳)有限公司 Game running method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591885A (en) * 2016-01-21 2016-05-18 腾讯科技(深圳)有限公司 Resource sharing method and device
CN105741091A (en) * 2016-01-28 2016-07-06 腾讯科技(深圳)有限公司 Resource sharing method and system as well as resource acquisition method
CN106502736A (en) * 2016-10-18 2017-03-15 腾讯科技(深圳)有限公司 Applied program processing method and device
CN107179923A (en) * 2017-03-31 2017-09-19 腾讯科技(深圳)有限公司 Applied program processing method, device and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9207945B2 (en) * 2012-09-28 2015-12-08 Intel Corporation Multi-persona computing based on real time user recognition
CN105654348B (en) * 2015-12-31 2021-03-12 腾讯科技(深圳)有限公司 Advertisement processing method and delivery end
CN105634926B (en) * 2016-01-21 2019-05-14 腾讯科技(深圳)有限公司 Resource sharing method, device and system
CN105975612A (en) * 2016-05-18 2016-09-28 北京金山安全软件有限公司 Picture processing method, device and equipment
CN106846034A (en) * 2016-12-07 2017-06-13 乐视控股(北京)有限公司 Share generation method, device and the electronic equipment of the page

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591885A (en) * 2016-01-21 2016-05-18 腾讯科技(深圳)有限公司 Resource sharing method and device
CN105741091A (en) * 2016-01-28 2016-07-06 腾讯科技(深圳)有限公司 Resource sharing method and system as well as resource acquisition method
CN106502736A (en) * 2016-10-18 2017-03-15 腾讯科技(深圳)有限公司 Applied program processing method and device
CN107179923A (en) * 2017-03-31 2017-09-19 腾讯科技(深圳)有限公司 Applied program processing method, device and computer equipment

Also Published As

Publication number Publication date
CN109582401A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109600408B (en) Resource sharing method and device, storage medium and computer equipment
WO2018177251A1 (en) Application program processing method, computer device and storage medium
US11132114B2 (en) Method and apparatus for generating customized visualization component
CN109542543B (en) Application page processing method and device, storage medium and computer equipment
CN105989144B (en) Notification message management method, device and system and terminal equipment
CN102226916B (en) Platform, the method and apparatus of management application program
CN110244984B (en) Application processing method, device, storage medium and computer equipment
CN110245069B (en) Page version testing method and device and page display method and device
CN112019820B (en) Interface generation method and device
CN109582401B (en) Promotion picture generation method and device, storage medium and computer equipment
CN111984902A (en) Visual page configuration method, system, computer equipment and storage medium
CN109359280B (en) Data display method, device, computer equipment and storage medium
CN110889076B (en) Comment information publishing method, device, client, server, system and medium
CN106156189B (en) Label generation method and device, and information acquisition method and device
CN112068923B (en) Interface updating method and device
CN108805577B (en) Information processing method, device, system, computer equipment and storage medium
CN110837366A (en) Form generation method, electronic device and computer readable storage medium
CN110795180A (en) Two-dimensional code management method and system, electronic device and storage medium
CN114612279A (en) Watermark adding method and device
CN115495496A (en) Data export method, device, electronic equipment, storage medium and program product
CN113742601A (en) Content sharing method and device, computer equipment and storage medium
CN105279140B (en) Text display method, server, terminal and system
CN111784326A (en) Picture processing method and device and computer equipment
CN115062217A (en) Designer matching method, device, equipment and storage medium based on artificial intelligence
CN114860238A (en) Page generation 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
GR01 Patent grant
GR01 Patent grant