CN108037923B - Lottery service implementation method and component - Google Patents

Lottery service implementation method and component Download PDF

Info

Publication number
CN108037923B
CN108037923B CN201810003216.1A CN201810003216A CN108037923B CN 108037923 B CN108037923 B CN 108037923B CN 201810003216 A CN201810003216 A CN 201810003216A CN 108037923 B CN108037923 B CN 108037923B
Authority
CN
China
Prior art keywords
lottery
configuration
lottery service
service
interface
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
CN201810003216.1A
Other languages
Chinese (zh)
Other versions
CN108037923A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810003216.1A priority Critical patent/CN108037923B/en
Publication of CN108037923A publication Critical patent/CN108037923A/en
Application granted granted Critical
Publication of CN108037923B publication Critical patent/CN108037923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus

Abstract

The embodiment of the invention provides a lottery service implementation method and a lottery service implementation component, and relates to the technical field of Internet. The lottery service implementation method comprises the following steps: loading a pre-configured lottery service component on a page; displaying a corresponding lottery drawing service interface on the page, wherein the lottery drawing service interface comprises a configuration item for receiving user configuration information; and after receiving configuration content input by the user through the configuration item, redrawing the lottery service interface according to the configuration content. By using the lottery service implementation method and the components, the lottery service can be conveniently implemented on the page.

Description

