CN112307377A - Information display method and device and electronic equipment - Google Patents

Information display method and device and electronic equipment Download PDF

Info

Publication number
CN112307377A
CN112307377A CN201910690782.9A CN201910690782A CN112307377A CN 112307377 A CN112307377 A CN 112307377A CN 201910690782 A CN201910690782 A CN 201910690782A CN 112307377 A CN112307377 A CN 112307377A
Authority
CN
China
Prior art keywords
module
client
page
data corresponding
data
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
CN201910690782.9A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910690782.9A priority Critical patent/CN112307377A/en
Publication of CN112307377A publication Critical patent/CN112307377A/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
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

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 invention provides an information display method, an information display device, electronic equipment and a storage medium; the information display method of the client comprises the following steps: acquiring data corresponding to each module related to a skeleton page of a client; acquiring a style name in data corresponding to the module, and displaying content to be displayed in the data corresponding to the module based on a style corresponding to the style name in the skeleton page; responding to the interactive operation of the module, and sending a target page name and a target page state in the data corresponding to the module to a server; receiving skip data corresponding to the module, returned by the server, wherein the skip data are obtained by determining a data address by the server according to the target page name and the target page state and acquiring the data address; and displaying a target page according to the jumping data of the module. By the method and the device, the flexibility of modifying the page structure and the skip logic can be improved, and dynamic update is realized.

Description

