CN112035770A - Page display method and device, computer equipment and storage medium - Google Patents

Page display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112035770A
CN112035770A CN201910477674.3A CN201910477674A CN112035770A CN 112035770 A CN112035770 A CN 112035770A CN 201910477674 A CN201910477674 A CN 201910477674A CN 112035770 A CN112035770 A CN 112035770A
Authority
CN
China
Prior art keywords
page
data
area
displaying
service
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
CN201910477674.3A
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.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information 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 Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201910477674.3A priority Critical patent/CN112035770A/en
Publication of CN112035770A publication Critical patent/CN112035770A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a page display method, a page display device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a request for loading a page sent by a mobile terminal, wherein the page is divided into at least two areas; respectively acquiring page data in the page and in the area; respectively generating area data packets according to the page data in the areas; and sending the area data packet to the mobile terminal, wherein the mobile terminal is used for displaying the page data in the area so as to display the page. The mobile terminal can directly draw and display without depending on developing a new interface, so that the page display has universality, the processing capacity of the mobile terminal is simplified, and the mobile terminal can be adapted to fast development services such as live broadcast and the like.

Description

Page display method and device, computer equipment and storage medium
Technical Field
The present invention relates to a page processing technology, and in particular, to a page display method and apparatus, a computer device, and a storage medium.
Background
The page displayed on the client in the mobile terminal generally contains a plurality of different services, if one service is added, the client and the server need to develop a new interface and adjust the page, and the server and the mobile terminal process the data of the service through the interface.
However, services such as live broadcast are rapidly developed, and the update period of the client is long, so that the client is difficult to adapt to service requirements.
Moreover, in the same page, the mobile terminal needs to process data of multiple interfaces so as to redraw and render, and the processing is complicated.
Disclosure of Invention
The embodiment of the invention provides a page display method and device, computer equipment and a storage medium, and aims to solve the problems that the page development based on an interface is complex in processing and difficult to adapt to business requirements.
In a first aspect, an embodiment of the present invention provides a method for displaying a page, including:
receiving a request for loading a page sent by a mobile terminal, wherein the page is divided into at least two areas;
respectively acquiring page data in the page and in the area;
respectively generating area data packets according to the page data in the areas;
and sending the area data packet to the mobile terminal, wherein the mobile terminal is used for displaying the page data in the area so as to display the page.
In a second aspect, an embodiment of the present invention further provides a method for displaying a page, including:
sending a request for loading a page to a page server, wherein the page is divided into at least two areas;
receiving an area data packet sent by the page server, wherein the area data packet comprises page data in the page and located in the area;
and displaying the page data in the data packet in the area to display the page.
In a third aspect, an embodiment of the present invention further provides a display device for a page, including:
the mobile terminal comprises a request receiving module, a page loading module and a page loading module, wherein the request receiving module is used for receiving a request for loading a page sent by the mobile terminal, and the page is divided into at least two areas;
the page data acquisition module is used for respectively acquiring page data in the page and in the area;
the regional data packet generating module is used for generating regional data packets according to the page data in the regions respectively;
and the area data packet sending module is used for sending the area data packet to the mobile terminal, and the mobile terminal is used for displaying the page data in the area so as to display the page.
In a fourth aspect, an embodiment of the present invention further provides a display device for a page, including:
the system comprises a request sending module, a page loading module and a page loading module, wherein the request sending module is used for sending a page loading request to a page server, and the page is divided into at least two areas;
a region data packet receiving module, configured to receive a region data packet sent by the page server, where the region data packet includes page data in the page and located in the region;
and the page display module is used for displaying the page data in the data packet in the area so as to display the page.
In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the page display method according to any one of the first aspect and the second aspect.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for displaying a page according to any one of the first aspect and the second aspect.
In the embodiment of the invention, a request for loading a page sent by a mobile terminal is received, the page is divided into at least two areas, page data in the page and in the areas are respectively obtained, area data packets are respectively generated according to the page data in the areas, the area data packets are sent to the mobile terminal, the mobile terminal is used for displaying the page data in the areas so as to display the page, a new interface is not developed, the mobile terminal can directly draw and display the page, the page display has universality, the processing capacity of the mobile terminal is simplified, and the method can be suitable for fast development services such as direct broadcasting and the like.
Drawings
Fig. 1 is a flowchart of a page display method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an area provided in an embodiment of the present invention;
fig. 3 is a flowchart of a page display method according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a page display method according to a third embodiment of the present invention
Fig. 5 is a schematic structural diagram of a display device for a page according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a display device for a page according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a display device for a page according to a sixth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a computer device according to a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It is to be further noted that, for the convenience of description, only a part of the structure relating to the present invention is shown in the drawings, not the whole structure.
Example one
Fig. 1 is a flowchart of a page display method according to an embodiment of the present invention, where the present embodiment is applicable to a case where a page is divided into regions for display, and the method may be executed by a display device of the page, where the display device of the page may be implemented by software and/or hardware, and may be configured in a computer device, such as a page server, and the method specifically includes the following steps:
s101, receiving a request for loading the page, which is sent by the mobile terminal.
In the embodiment of the present invention, the computer device may establish a socket connection with one or more mobile terminals (where corresponding clients are installed), where the socket connection is a bidirectional communication connection between the computer device and the mobile terminals, and data exchange may be achieved.
Under the conditions that the mobile terminal starts the client, jumps to a certain page and the like, the mobile terminal can be connected through a socket and sends a request for loading the certain page to the computer equipment.
In a specific implementation, a person skilled in the art can perform area division on a page according to a service requirement, and configure corresponding page data for the page.
Generally, the page is divided into at least two regions;
in one example, the region may include at least one of:
banner area, entry area, interaction area, business area.
The banner area may be used to display banner information (e.g., banner), the banner information may be a dynamic image in a Format such as general GIF (Graphics Interchange Format), may use a static image, may use a multi-frame image to be spliced into an animation image, and the like, and may be used to record information such as activities and advertisements of a website.
The entry area is used to display entry objects, which may be data for jumping to other pages, such as activity pages, news pages, application distribution pages, game pages, etc., including icons, text, hyperlinks, etc.
The interaction region may be used to display controls (again, buttons) that may be used to interact with the user.
The service area may be used to display service information, i.e. data related to the service of the website, which may of course be different in different scenarios, e.g. for a live website, the service information may comprise on-demand information, live information, friend-making information, etc., and the data may comprise pictures, text, popularity values, hyperlinks, etc.
To enable those skilled in the art to better understand the embodiments of the present invention, a live page is illustrated as an example of a page.
As shown in fig. 2, in a "discovery" page 200 of a live application, a banner area 201 displays some activities and advertisements related to live broadcasting, such as playback of an event held for a certain game, a list of friends to make friends, information on a recruit anchor, etc., a plurality of entry objects are displayed in an entry area 202 and an entry area 204, respectively, so that different pages can be made, and different types of business information such as videos, events, friends to make friends, etc., are displayed in an interaction area 203.
Of course, the above-mentioned regions are only examples, and when implementing the embodiment of the present invention, other regions may be set according to actual situations, which is not limited by the embodiment of the present invention. In addition, in addition to the above-mentioned areas, other areas may be adopted by those skilled in the art according to actual needs, and the embodiment of the present invention is not limited thereto.
And S102, respectively acquiring page data in the page and in the area.
In a specific implementation, different page data are required in different areas of a page, and the page data required in the area can be acquired in response to a request of a mobile terminal.
These page data are stored in different places, some of the page data may be stored in a database local to the computer device, some of the pages may be stored in a resource server, for example, an event score (page data) is generated in the event server (resource server), a friend-making list (page data) is stored in the friend-making server (resource server), video data (page data) for playback is stored in the video server (resource server), and so on.
The page data stored in the database local to the computer device may be read from the database local to the computer device.
For the page data stored in the resource server, the resource server to which the page data located in the area in the page belongs may be determined, so as to request the page data from the resource server.
Because the resource servers are mostly independent servers, the computer equipment can be connected with the resource servers in an asynchronous parallel mode to send requests for acquiring page data, and the page data can be acquired in parallel.
In addition, in different types and even different versions of operating systems, the applied voice is different, and therefore, corresponding page data can be designed for different types and even different versions of operating systems.
Therefore, the operating system set in the mobile terminal can be determined, and page data in the page, located in the area and suitable for display in the operating system, can be acquired respectively.
S103, respectively generating an area data packet according to the page data in the area.
In the embodiment of the present invention, for the page data of each region, the computer device may package the page data into a region data packet according to the set format of the region.
In a specific implementation, besides the page data, configuration parameters set for the page data and used for display may be determined, so that the page data and the configuration parameters are encapsulated in an area data packet, so that the mobile terminal may display the page data in the area according to the configuration parameters.
Further, in a region, there may be relatively independent individuals, for example, as shown in fig. 2, in a "discovery" page 200 of a live application, each campaign or advertisement may be considered an independent individual in a banner region 201, a plurality of portal objects may be displayed in a portal region 202, 204, respectively, each portal object may be considered an independent individual, and each live room may be considered an independent individual in an interactive region 203.
The configuration parameters comprise main configuration parameters and sub-configuration parameters, the page data comprise first data and second data, the main configuration parameters and the first data are applicable to the page data in the whole area, and the sub-configuration parameters and the second data are applicable to independent individuals in the area.
In this case, the sub-configuration parameters set for display for each individual may be determined, and the second data, sub-configuration parameters attributed to the individual may be packaged into sub-packets.
In addition, main configuration parameters set for the region for display can be determined, and the first data belonging to the region, the main configuration parameters and the sub-packets are encapsulated into a region data packet.
To enable those skilled in the art to better understand the embodiments of the present invention, a live page is illustrated as an example of a page.
First, banner region
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) And a carousel mode: carousel or fixed side by side, frequency and direction of carousel
The sub-data packet comprises second data and sub-configuration parameters:
a) and the content mode: picture or video
b) And embedding characters: such as "friend making fire arm list" etc.; title style, display mode (one of eight directions display)
c) And an embedded icon: live, video, picture, playback
d) And a skipping mode: skip URL (for skipping to page), anchor uid (for skipping to live room), video stream string (for skipping to video), page zone bit interface
e) Weight of the measured data
f) And sub item identification: bannerId
g) Sub-title, show orientation (four orientation show)
h) Label and orientation
Second, inlet area
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) Additional description, Accessory description orientation (left or right)
d) Business type 'more' portal
The sub-data packet comprises second data and sub-configuration parameters:
a) and the content mode: picture frame
b) Embedded characters or pictures, and the characters and positions of the inlet pictures appear
c) And a skipping mode: skip URL (for skipping to page), anchor uid (for skipping to live room), video stream string (for skipping to video), page zone bit interface
d) Subtitle, display orientation (four-orientation display, up, down, left and right)
Three, interactive area
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) Business type 'more' portal
The sub-data packet comprises second data and sub-configuration parameters:
d) control part
e) Identification of service server
f) Interface name
g) Title and subtitle
h) Picture and position
Service area
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) Business type 'more' portal
d) Number of divisions, number of zone entries
e) List type
f) Sorting filter list
The sub-data packet comprises second data and sub-configuration parameters:
g) list type: such as live list, video list, picture list, service data packet list, etc
h) General data packet data corresponding to the type list
Of course, the area data packet is only used as an example, and when implementing the embodiment of the present invention, other areas may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above area data packet, a person skilled in the art may also use other area data packets according to actual needs, and the embodiment of the present invention is not limited to this.
And S104, sending the area data packet to the mobile terminal.
The mobile terminal is used for displaying page data in the area so as to display the page.
In a specific implementation, after receiving the area data packet, the mobile terminal parses the page data in the area data packet, and displays the page data in the data packet in a corresponding area to display the page.
In one example, the region includes at least one of:
a banner area, an inlet area, an interaction area and a service area;
then in this example, the banner information in the data packet is displayed in the banner area; and/or displaying an entry object in the data packet in the entry area; and/or displaying the control in the data packet in the interaction area; and/or displaying the service information in the data packet in the service area.
In addition, the mobile terminal can read page data and configuration parameters for display from the data packet, and display the page data in the area according to the configuration parameters.
Further, the configuration parameters include main configuration parameters and sub-configuration parameters, the page data includes first data and second data, and the mobile terminal can display the first data in the area, draw the second data according to the sub-configuration parameters, and display the first data in the area according to the main configuration parameters.
In the embodiment of the invention, a request for loading a page sent by a mobile terminal is received, the page is divided into at least two areas, page data in the page and in the areas are respectively obtained, area data packets are respectively generated according to the page data in the areas, the area data packets are sent to the mobile terminal, the mobile terminal is used for displaying the page data in the areas so as to display the page, a new interface is not developed, the mobile terminal can directly draw and display the page, the page display has universality, the processing capacity of the mobile terminal is simplified, and the method can be suitable for fast development services such as direct broadcasting and the like.
Example two
Fig. 3 is a flowchart of a page display method according to a second embodiment of the present invention, which is based on the foregoing embodiment and further adds a processing operation of user interaction. The method specifically comprises the following steps:
s301, receiving a request for loading the page sent by the mobile terminal.
Wherein the page is divided into at least two regions.
S302, respectively acquiring page data in the page and in the area.
And S303, respectively generating an area data packet according to the page data in the area.
S304, sending the area data packet to the mobile terminal.
The mobile terminal is used for displaying page data in the area so as to display the page.
S305, receiving a service request which is sent by the mobile terminal calling a uniform interface and acts on the control.
In the embodiment of the present invention, the interactive area in the page displays controls, such as a control for subscribing to a main cast, a control for praise, a control for sending a bullet screen, and the like.
And when the mobile terminal detects the operation acting on the control, such as clicking, long pressing and the like, the unified interface can be called according to the specification of the unified interface to generate a service request, and the service request is sent to the computer equipment.
The unified interface may refer to a general interface that can be called by a plurality of interfaces, and includes a connection name and a function name.
For example, for live broadcasting, the parameters of the unified interface include user uid, anchor uid, operation type of user, map flexibility parameter, sub item id, and the like.
S306, determining a service server suitable for processing the service request.
After the computer device receives the service request, it can determine the service server (represented by an identification) configured for it that is suitable for processing the service request.
S307, requesting the service server for a service result obtained by executing service operation according to the service request.
And the computer equipment sends the service request to the service server, and the service server executes corresponding service operation according to the parameters in the service request, obtains a service result and sends the service result to the computer equipment.
Further, the service server may be a computer cluster, that is, may have multiple machines, and at this time, the computer device may use IP Hash (Hash value of IP (Internet Protocol, Protocol for interconnection between networks)) address, user ID Hash (Hash value of user ID), and the like.
S308, the service result is sent to the mobile terminal.
And the computer equipment sends the service result to the mobile terminal, and the mobile terminal can be used for displaying the service result on a page to finish the interaction with the user.
In the embodiment of the invention, the service request which is sent by the mobile terminal calling the uniform interface and acts on the control is received, the service server suitable for processing the service request is determined, the service result obtained by executing the service operation according to the service request is requested to the service server, and the service result is sent to the mobile terminal.
EXAMPLE III
Fig. 4 is a flowchart of a page display method according to a third embodiment of the present invention, where this embodiment is applicable to a case where a page is divided into regions for display, and the method may be executed by a display device of the page, where the display device of the page may be implemented by software and/or hardware, and may be configured in a computer device, such as a mobile terminal, and the method specifically includes the following steps:
s401, sending a request for loading the page to the page server.
In a specific implementation, the embodiment of the present invention may be applied to a computer device, especially a mobile terminal, where an operating system of the computer device may include Android (Android), iOS, and the like.
In the operating system, a client for displaying a page can be supported to run, such as a browser, a live application, an instant messaging tool and the like.
Further, for a non-browser client, such as a live application, a page container, i.e., a container to load and present pages, may be configured in the client.
For example, in an Android, iOS system, the page container may include a WebView control.
In the Android system, WebView is a view class of a Java layer of a WebKit module (browser page layout engine), and a Web resource for displaying and processing a request for the view object can be created by using an Android application program with a Web browsing function.
Currently, the WebKit module supports HTTP (Hypertext Transfer Protocol), HTTPs (Hypertext Transfer Protocol over Secure Socket Layer, HTTP channel targeted for security), FTP (File Transfer Protocol), and JS (JavaScript, an interpreted scripting language) requests.
WebView is used as a UI (User Interface) Interface of an application program, a series of page browsing and User interaction interfaces are provided for a User, and a client program accesses WebKit core codes through the interfaces.
In the embodiment of the invention, the client can establish socket connection with the server, and the socket connection is that the computer equipment and the mobile terminal are in bidirectional communication connection, so that data exchange can be realized.
Under the conditions that the mobile terminal starts the client, jumps to a certain page and the like, the mobile terminal can be connected through a socket and sends a request for loading the certain page to the computer equipment.
In a specific implementation, a person skilled in the art can perform area division on a page according to a service requirement, and configure corresponding page data for the page.
Generally, the page is divided into at least two regions;
in one example, the region may include at least one of:
banner area, entry area, interaction area, business area.
The banner area may be used to display banner information (e.g., banner), the banner information may be a dynamic image in a Format such as general GIF (Graphics Interchange Format), may use a static image, may use a multi-frame image to be spliced into an animation image, and the like, and may be used to record information such as activities and advertisements of a website.
The entry area is used to display entry objects, which may be data for jumping to other pages, such as activity pages, news pages, application distribution pages, game pages, etc., including icons, text, hyperlinks, etc.
The interaction region may be used to display controls (again, buttons) that may be used to interact with the user.
The service area may be used to display service information, i.e. data related to the service of the website, which may of course be different in different scenarios, e.g. for a live website, the service information may comprise on-demand information, live information, friend-making information, etc., and the data may comprise pictures, text, popularity values, hyperlinks, etc.
To enable those skilled in the art to better understand the embodiments of the present invention, a live page is illustrated as an example of a page.
As shown in fig. 2, in a "discovery" page 200 of a live application, a banner area 201 displays some activities and advertisements related to live broadcasting, such as playback of an event held for a certain game, a list of friends to make friends, information on a recruit anchor, etc., a plurality of entry objects are displayed in an entry area 202 and an entry area 204, respectively, so that different pages can be made, and different types of business information such as videos, events, friends to make friends, etc., are displayed in an interaction area 203.
Of course, the above-mentioned regions are only examples, and when implementing the embodiment of the present invention, other regions may be set according to actual situations, which is not limited by the embodiment of the present invention. In addition, in addition to the above-mentioned areas, other areas may be adopted by those skilled in the art according to actual needs, and the embodiment of the present invention is not limited thereto.
S402, receiving the area data packet sent by the page server.
The region data packet comprises page data in the page and located in the region.
In a specific implementation, the server may determine the configuration parameters set for the page data for display, and encapsulate the page data and the configuration parameters into the region data packet.
Further, the configuration parameters include a main configuration parameter and a sub-configuration parameter, and the page data includes a first data and a second data.
At this time, the server may determine the sub-configuration parameters set for each individual for display, and encapsulate the second data, the sub-configuration parameters, belonging to the individual into the sub-packets.
And determining main configuration parameters which are set for the region and used for displaying, and packaging the first data belonging to the region, the main configuration parameters and the sub-data packets into a region data packet.
To enable those skilled in the art to better understand the embodiments of the present invention, a live page is illustrated as an example of a page.
First, banner region
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) And a carousel mode: carousel or fixed side by side, frequency and direction of carousel
The sub-data packet comprises second data and sub-configuration parameters:
a) and the content mode: picture or video
b) And embedding characters: such as "friend making fire arm list" etc.; title style, display mode (one of eight directions display)
c) And an embedded icon: live, video, picture, playback
d) And a skipping mode: skip URL (for skipping to page), anchor uid (for skipping to live room), video stream string (for skipping to video), page zone bit interface
e) Weight of the measured data
f) And sub item identification: bannerId
g) Sub-title, show orientation (four orientation show)
h) Label and orientation
Second, inlet area
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) Additional description, Accessory description orientation (left or right)
d) Business type 'more' portal
The sub-data packet comprises second data and sub-configuration parameters:
a) and the content mode: picture frame
b) Embedded characters or pictures, and the characters and positions of the inlet pictures appear
c) And a skipping mode: skip URL (for skipping to page), anchor uid (for skipping to live room), video stream string (for skipping to video), page zone bit interface
d) Subtitle, display orientation (four-orientation display, up, down, left and right)
Three, interactive area
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) Business type 'more' portal
The sub-data packet comprises second data and sub-configuration parameters:
d) control part
e) Identification of service server
f) Interface name
g) Title and subtitle
h) Picture and position
Service area
The area data packet comprises the following first data and main configuration parameters:
a) general title
b) And a display mode: transverse or vertical
c) Business type 'more' portal
d) Number of divisions, number of zone entries
e) List type
f) Sorting filter list
The sub-data packet comprises second data and sub-configuration parameters:
g) list type: such as live list, video list, picture list, service data packet list, etc
h) General data packet data corresponding to the type list
Of course, the area data packet is only used as an example, and when implementing the embodiment of the present invention, other areas may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above area data packet, a person skilled in the art may also use other area data packets according to actual needs, and the embodiment of the present invention is not limited to this.
And S403, displaying the page data in the data packet in the area to display the page.
In the embodiment of the invention, the areas, the display sequence and the like of each area can be configured in advance, the computer equipment analyzes the page data of each area from the data packets sent by the server, draws the page data of each area according to the display sequence, and displays each area, thereby displaying the whole page.
In one example, the region includes at least one of:
a banner area, an inlet area, an interaction area and a service area;
then in this example, the location of at least one of the banner area, the entry area, the interaction area, and the business area may be determined separately.
And displaying the banner information in the data packet in the banner area.
And/or the presence of a gas in the gas,
an entry object in the packet is displayed in the entry area.
And/or the presence of a gas in the gas,
and displaying the control in the data packet in the interaction area.
And/or the presence of a gas in the gas,
and displaying the service information in the data packet in the service area.
In a specific implementation, the area data packet includes page data and configuration parameters for display, so that the computer device can read the page data and the configuration parameters for display from the data packet, and display the page data in the corresponding area according to the configuration parameters.
Further, in a region, there may be relatively independent individuals, for example, as shown in fig. 2, in a "discovery" page 200 of a live application, each campaign or advertisement may be considered an independent individual in a banner region 201, a plurality of portal objects may be displayed in a portal region 202, 204, respectively, each portal object may be considered an independent individual, and each live room may be considered an independent individual in an interactive region 203.
Further, in a region, there may be relatively independent individuals, for example, as shown in fig. 2, in a "discovery" page 200 of a live application, each campaign or advertisement may be considered an independent individual in a banner region 201, a plurality of portal objects may be displayed in a portal region 202, 204, respectively, each portal object may be considered an independent individual, and each live room may be considered an independent individual in an interactive region 203.
In this case, in S402, the sub-packet, the main configuration parameter and the first page data may be read from the data packet, and the second data, the sub-configuration parameter, may be read from the sub-packet.
Accordingly, in S403, for each individual, a corresponding drawing component may be generated to draw the second data according to the sub-configuration parameters in its sub-packet, and draw the second data according to the sub-configuration parameters, and for the whole region, the first data and the second data may be displayed in the region according to the main configuration parameters.
That is, one region packet includes n (n is a positive integer) sub packets, n drawing components can be generated for drawing.
In one example, in an iOS system, the drawing component is CollectionView, and the uidcollectionview can be used to implement Grid layout, add Header/Foster, custom layout, other aspects of the UICollectionView such as adding click effects of cells, and so on.
In the embodiment of the invention, a request for loading a page sent by a mobile terminal is received, the page is divided into at least two areas, page data in the page and in the areas are respectively obtained, area data packets are respectively generated according to the page data in the areas, the area data packets are sent to the mobile terminal, the mobile terminal is used for displaying the page data in the areas so as to display the page, a new interface is not developed, the mobile terminal can directly draw and display the page, the page display has universality, the processing capacity of the mobile terminal is simplified, and the method can be suitable for fast development services such as direct broadcasting and the like.
Example four
Fig. 5 is a flowchart of a page display method according to a fourth embodiment of the present invention, and the present embodiment further increases processing operations of user interaction based on the foregoing embodiments. The method specifically comprises the following steps:
s501, sending a request for loading the page to a page server.
Wherein the page is divided into at least two regions.
And S502, receiving the area data packet sent by the page server.
The region data packet comprises page data in the page and located in the region.
S503, displaying the page data in the data packet in the area to display the page.
And S504, receiving the operation acted on the control.
And S505, calling a uniform interface to generate a service request according to the operation, and sending the service request to the page server.
In the embodiment of the present invention, the interactive area in the page displays controls, such as a control for subscribing to a main cast, a control for praise, a control for sending a bullet screen, and the like.
And when the mobile terminal detects the operation acting on the control, such as clicking, long pressing and the like, the unified interface can be called according to the specification of the unified interface to generate a service request, and the service request is sent to the computer equipment.
The unified interface may refer to a general interface that can be called by a plurality of interfaces, and includes a connection name and a function name.
For example, for live broadcasting, the parameters of the unified interface include user uid, anchor uid, operation type of user, map flexibility parameter, sub item id, and the like.
After receiving the service request, the computer device may send the service request to the page server.
The page server is used for determining a service server suitable for processing the service request and requesting the service server for a service result obtained by executing service operation according to the service request.
S506, receiving the service result sent by the page server.
And S507, displaying the service result on the page.
And the page server sends the service request to the service server, and the service server executes corresponding service operation according to the parameters in the service request, obtains a service result and sends the service result to the page server.
Further, the service server may be a computer cluster, that is, a plurality of machines are owned, and at this time, the page server may be in an IP Hash (Hash value of IP (Internet Protocol, Protocol for interconnection between networks)) address, user ID Hash (Hash value of user ID), or the like.
The page server sends the service result to the computer equipment, and the computer equipment can be used for displaying the service result on the page to finish the interaction with the user.
In the embodiment of the invention, the operation acting on the control is received, the uniform interface is called to generate the service request according to the operation, the service request is sent to the page server, the page server is used for determining the service server suitable for processing the service request, the service result obtained by executing the service operation according to the service request is requested to the service server, the service result sent by the page server is received, the service result is displayed on the page, the service operation can be directly triggered without depending on developing a new interface, the service operation has universality, the processing capacity is simplified, and the method and the device can be suitable for fast developing services such as live broadcast.
Fig. 6 is a schematic structural diagram of a display device for a page according to a fifth embodiment of the present invention, where the device may specifically include the following modules:
a request receiving module 601, configured to receive a request for loading a page, where the page is divided into at least two regions, and the request is sent by a mobile terminal;
a page data obtaining module 602, configured to obtain page data in the page and located in the region respectively;
a region data packet generating module 603, configured to generate region data packets according to the page data in the regions respectively;
a region data packet sending module 604, configured to send the region data packet to the mobile terminal, where the mobile terminal is configured to display the page data in the region, so as to display the page.
In an embodiment of the present invention, the page data obtaining module 602 includes:
an operating system determination submodule for determining an operating system set in the mobile terminal;
and the system adaptation sub-module is used for respectively acquiring page data which are in the page, located in the area and suitable for being displayed in the operating system.
In an embodiment of the present invention, the page data obtaining module 602 includes:
the resource server determining submodule is used for determining a resource server to which the page data located in the area in the page belong;
and the resource server request submodule is used for requesting the page data from the resource server.
In an embodiment of the present invention, the area data packet generating module 603 includes:
the configuration parameter determining submodule is used for determining configuration parameters which are set for the page data and are used for displaying;
and the area data packet packaging submodule is used for packaging the page data and the configuration parameters into an area data packet.
In an embodiment of the present invention, the configuration parameters include a main configuration parameter and a sub configuration parameter, and the page data includes a first data and a second data;
the area data packet packaging sub-module comprises:
a sub-configuration parameter determination unit for determining sub-configuration parameters for display set for each individual;
a first packet encapsulation unit, configured to encapsulate the second data and the sub-configuration parameters belonging to the individual into sub-packets;
a main configuration parameter determination unit configured to determine a main configuration parameter set for the area and used for display;
a second packet determining unit, configured to encapsulate the first data belonging to the region, the main configuration parameter, and the sub-packet into a region packet.
In one embodiment of the invention, the area comprises at least one of:
a banner area, an inlet area, an interaction area and a service area;
wherein the banner area is used for displaying banner information;
the entrance area is used for displaying an entrance object;
the interaction area is used for displaying a control;
the service area is used for displaying service information;
the device further comprises:
the service request receiving module is used for receiving a service request which is sent by the mobile terminal by calling a uniform interface and acts on the control;
a service server determining module, configured to determine a service server suitable for processing the service request;
a service result request module, configured to request the service server for a service result obtained by performing a service operation according to the service request;
and the service result sending module is used for sending the service result to the mobile terminal, and the mobile terminal is used for displaying the service result on the page.
The page display device provided by the embodiment of the invention can execute the page display method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 7 is a schematic structural diagram of a display device for a page according to a sixth embodiment of the present invention, where the device may specifically include the following modules:
a request sending module 701, configured to send a request for loading a page to a page server, where the page is divided into at least two regions;
a region data packet receiving module 702, configured to receive a region data packet sent by the page server, where the region data packet includes page data in the page and located in the region;
a page display module 703, configured to display the page data in the data packet in the area, so as to display the page.
In one embodiment of the invention, the area comprises at least one of:
a banner area, an inlet area, an interaction area and a service area;
wherein the banner area is used for displaying banner information;
the entrance area is used for displaying an entrance object;
the interaction area is used for displaying a control;
the service area is used for displaying service information;
the page display module 703 includes:
the banner information display submodule is used for displaying banner information in the data packet in the banner area;
and/or the presence of a gas in the gas,
an entry object submodule for displaying an entry object in the data packet in the entry area;
and/or the presence of a gas in the gas,
the control display sub-module is used for displaying the controls in the data packet in the interaction area;
and/or the presence of a gas in the gas,
and the service information display submodule is used for displaying the service information in the data packet in the service area.
In an embodiment of the present invention, the page display module 703 includes:
the parameter reading submodule is used for reading page data and configuration parameters for display from the data packet;
and the configuration display submodule is used for displaying the page data in the area according to the configuration parameters.
In an embodiment of the present invention, the configuration parameters include a main configuration parameter and a sub configuration parameter, and the page data includes a first data and a second data;
the parameter reading submodule includes:
the main reading submodule is used for reading a sub data packet, main configuration parameters and the first page data from the data packet;
a sub-parameter reading sub-module, configured to read the second data and the sub-configuration parameters from the sub-data packet;
the configuration display sub-module includes:
the data drawing unit is used for drawing the second data according to the sub-configuration parameters;
and the data display unit is used for displaying the first data and the second data in the area according to the main configuration parameters.
In one embodiment of the present invention, further comprising:
the operation receiving module is used for receiving the operation acting on the control;
a service request sending module, configured to invoke a unified interface to generate a service request according to the operation, and send the service request to the page server, where the page server is configured to determine a service server suitable for processing the service request, and request the service server for a service result obtained by executing a service operation according to the service request;
the service result receiving module is used for receiving the service result sent by the page server;
and the business result display module is used for displaying the business result on the page.
The page display device provided by the embodiment of the invention can execute the page display method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 8 is a schematic structural diagram of a computer device according to a seventh embodiment of the present invention. As shown in fig. 8, the computer apparatus includes a processor 800, a memory 801, a communication module 802, an input device 803, and an output device 804; the number of the processors 800 in the computer device may be one or more, and one processor 800 is taken as an example in fig. 8; the processor 1700, the memory 801, the communication module 802, the input device 803 and the output device 804 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 8.
The memory 801 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as modules corresponding to the page display method in this embodiment (for example, the request receiving module 601, the page data obtaining module 602, the region data packet generating module 603, and the region data packet sending module 604 shown in fig. 6, or the request sending module 701, the region data packet receiving module 702, and the page display module 703 shown in fig. 7). The processor 800 executes various functional applications of the computer device and data processing, i.e., implements the above-described display method of pages, by executing software programs, instructions, and modules stored in the memory 801.
The memory 801 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 801 may further include memory located remotely from processor 800, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And the communication module 802 is configured to establish a connection with the display screen and implement data interaction with the display screen. The input unit 803 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer device.
The computer device provided by the embodiment of the invention can execute the page display method provided by any embodiment of the invention, and has corresponding functions and beneficial effects.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for displaying a page.
In one embodiment, the method comprises:
receiving a request for loading a page sent by a mobile terminal, wherein the page is divided into at least two areas;
respectively acquiring page data in the page and in the area;
respectively generating area data packets according to the page data in the areas;
and sending the area data packet to the mobile terminal, wherein the mobile terminal is used for displaying the page data in the area so as to display the page.
In another embodiment, the method comprises:
sending a request for loading a page to a page server, wherein the page is divided into at least two areas;
receiving an area data packet sent by the page server, wherein the area data packet comprises page data in the page and located in the area;
and displaying the page data in the data packet in the area to display the page.
Of course, the computer program of the computer-readable storage medium provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the page display method provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for a person skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the display device for the page, the units and modules included in the embodiment are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions without departing from the scope of the invention. Therefore, although the present invention has been described in more detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A method for displaying a page, comprising:
receiving a request for loading a page sent by a mobile terminal, wherein the page is divided into at least two areas;
respectively acquiring page data in the page and in the area;
respectively generating area data packets according to the page data in the areas;
and sending the area data packet to the mobile terminal, wherein the mobile terminal is used for displaying the page data in the area so as to display the page.
2. The method according to claim 1, wherein said separately acquiring page data in said page and located in said area comprises:
determining an operating system set in the mobile terminal;
and respectively acquiring page data which are positioned in the area and are suitable for being displayed in the operating system in the page.
3. The method according to claim 1, wherein said separately acquiring page data in said page and located in said area comprises:
determining a resource server to which page data located in the area in the page belong;
and requesting the page data from the resource server.
4. The method according to any one of claims 1 to 3, wherein the generating the region data packet according to the page data in the region respectively comprises:
determining configuration parameters which are set for the page data and are used for displaying;
and packaging the page data and the configuration parameters into a regional data packet.
5. The method of claim 4, wherein the configuration parameters comprise a main configuration parameter and a sub-configuration parameter, and the page data comprises a first data and a second data;
the encapsulating the page data and the configuration parameters into an area data packet includes:
determining a sub-configuration parameter set for each individual for display;
packaging the second data and the sub-configuration parameters belonging to the individual into a sub-data packet;
determining main configuration parameters set for the area and used for displaying;
and packaging the first data belonging to the region, the main configuration parameters and the sub-data packets into a region data packet.
6. The method of claim 1 or 2 or 3 or 5, wherein the region comprises at least one of:
a banner area, an inlet area, an interaction area and a service area;
wherein the banner area is used for displaying banner information;
the entrance area is used for displaying an entrance object;
the interaction area is used for displaying a control;
the service area is used for displaying service information;
the method further comprises the following steps:
receiving a service request which is sent by the mobile terminal calling a uniform interface and acts on the control;
determining a service server suitable for processing the service request;
requesting the service server for a service result obtained by executing service operation according to the service request;
and sending the service result to the mobile terminal, wherein the mobile terminal is used for displaying the service result on the page.
7. A method for displaying a page, comprising:
sending a request for loading a page to a page server, wherein the page is divided into at least two areas;
receiving an area data packet sent by the page server, wherein the area data packet comprises page data in the page and located in the area;
and displaying the page data in the data packet in the area to display the page.
8. The method of claim 7, wherein the region comprises at least one of:
a banner area, an inlet area, an interaction area and a service area;
wherein the banner area is used for displaying banner information;
the entrance area is used for displaying an entrance object;
the interaction area is used for displaying a control;
the service area is used for displaying service information;
the displaying page data in the data packet in the area to display the page comprises:
displaying banner information in the data packet in the banner region;
and/or the presence of a gas in the gas,
displaying an entry object in the data packet in the entry area;
and/or the presence of a gas in the gas,
displaying a control in the data packet in the interaction area;
and/or the presence of a gas in the gas,
and displaying the service information in the data packet in the service area.
9. The method according to any one of claims 7-8, wherein said displaying page data in said data packet in said area for displaying said page comprises:
reading page data and configuration parameters for display from the data packet;
and displaying the page data in the area according to the configuration parameters.
10. The method of claim 9, wherein the configuration parameters comprise a main configuration parameter and a sub-configuration parameter, and the page data comprises a first data and a second data;
the reading of page data from the data packet, configuration parameters for display, includes:
reading a sub data packet, main configuration parameters and the first page data from the data packet;
reading the second data and the sub-configuration parameters from the sub-data packet;
the displaying the page data in the area according to the configuration parameters includes:
drawing the second data according to the sub-configuration parameters;
and displaying the first data and the second data in the area according to the main configuration parameters.
11. The method of claim 8, further comprising:
receiving an operation acting on the control;
calling a uniform interface to generate a service request according to the operation, and sending the service request to the page server, wherein the page server is used for determining a service server suitable for processing the service request and requesting the service server for a service result obtained by executing the service operation according to the service request;
receiving a service result sent by the page server;
and displaying the service result on the page.
12. A display device for a page, comprising:
the device comprises a request receiving module, a page loading module and a page loading module, wherein the request receiving module is used for receiving a request for loading a page sent by a mobile terminal, and the page is divided into at least two areas;
the page data acquisition module is used for respectively acquiring page data in the page and in the area;
the regional data packet generating module is used for generating regional data packets according to the page data in the regions respectively;
and the area data packet sending module is used for sending the area data packet to the mobile terminal, and the mobile terminal is used for displaying the page data in the area so as to display the page.
13. A display device for a page, comprising:
the system comprises a request sending module, a page loading module and a page loading module, wherein the request sending module is used for sending a page loading request to a page server, and the page is divided into at least two areas;
a region data packet receiving module, configured to receive a region data packet sent by the page server, where the region data packet includes page data in the page and located in the region;
and the page display module is used for displaying the page data in the data packet in the area so as to display the page.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of displaying a page as claimed in any one of claims 1 to 11 when executing the program.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of displaying a page according to any one of claims 1 to 11.
CN201910477674.3A 2019-06-03 2019-06-03 Page display method and device, computer equipment and storage medium Pending CN112035770A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910477674.3A CN112035770A (en) 2019-06-03 2019-06-03 Page display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910477674.3A CN112035770A (en) 2019-06-03 2019-06-03 Page display method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112035770A true CN112035770A (en) 2020-12-04