Lottery service implementation method and component
Technical Field
The invention relates to the technical field of internet, in particular to a lottery service realization method and a lottery service realization component.
Background
In order to improve the participation of the page browser, the operator usually adds a lottery function to the activity page to guide the user to actively participate in activities and sharing, thereby achieving the purpose of drainage. Therefore, how to conveniently realize the lottery drawing service on the page becomes a technical problem to be solved.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a lottery service implementation method and component, so as to improve convenience of implementing a lottery service on a page.
In a first aspect, an embodiment of the present invention provides a lottery service implementation method, including:
loading a pre-configured lottery service component on a page;
displaying a corresponding lottery drawing service interface on the page, wherein the lottery drawing service interface comprises a configuration item for receiving user configuration information;
and after receiving configuration content input by the user through the configuration item, redrawing the lottery service interface according to the configuration content.
Optionally, the configuration item is multiple, and the step of redrawing the lottery service interface according to the configuration content includes:
and obtaining the configuration content input through each configuration item, and rendering the lottery service interface after the configuration content is input through each configuration item in real time and displaying and previewing the lottery service interface.
Optionally, a first script corresponding to a development environment and a second script corresponding to a release environment are defined in the lottery service component, and the first script is added with an editing function compared with the second script; the method further comprises the following steps:
judging whether the lottery service component is in a configuration state or a preview state, and if the lottery service component is in the configuration state or the preview state, loading the first script; and if the second script is not in the configuration state or the preview state, loading the second script.
Optionally, the lottery service component is a nine-grid lottery component, the lottery service interface is a nine-grid lottery interface, and the configuration item includes eight prize charts, a start button and a preset lottery pool ID.
Optionally, the step of redrawing the lottery service interface according to the configuration content includes:
dynamically calculating the size of each grid in the Sudoku lottery interface according to the width and the height of the peripheral container of the Sudoku lottery interface;
and correspondingly adding the configuration content into each grid.
Optionally, after displaying the rendered lottery service interface, the method further comprises:
when receiving a lottery drawing request, carrying out random lottery drawing, rendering and displaying winning animation information; or
When receiving a lottery drawing request, sending the lottery drawing request to a rear-end service platform;
receiving prize winning information fed back by the back-end service platform;
and searching grids in the Sudoku corresponding to the winning prizes, and rendering and displaying winning animation information according to the searched grids.
In a second aspect, an embodiment of the present invention provides a lottery service component, including:
the component loading module is used for loading the pre-configured lottery service components on the page;
the interface display module is used for displaying a corresponding lottery service interface on the page, wherein the lottery service interface comprises a configuration item for receiving user configuration information;
and the interface processing module is used for redrawing the lottery service interface according to the configuration content after receiving the configuration content input by the user through the configuration item.
Optionally, the configuration items are multiple, and the interface processing module is configured to obtain configuration content input through each configuration item, and perform real-time rendering and display preview on the lottery service interface after the configuration content is input through each configuration item.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and the computer program controls, when running, a lottery service component in which the computer-readable storage medium is located to execute the above-mentioned lottery service implementation method.
The lottery service implementation method and the lottery service implementation component provided by the embodiment of the invention package the lottery service function and logic into the independent lottery service component, the lottery service can be implemented on the page only by loading the pre-configured lottery service component on the page, and the lottery service interface corresponding to the lottery service component supports the custom configuration, and the redrawing of the lottery service interface can be implemented only by inputting the configuration content in the configuration item, so that the implementation is convenient and flexible.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an electronic device 10 according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of a lottery service implementation method according to an embodiment of the present invention.
FIG. 3 is a diagram illustrating the sub-steps included in the step S13 shown in FIG. 2 according to one embodiment.
Fig. 4 is another flowchart of a lottery service implementation method according to an embodiment of the present invention.
Fig. 5 is a block diagram of a lottery service component 20 according to a preferred embodiment of the present invention.
Icon: 10-an electronic device; 11-a memory; 12-a processor; 13-a network module; 20-a lottery service component; 21-component loading module; 22-an interface display module; 23-interface processing module.
Detailed Description
The inventor researches and discovers that the complete lottery drawing function is developed from zero on a page, the requirement on the capability of developers is met to a certain degree, codes need to be written, the compatibility problem of the page needs to be considered during development, the lottery drawing function on different browsers has better performance, and the disorder of the style and the abnormal function are avoided. For the tester, because each requirement is a function realized again, the same function needs to be tested repeatedly when each requirement is tested, so that the workload of the tester is increased invisibly.
Based on the above research, the embodiment of the present invention provides a lottery service implementation scheme: complex lottery service functions and logics are packaged into independent lottery service components, so that page developers only need to add the lottery service components at corresponding positions of the pages when the pages are realized, and lottery services can be realized on the pages on the premise of not writing codes.
The defects existing in the above solutions are the results obtained after the inventor has practiced and studied carefully, so the discovery process of the above problems and the solutions proposed by the following embodiments of the present invention to the above problems should be the contribution of the inventor to the present invention in the process of the present invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
As shown in fig. 1, the lottery service implementation scheme in the embodiment of the present invention may be applied to an electronic device 10 with a page display function, and the electronic device 10 in the embodiment of the present invention may be a mobile phone, a computer, a server, and the like with page display and processing functions. As shown in fig. 1, the electronic device 10 includes: memory 11, processor 12, network module 13 and lottery service component 20.
The memory 11, the processor 12 and the network module 13 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 11 stores a lottery service component 20, the lottery service component 20 includes at least one software functional module which can be stored in the memory 11 in the form of software or firmware (firmware), and the processor 12 executes various functional applications and data processing by running software programs and modules stored in the memory 11, such as the lottery service component 20 in the embodiment of the present invention, so as to implement the lottery service implementation method in the embodiment of the present invention.
The Memory 11 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 11 is used for storing a program, and the processor 12 executes the program after receiving an execution instruction.
The processor 12 may be an integrated circuit chip having data processing capabilities. The Processor 12 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The network module 13 is used for establishing a communication connection between the electronic device 10 and an external communication terminal through a network, and implementing transceiving operations of network signals and data. The network signal may include a wireless signal or a wired signal.
It will be appreciated that the configuration shown in FIG. 1 is merely illustrative and that electronic device 10 may include more or fewer components than shown in FIG. 1 or may have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Please refer to fig. 2, which is a flowchart illustrating a lottery service implementation method according to a preferred embodiment of the present invention. The specific process shown in fig. 2 will be described in detail below.
And step S11, loading the pre-configured lottery service components on the page.
In this embodiment, the lottery service component integrates the lottery service function and logic, for example, the lottery service component integrates drawing of a lottery service interface, interaction between the lottery service and a backend interface, user login authorization, interface display and prompt function after winning, and the like.
The lottery drawing service components are tested on line once by packaging the lottery drawing service functions and logic into independent lottery drawing service components, and subsequent operations do not involve modification and writing of code layers, so that repeated tests and other operations on the lottery drawing service components are not needed during use, the lottery drawing service components are added at corresponding positions of a page, and the lottery drawing function can be realized by configuring lottery drawing pool information in advance.
And step S12, displaying a corresponding lottery drawing service interface on the page, wherein the lottery drawing service interface comprises configuration items for receiving user configuration information.
In order to improve the flexibility of lottery service realization and meet the individual requirements of different users, the lottery service interface comprises configuration items, and it should be understood that the configuration items can be flexibly set according to different user requirements and different display forms of the lottery service interface. For example, the lottery service component may be a nine-grid lottery component, and accordingly, the lottery service interface is a nine-grid lottery interface, and the configuration items may include eight prize tables, a start button, and a preset lottery pool ID. It should be understood that the number and content of configuration items may have other options, and the embodiment is not limited thereto.
And step S13, after receiving the configuration content input by the user through the configuration item, redrawing the lottery service interface according to the configuration content.
In this embodiment, although configuration items are provided, configuration content may be selected to be input or not input, and in a case where configuration content is not input, the lottery service component directly renders and displays a default lottery service interface. And under the condition that the user inputs the configuration content through the configuration item, redrawing the lottery service interface according to the configuration content, and displaying the lottery service interface after the configuration content is input.
Because the lottery drawing service component is a default lottery drawing service interface which is preset and is displayed when a page developer or a designer joins the page, the lottery drawing service component provides editing and self-defining functions for the developer and the operation maintainer of the page, a preview picture for self-defining prizes and a button for starting lottery drawing, and a function of defining a lottery drawing pool is provided, so that the lottery drawing service component meets different services and requirements, and in order to further improve the convenience of use and ensure the normal display of the lottery drawing service interface, the display size can be dynamically calculated according to the width and the height of a peripheral container.
Referring to fig. 3, taking the lottery service component as a nine-grid lottery component as an example, optionally, the lottery service component calculates the display size and completes the configuration content addition through the following steps.
And S131, the lottery drawing service component dynamically calculates the size of each grid in the nine-grid lottery drawing interface according to the width and the height of the peripheral container of the nine-grid lottery drawing interface.
And S132, correspondingly adding the configuration content into each grid, thereby realizing the rendering of the Sudoku lottery drawing interface.
Based on the scheme, the lottery drawing service can be conveniently realized on the page. After the rendered lottery service interface is displayed, the lottery service implementation method further comprises a scheme of completing lottery and displaying a winning result.
Alternatively, in this embodiment, when receiving a lottery request, the lottery service component may complete the lottery and display the winning result in various ways, for example, when receiving the lottery request, performing a random lottery, rendering animation information of the winning, and displaying. For another example, when receiving a lottery drawing request, sending the lottery drawing request to a back-end service platform, receiving the winning prize information fed back by the back-end service platform, searching the grids in the squared figure corresponding to the winning prize, and rendering and displaying the winning animation information according to the searched grids.
In order to ensure that the user can see the effect after configuring the content in real time, in the case that the configuration item is plural, step S13 may include: and obtaining the configuration content input through each configuration item, and rendering the lottery drawing service interface after the configuration content is input through each configuration item in real time and displaying and previewing the lottery drawing service interface. By the design, the corresponding display effect can be seen in real time when the user inputs one configuration content, so that the user can confirm or change the configuration content in time.
In order to enable a user to conveniently and quickly preview the interaction and animation effects of the lottery service interface, the lottery service component can distinguish an editing mode and a publishing mode, the editing mode corresponds to the development environment, the publishing mode corresponds to the publishing environment, different start scripts are defined according to different environments, for example, a first script corresponding to the development environment and a second script corresponding to the publishing environment, and the first script is added with an editing function compared with the second script.
Accordingly, as shown in fig. 4, the lottery service implementing method further includes the following steps.
Step S21: and judging whether the lottery service component is in a configuration state or a preview state, if so, executing the step S22, and if not, executing the step S23.
And step S22, loading the first script.
And step S23, loading the second script.
In addition to the above-mentioned determination based on whether the service component is In the configuration state or the preview state, the determination may be performed by defining a variable, for example, defining a variable is In Edit Mode, where true In the development environment and false In the release environment, and determining whether the lottery service component is currently In the development environment or the release environment by determining the defined variable.
In the development environment, the lottery service interface display effect is mainly determined, so that when a lottery request is received in the development environment, interaction with a back-end service platform such as a back-end interface is not needed, and a lottery result returned by the back-end interface is directly simulated by a random number and is subjected to animation rendering and display. Based on this, after displaying the rendered lottery service interface, the method further includes: and when a lottery drawing request is received, judging whether the lottery drawing service component operates the first script, if so, carrying out random lottery drawing, rendering and displaying winning animation information.
In order to more clearly illustrate the implementation process of the embodiment of the present invention, the lottery service component is a nine-grid lottery component, and the nine-grid lottery interface is a turntable.
When a nine-grid lottery drawing component is added into a page by a developer or a designer of the page, a preset default turntable for demonstration is displayed, in order to enable the nine-grid lottery drawing component to meet different businesses and requirements, the nine-grid lottery drawing component provides editing and self-defining functions for the developer and the operation maintainer of the page, a preview picture and a lottery drawing start button for self-defining prizes, and also provides a function of defining a lottery drawing pool, after the developers and the operation maintainer of the page upload pictures, only the default pattern pictures and the highlight pattern pictures of eight lottery drawing pictures and one lottery drawing button need to be filled in respectively, the nine-grid component can dynamically calculate the size of each grid of the nine-grid according to the width and the height of a peripheral container, and then the default pictures are filled in each grid, so that the rendering of a nine-grid lottery drawing interface is realized, the effect previewed by the user is the final rendered effect.
The nine-grid lottery drawing service is abstracted into a nine-grid lottery drawing component formed by public configuration items such as prizes, buttons, lottery drawing pool information and the like, a user only needs to configure pictures of the prizes and the buttons on a nine-grid lottery drawing interface, and then fills in the lottery drawing pool ID distributed at the rear end to realize the lottery drawing service, so that the application range is wider, and the use is more convenient. The size of the nine-grid is dynamically calculated according to the peripheral container without manual filling by a user, so that the nine-grid lottery drawing component can achieve a good display effect on screens and equipment with different sizes, and a response function is realized.
In order to facilitate a developer of a page to preview a configured display effect In real time during self-defined configuration, two sets of start scripts are defined by the Sudoku lottery drawing component, the start scripts can be understood as a module for realizing the whole lottery drawing function, the two sets of start scripts respectively aim at a development environment and a release environment, the start scripts of the release environment remove the editing function of the component relative to the start scripts of the development environment, the environment where the user is located is judged by defining a variable is In Edit Mode to be true In the development environment and false In the release environment, In the development environment, when the user clicks the lottery drawing, the user does not need to interact with a rear-end interface, but simulates a winning result returned by the rear-end interface to render animation by adopting a random number, and the user can see the final display effect In real time to achieve the seen and obtained purpose. In which, the random number lottery may randomly generate 1-8 by calling the math () function of JavaScript, thereby simulating the prize on the turntable, and the process may be completed in an off-line state.
Different start scripts are defined for different environments, the lottery service implementation process can be optimized, editing by a user is not needed in the release environment, unnecessary editing functions are removed, and the effects of simplifying codes and reducing files can be achieved.
In an online environment, after a user clicks a lottery drawing button, the Sudoku lottery drawing component can judge whether the user logs in or not, and if not, the user jumps to a login page to log in. And after the user logs in successfully, the Sudoku lottery drawing component acquires the lottery drawing pool ID configured by the developer from the state of the Sudoku lottery drawing component, then transmits the lottery drawing pool ID together with the user information to the rear-end interface, and displays the winning according to the state returned by the rear-end interface. And when the login information of the user is invalid, jumping the lottery pool ID to a login page to log in the user. When the user has no lottery authority or other errors, the Sudoku lottery drawing component prompts the user. When a user draws a prize, the Sudoku lottery drawing component displays an animation effect, the animation effect can be that the default picture and the highlight picture of the prize are continuously switched from the current staying position to the position of the prize returned by the rear-end interface, and finally stay at the position of the prize winning, and then the default picture and the highlight picture are spliced into prompt messages according to the prize information returned by the rear-end interface and displayed to the user, so that the whole lottery drawing process is completed.
By packaging the lottery drawing service function into the lottery drawing service component, users of lottery drawing services such as developers and designers of the page can introduce the nine-grid lottery drawing function into the page under the condition of not writing codes. Meanwhile, the configuration items do not relate to the function level of the Sudoku lottery drawing component, so that testers do not need to repeatedly test lottery drawing functions, the testing efficiency is greatly improved, and the error probability is reduced.
In order to enable the developer of the page to perform further processing on the winning information, such as reporting and recording the winning information, the nine-grid lottery module may send a message named as squre. The nine-grid lottery drawing component realizes better expandability and reusability through information feedback, and a user can further customize after processing basic lottery drawing service logic by means of the nine-grid lottery drawing component, so that more service requirements are met.
On the basis of the above, as shown in fig. 5, an embodiment of the present invention provides a lottery service component 20, where the lottery service component 20 includes a component loading module 21, an interface display module 22, and an interface processing module 23.
Wherein, the component loading module 21 is used for loading the pre-configured lottery service component 20 on the page.
Since the implementation principle of the component loading module 21 is similar to that of step S11 in fig. 1, no further description is provided here.
The interface display module 22 is configured to display a corresponding lottery service interface on the page, where the lottery service interface includes a configuration item for receiving user configuration information.
Since the principle of implementation of the interface display module 22 is similar to that of step S12 in fig. 1, no further description is provided here.
The interface processing module 23 is configured to redraw the lottery service interface according to the configuration content after receiving the configuration content input by the user through the configuration item.
Since the interface processing module 23 is similar to the implementation principle of step S13 in fig. 1, it will not be further described here.
Optionally, the configuration items are multiple, and the interface processing module 23 is configured to obtain configuration content input through each configuration item, and perform real-time rendering and display preview on the lottery service interface after the configuration content is input through each configuration item.
An embodiment of the present invention also provides a computer-readable storage medium, which includes a computer program. The computer program controls the lottery service component 20 in which the computer readable storage medium is located to execute the above-mentioned lottery service implementation method when running.
The lottery service implementation method and the lottery service implementation component provided by the embodiment of the invention package the lottery service function and logic into the independent lottery service component, the lottery service can be implemented on the page only by loading the pre-configured lottery service component on the page, and the lottery service interface corresponding to the lottery service component supports the custom configuration, and the redrawing of the lottery service interface can be implemented only by inputting the configuration content in the configuration item, so that the implementation is convenient and flexible.
In the embodiments provided in the present invention, it should be understood that the disclosed assembly and method can be implemented in other ways. The above-described component and method embodiments are intended to be illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of components, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only an alternative embodiment of the present invention and is not intended to limit the present invention, and various modifications and variations of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A lottery service implementation method is applied to an electronic device to support lottery functions implemented on different browsers in the electronic device, and the method comprises the following steps:
loading a pre-configured lottery service component on a page of a browser, wherein the lottery service component integrates lottery service functions and logics;
displaying a corresponding lottery drawing service interface on the page, wherein the lottery drawing service interface comprises a configuration item for receiving user configuration information;
and after receiving configuration content input by the user through the configuration item, redrawing the lottery service interface according to the configuration content.
2. The lottery service implementing method according to claim 1, wherein the configuration item is a plurality of items, and the step of redrawing the lottery service interface according to the configuration content includes:
and obtaining the configuration content input through each configuration item, and rendering the lottery service interface after the configuration content is input through each configuration item in real time and displaying and previewing the lottery service interface.
3. The lottery service implementing method according to claim 2, wherein a first script corresponding to a development environment and a second script corresponding to a distribution environment are defined in the lottery service component, and the first script is added with an editing function compared with the second script; the method further comprises the following steps:
judging whether the lottery service component is in a configuration state or a preview state, and if the lottery service component is in the configuration state or the preview state, loading the first script; and if the second script is not in the configuration state or the preview state, loading the second script.
4. The lottery service implementation method of claim 3, wherein after displaying the rendered lottery service interface, the method further comprises:
and when a lottery drawing request is received, judging whether the lottery drawing service component operates the first script, if so, carrying out random lottery drawing, rendering and displaying winning animation information.
5. The lottery service implementation method of claim 2, wherein the lottery service component is a nine-grid lottery component, the lottery service interface is a nine-grid lottery interface, and the configuration items include eight prize charts, a start button and a preset lottery pool ID.
6. The lottery service implementation method of claim 5, wherein the step of redrawing the lottery service interface according to the configuration content comprises:
dynamically calculating the size of each grid in the Sudoku lottery interface according to the width and the height of the peripheral container of the Sudoku lottery interface;
and correspondingly adding the configuration content into each grid.
7. The lottery service implementation method of claim 6, wherein after displaying the rendered lottery service interface, the method further comprises:
when receiving a lottery drawing request, carrying out random lottery drawing, rendering and displaying winning animation information; or
When receiving a lottery drawing request, sending the lottery drawing request to a rear-end service platform;
receiving prize winning information fed back by the back-end service platform;
and searching grids in the Sudoku corresponding to the winning prizes, and rendering and displaying winning animation information according to the searched grids.
8. A lottery service component applied to an electronic device to support lottery functions implemented on different browsers in the electronic device, the lottery service component comprising:
the component loading module is used for loading a pre-configured lottery service component on a page of the browser, wherein the lottery service component integrates lottery service functions and logics;
the interface display module is used for displaying a corresponding lottery service interface on the page, wherein the lottery service interface comprises a configuration item for receiving user configuration information;
and the interface processing module is used for redrawing the lottery service interface according to the configuration content after receiving the configuration content input by the user through the configuration item.
9. The lottery service module of claim 8, wherein the configuration items are multiple, and the interface processing module is configured to obtain configuration contents input through each configuration item, render the lottery service interface after the configuration contents are input through each configuration item in real time, and display a preview.
10. A computer-readable storage medium, wherein the computer-readable storage medium comprises a computer program, and the computer program controls a lottery service component in which the computer-readable storage medium is located to implement the lottery service implementation method according to any one of claims 1 to 7 when executed.
CN201810003216.1A 2018-01-02 2018-01-02 Lottery service implementation method and component Active CN108037923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810003216.1A CN108037923B (en) 2018-01-02 2018-01-02 Lottery service implementation method and component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810003216.1A CN108037923B (en) 2018-01-02 2018-01-02 Lottery service implementation method and component