Information display method and device and electronic equipment
Technical Field
The present invention relates to internet and computer technologies, and in particular, to an information display method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of computer technology, a client/server architecture is gradually emerging and is applied to various fields in large quantity, for example, an application program for watching comics online is a typical application of the client/server architecture. In a client/server architecture, a server is used to provide data to a client, which is used to display the data in a user's page in a particular organizational form (style) for the user to browse.
In the solutions provided by the related technologies, a hypertext Markup Language (HTML) 5 hybrid native development technology is usually applied to implement information display of a client, and specifically, a whole manufactured HTML5 page is embedded into an application program. However, the structure of the entire HTML5 page embedded in the application is fixed, and the page jump logic therein, such as jump links, is likewise fixed, and cannot be changed without updating the client version, resulting in poor flexibility in modifying the page structure and implementing jumps.
Disclosure of Invention
Embodiments of the present invention provide an information display method, an information display apparatus, an electronic device, and a storage medium, which can dynamically change a page structure and a skip logic of a client without updating a version of the client, thereby improving flexibility.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an information display method of a client, which comprises the following steps:
acquiring data corresponding to each module related to a skeleton page of a client;
acquiring a style name in data corresponding to the module, and displaying content to be displayed in the data corresponding to the module based on a style corresponding to the style name in the skeleton page;
responding to the interactive operation of the module, and sending a target page name and a target page state in the data corresponding to the module to a server;
receiving skip data corresponding to the module, returned by the server, wherein the skip data are obtained by determining a data address by the server according to the target page name and the target page state and acquiring the data address;
and displaying a target page according to the jumping data of the module.
In the foregoing solution, after the obtaining a style name in the data corresponding to the module and displaying the content to be displayed in the data corresponding to the module based on the style corresponding to the style name in the skeleton page, the method further includes:
when the data corresponding to the module comprises the asynchronous field, acquiring the data corresponding to the module again;
and updating and displaying the content to be displayed in the acquired data in the skeleton page according to the style name in the acquired data.
In the above scheme, the method further comprises:
caching data corresponding to the modules;
and when the client is in an off-line state, acquiring the style name in the cached data corresponding to the module, and displaying the content to be displayed in the cached data corresponding to the module in the skeleton page based on the style corresponding to the style name.
In the above scheme, the method further comprises:
and when the content to be displayed in the data corresponding to the module is empty or the data corresponding to the module comprises a style name indicating shielding, shielding the data corresponding to the module.
In the foregoing solution, the acquiring data corresponding to each module related to a skeleton page of a client includes:
and responding to the selection operation of the skeleton page of the client, and acquiring data corresponding to each module related to the selected skeleton page.
In the above scheme, the method further comprises:
and responding to the refreshing operation of the skeleton page, re-acquiring data corresponding to each module related to the skeleton page, acquiring the style name in the data corresponding to the module, and displaying the content to be displayed in the data corresponding to the module in the skeleton page based on the style corresponding to the style name.
The embodiment of the invention provides an information display method of a server, which comprises the following steps:
sending data corresponding to each module related to a skeleton page of a client to the client, so that the client acquires a style name in the data corresponding to the module, and displaying contents to be displayed in the data corresponding to the module in the skeleton page based on a style corresponding to the style name;
acquiring a target page name and a target page state sent by the client;
determining a data address according to the target page name and the target page state, and acquiring jump data according to the data address;
and sending the skipping data to the client so that the client displays a target page according to the skipping data.
In the above scheme, the sending data corresponding to each module related to the skeleton page of the client to the client includes:
when the data corresponding to the module comprises the asynchronous field, replacing the content to be displayed in the data corresponding to the module with set content, and sending the replaced data corresponding to the module to the client;
and when a request of the client for the data corresponding to the module is received again, sending the data corresponding to the module containing the content to be displayed to the client.
The embodiment of the invention provides an information display device of a client, which comprises:
the acquisition module is used for acquiring data corresponding to each module related to the skeleton page of the client;
the first display module is used for acquiring the style name in the data corresponding to the module and displaying the content to be displayed in the data corresponding to the module based on the style corresponding to the style name in the skeleton page;
the sending module is used for responding to the interactive operation of the module and sending the target page name and the target page state in the data corresponding to the module to the server;
the receiving module is used for receiving the jumping data which is returned by the server and corresponds to the module, wherein the jumping data is obtained by the server according to the target page name and the target page state and determining a data address;
and the second display module is used for displaying the target page according to the jumping data of the module.
In the above solution, the information display device of the client further includes:
the re-acquisition module is used for re-acquiring the data corresponding to the module when the data corresponding to the module comprises the asynchronous field;
and the updating display module is used for updating and displaying the content to be displayed in the acquired data in the skeleton page according to the style name in the acquired data.
In the above solution, the information display device of the client further includes:
the cache module is used for caching the data corresponding to the module;
and the cache display module is used for displaying the content to be displayed in the cached data corresponding to the module in the skeleton page when the client is in an off-line state.
In the above solution, the information display device of the client further includes:
and the shielding module is used for shielding the data corresponding to the module when the content to be displayed in the data corresponding to the module is empty or the data corresponding to the module comprises a style name indicating shielding.
In the foregoing scheme, the obtaining module is further configured to:
and responding to the selection operation of the skeleton page of the client, and acquiring data corresponding to each module related to the selected skeleton page.
In the above solution, the information display device of the client further includes:
and the refreshing module is used for responding to the refreshing operation on the skeleton page, re-acquiring data corresponding to each module related to the skeleton page, acquiring the style name in the data corresponding to the module, and displaying the content to be displayed in the data corresponding to the module in the skeleton page based on the style corresponding to the style name.
The embodiment of the invention provides an information display device of a server, which comprises:
the system comprises a first background sending module, a second background sending module and a display module, wherein the first background sending module is used for sending data corresponding to each module related to a skeleton page of a client to the client so that the client can acquire style names in the data corresponding to the modules and display contents to be displayed in the data corresponding to the modules in the skeleton page based on styles corresponding to the style names;
the page information acquisition module is used for acquiring the name and the state of a target page sent by the client;
the skip data acquisition module is used for determining a data address according to the target page name and the target page state and acquiring skip data according to the data address;
and the second background sending module is used for sending the skipping data to the client so that the client can display a target page according to the skipping data.
In the foregoing scheme, the first background sending module is further configured to:
when the data corresponding to the module comprises the asynchronous field, replacing the content to be displayed in the data corresponding to the module with set content, and sending the replaced data corresponding to the module to the client;
and when a request of the client for the data corresponding to the module is received again, sending the data corresponding to the module containing the content to be displayed to the client.
An embodiment of the present invention provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the information display method of the client or the information display method of the server provided by the embodiment of the invention when the executable instruction stored in the memory is executed.
The embodiment of the invention provides a storage medium, which stores executable instructions and is used for causing a processor to execute so as to realize the information display method of a client or the information display method of a server provided by the embodiment of the invention.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the server sends the data corresponding to each module in the page to the client, the client responds to the interactive operation on the module after displaying the data, requests the jump data to the server according to the target page name and the target page state in the data corresponding to the module, and displays the target page according to the obtained jump data, so that the page structure modification and the jump realization flexibility are improved, and the dynamic update is realized.
Drawings
FIG. 1 is an alternative architectural diagram of an information presentation system 100 provided by embodiments of the present invention;
fig. 2A is an alternative architecture diagram of an information presentation apparatus of a client according to an embodiment of the present invention;
FIG. 2B is a schematic diagram of an alternative architecture of an information displaying apparatus of a server according to an embodiment of the present invention;
fig. 3 is an alternative flow chart of the information displaying method according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of page jump provided by the embodiment of the present invention;
fig. 5 is a schematic flow chart of another alternative information displaying method according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of another alternative information displaying method according to an embodiment of the present invention;
FIG. 7 is a diagram of a data structure provided by an embodiment of the invention;
fig. 8 is a schematic page diagram of a client according to an embodiment of the present invention;
FIG. 9 is a schematic page diagram of another client according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a configuration page of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the description that follows, references to the terms "first", "second", and the like, are intended only to distinguish similar objects and not to indicate a particular ordering for the objects, it being understood that "first", "second", and the like may be interchanged under certain circumstances or sequences of events to enable embodiments of the invention described herein to be practiced in other than the order illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
(1) Skeleton page: and the page of the unloaded module is constructed according to the data corresponding to the skeleton page.
(2) Data corresponding to the skeleton page: refers to data that includes configuration information for a skeletal page, which includes components and/or attributes, e.g., a component may be a search bar component and an attribute may be a color attribute, for building the skeletal page.
(3) A module: refers to an area for displaying independent content divided in a page, which may include one or more modules.
(4) Data corresponding to the modules: which refers to content data included in the module to be displayed.
(5) Style (style): the method refers to an organization rule for display content in a page, such as the number of pictures, the width and height of a screen occupied by the pictures, font color, font size and the like.
The inventor finds in the course of implementing the present invention that in an application program applying a client/server architecture, the whole HTML5 page is usually embedded into the application program, but for the embedded HTML5 page, the following disadvantages exist:
(1) before a client displays an HTML5 page, networking is needed, and under the condition that the client is offline, the HTML5 page is unavailable;
(2) the webview component is required to be called when the HTML5 page is loaded, a blank screen may appear in different systems, user experience is poor, and although an auxiliary scheme is used for repairing the problems, such as loading the webview component in advance, the stability of a client is reduced, and the occupation of a memory is improved;
(3) the structure of the entire HTML5 page embedded in the application is fixed, and the page jump logic therein, such as jump links, is likewise fixed, and cannot be changed without updating the client version, resulting in poor flexibility in modifying the page structure and implementing jumps.
Embodiments of the present invention provide an information display method and apparatus, an electronic device, and a storage medium, which can implement modification of a page structure and skip of a target page in a manner that a server dynamically sends data, so as to improve flexibility.
Referring to fig. 1, fig. 1 is an optional architecture diagram of an information presentation system 100 according to an embodiment of the present invention, in order to support an information presentation application, a terminal device 400 (an exemplary terminal device 400-1 and a terminal device 400-2 are shown) is connected to a server 200 through a network 300, and the network 300 may be a wide area network or a local area network, or a combination of the two.
The server 200 is configured to send data corresponding to each module related to the skeleton page of the client to the client; the terminal device 400 is configured to obtain data corresponding to each module related to the skeleton page; acquiring a style name in data corresponding to the module, and displaying content to be displayed in the data corresponding to the module based on a style corresponding to the style name in the skeleton page, wherein the skeleton page is exemplarily displayed on a graphical interface 410 (a graphical interface 410-1 and a graphical interface 410-2 are exemplarily shown), and a module 1, a module 2 and a module 3 are displayed in the skeleton page; responding to the interactive operation of the module, and sending a target page name and a target page state in the data corresponding to the module to the server 200; the server 200 is configured to determine a data address according to the target page name and the target page state, and obtain jump data according to the data address; sending the skip data to the client; the terminal device 400 is configured to receive the skip data corresponding to the module returned by the server 200; a target page (not shown in fig. 1) is displayed according to the module's jump data.
The following continues to illustrate exemplary applications of the electronic device provided by embodiments of the present invention. The electronic device may be implemented as various types of terminal devices such as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device), and the like, and may also be implemented as a server. Next, an electronic device will be described as an example of a terminal device.
Referring to fig. 2A, fig. 2A is a schematic diagram of an optional architecture of a terminal device 400 (for example, the terminal device 400-1 and the device terminal 400-2 shown in fig. 1) provided in an embodiment of the present invention, where the terminal device 400 shown in fig. 2 includes: at least one processor 410, memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal device 400 are coupled together by a bus system 440. It is understood that the bus system 440 is used to enable communications among the components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 440 in fig. 2A.
The Processor 410 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 430 includes one or more output devices 431, including one or more speakers and/or one or more visual displays, that enable the presentation of media content. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 450 optionally includes one or more storage devices physically located remote from processor 410.
The memory 450 includes either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile memory may be a Read Only Memory (ROM), and the volatile memory may be a Random Access Memory (RAM). The memory 450 described in embodiments of the invention is intended to comprise any suitable type of memory.
In some embodiments, memory 450 is capable of storing data, examples of which include programs, modules, and data structures, or a subset or superset thereof, to support various operations, as exemplified below.
An operating system 451, including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
a network communication module 452 for communicating to other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a presentation module 453 for enabling presentation of information (e.g., user interfaces for operating peripherals and displaying content and information) via one or more output devices 431 (e.g., display screens, speakers, etc.) associated with user interface 430;
an input processing module 454 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
In some embodiments, the information presentation apparatus of the client provided by the embodiments of the present invention may be implemented in software, and fig. 2A illustrates the information presentation apparatus 455 of the client stored in the memory 450, which may be software in the form of programs and plug-ins, and includes the following software modules: an obtaining module 4551, a first display module 4552, a sending module 4553, a receiving module 4554, and a second display module 4555, which are logical and thus may be arbitrarily combined or further separated according to the functions implemented.
The functions of the respective modules will be explained below.
In other embodiments, the information display Device of the client according to embodiments of the present invention may be implemented in hardware, for example, the information display Device of the client according to embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the information display method of the client according to embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may be one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic devices (cpds), Field Programmable Gate Arrays (FPGAs), or other electronic components.
Next, an electronic device will be described as an example of a server.
Referring to fig. 2B, fig. 2B is a schematic diagram of an alternative architecture of a server 200 (for example, the server 200 shown in fig. 1) according to an embodiment of the present invention, where the terminal device 200 shown in fig. 2B includes: at least one processor 210, memory 250, at least one network interface 220, and a user interface 230. The various components in server 200 are coupled together by a bus system 240. It is understood that the bus system 240 is used to enable communications among the components. The bus system 240 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 240 in figure 2B. It should be noted that the processor 210, the memory 250 (including the operating system 251, the network communication module 252, the presentation module 253, and the input processing module 254), the network interface 220, the user interface 230, and the bus system 240 shown in fig. 2B are the same as the corresponding components in fig. 2A, and are not repeated here.
In some embodiments, the information presentation apparatus of the server provided by the embodiments of the present invention may be implemented in software, and fig. 2B illustrates the information presentation apparatus 255 of the server stored in the storage 250, which may be software in the form of programs and plug-ins, and includes the following software modules: the first background sending module 2551, the page information obtaining module 2552, the skip data obtaining module 2553 and the second background sending module 2554 are logical, and therefore, they may be arbitrarily combined or further split according to the implemented functions.
The functions of the respective modules will be explained below.
In other embodiments, the information display apparatus of the server according to embodiments of the present invention may be implemented in hardware, and for example, the information display apparatus of the server according to embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to perform the information display method of the server according to embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may be one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic devices (cpds), Field Programmable Gate Arrays (FPGAs), or other electronic components.
The information presentation method provided by the embodiment of the present invention may be executed by the server, or may be executed by a terminal device (for example, the terminal device 400-1 and the terminal device 400-2 shown in fig. 1), or may be executed by both the server and the terminal device.
The following describes a procedure for executing the information presentation method by the server and the terminal device together, in conjunction with the above-described exemplary applications and structures of the server and the terminal device.
Referring to fig. 3, fig. 3 is an optional flowchart of an information displaying method according to an embodiment of the present invention, and will be described with reference to the steps shown in fig. 3.
In step 301, a server sends data corresponding to each module related to a skeleton page of a client to the client.
For example, after receiving a data request of a client, a server sends data corresponding to each module related to a skeleton page of the client to the client, the data corresponding to the modules may be preset by background personnel, the data corresponding to the modules at least include a style name, a target page state, content to be displayed, such as pictures or characters, and for identification, different fields may be preset for different contents in the data corresponding to the modules.
In some embodiments, the server described above may send data corresponding to each module associated with the skeleton page of the client to the client in such a manner that: when the data corresponding to the module comprises the asynchronous field, the server replaces the content to be displayed in the data corresponding to the module with the set content and sends the replaced data corresponding to the module to the client; and when a request of the client for the data corresponding to the module is received again, sending the data corresponding to the module containing the content to be displayed to the client.
For the contents to be displayed included in the data corresponding to the module, there may be a characteristic that the calculation is complex or the contents cannot be cached by the client, so the server may asynchronously send the contents to be displayed. Specifically, when the data corresponding to the module includes a preset asynchronous field, the server replaces the content to be displayed in the data corresponding to the module with the set content, and sends the data corresponding to the replaced module to the client, so that the client displays the set data, wherein the set content may be null, and the client directly shields the received data corresponding to the module when the set content is null. When the server receives the request of the client for the data corresponding to the module again, the server sends the data corresponding to the module including the content to be displayed to the client so that the client can display the content to be displayed in the skeleton page. By the method, the applicability of the sending operation to the asynchronous scene is improved.
In step 302, the client obtains data corresponding to each module associated with the skeleton page of the client.
In some embodiments, the above-mentioned client may further obtain data corresponding to each module related to the skeleton page of the client in such a manner: and responding to the selection operation of the skeleton page of the client, and acquiring data corresponding to each module related to the selected skeleton page by the client.
For example, in some application scenarios, the client may include a plurality of channels, and each channel corresponds to a separate skeleton page, so in the embodiment of the present invention, in response to a selection operation on a skeleton page of the client, for example, the skeleton page includes a skeleton page of channel a, a skeleton page of channel B, and a skeleton page of channel C, in response to a selection operation on the skeleton page of channel C by a user, only data corresponding to each module related to the skeleton page of channel C is obtained. On the basis, before the server sends the data corresponding to each module related to the skeleton page of the client, the client can send a data request to the server according to the selected skeleton page, so that the server only sends the data corresponding to each module related to the selected skeleton page, and resource consumption is reduced.
In step 303, the client acquires the style name in the data corresponding to the module, and displays the content to be displayed in the data corresponding to the module based on the style corresponding to the style name in the skeleton page.
The client side obtains the style name in the data corresponding to the module, and displays the content to be displayed in the data corresponding to each module in the skeleton page of the client side according to the style stored by the client side. The style of the client can be obtained by the client in a unified manner when the version of the client is updated and stored locally at the client, or can be obtained in other manners. According to the content to be displayed in the data corresponding to the style display module, the content to be displayed is substantially organized according to the organization rule corresponding to the style, for example, the content to be displayed is displayed as a picture according to a specific aspect ratio. The above process of displaying the content to be displayed in the page can be implemented by applying native technology, thereby eliminating the disadvantages caused by applying the HTML5 page.
In some embodiments, after the client obtains data corresponding to each module related to the skeleton page of the client, the method further includes: and when the content to be displayed in the data corresponding to the module is empty or the data corresponding to the module comprises a style name indicating shielding, the client shields the data corresponding to the module.
When the content to be displayed in the acquired data corresponding to the module is empty or the data corresponding to the module includes a style name indicating to perform shielding, the data corresponding to the module is shielded in order to improve the display effect.
In some embodiments, the client obtains a style name in the data corresponding to the module, and further includes, after displaying the content to be displayed in the data corresponding to the module based on a style corresponding to the style name in the skeleton page: when the data corresponding to the module comprises the asynchronous field, the client acquires the data corresponding to the module again; and updating and displaying the content to be displayed in the acquired data in the skeleton page according to the style name in the acquired data.
In the asynchronous sending scene, the data corresponding to the module received by the client includes an asynchronous field, the content to be displayed in the data corresponding to the module may only be the set content replaced by the server, in this case, the client initiates a request to the server, acquires the data corresponding to the module again, and updates and displays the content to be displayed in the acquired data in the skeleton page according to the style name in the acquired data. By the method, the display effect of the client under the asynchronous scene is improved.
In some embodiments, after the client obtains data corresponding to each module related to the skeleton page of the client, the method further includes: the client caches the data corresponding to the module; and when the client is in an off-line state, acquiring the style name in the cached data corresponding to the module, and displaying the content to be displayed in the cached data corresponding to the module in the skeleton page based on the style corresponding to the style name.
The method comprises the steps of setting a caching mechanism for a client, specifically caching acquired data corresponding to each module related to a skeleton page, acquiring a style name in the data corresponding to the cached module when the client is in an off-line state, namely the client cannot communicate with a server, and displaying contents to be displayed in the data corresponding to the cached module in the skeleton page based on a style corresponding to the style name. The off-line loading of the module is realized through the mode.
In some embodiments, between any of the steps, the information presentation method further comprises: the client responds to the refreshing operation of the skeleton page, acquires the data corresponding to each module related to the skeleton page again, acquires the style name in the data corresponding to the module, and displays the content to be displayed in the data corresponding to the module in the skeleton page based on the style corresponding to the style name.
For example, the refresh operation may be a pull-down operation on a skeletal page. Responding to the refreshing operation of the skeleton page, the client side obtains data corresponding to each module related to the skeleton page again, obtains the style name in the data corresponding to the module, redisplays the content to be displayed in the data corresponding to the module based on the style corresponding to the style name in the skeleton page, and achieves real-time updating of the data.
In step 304, the client sends the target page name and the target page status in the data corresponding to the module to the server in response to the interactive operation on the module.
After content to be displayed in data corresponding to the skeleton page display module is displayed by the client, the client can respond to interaction operation on a certain module in the skeleton page and send a target page name and a target page state in the data corresponding to the module to the server. Wherein, the interaction operation is like the user clicking the module in the skeleton page. It should be noted that the target page name herein is used to determine a new skeleton page to jump to, and the target page state is used to determine specific content filled in the new skeleton page, where the specific content may be presented in a module form or other forms, which is not limited in this embodiment of the present invention.
In step 305, the server obtains the name and state of the target page sent by the client.
In step 306, the server determines a data address according to the target page name and the target page state, and obtains jump data according to the data address.
The server determines a data address according to the name of the target page and the state of the target page, and determines jump data stored in the data address, wherein the jump data comprises data related to a jumped skeleton page and data related to content filled in the skeleton page. It should be noted that, in some cases, for example, in a case where the target page is an HTML5 page determined by a web address, the server may also replace the target page name and the target page state in the data corresponding to the module with a data address when sending the data corresponding to the module, so as to obtain the jump data according to the data address sent by the client.
In step 307, the server sends the skip data to the client.
In step 308, the client receives the jump data corresponding to the module returned by the server.
In step 309, the client displays the target page according to the module jump data.
And the client displays the target page according to the jump data of the corresponding module, so as to realize the jump of the page. The target page may be a native page or an HTML5 page, which is not limited in the embodiment of the present invention.
Taking a client as an example of a client for browsing a cartoon, assuming a cartoon A module displayed in a skeleton page of the client, a target page name included in data corresponding to the module is a cartoon detail page, and a target page state included in the data corresponding to the module is as follows: and the cartoon A is numbered correspondingly in the server. Therefore, the server can determine data related to the cartoon detail page (new skeleton page) according to the name of the target page, the server can determine the data of the cartoon A corresponding to the serial number according to the state of the target page, the data related to the cartoon detail page and the data of the cartoon A are unified to be used as jump data, and after the jump data are sent to the client, the client can display the cartoon detail page including the data of the cartoon A, namely the target page. On the basis, the target page state can also comprise information such as the reading progress of the user on the cartoon A and the like, which is stored by the server, so that after the server sends the jump data to the client, the client can display the content of the cartoon A corresponding to the reading progress in the cartoon detail page, and the user experience is improved.
For convenience of understanding, the page jump diagram shown in fig. 4 is provided in the embodiment of the present invention, in fig. 4, the server locates a specific page according to a target page name sent by the client, and determines a relevant state of specific content filled in the page according to a target page state, so that, through the target page name and the target page state, the server may determine a target page including the specific content, and send jump data related to the target page to the client. And the client acquires the jump data and renders the jump data, so that a target page is displayed and page jump is realized.
As can be seen from the above exemplary implementation of fig. 3, in the embodiment of the present invention, the page is modularized, and the server sends the data corresponding to each module related to the skeleton page, so that the page structure and the skip logic of the client page can be adjusted without updating the client version, thereby implementing dynamic update and improving flexibility, and the embodiment of the present invention can be implemented by applying native technology, thereby eliminating the disadvantages caused by applying the HTML5 page.
Referring to fig. 5, fig. 5 is another alternative flow chart of the information displaying method according to the embodiment of the present invention, which will be described with reference to the steps shown in fig. 5. In fig. 5, before step 301, in step 501, the client obtains a client identifier of the client, and encapsulates the client identifier into the page data request.
The skeleton page of the client can be obtained by the client requesting the server. Specifically, the client obtains a client identifier, which may be preset, for example, the client identifier may include a current version of the client, a device number of a terminal device where the client is located, a user gender, a user portrait, and the like, where the user portrait may be obtained by processing a browsing record of the user through a relevant model. The client identification can be obtained by the client through preprocessing, stored in the local of the client and directly obtained when needed. Then, the obtained client identifier is encapsulated into the page data request, for example, may be encapsulated into a request header of the page data request.
In step 502, the client sends the page data request to the server.
In step 503, the server obtains the page data request sent by the client, and determines the client identifier in the page data request.
In step 504, the server determines a first filter attribute included in data corresponding to at least two skeleton pages.
The server stores data corresponding to at least two skeleton pages, and determines a first filtering attribute included in the data corresponding to each skeleton page, wherein the first filtering attribute can be preset by background personnel.
In step 505, the server filters out a first filtering attribute that meets the client identifier, and sends data corresponding to the skeleton page including the first filtering attribute to the client.
In the data corresponding to at least two skeleton pages, the server screens out a first filtering attribute which accords with the client identification, and sends the data corresponding to the skeleton pages comprising the first filtering attribute to the client. For example, the server includes 20 pieces of data corresponding to the skeleton pages, where a first filtering attribute in the data corresponding to 10 skeleton pages is a new user, and a first filtering attribute in the data corresponding to the other 10 skeleton pages is an old user, and when the client is identified as a new user, only the data corresponding to 10 skeleton pages whose first filtering attribute is the new user is screened out. And then, sending the data corresponding to the screened skeleton page to the client.
In step 506, the client obtains data corresponding to the skeleton page returned by the server.
In some embodiments, between any of the steps, the information presentation method further comprises: and the client responds to the restart operation of the client, resends the page data request to the server, and acquires data corresponding to the skeleton page returned by the server.
For the restarting operation, in order to ensure the real-time performance of the data, the client sends a page data request to the server again, obtains the data corresponding to the skeleton page returned by the server, and continues to execute the subsequent steps.
In step 507, the client constructs the skeleton page according to the data corresponding to the skeleton page.
The client side constructs the skeleton page according to the obtained data corresponding to the skeleton page, and the construction mode can be preset in the data corresponding to the skeleton page. It should be noted that the constructed skeleton page does not need to be displayed immediately, and can be displayed uniformly after receiving the data corresponding to the module related to the skeleton page.
The contents of step 301 to step 309 are the same as above, and are not described herein again.
In some embodiments, after the client obtains data corresponding to each module related to the skeleton page of the client, the method further includes: caching data corresponding to the skeleton page and data corresponding to the module by the client; when the client is in an off-line state, constructing the skeleton page according to the cached data corresponding to the skeleton page; and acquiring the style name in the cached data corresponding to the module, and displaying the content to be displayed in the cached data corresponding to the module in the skeleton page based on the style corresponding to the style name.
The client can cache the acquired data corresponding to the skeleton page and the acquired data corresponding to the module, and can establish a mapping relation between the data corresponding to the skeleton page and the data corresponding to the module during caching, so that confusion is avoided. It is worth noting that the client may not cache data corresponding to modules that include asynchronous fields. When the client is in an off-line state and cannot communicate with the server, the client can construct a page according to the cached data corresponding to the skeleton page, and display the content to be displayed in the cached data corresponding to the module in the skeleton page. The off-line display of the skeleton page and the module is realized through the above mode.
As can be seen from the above exemplary implementation of fig. 5, in the embodiment of the present invention, the client can request the data corresponding to the skeleton page matched with the client identifier by setting the first filtering attribute for the data corresponding to the skeleton page, so that the user experience and the page display effect are improved.
Referring to fig. 6, fig. 6 is another alternative flow chart of the information displaying method according to the embodiment of the present invention, based on fig. 3, step 301 and step 302 are updated in fig. 6, and fig. 6 includes the following steps:
in step 601, the client encapsulates the client identifier and the page identifier of the skeleton page into a module data request.
Similarly, the client can request the data corresponding to the module from the server by using the module data request. Here, in order to facilitate the server to identify which skeleton page is related to the module data, in addition to the client identifier, the client also encapsulates the page identifier of the skeleton page into the module data request together, and specifically may encapsulate into the request header of the module data request. It should be noted that, on the basis that the skeleton page of the client is constructed based on the data corresponding to the skeleton page shown in fig. 5, the page identifier may be set in the data corresponding to the skeleton page, and thus, the client may determine the page identifier after receiving the data corresponding to the skeleton page.
In step 602, the client sends the module data request to the server.
In step 603, the server obtains the module data request sent by the client, and determines the client identifier and the page identifier in the module data request.
In step 604, the server determines data corresponding to at least two modules corresponding to the page identifier, and determines a second filtering attribute included in the data corresponding to the modules.
The server determines data corresponding to at least two modules corresponding to the page identification, and further determines a second filtering attribute included in the data corresponding to the modules for the determined data corresponding to each module, wherein the second filtering attribute can be preset by background personnel.
In step 605, the server filters out a second filtering attribute that meets the client identifier, and sends data corresponding to the module including the second filtering attribute to the client.
And screening out data corresponding to the module of which the second filtering attribute accords with the client identifier by the server from the data corresponding to the at least two modules corresponding to the page identifier. For example, for the page identifier a, the server stores data corresponding to 20 modules corresponding to the page identifier, where there are 10 modules corresponding to the data, where the second filtering attribute is new user, and the other 10 modules corresponding to the data, where the second filtering attribute is old user, and then when the client identifier in the module data request is new user and the page identifier is the page identifier a, the server only filters out the data corresponding to the 10 modules whose second filtering attributes are new user. Then, sending the data corresponding to the screened module to the client
In step 606, the client obtains data corresponding to the module returned by the server.
In fig. 6, between any steps, the information presentation method further includes: in step 607, the server transmits a style corresponding to the style name to the client.
In addition to the manner in which the server causes the client to store the style by issuing the client version, in the embodiment of the present invention, the server may directly send the style corresponding to the style name to the client. The style can be included in data corresponding to the skeleton page sent by the server and sent together; the data can also be included in the data corresponding to the module sent by the server and sent together; or may be sent by the server to the client separately, which is not limited in this respect. In addition, the transmission timings of the patterns shown in fig. 5 are only examples, and the transmission timings may be set according to an actual application scenario.
In step 608, the client obtains the style corresponding to the style name sent by the server, and stores the style.
The client acquires the style corresponding to the style name sent by the server and stores the style locally, so that the data with the corresponding style name can be organized and displayed according to the style. By the mode that the server sends the styles, the flexibility of sending the styles is improved, and the styles can be managed conveniently by the server.
The contents of step 303 to step 309 are the same as above, and are not described herein again.
As can be seen from the above exemplary implementation of fig. 6, in the embodiment of the present invention, by setting the second filtering attribute for the data corresponding to the module, the client can receive the data corresponding to the module, which corresponds to the skeleton page and matches with the client identifier, on the basis of the existing skeleton page, so that the user experience and the module display effect are improved, and the server sends the style to the client, so that the client style is updated without updating the client version, and the management capability of the server on the style is improved.
In the following, an exemplary application of the embodiments of the present invention in a practical application scenario will be described.
An embodiment of the present invention provides a data structure diagram as shown in fig. 7, where in fig. 7, a skeleton page is used as a channel page, and one channel page corresponds to at least one Module, and in fig. 7, one channel page corresponds to three modules, where the Module is represented by "Module" and the channel page is represented by "Tab". The data structure corresponding to the channel page comprises a channel page identifier 'tab _ id', wherein the channel page identifier is the above page identifier; the method also comprises a field 'stick' used for determining the sequencing and the top setting of the channel pages, for example, a first page of a client can display one of a plurality of channel pages, and the corresponding channel page is configured to be displayed firstly through the 'stick'; the method also comprises a first filtering attribute 'filter' for filtering the channel page; and a field "config" for controlling the presence or absence of components and the attribute configuration in the channel page, for example, a component of a search field may be added by "config", the background color of the channel page may be configured by "config", and the like. And when the server receives a page data request of the client for the channel page, the server filters a first filtering attribute which accords with the client identifier according to the client identifier in the page data request, and sends the data corresponding to the channel page comprising the first filtering attribute to the client. In fig. 7, the module data request is embodied as a function get _ modules ($ tab _ id, $ user _ agent) of the acquisition module, where "user _ agent" in the function is a client identifier, and "tab _ id" in the function may be a channel page identifier in data corresponding to all channel pages sent to the client by the server, or may be a channel page identifier in data corresponding to a selected channel page determined by the client in response to a selection operation on the channel page.
In a data structure corresponding to a module, a module identifier 'module _ id' is included, and a mapping relation between a channel page identifier and the module identifier is preset in a server; the data structure also comprises a style name's type' for controlling the display of the data corresponding to the module in the channel page; the module filtering system also comprises a second filtering attribute 'filter' for module filtering, wherein the content of the second filtering attribute can be the same as or different from the first filtering attribute; an abstract field "view" is also included for display in the channel page; the universal skip field 'action' is used for storing the name and the state of the target page; the system also comprises an asynchronous field async which is used for prompting the server to carry out asynchronous transmission; the module also comprises a submodule field 'children' for constructing submodules under the module, and it is worth explaining that the data structure of the submodules is the same as that of the module; the template "is also included, as well as the source data". When the data corresponding to the module needs to be displayed, the template included in the data is analyzed, the source data is inserted into the template, and the template is finally inserted into the channel page to complete the display, namely, the content in the abstract field, the template and the source data jointly form the content to be displayed.
After the server sends the data corresponding to the module to the client, the client renders according to the template and the source data, specifically, the client first executes a hook-before-render function before $ te template, $ data, the hook-before-render function is mainly used for checking whether unidentifiable content exists in the template and the source data, and when the unidentifiable content exists, the data corresponding to the whole module is shielded; then, the client executes a rendering function render ($ template, $ data), and renders the template and the source data; then, the client executes a post-rendering hook function, after _ render ($ render _ data, $ user _ agent), where "render _ data" is a rendering result, and the post-rendering hook function is used to check whether the rendering result has a content problem, for example, for data corresponding to a module including an asynchronous field, check whether the rendering result includes data obtained by an asynchronous request, for example, in a case where the module includes four sub-modules, check whether all the four sub-modules are displayed in the rendering result. When the content problem exists in the rendering result detected by the post-rendering hook function, shielding data corresponding to the module with the content problem; and when the rendering result is checked to have no content problem through the post-rendering hook function, displaying the rendering result in the channel page.
In order to better understand the content of the embodiment of the present invention, the present invention provides a schematic page diagram of a client as shown in fig. 8, taking a first page of the client as an example, the top is 5 channel names, which are respectively "update", "refine", "arrange", "youth soul" and "girl heart", each channel name corresponds to a channel page, and what is shown in fig. 8 is the channel page of "refine", it is worth explaining which channel page is displayed first and the sequence between the channel names is configured through the above "stick" field. The search bar component 81 under the channel name may be configured by the above "config" field. Of course, the channel name and the region where the channel name is located may also be configured as a component. Below the search bar component 81, there are 4 modules, module 82, module 83, module 84, and module 85, where the module 82 includes three sub-modules, "caricature 2", "caricature 3", and "caricature 4", respectively, which may be configured via the above "children" field. The text present in the module may be configured by the above "view" field, for example, the text of "cartoon 2" and "1/137" in the sub-module 831 included in the module 83. Of course, the text can also be configured through the "data" field and rendered for display.
In order to better understand the contents of the embodiment of the present invention, the present invention provides another schematic page diagram of the client as shown in fig. 9, taking the "my" page of the client as an example, and the top is a component 91 including "user a", "check-in benefits" and a level prompt, which can be configured through the above "config" field. Under the component 91, there are a module 92, a module 93, a module 94, a module 95, and a module 96 in sequence, and similarly, sub-modules included in the modules may be configured by the above "children" field, such as sub-modules of "comic 2", "comic 3", "comic 4", "comic 1", and "offline download" included in the module 93, or sub-modules of "today's task", "my present", "comma-coin store", and "activity" included in the module 95, where the sub-module of "comic 2" is shown as a sub-module 931 in fig. 9, and the sub-module of "offline download" is shown as a sub-module 932 in fig. 9.
For better understanding of the contents of the embodiments of the present invention, the present invention provides a schematic diagram of a configuration page of a server as shown in fig. 10, channel names including "update", "select", and "rank" are listed, a currently configured channel page corresponds to the channel name of "select", and fig. 10 shows a channel page identification 101 of the currently configured channel page. In addition, fig. 10 also includes a filter attribute 102, i.e., "male," which is merely an example and may specifically be the first filter attribute above, or the second filter attribute. The channel page identifier 101 corresponds to a plurality of modules, such as "Banner", "recently viewed" and "free reading card" in fig. 10. Each module is configured with a corresponding module identifier, such as the module identifier 103 of the "Banner" module in fig. 10, and in addition, the name of each module can be configured, which is convenient for the management of the background personnel. In the data corresponding to the module, fig. 10 shows three configurable contents, namely, an event, a main element, and a title, and of course, according to different actual application scenarios, configurable contents may be added or part of the configurable contents may be deleted, which is not limited. The main elements and the titles are contents to be displayed in data corresponding to the modules, when an event indicates that a user performs interactive operation on the modules, the triggered operation is performed, the contents under the event can be configured to be a target page name and a target page state, and of course, the contents can also be configured to be a data address as shown in fig. 10.
Continuing with the exemplary structure of the client information presentation device 455 implemented as a software module provided by the embodiment of the present invention, in some embodiments, as shown in fig. 2A, the software module stored in the client information presentation device 455 of the memory 450 may include: an obtaining module 4551, configured to obtain data corresponding to each module related to a skeleton page of the client; the first display module 4552 is configured to obtain a style name in data corresponding to the module, and display content to be displayed in the data corresponding to the module in the skeleton page based on a style corresponding to the style name; a sending module 4553, configured to send, to a server, a target page name and a target page state in data corresponding to the module in response to an interaction operation on the module; a receiving module 4554, configured to receive jump data corresponding to the module and returned by the server, where the jump data is obtained by the server by determining a data address according to the target page name and the target page state and obtaining the data address; and a second display module 4555, configured to display the target page according to the module jump data.
In some embodiments, information presentation device 455 of the client further comprises: the identification packaging module is used for acquiring a client identification of the client and packaging the client identification into a page data request; the page request module is used for sending the page data request to a server and acquiring data corresponding to a skeleton page returned by the server, wherein the data corresponding to the skeleton page is obtained by screening according to the client identification when the server responds to the page data request; and the construction module is used for constructing the skeleton page according to the data corresponding to the skeleton page.
In some embodiments, the obtaining module 4551 is further configured to: packaging the client identification and the page identification of the skeleton page into a module data request; and sending the module data request to the server, and acquiring data corresponding to the module returned by the server, wherein the data corresponding to the module is obtained by screening according to the client identifier and the page identifier when the server responds to the module data request.
In some embodiments, information presentation device 455 of the client further comprises: and the style acquisition module is used for acquiring the style corresponding to the style name sent by the server and storing the style.
In some embodiments, information presentation device 455 of the client further comprises: the re-acquisition module is used for re-acquiring the data corresponding to the module when the data corresponding to the module comprises the asynchronous field; and the updating display module is used for updating and displaying the content to be displayed in the acquired data in the skeleton page according to the style name in the acquired data.
In some embodiments, information presentation device 455 of the client further comprises: the cache module is used for caching the data corresponding to the module; and the cache display module is used for acquiring the style name in the cached data corresponding to the module when the client is in an off-line state, and displaying the content to be displayed in the cached data corresponding to the module in the skeleton page based on the style corresponding to the style name.
In some embodiments, information presentation device 455 of the client further comprises: and the shielding module is used for shielding the data corresponding to the module when the content to be displayed in the data corresponding to the module is empty or the data corresponding to the module comprises a style name indicating shielding.
In some embodiments, the obtaining module 4551 is further configured to: and responding to the selection operation of the skeleton page of the client, and acquiring data corresponding to each module related to the selected skeleton page.
In some embodiments, information presentation device 455 of the client further comprises: and the refreshing module is used for responding to the refreshing operation on the skeleton page, re-acquiring data corresponding to each module related to the skeleton page, acquiring the style name in the data corresponding to the module, and displaying the content to be displayed in the data corresponding to the module in the skeleton page based on the style corresponding to the style name.
Continuing with the exemplary structure in which the information presentation device 255 of the server provided by the embodiment of the present invention is implemented as a software module, in some embodiments, as shown in fig. 2B, the software module stored in the information presentation device 255 of the server of the memory 250 may include: a first background sending module 2551, configured to send data corresponding to each module related to a skeleton page of a client to the client, so that the client obtains a style name in the data corresponding to the module, and displays, in the skeleton page, to-be-displayed content in the data corresponding to the module based on a style corresponding to the style name; a page information obtaining module 2552, configured to obtain a name and a state of a target page sent by the client; a skip data obtaining module 2553, configured to determine a data address according to the target page name and the target page state, and obtain skip data according to the data address; a second background sending module 2554, configured to send the skip data to the client, so that the client displays a target page according to the skip data.
In some embodiments, the information presentation device 255 of the server further comprises: the identification acquisition module is used for acquiring the page data request sent by the client and determining the client identification in the page data request; the attribute determining module is used for determining a first filtering attribute included in data corresponding to at least two skeleton pages; and the screening module is used for screening out a first filtering attribute which accords with the client identification, and sending data corresponding to the skeleton page comprising the first filtering attribute to the client so that the client constructs the skeleton page according to the data corresponding to the skeleton page.
In some embodiments, the first background sending module 2551 is further configured to: acquiring a module data request sent by the client, and determining a client identifier and a page identifier in the module data request; determining data corresponding to at least two modules corresponding to the page identification, and determining a second filtering attribute included in the data corresponding to the modules; and screening out a second filtering attribute which accords with the client identification, and sending data corresponding to a module comprising the second filtering attribute to the client.
In some embodiments, the information presentation device 255 of the server further comprises: and the style sending module is used for sending a style corresponding to the style name to the client so as to enable the client to store the style.
In some embodiments, the first background sending module 2551 is further configured to: when the data corresponding to the module comprises the asynchronous field, replacing the content to be displayed in the data corresponding to the module with set content, and sending the replaced data corresponding to the module to the client; and when a request of the client for the data corresponding to the module is received again, sending the data corresponding to the module containing the content to be displayed to the client.
Embodiments of the present invention provide a storage medium storing executable instructions, where the executable instructions are stored, and when executed by a processor, will cause the processor to execute a method provided by an embodiment of the present invention, for example, an information presentation method of a client or an information presentation method of a server as described above.
In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In summary, in the embodiments of the present invention, based on the native technology, the server sends the data corresponding to the skeleton page and the data corresponding to the module to the client, so as to implement the modular display in the skeleton page, and the background staff can modify the data corresponding to the skeleton page and the data corresponding to the module in the server, so that the page structure of the client and the skip logic in the module can be dynamically updated without updating the version of the client at the client, thereby improving the flexibility of modifying the page structure and implementing the skip.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (10)