Family

ID=73576215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910477674.3A Pending CN112035770A (en) 2019-06-03 2019-06-03 Page display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112035770A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220303635A1 (en) * 2021-03-22 2022-09-22 Beijing Dajia Internet Information Technology Co., Ltd. Method and device for processing message in live broadcast room

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2011101580A4 (en) * 2011-06-22 2012-01-12 Google Inc. Download area management
CN109040767A (en) * 2018-06-29 2018-12-18 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room loading method, system, server and storage medium
CN109345286A (en) * 2018-09-06 2019-02-15 武汉斗鱼网络科技有限公司 A kind of method and terminal of the optimization of subregion customized module

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2011101580A4 (en) * 2011-06-22 2012-01-12 Google Inc. Download area management
CN109040767A (en) * 2018-06-29 2018-12-18 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room loading method, system, server and storage medium
CN109345286A (en) * 2018-09-06 2019-02-15 武汉斗鱼网络科技有限公司 A kind of method and terminal of the optimization of subregion customized module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220303635A1 (en) * 2021-03-22 2022-09-22 Beijing Dajia Internet Information Technology Co., Ltd. Method and device for processing message in live broadcast room
US11553256B2 (en) * 2021-03-22 2023-01-10 Beijing Dajia Internet Information Technology Co., Ltd. Method and device for processing message in live broadcast room