Publications (2)

Publication Number Publication Date
CN108037923A CN108037923A (en) 2018-05-15
CN108037923B true CN108037923B (en) 2022-02-08

Family

ID=62098613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810003216.1A Active CN108037923B (en) 2018-01-02 2018-01-02 Lottery service implementation method and component

Country Status (1)

Country Link
CN (1) CN108037923B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375916A (en) * 2018-10-30 2019-02-22 成都四方伟业软件股份有限公司 Interactive Web Page method of combination and device
CN111310083B (en) * 2018-12-11 2023-05-02 阿里巴巴集团控股有限公司 Page display method, device and system
CN109685559A (en) * 2018-12-14 2019-04-26 平安城市建设科技(深圳)有限公司 Lottery drawing method, device, equipment and storage medium based on big data analysis
CN109885300A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Generate method and apparatus, computer equipment and the readable storage medium storing program for executing at interface
CN110046016B (en) * 2019-04-16 2021-11-05 携程旅游网络技术(上海)有限公司 Method, system, device and storage medium for controlling display of user interface component
CN110262780A (en) * 2019-06-20 2019-09-20 腾讯科技(成都)有限公司 A kind of method and the network equipment of business configuration
CN110609715A (en) * 2019-08-13 2019-12-24 平安国际智慧城市科技股份有限公司 Random option page display method and device, computer equipment and storage medium
CN110719261B (en) * 2019-09-16 2023-11-17 努比亚技术有限公司 Active page data processing method and storage medium
CN112685111A (en) * 2020-12-25 2021-04-20 百果园技术(新加坡)有限公司 Control data processing method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530163A (en) * 2013-10-25 2014-01-22 北京奇虎科技有限公司 Method for loading browser tool items and browser
CN103955364A (en) * 2014-04-15 2014-07-30 南威软件股份有限公司 Front end assembly method suitable for mobile phone
CN104298523A (en) * 2014-09-23 2015-01-21 北京金山安全软件有限公司 Component loading method and device and terminal
CN104516738A (en) * 2014-12-15 2015-04-15 北京金和软件股份有限公司 Integrated implementing method for development and release of APP
CN106528601A (en) * 2016-09-23 2017-03-22 北京五八信息技术有限公司 Method and device for dynamically configuring module

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020030634A (en) * 2000-10-19 2002-04-25 박정수 Lottery ticket system of drawing type and digital instant type on Internet
CN101996073B (en) * 2009-08-31 2014-02-05 阿里巴巴集团控股有限公司 Component rendering method and device
US9317490B2 (en) * 2012-09-19 2016-04-19 TagMan Inc. Systems and methods for 3-tier tag container architecture
CN104424266B (en) * 2013-08-29 2019-03-22 北大方正集团有限公司 Homepage Publishing method and system
CN104408647A (en) * 2014-11-29 2015-03-11 深圳市无微不至数字技术有限公司 Credit exchange method, credit exchange device and system
CN106021617B (en) * 2016-07-12 2018-09-28 腾讯科技(深圳)有限公司 The method and apparatus that the page generates

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530163A (en) * 2013-10-25 2014-01-22 北京奇虎科技有限公司 Method for loading browser tool items and browser
CN103955364A (en) * 2014-04-15 2014-07-30 南威软件股份有限公司 Front end assembly method suitable for mobile phone
CN104298523A (en) * 2014-09-23 2015-01-21 北京金山安全软件有限公司 Component loading method and device and terminal
CN104516738A (en) * 2014-12-15 2015-04-15 北京金和软件股份有限公司 Integrated implementing method for development and release of APP
CN106528601A (en) * 2016-09-23 2017-03-22 北京五八信息技术有限公司 Method and device for dynamically configuring module

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Novel Compression-Driven Lightweight Framework for Medical Skeleton Model Visualization;Wen Zhou 等;《IEEE Access》;20180821;第6卷;47627 - 47635 *
移动端Web App组件化开发与性能优化;王林杰;《中国优秀硕士学位论文全文数据库信息科技辑》;20170915(第9期);I138-190 *