1. An information display method of a client is characterized by comprising the following steps:
acquiring data corresponding to each module related to a skeleton page of a client;
acquiring a style name in data corresponding to the module, and displaying content to be displayed in the data corresponding to the module based on a style corresponding to the style name in the skeleton page;
responding to the interactive operation of the module, and sending a target page name and a target page state in the data corresponding to the module to a server;
receiving skip data corresponding to the module, returned by the server, wherein the skip data are obtained by determining a data address by the server according to the target page name and the target page state and acquiring the data address;
and displaying a target page according to the jumping data of the module.
2. The information presentation method according to claim 1, wherein before the obtaining of the data corresponding to each module related to the skeleton page of the client, the method further comprises:
acquiring a client identifier of the client, and packaging the client identifier into a page data request;
sending the page data request to a server, and acquiring data corresponding to a skeleton page returned by the server, wherein the data corresponding to the skeleton page is obtained by screening according to the client identification when the server responds to the page data request;
and constructing the skeleton page according to the data corresponding to the skeleton page.
3. The information presentation method according to claim 1, wherein the obtaining data corresponding to each module related to the skeleton page of the client comprises:
packaging the client identification and the page identification of the skeleton page into a module data request;
and sending the module data request to the server, and acquiring data corresponding to the module returned by the server, wherein the data corresponding to the module is obtained by screening according to the client identifier and the page identifier when the server responds to the module data request.
4. The information presentation method according to any one of claims 1 to 3, further comprising:
and acquiring the style corresponding to the style name sent by the server, and storing the style.
5. An information display method of a server is characterized by comprising the following steps:
sending data corresponding to each module related to a skeleton page of a client to the client, so that the client acquires a style name in the data corresponding to the module, and displaying contents to be displayed in the data corresponding to the module in the skeleton page based on a style corresponding to the style name;
acquiring a target page name and a target page state sent by the client;
determining a data address according to the target page name and the target page state, and acquiring jump data according to the data address;
and sending the skipping data to the client so that the client displays a target page according to the skipping data.
6. The information presentation method according to claim 5, wherein before sending the data corresponding to each module related to the skeleton page of the client to the client, the method further comprises:
acquiring a page data request sent by the client, and determining a client identifier in the page data request;
determining a first filtering attribute included in data corresponding to at least two skeleton pages;
screening out a first filtering attribute which accords with the client identification, and sending data corresponding to the skeleton page comprising the first filtering attribute to the client so that the client can construct the skeleton page according to the data corresponding to the skeleton page.
7. The information presentation method of claim 5, wherein the sending data corresponding to the respective modules related to the skeleton page of the client to the client comprises:
acquiring a module data request sent by the client, and determining a client identifier and a page identifier in the module data request;
determining data corresponding to at least two modules corresponding to the page identification, and determining a second filtering attribute included in the data corresponding to the modules;
and screening out a second filtering attribute which accords with the client identification, and sending data corresponding to a module comprising the second filtering attribute to the client.
8. The information presentation method according to any one of claims 5 to 7, further comprising:
and sending a style corresponding to the style name to the client so that the client stores the style.
9. An information presentation apparatus of a client, comprising:
the acquisition module is used for acquiring data corresponding to each module related to the skeleton page of the client;
the first display module is used for acquiring the style name in the data corresponding to the module and displaying the content to be displayed in the data corresponding to the module based on the style corresponding to the style name in the skeleton page;
the sending module is used for responding to the interactive operation of the module and sending the target page name and the target page state in the data corresponding to the module to the server;
the receiving module is used for receiving the jumping data which is returned by the server and corresponds to the module, wherein the jumping data is obtained by the server according to the target page name and the target page state and determining a data address;
and the second display module is used for displaying the target page according to the jumping data of the module.
10. An electronic device, comprising:
a memory for storing executable instructions;
a processor, configured to implement the information presentation method of the client according to any one of claims 1 to 4 or the information presentation method of the server according to any one of claims 5 to 8 when executing the executable instructions stored in the memory.
CN201910690782.9A 2019-07-29 2019-07-29 Information display method and device and electronic equipment Pending CN112307377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910690782.9A CN112307377A (en) 2019-07-29 2019-07-29 Information display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910690782.9A CN112307377A (en) 2019-07-29 2019-07-29 Information display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112307377A true CN112307377A (en) 2021-02-02

