Movatterモバイル変換


[0]ホーム

URL:


CN110609715A - Random option page display method and device, computer equipment and storage medium - Google Patents

Random option page display method and device, computer equipment and storage medium
Download PDF

Info

Publication number
CN110609715A
CN110609715ACN201910744200.0ACN201910744200ACN110609715ACN 110609715 ACN110609715 ACN 110609715ACN 201910744200 ACN201910744200 ACN 201910744200ACN 110609715 ACN110609715 ACN 110609715A
Authority
CN
China
Prior art keywords
style
file
page
random
random option
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910744200.0A
Other languages
Chinese (zh)
Inventor
黄亚飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Saiante Technology Service Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co LtdfiledCriticalPing An International Smart City Technology Co Ltd
Priority to CN201910744200.0ApriorityCriticalpatent/CN110609715A/en
Publication of CN110609715ApublicationCriticalpatent/CN110609715A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The application relates to a random option page display method, a random option page display device, computer equipment and a storage medium. When an instruction which is triggered by an application program and carries a random option page identifier is detected, generating a style file acquisition request according to the random option page identifier, and acquiring a corresponding style file from a local file directory of the application program according to the style file acquisition request; the style file comprises display shape information; generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information; generating a random option page file according to the style parameters and the style file; and loading the random option page file to display the random option page. When the random option page is required to be displayed, the corresponding random option page is automatically generated according to the style file and the style parameters to be displayed, so that the working efficiency is improved.

Description