Similar Documents

Publication Publication Date Title
US8868637B2 (en) Page rendering for dynamic web pages
CN109068153B (en) Video playing method and device and computer readable storage medium
US20100324999A1 (en) Advertisement proxy service
CN104967908A (en) Video hot spot marking method and apparatus
CN104978358A (en) Method for displaying web page fragment on desktop and system for capturing web page fragment to desktop for displaying
CN103116645A (en) Method and device for browsing webpage with mobile device
CN112166590A (en) Constrained environment for message generation in a networked environment
CN110958462A (en) Live broadcast activity page display method and device, storage medium and live broadcast system
CN103618779A (en) Method and system for resource sharing
CN112256990A (en) Image processing method and device and computer readable storage medium
CN111031376A (en) Bullet screen processing method and system based on WeChat applet
JP6212240B2 (en) Notification method and notification server for performing push notification by wipe to portable terminal
US11431634B2 (en) Client device and resource manager load sharing
CN108933947B (en) Bullet screen display method and device
EP3125541A1 (en) Data acquisition and interaction method, set top box, server and multimedia system
US9940645B1 (en) Application installation using in-video programming
CN112015383A (en) Login method and device
CN112035770A (en) Page display method and device, computer equipment and storage medium
US20100011050A1 (en) Content Management that Addresses Levels of Functionality
CN110048937B (en) Method, device, user terminal and storage medium for displaying chat information in split screen mode
CN113010766A (en) Information searching method, device and storage medium
JP2019079401A (en) Generating apparatus, terminal apparatus, sharing page generating system, generating method, and control program
CN111176546B (en) Live message publishing and page generating method and related equipment
CN110300321B (en) Banner display method and device
CN112559278B (en) Method and device for acquiring operation data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201204