Family

ID=74330085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910690782.9A Pending CN112307377A (en) 2019-07-29 2019-07-29 Information display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112307377A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989249A (en) * 2021-02-19 2021-06-18 北京皮尔布莱尼软件有限公司 Page display method, computing device and storage medium
CN114265658A (en) * 2021-12-24 2022-04-01 中国农业银行股份有限公司 Page display method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system
CN108763551A (en) * 2018-06-01 2018-11-06 阿里巴巴集团控股有限公司 Page rendering method, apparatus, server and computer readable storage medium
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN110046021A (en) * 2019-05-21 2019-07-23 北京字节跳动网络技术有限公司 A kind of page display method, device, system, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN108763551A (en) * 2018-06-01 2018-11-06 阿里巴巴集团控股有限公司 Page rendering method, apparatus, server and computer readable storage medium
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN110046021A (en) * 2019-05-21 2019-07-23 北京字节跳动网络技术有限公司 A kind of page display method, device, system, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989249A (en) * 2021-02-19 2021-06-18 北京皮尔布莱尼软件有限公司 Page display method, computing device and storage medium
CN114265658A (en) * 2021-12-24 2022-04-01 中国农业银行股份有限公司 Page display method, device and equipment
CN114265658B (en) * 2021-12-24 2024-03-01 中国农业银行股份有限公司 Page display method, device and equipment