Random option page display method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying a random option page, a computer device, and a storage medium.
Background
With the development of computing technology, online life is more and more abundant. Many of the requirements can be fulfilled on-line, such as: an online financing platform. Many online platforms can adopt online show activity page usually, make the user participate in the activity through the activity page that the terminal showed on the platform, improve the popularization effect of brand or product, if: and initiating a random option activity on the line, triggering an extraction instruction by a user through a terminal, and correspondingly displaying option contents on a random option activity page displayed on the platform.
At present, the random option activity page displayed on a platform is made in the following way: making the content of the display options in one or more graphs, such as: and when the random option activity page needs to be displayed, the terminal acquires the disc-shaped option content picture to generate the random option activity page for displaying. When the display option content needs to be changed, the option content picture needs to be reproduced according to the new display option content. Based on the requirement of the activity publisher, the contents of the random option activities which cannot be published each time are the same, and the activity contents need to be changed at variable time.
Therefore, different option content pictures need to be made for different random option activities to generate and display a random option activity page, and the problem of low working efficiency exists.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a random option page display method, apparatus, computer device and storage medium for improving work efficiency.
A random option page display method, the method comprising:
when an instruction which is triggered by an application program and carries a random option page identifier is detected, generating a style file acquisition request according to the random option page identifier;
acquiring a corresponding style file from a local file directory of the application program according to the style file acquisition request; the style file comprises display shape information;
generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information;
generating a random option page file according to the style parameters and the style file;
and loading the random option page file to display a random option page.
In one embodiment, after the step of loading the random option page file to display a random option page, the method further includes:
sending a display information acquisition request triggered by an application program to the server;
acquiring display information which is randomly selected by the server according to the display information acquisition request;
and updating the random option page according to the display information, and displaying the updated random option page file.
In one embodiment, the step of generating a style file acquisition request according to a random option page identifier when an instruction carrying the random option page identifier triggered by an application is detected includes:
detecting an instruction which is triggered by an application program and carries a random option page identifier through a preset hook program;
and when the instruction is detected, intercepting the instruction sent to the server, and generating a style file acquisition request according to the random option page identifier.
In one embodiment, the generating of the corresponding parameter obtaining request based on the style file and the sending of the parameter obtaining request to the server to obtain the style parameter; the style parameters include: the steps of option information and configuration information include:
matching a corresponding parameter acquisition function according to the style file;
calling the parameter acquisition function to generate a corresponding parameter acquisition request, and sending the parameter acquisition request to a server to obtain a style parameter; the style parameters include: option information and configuration information.
In one embodiment, the step of generating a random option page file according to the style parameter and the style file includes:
generating an initial page element according to configuration information in the style parameter and display shape information of the style file;
and filling the option information in the style parameters into the initial page element to obtain a random option page file.
In one embodiment, the step of generating an initial page element according to the configuration information in the style parameter and the display shape information of the style file includes:
analyzing the display shape information of the style file to obtain a display shape;
and carrying out region division on the display shape according to the configuration information, and taking the divided display shape as an initial page element.
In one embodiment, the step of filling the option information in the style parameter into the initial page element to obtain a random option page file includes:
filling option information in the style parameters into corresponding areas of the initial page elements;
rendering the filled initial page elements to obtain page elements;
and generating a random option page file according to the page elements.
A random option page presentation device, the device comprising:
the command detection module is used for generating a style file acquisition request according to a random option page identifier when a command which is triggered by an application program and carries the random option page identifier is detected;
the style file acquisition module is used for acquiring a corresponding style file from a local file directory of the application program according to the style file acquisition request; the style file comprises display shape information;
the style parameter acquisition module is used for generating a corresponding parameter acquisition request based on the style file and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information;
the page file generating module is used for generating a random option page file according to the style parameter and the style file;
and the display module is used for loading the random option page file so as to display the random option page.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method.
According to the random option page display method, the random option page display device, the computer equipment and the storage medium, when an instruction which is triggered by an application program and carries a random option page identifier is detected, a style file acquisition request is generated according to the random option page identifier, the process of generating the random option page can be entered, the preset random option page is not directly acquired, and a corresponding style file is acquired from a local file directory of the application program according to the style file acquisition request; the style file comprises display shape information; generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information; generating a random option page file according to the style parameters and the style file; and loading the random option page file to display the random option page. When the random option page is required to be displayed, the corresponding random option page is automatically generated according to the style file and the style parameters to be displayed, so that the working efficiency is improved.
Drawings
FIG. 1 is a diagram of an application scenario of a method for displaying a random option page in one embodiment;
FIG. 2 is a flow diagram illustrating a method for displaying a random option page in one embodiment;
FIG. 3 is a block diagram of a random option page presentation device in one embodiment;
FIG. 4 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 application more apparent, the present application 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 present application and are not intended to limit the present application.
The random option page display method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. When detecting an instruction which is triggered by an application program and carries a random option page identifier, the terminal 102 generates a style file acquisition request according to the random option page identifier; acquiring a corresponding style file from a local file directory of an application program according to a style file acquisition request; the style file comprises display shape information; generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to the server 104 to obtain a style parameter; the style parameters include: option information and configuration information; generating a random option page file according to the style parameters and the style file; the terminal 102 loads the random option page file to display the random option page. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a random option page presentation method is provided, which is described by taking the method as an example applied to the terminal 102 in fig. 1, and includes steps S220 to S300:
step S220, when an instruction carrying a random option page identifier triggered by the application program is detected, a style file acquisition request is generated according to the random option page identifier.
The method comprises the steps that a process triggers an instruction carrying a random option page identifier in an application program, the terminal is provided with the application program capable of executing random option page display, and a hook program preset in the application program monitors (or detects) the process, so that the instruction carrying the random option page identifier is intercepted, namely the process does not process the instruction carrying the random option page identifier temporarily. Such as: the user opens the lottery activity on the application program by clicking the page of the terminal, the application program can trigger a lottery activity page display instruction by a process, and the preset hook program monitors the process and temporarily does not send the lottery activity page display instruction to the server.
Step S240, acquiring a corresponding style file from a local file directory of the application program according to the style file acquisition request; the style file includes display shape information.
The style file is stored in a local file directory of the application program, the directory is equivalent to a style pool, a plurality of different types of style files are arranged in the style pool, and information such as display shape information of page elements in the random option page is recorded in the style file, for example: the random option page is a disc lottery interface, the disc refers to the page element, and the displayed shape information is the shape of the page element.
Step S260, generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information.
The parameter obtaining request is used for obtaining the style parameters from the server, the parameter obtaining request is sent to the server, and the server returns the corresponding style parameters according to the parameter obtaining request. The style parameter refers to information that the page element needs to be added, and includes: option information and configuration information. The option information refers to options that can be selected in the random options page. Configuration information refers to rules for how to specify options that may be selected for configuration into a page element. Such as: assuming that the random option page is of a lottery type, the page elements of the random option page are lottery discs, and the style parameters include: the prize name of the lottery turntable, the prize content, the background color of the prize corresponding block, the prize picture page label, the inner/outer circle radius of the lottery turntable, the prize position, the starting angle, the starting/stopping instruction and the like.
Step S280, generating a random option page file according to the style parameters and the style file.
The style parameters can be divided into option information and configuration information, an initial page element is generated by combining a style file according to the configuration information in the style parameters, then the initial page element is traversed sequentially according to the option information in the style parameters, after the traversal is completed, the page element can be generated by rendering in an application program, and a random option page file is generated according to the page element.
Step S300, loading the random option page file to display the random option page.
The page file of the random option is loaded, page elements are obtained, the page elements are led into a page for displaying the random option, and then the page of the random option is loaded and displayed on a display screen of the terminal.
In the random option page display method, when an instruction which is triggered by an application program and carries a random option page identifier is detected, a style file acquisition request is generated according to the random option page identifier, and a process of generating a random option page can be entered, instead of directly acquiring a preset random option page, and acquiring a corresponding style file from a local file directory of the application program according to the style file acquisition request; the style file comprises display shape information; generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information; generating a random option page file according to the style parameters and the style file; and loading the random option page file to display the random option page. When the random option page is required to be displayed, different option content pictures are required to be made according to different random option activities, and the option page file corresponding to the option content required to be displayed in the random option activities is automatically generated according to the style file and the style parameters, so that the random option page is displayed, and the working efficiency is improved.
In one embodiment, after the step of loading the random option page file to display the random option page, the method further includes: sending a display information acquisition request triggered by an application program to a server; the acquisition server randomly selects the display information according to the display information acquisition request; and updating the random option page according to the display information, and displaying the updated random option page file.
The display information obtaining request is sent based on a displayed random option page, after the server receives the display information obtaining request, the server randomly obtains a random option (namely display information) according to a preset random function and a randomly extracted probability, the server sends the random option to the terminal, an application program of the terminal obtains a corresponding page according to the random option to update a current random option page file, and the terminal loads the updated random option page file for display.
For example: the random option page is a lottery type random option page, a user triggers a lottery starting request of the random option page through the terminal, the lottery starting request is a display information acquisition request, the server receives the lottery starting request and then calls a lottery function, the lottery function is a random function, prizes (the prizes refer to the random options) obtained by the lottery request are randomly obtained according to the probability of winning, the server sends the prizes obtained by the lottery to the terminal, an application program of the terminal obtains the lottery prizes, the obtained prizes are positioned through a lottery turntable, then the rotating parameters of the turntable are set according to the pointer position of the turntable, a lottery module of the application program of the terminal controls the pointer to rotate on the turntable, so that the pointer stops in the position area corresponding to the lottery, and the application program of the terminal releases text information in the process, and displaying winning information, wherein the interface for displaying winning information is the updated random option page. The method can be adapted to most of application programs and browsers on the market, random option pages do not need to be designed in a targeted manner, only corresponding random options (namely display information) are set in the server, the random options extract corresponding results, page display requests are monitored according to the increase, the corresponding random option pages can be automatically generated to complete page display, and reuse of the random option pages can be quickly achieved.
In one embodiment, when an instruction carrying a random option page identifier triggered by an application program is detected, a step of generating a style file acquisition request according to the random option page identifier includes: detecting an instruction which is triggered by an application program and carries a random option page identifier through a preset hook program; and when the instruction is detected, intercepting the instruction sent to the server, and generating a style file acquisition request according to the random option page identifier.
The method comprises the steps that a specific Hook program (Hook) is preset in an application program, the Hook program is a platform of a Windows message processing mechanism, the application program can set a sub-program on the application program to monitor certain messages of a designated window, an instruction carrying a random option page identifier in the application program is monitored, the instruction carrying the random option page identifier refers to a random option page display instruction in the application program triggered by a user through a terminal, the instruction carries the random option page identifier corresponding to a random option page to be displayed, the instruction is processed in one process of the application program, and after API communication is carried out, the Hook program is set in the application program to monitor the process. When the instruction triggered by the user through the terminal is received in the application program, the hook program intercepts the instruction, then generates a style file acquisition request according to the random option page identification, and completes the processing before page display. Through the hook program, the method can be quickly adapted to the application program, so that the multiplexing before multiple products is quickly realized. In order to improve the reuse of the random option page, the random option page is not traditionally arranged at the background of an application program, but page elements of the random option page are generated by a plug-in through a HOOK program.
In one embodiment, a corresponding parameter acquisition request is generated based on a style file, and the parameter acquisition request is sent to a server to obtain style parameters; the style parameters include: the steps of option information and configuration information include: matching corresponding parameter acquisition functions according to the style files; calling a parameter acquisition function to generate a corresponding parameter acquisition request, and sending the parameter acquisition request to a server to obtain a style parameter; the style parameters include: option information and configuration information.
The method comprises the steps that for different types of style files, parameter obtaining functions corresponding to obtaining style parameters exist, the parameter obtaining functions used for obtaining the style parameters are stored in a page display component of an application program in advance, the corresponding parameter obtaining functions are matched based on the style files, the parameter obtaining functions are operated, corresponding parameter obtaining requests can be generated, the parameter obtaining requests are sent to a server, and the server returns the corresponding style parameters according to the parameter obtaining requests. According to the style file, the style parameters corresponding to the style file can be determined, and the constructed page element template (namely, the style file) can be stored in the style pool through the style pool, so that when the random option page needs to be displayed, the style of the page element of the random option page is different according to different requirements. The page elements can be diversified, and the page looks more beautiful.
In one embodiment, the step of generating a random option page file according to the style parameter and the style file includes: generating an initial page element according to configuration information in the style parameter and display shape information of the style file; and filling the option information in the style parameters into the initial page element to obtain a random option page file.
The initial page element refers to a page element without filling option information, only a picture, and no text content, such as: and displaying a circular area of which the shape information is drawn based on the canvas tool, processing the circular area according to the configuration information to obtain the processed circular area, and taking a picture of the circular area as an initial page element. And filling the option information in the style parameters into the initial page elements to obtain a random option page file.
In one embodiment, the step of generating the initial page element according to the configuration information in the style parameter and the display shape information of the style file includes: analyzing the display shape information of the style file to obtain a display shape; and carrying out region division on the display shape according to the configuration information, and taking the divided display shape as an initial page element.
The display shape information is based on a canvas tool to draw a graph area, and the corresponding graph area, namely the display shape, can be obtained for the display shape information. Dividing the display shape into regions according to the configuration information, and taking the divided display shape as an initial page element, such as: assuming that the initial page element of the random option page of the lottery type is a circle, the circle is divided by calculating the circumferential angle occupied by each prize according to the number of prizes (i.e. the number of option information) by using a canvas tool in HTML5, for example: the corresponding area of the first-class prize is [0,90] in the angle interval, the corresponding area of the second-class prize is [90,180] in the angle interval, the corresponding area of the third-class prize is [180,270] in the angle interval, and the corresponding area of the fourth-class prize is [270,360 ].
In one embodiment, the step of filling the option information in the style parameter into the initial page element to obtain the page element includes: filling option information in the style parameters into corresponding areas of the initial page elements; rendering the filled initial page elements to obtain page elements; and generating a random option page file according to the page elements.
Wherein the rendering process comprises: when the option pictures needed by the options are obtained according to the option information, the option pictures are further displayed, the option pictures are preloaded into an array in the function, whether all the option pictures are loaded is judged, and if yes, the array is used as a parameter. Such as: and page elements of the random option page of the lottery drawing type display a prize picture on the lottery drawing page, wherein the prize picture is the option picture. Through the processing, all the option pictures can be loaded completely before rendering, and the problem that the option pictures are possibly not displayed is solved. And pushing the parameters corresponding to all the option pictures onto the canvas once, so as to dynamically generate the page elements. Such as: if the random option page is of a lottery type, a prize form is preset in the server and is used for recording prize names, prize contents, prize picture page labels, prize winning probability and the like. The schematic of the prize form is as follows:
prize namePrize contentPrize picture page labelProbability of winning a prize
First-class prizeiPhone XA10.01%
Second-class prize2000 Cash red envelopeA20.1%
Three equal prizesHeat insulation cupA31%
Winning prize of winning successFinancial couponA498.89%
A1 is the address of the picture in the server, e.g. "201901406303384. png". The server acquires the prize information from the prize form, and after the prize information is sent to the application program, the application program establishes a list file, and stores the prize information in a json format in the list file, so that the prize information (option information) can be conveniently traversed to the initial page element to obtain the page element; and generating a random option page file according to the page elements.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order 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 portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a random option page presentation apparatus including: an instruction detection module 310, a style file acquisition module 320, a style parameter acquisition module 330, a page file generation module 340 and a presentation module 350, wherein:
the instruction detection module 310 is configured to generate a style file acquisition request according to a random option page identifier when an instruction which is triggered by an application and carries the random option page identifier is detected;
a style file acquiring module 320, configured to acquire a corresponding style file from a local file directory of an application according to a style file acquiring request; the style file comprises display shape information;
the style parameter acquiring module 330 is configured to generate a corresponding parameter acquiring request based on the style file, and send the parameter acquiring request to the server to obtain a style parameter; the style parameters include: option information and configuration information;
the page file generating module 340 is configured to generate a random option page file according to the style parameter and the style file;
and a presentation module 350, configured to load the random option page file to present the random option page.
In one embodiment, the random option page presentation device further includes a random option page update module, configured to send a presentation information acquisition request triggered by an application program to a server; the acquisition server randomly selects the display information according to the display information acquisition request; and updating the random option page according to the display information, and displaying the updated random option page.
In one embodiment, the instruction detection module 310 includes: the monitoring unit is used for detecting an instruction which is triggered by an application program and carries a random option page identifier through a preset hook program; and the intercepting unit is used for intercepting the instruction sent to the server when the instruction is detected, and generating a style file acquisition request according to the random option page identifier.
In one embodiment, the style parameter acquisition module 330 includes: the matching unit is used for matching the corresponding parameter acquisition function according to the style file; the style parameter acquiring unit is used for calling a parameter acquiring function to generate a corresponding parameter acquiring request and sending the parameter acquiring request to the server to obtain a style parameter; the style parameters include: option information and configuration information.
In one embodiment, the pagefile generation module 340 comprises: the initial page element generating unit is used for generating an initial page element according to the configuration information in the style parameter and the display shape information of the style file; and the random option page file unit is used for filling the option information in the style parameters into the initial page element to obtain a random option page file.
In one embodiment, the initial page element generation unit is to: analyzing the display shape information of the style file to obtain a display shape; and carrying out region division on the display shape according to the configuration information, and taking the divided display shape as an initial page element.
In one embodiment, the random options page file unit is to: filling option information in the style parameters into corresponding areas of the initial page elements; rendering the filled initial page elements to obtain page elements; and generating a random option page file according to the page elements.
For the specific limitations of the random option page display device, reference may be made to the above limitations on the random option page display method, which is not described herein again. The modules in the random option page presentation device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a server bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operation server and a computer program. The internal memory provides an environment for the operation server and the execution of the computer program in the nonvolatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a random option page presentation 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 of the computer equipment 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, 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. 4 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, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
when an instruction which is triggered by an application program and carries a random option page identifier is detected, generating a style file acquisition request according to the random option page identifier; acquiring a corresponding style file from a local file directory of an application program according to a style file acquisition request; the style file comprises display shape information; generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information; generating a random option page file according to the style parameters and the style file; and loading the random option page file to display the random option page.
In one embodiment, the processor, when executing the computer program, further performs the steps of: sending a display information acquisition request triggered by an application program to a server; the acquisition server randomly selects the display information according to the display information acquisition request; and updating the random option page according to the display information, and displaying the updated random option page.
In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting an instruction which is triggered by an application program and carries a random option page identifier through a preset hook program; and when the instruction is detected, intercepting the instruction sent to the server, and generating a style file acquisition request according to the random option page identifier.
In one embodiment, the processor, when executing the computer program, further performs the steps of: matching corresponding parameter acquisition functions according to the style files; calling a parameter acquisition function to generate a corresponding parameter acquisition request, and sending the parameter acquisition request to a server to obtain a style parameter; the style parameters include: option information and configuration information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: generating an initial page element according to configuration information in the style parameter and display shape information of the style file; and filling the option information in the style parameters into the initial page element to obtain a random option page file.
In one embodiment, the processor, when executing the computer program, further performs the steps of: analyzing the display shape information of the style file to obtain a display shape; and carrying out region division on the display shape according to the configuration information, and taking the divided display shape as an initial page element.
In one embodiment, the processor, when executing the computer program, further performs the steps of: filling option information in the style parameters into corresponding areas of the initial page elements; rendering the filled initial page elements to obtain page elements; and generating a random option page file according to the page elements.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when an instruction which is triggered by an application program and carries a random option page identifier is detected, generating a style file acquisition request according to the random option page identifier; acquiring a corresponding style file from a local file directory of an application program according to a style file acquisition request; the style file comprises display shape information; generating a corresponding parameter acquisition request based on the style file, and sending the parameter acquisition request to a server to obtain style parameters; the style parameters include: option information and configuration information; generating a random option page file according to the style parameters and the style file; and loading the random option page file to display the random option page.
In one embodiment, the computer program when executed by the processor further performs the steps of: sending a display information acquisition request triggered by an application program to a server; the acquisition server randomly selects the display information according to the display information acquisition request; and updating the random option page according to the display information, and displaying the updated random option page.
In one embodiment, the computer program when executed by the processor further performs the steps of: detecting an instruction which is triggered by an application program and carries a random option page identifier through a preset hook program; and when the instruction is detected, intercepting the instruction sent to the server, and generating a style file acquisition request according to the random option page identifier.
In one embodiment, the computer program when executed by the processor further performs the steps of: matching corresponding parameter acquisition functions according to the style files; calling a parameter acquisition function to generate a corresponding parameter acquisition request, and sending the parameter acquisition request to a server to obtain a style parameter; the style parameters include: option information and configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating an initial page element according to configuration information in the style parameter and display shape information of the style file; and filling the option information in the style parameters into the initial page element to obtain a random option page file.
In one embodiment, the computer program when executed by the processor further performs the steps of: analyzing the display shape information of the style file to obtain a display shape; and carrying out region division on the display shape according to the configuration information, and taking the divided display shape as an initial page element.
In one embodiment, the computer program when executed by the processor further performs the steps of: filling option information in the style parameters into corresponding areas of the initial page elements; rendering the filled initial page elements to obtain page elements; and generating a random option page file according to the page elements.
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 hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. 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-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