Also Published As

Publication number Publication date
CN108037923A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN108037923B (en) Lottery service implementation method and component
US9940119B2 (en) Providing limited versions of applications
US10628294B2 (en) Mock services for software infrastructures
CN108829597A (en) Software crowd surveys method and device, computer installation and readable storage medium storing program for executing
CA3159186A1 (en) Information interaction method, apparatus, device, storage medium and program product
CN107729246A (en) For the auxiliary test methods of intended application, device, equipment and storage medium
CN109815115A (en) Method and device, the computer equipment, storage medium of debugging bridge joint mouth
CN110597584A (en) Page adaptation testing method and device, electronic equipment and storage medium
CN110597720A (en) Application program testing method and device, electronic equipment and storage medium
CN112463634A (en) Software testing method and device under micro-service architecture
CN113342330A (en) Front-end engineering generation method and device
CN110022327B (en) Short message authentication test method and device
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
CN111310083B (en) Page display method, device and system
CN112540708A (en) Network information display method and device, electronic equipment and storage medium
CN112800751A (en) Method, device, equipment and storage medium for configuring and checking mobile terminal webpage form
CN111435313A (en) Method and device for changing skin of software
CN111679974A (en) Application program testing method and device
CN111026651A (en) Test method, test device, storage medium and electronic equipment
CN115645905B (en) Cursor display method and device, electronic equipment and storage medium
CN114253637B (en) Icon data migration method, electronic equipment and computer readable storage medium
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN115203021A (en) Page debugging method and device
CN117632088A (en) Program development method, device, equipment and storage medium for lottery function
CN114064030A (en) Interface configuration method, system, storage medium 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