Similar Documents

Publication Publication Date Title
CN111552473B (en) Application processing method, device and equipment
CN108924626B (en) Picture generation method, device, equipment and storage medium
CN107908399B (en) Page development method and device
CN107704243B (en) Front-end interface construction method and device, computer equipment and storage medium
US20230111594A1 (en) Simplified website creation, configuration, and customization system
US20090235230A1 (en) System and method for presentation of cross organizational applications
CN112307377A (en) Information display method and device and electronic equipment
CN112711731A (en) Data point burying method, device, equipment and storage medium
CN113792208B (en) Picture interaction method, device, equipment, medium and program product based on webpage
CN115687831A (en) Web page customization method and device, electronic equipment and storage medium
CN115934238A (en) Interface display method and device, computer equipment and storage medium
CN114968755A (en) Page testing method and device and computer readable storage medium
CN114003213A (en) Data processing method, device and equipment
CN116931895A (en) Processing method, device and equipment of composite component
CN116304422A (en) Card generation system, card display method, data processing method and device
KR20150099016A (en) A system for providing an application developing environment
KR20150099279A (en) A system for providing an application developing environment
KR20150098895A (en) A device for providing an application developing environment
CN117369815A (en) Floor page generation method, information processing method and page display method
KR20150097190A (en) A system for providing an application developing environment
CN118276851A (en) User interaction interface editing method, electronic equipment and storage medium
CN117111787A (en) Method, device and program product for setting shortcut key on UI (user interface)
CN118092883A (en) Front-end item nesting method and device, storage medium and computer equipment
CN116932082A (en) Method, device, equipment and storage medium for generating popup configuration file
KR20150099222A (en) A device for providing an application developing environment

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