CN201910744200.0A2019-08-132019-08-13Random option page display method and device, computer equipment and storage mediumPendingCN110609715A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910744200.0ACN110609715A (en)2019-08-132019-08-13Random option page display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910744200.0ACN110609715A (en)2019-08-132019-08-13Random option page display method and device, computer equipment and storage medium

Publications (1)

Publication NumberPublication Date
CN110609715Atrue CN110609715A (en)2019-12-24

Family

ID=68890097

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910744200.0APendingCN110609715A (en)2019-08-132019-08-13Random option page display method and device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN110609715A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112486486A (en)*2020-11-302021-03-12上海悦易网络信息技术有限公司Lottery drawing method and device based on static resources
CN112597416A (en)*2020-12-182021-04-02北京达佳互联信息技术有限公司Webpage element display method, device, server and storage medium
CN112685111A (en)*2020-12-252021-04-20百果园技术(新加坡)有限公司Control data processing method and related equipment
CN112861496A (en)*2021-03-222021-05-28平安商业保理有限公司Report generation display method and device, computer equipment and readable storage medium
CN113010151A (en)*2021-03-122021-06-22山东英信计算机技术有限公司Method, system, equipment and medium for traversing dynamic options in HII database
CN113076099A (en)*2021-03-222021-07-06深圳市金蚁云数字科技有限公司Page generation method, device, equipment and computer storage medium
CN113688334A (en)*2020-05-182021-11-23腾讯科技(深圳)有限公司 A content presentation method, apparatus and computer-readable storage medium
CN113760268A (en)*2020-06-192021-12-07北京沃东天骏信息技术有限公司Method and device for generating page
CN114328678A (en)*2021-12-292022-04-12挂号网(杭州)科技有限公司Method and device for displaying option information in service, electronic equipment and storage medium
CN115291763A (en)*2022-08-262022-11-04北京达佳互联信息技术有限公司Component display method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102135892A (en)*2010-01-222011-07-27北京金山数字娱乐科技有限公司Application program running method, device and system
US20130337891A1 (en)*2012-06-132013-12-19Tapgen Corp.System and method for rewarding user activity over a network
CN108037923A (en)*2018-01-022018-05-15武汉斗鱼网络科技有限公司Service implementation method of drawing a lottery and component
CN108319474A (en)*2017-01-162018-07-24腾讯科技(深圳)有限公司A kind of page info generation method, device and equipment
CN109447685A (en)*2018-09-262019-03-08中国平安人寿保险股份有限公司Product data method for pushing, device and computer equipment based on machine learning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102135892A (en)*2010-01-222011-07-27北京金山数字娱乐科技有限公司Application program running method, device and system
US20130337891A1 (en)*2012-06-132013-12-19Tapgen Corp.System and method for rewarding user activity over a network
CN108319474A (en)*2017-01-162018-07-24腾讯科技(深圳)有限公司A kind of page info generation method, device and equipment
CN108037923A (en)*2018-01-022018-05-15武汉斗鱼网络科技有限公司Service implementation method of drawing a lottery and component
CN109447685A (en)*2018-09-262019-03-08中国平安人寿保险股份有限公司Product data method for pushing, device and computer equipment based on machine learning

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113688334A (en)*2020-05-182021-11-23腾讯科技(深圳)有限公司 A content presentation method, apparatus and computer-readable storage medium
CN113760268A (en)*2020-06-192021-12-07北京沃东天骏信息技术有限公司Method and device for generating page
CN112486486A (en)*2020-11-302021-03-12上海悦易网络信息技术有限公司Lottery drawing method and device based on static resources
CN112486486B (en)*2020-11-302024-05-14上海万物新生环保科技集团有限公司Lottery drawing method and equipment based on static resources
CN112597416A (en)*2020-12-182021-04-02北京达佳互联信息技术有限公司Webpage element display method, device, server and storage medium
CN112597416B (en)*2020-12-182024-03-01北京达佳互联信息技术有限公司Webpage element display method and device, server and storage medium
CN112685111A (en)*2020-12-252021-04-20百果园技术(新加坡)有限公司Control data processing method and related equipment
CN112685111B (en)*2020-12-252024-08-02百果园技术(新加坡)有限公司Control data processing method and related equipment
CN113010151B (en)*2021-03-122023-09-01山东英信计算机技术有限公司 A method, system, device and medium for traversing dynamic options in HII database
CN113010151A (en)*2021-03-122021-06-22山东英信计算机技术有限公司Method, system, equipment and medium for traversing dynamic options in HII database
CN112861496A (en)*2021-03-222021-05-28平安商业保理有限公司Report generation display method and device, computer equipment and readable storage medium
CN113076099A (en)*2021-03-222021-07-06深圳市金蚁云数字科技有限公司Page generation method, device, equipment and computer storage medium
CN114328678A (en)*2021-12-292022-04-12挂号网(杭州)科技有限公司Method and device for displaying option information in service, electronic equipment and storage medium
CN115291763A (en)*2022-08-262022-11-04北京达佳互联信息技术有限公司Component display method and device, electronic equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN110609715A (en)Random option page display method and device, computer equipment and storage medium
CN110244984B (en)Application processing method, device, storage medium and computer equipment
CN110620812B (en)Interactive information pushing method and device, computer equipment and storage medium
US20210271456A1 (en)Child application development method and apparatus, computer device, and storage medium
CN108848142B (en)Message pushing method and device, computer equipment and storage medium
CN107193666B (en)Control method and device for calling between application programs
CN111176543A (en)Method, device, computer equipment and storage medium for realizing electronic signature
CN114238806A (en) Page display method, apparatus, computer equipment, storage medium and program product
CN110362341B (en)Business management method, device, equipment and storage medium based on micro-service architecture
CN111596911A (en)Method and device for generating control, computer equipment and storage medium
CN108388463B (en)Icon processing method and device, computer equipment and storage medium
CN110597815A (en)Service processing method, device, computer equipment and storage medium
CN113722225A (en)Page testing method and device, computer equipment and storage medium
CN110727481A (en)Picture editing method and device, computer equipment and storage medium
CN116127420A (en)Watermark adding method and device, storage medium and electronic device
CN119271916A (en) Browse data loading methods, products, computer equipment and storage media
CN113836465A (en) Control display method, system, computer device and storage medium
CN112417533A (en)Anti-screenshot method and device, computer equipment and storage medium
CN112527416A (en)Task processing method and device, computer equipment and storage medium
CN116997891A (en) Behavior monitoring method, device, terminal equipment and computer-readable storage medium
CN113126848B (en)Method and system for adding friends
CN112491799B (en)Remote repair method and device for communication module, computer equipment and storage medium
CN112688850B (en)Method and device for screening action objects in instant messaging
CN110322775B (en)Airport information display method and device, computer equipment and storage medium
CN112600803A (en)Web end data signature method and device and computer equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right

Effective date of registration:20210128

Address after:518066 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after:Shenzhen saiante Technology Service Co.,Ltd.

Address before:1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before:Ping An International Smart City Technology Co.,Ltd.

TA01Transfer of patent application right
RJ01Rejection of invention patent application after publication

Application publication date:20191224

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp