CN107798064B - Page processing method, electronic device and computer readable storage medium - Google Patents

Page processing method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN107798064B
CN107798064B CN201710852173.XA CN201710852173A CN107798064B CN 107798064 B CN107798064 B CN 107798064B CN 201710852173 A CN201710852173 A CN 201710852173A CN 107798064 B CN107798064 B CN 107798064B
Authority
CN
China
Prior art keywords
page
intelligent terminal
operating system
native
screen display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710852173.XA
Other languages
Chinese (zh)
Other versions
CN107798064A (en
Inventor
郑映锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201710852173.XA priority Critical patent/CN107798064B/en
Publication of CN107798064A publication Critical patent/CN107798064A/en
Application granted granted Critical
Publication of CN107798064B publication Critical patent/CN107798064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention discloses a page processing method, electronic equipment and a computer readable storage medium, wherein the page processing method comprises the following steps: receiving a page access request of the intelligent terminal, wherein the page access request comprises: an identification of a page currently requested to be accessed; if the page associated with the identifier comprises a native page and a non-native page, judging whether an operating system of the intelligent terminal supports the display of the native page, and determining the current screen display direction of the intelligent terminal; if the operating system of the intelligent terminal supports the display of the native page, pushing the native page which is associated with the identifier and is matched with the current screen display direction of the intelligent terminal to the intelligent terminal; and if the operating system of the intelligent terminal does not support the display of the native page, pushing a non-native page which is associated with the identifier and is matched with the current screen display direction of the intelligent terminal to the intelligent terminal. The technical scheme provided by the invention can improve the page display effect of the intelligent terminal.

Description

Page processing method, electronic device and computer readable storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a page processing method, electronic equipment and a computer readable storage medium.
Background
With the development of communication technology, stream application and light application are introduced, wherein the stream application is a technology (streaming download technology) which can enable an installation package of an application program to be used and downloaded at the same time, and the light application is a technology which can enable the application program to be used as a search without downloading.
The application program is convenient for users to use in both streaming application and light application, however, the pages accessed are pages generated based on HTML5(HTML5 is the hypertext markup language with 5 th major modification) (for convenience of description, the pages generated based on HTML5 are referred to as H5 pages later), while the H5 pages have the defect of low running performance, especially some pages containing animation effect, and obvious pause occurs in the loading and displaying process of the pages.
Disclosure of Invention
The invention provides a page processing method, electronic equipment and a computer readable storage medium, which are used for improving the page display effect of an intelligent terminal.
A first aspect of the present invention provides a page processing method, including:
receiving a page access request of an intelligent terminal, wherein the page access request comprises: an identification of a page currently requested to be accessed;
if the page associated with the page identifier comprises a native page and a non-native page, judging whether an operating system of the intelligent terminal supports display of the native page, and determining the current screen display direction of the intelligent terminal, wherein the screen display direction is divided into vertical screen display and horizontal screen display;
if the operating system of the intelligent terminal supports the display of a native page, pushing the native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
if the operating system of the intelligent terminal does not support the display of the native page, pushing a non-native page which is associated with the identification and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identification of the page.
A second aspect of the present invention provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the following steps:
receiving a page access request of an intelligent terminal, wherein the page access request comprises: an identification of a page currently requested to be accessed;
if the page associated with the page identifier comprises a native page and a non-native page, judging whether an operating system of the intelligent terminal supports display of the native page, and determining the current screen display direction of the intelligent terminal, wherein the screen display direction is divided into vertical screen display and horizontal screen display;
if the operating system of the intelligent terminal supports the display of a native page, pushing the native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
if the operating system of the intelligent terminal does not support the display of the native page, pushing a non-native page which is associated with the identification and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identification of the page.
A third aspect of the present invention provides a computer-readable storage medium storing a computer program which, when executed by at least one processor, performs the steps of:
receiving a page access request of an intelligent terminal, wherein the page access request comprises: an identification of a page currently requested to be accessed;
if the page associated with the page identifier comprises a native page and a non-native page, judging whether an operating system of the intelligent terminal supports display of the native page, and determining the current screen display direction of the intelligent terminal, wherein the screen display direction is divided into vertical screen display and horizontal screen display;
if the operating system of the intelligent terminal supports the display of a native page, pushing the native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
if the operating system of the intelligent terminal does not support the display of the native page, pushing a non-native page which is associated with the identification and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identification of the page.
As can be seen from the above, the solution of the present invention can support page access requests of various intelligent terminals with different operating systems, and when receiving a page access request of an intelligent terminal, by introducing a push detection mechanism (that is, when a page associated with an identifier of a page in the page access request includes a native page and a non-native page, determining whether the operating system of the intelligent terminal supports display of the native page, and determining a current screen display direction of the intelligent terminal, if so, pushing the native page associated with the identifier and matching with the current screen display direction of the intelligent terminal to the intelligent terminal, and if not, pushing the non-native page associated with the identifier and adapting to the current screen display direction of the intelligent terminal to the intelligent terminal, on the one hand, enabling cross-platform native page push to be possible (for example, in a scenario where corresponding native page and non-native page are configured for the same application program interface in advance, according to the scheme of the invention, the native page used for displaying the application program interface can be pushed to various intelligent terminals supporting native page display, so that the various intelligent terminals can access the application program interface without installing the application program, thereby realizing cross-platform native page push, and the native page is smoother in the loading and displaying process compared with a non-native page (such as H5 page), therefore, the page display effect of the intelligent terminal can be improved by pushing the native page to the intelligent terminal supporting native page display. On the other hand, the page matched with the display direction of the screen of the intelligent terminal is pushed, so that the page can be better displayed on the intelligent terminal, and the page display effect of the intelligent terminal is improved in a certain procedure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a page processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a page processing method according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention;
fig. 4 is a schematic diagram of a program module structure of the page processing program provided in the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a page processing method according to an embodiment of the present invention is described, where the page processing method includes:
step 101, receiving a page access request of an intelligent terminal;
wherein, the page access request comprises: an identification of the page currently requested to be accessed.
In this embodiment of the present invention, a user may directly click a website (for example, a Uniform Resource Locator (URL) address) to trigger the page access request, or the user may also click a link in a currently displayed page to trigger the page access request, or the user may also trigger the page access request in another manner, which is not limited herein.
When the page access request is triggered, the identifier of the corresponding page (i.e. the identifier of the page currently requested to be accessed) is carried in the page access request and sent out, so that an upper device (e.g. a server) can receive the page access request carrying the identifier.
Step 102, if the page associated with the identifier of the page includes a native page and a non-native page, determining whether an operating system of the intelligent terminal supports display of the native page, and determining a current screen display direction of the intelligent terminal;
in the embodiment of the present invention, two types of pages may be configured for the same content (for example, the same application program interface), that is, a native page (for example, native page) and a non-native page (for example, H5 page) may be configured for the same content (for example, the same application program interface), so as to improve the extensibility of the page processing method of the present invention, and make the page processing method adaptable to more types of intelligent terminals. On the basis, the pages matched with the intelligent terminal in different screen display directions are further distributed and configured for each type of page, so that the pages have a better display effect in the matched screen display directions. The screen display direction is divided into vertical screen display and horizontal screen display, the vertical screen display is conventional display when the intelligent terminal is vertically placed, and the horizontal screen display is conventional display when the intelligent terminal is vertically placed. Specifically, the smart terminal may be triggered to detect the screen display direction of the smart terminal based on a sensor (e.g., one or more of a gyroscope, a gravity sensor, an acceleration sensor, etc.) inside the smart terminal, so as to feed back a detection result obtained by the detection, and the current screen display direction of the smart terminal may be determined based on the detection result fed back by the smart terminal in step 102.
In step 102, when the page associated with the identifier (i.e., the identifier of the page carried in the page access request) includes a native page and a non-native page (i.e., when it is detected that there are both a native page and a non-native page in the page associated with the identifier (i.e., the identifier of the page carried in the page access request)), it is determined whether the operating system of the intelligent terminal supports display of a native page and determines a current screen display direction of the intelligent terminal, if so, step 103 is performed, and if not, step 104 is performed.
In an application scenario, the intelligent terminal may carry real-time operating system information of the intelligent terminal in the page access request each time the page access request is triggered, so that step 102 may determine whether the operating system of the intelligent terminal supports display of a native page based on the operating system information carried in the page access request. Specifically, the operating system information may include an operating system type, and the "determining whether the operating system of the intelligent terminal supports display of a native page based on the operating system information carried in the page access request" may be represented as: and judging whether the operating system of the intelligent terminal supports the display of the native page or not based on the type of the operating system carried in the page access request. For example, for an intelligent terminal with an operating system of a windows system, it is determined that the operating system of the intelligent terminal does not support display of a native page, and for an intelligent terminal with an operating system of an ios system or an android system, it is determined that the operating system of the intelligent terminal supports display of a native page. Or, the operating system information may include an operating system type and a system version number, and the "determining, based on the operating system information carried in the page access request, whether the operating system of the intelligent terminal supports display of a native page" may be represented as: and judging whether the operating system of the intelligent terminal supports the display of the native page or not based on the type and the version number of the operating system carried in the page access request. For example, if a native page included in a page requested to be accessed currently uses a feature supported only by an android system with a version number of 6.6 or more or an ios system with a version number of 8.0 or more, it is determined that the operating system of the intelligent terminal does not support display of the native page for the intelligent terminal with the operating system type of the android system but the version number of the operating system of the intelligent terminal of less than 6.6; and for the intelligent terminal with the operating system type of the android system and the version number of the operating system not lower than 6.6, judging that the operating system of the intelligent terminal supports the display of the native page. Similarly, for an intelligent terminal with an operating system type of ios system and a version number of the operating system lower than 8.0, it is determined that the operating system of the intelligent terminal does not support display of the native page, and for an intelligent terminal with an operating system type of ios system and a version number of the operating system not lower than 8.0, it is determined that the operating system of the intelligent terminal supports display of the native page. In the embodiment of the present invention, the types of the operating system include, but are not limited to: an android system, an ios system, and a windows system.
In another application scenario, since the server generally provides not only one page but also multiple pages capable of implementing multiple services, the operating system of a general intelligent terminal does not change in a short time. Therefore, in the embodiment of the invention, the operating system information of the intelligent terminal can be carried in the page access request triggered only when the intelligent terminal does not access the corresponding server. The page access request triggered when the intelligent terminal accesses the corresponding server can not carry the operating system information of the intelligent terminal, so that the bandwidth occupied by data transmission is reduced. Wherein, the corresponding server is a server providing the page associated with the page access request. Then, in the embodiment of the present invention, after step 101, the method may further include: when the received page access request contains the operating system information of the intelligent terminal, recording the operating system information of the intelligent terminal or updating the recorded operating system information of the intelligent terminal, so that whether the operating system of the intelligent terminal supports the display of a native page or not is judged based on the recorded operating system information of the intelligent terminal. As illustrated below, the server S is configured to provide a plurality of pages of the application a, including: the method comprises a page A1, a page A2 and a page A3, wherein the page A1 is a main interface of an application A, the page A2 and the page A3 can be accessed by triggering a link on a page A1, when an intelligent terminal triggers a page access request of the page A1 by clicking a certain website under the condition that a server S is not accessed (the intelligent terminal can not install the application A), the current operating system information of the intelligent terminal can be carried in the page access request of the page A1, and when the intelligent terminal triggers the page access request of the page A2 or the page A3 by clicking a certain link at a page A1, the current operating system information of the intelligent terminal can not be carried in the page access request of the page A2 or the page A3 because the current operating system information of the intelligent terminal is in the state of accessing the server S. Further, in this application scenario, the determining whether the operating system of the intelligent terminal supports display of a native page may include: if the page access request contains the operating system information of the intelligent terminal, then: judging whether the operating system of the intelligent terminal supports the display of a native page or not based on the operating system information carried in the page access request; if the page access request does not contain the operating system information of the intelligent terminal, then: and judging whether the operating system of the intelligent terminal supports the display of the native page or not based on the recorded operating system information of the intelligent terminal.
103, pushing a native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
in the embodiment of the present invention, when it is determined in step 102 that the operating system of the intelligent terminal supports display of a native page, a native page associated with the identifier and matching with the current screen display direction of the intelligent terminal is pushed to the intelligent terminal, so that the intelligent terminal loads and displays the native page through a display screen.
104, pushing a non-native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
in the embodiment of the present invention, when it is determined in step 102 that the operating system of the intelligent terminal does not support display of a native page, a non-native page associated with the identifier and matching with the current screen display direction of the intelligent terminal is pushed to the intelligent terminal, so that the intelligent terminal loads and displays the non-native page through a display screen.
Optionally, in the embodiment of the present invention, if the page associated with the identifier carried in the received page access request only includes a non-native page, the non-native page associated with the identifier may be pushed to the intelligent terminal directly according to the identifier of the page; or if the page associated with the identifier carried in the received page access request only contains a non-native page, the current screen display direction of the intelligent terminal can be further determined, and the non-native page associated with the identifier and matched with the current screen display direction of the intelligent terminal is pushed to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page; or if the page associated with the identifier carried in the received page access request does not exist, returning error information to the intelligent terminal to prompt that the current access request does not exist.
It should be noted that the page processing method in the embodiment of the present invention may be implemented by a page processing apparatus, and the page processing apparatus may be specifically integrated in an electronic device such as a server, a personal computer, and the like.
As can be seen from the above, the technical solution in the embodiment of the present invention can support page access requests of various intelligent terminals with different operating systems, and when a page access request of an intelligent terminal is received, by introducing a push detection mechanism (that is, when a page associated with an identifier of a page in the page access request includes a native page and a non-native page, determining whether the operating system of the intelligent terminal supports display of the native page, and determining a current screen display direction of the intelligent terminal, if so, pushing a native page associated with the identifier and matching with the current screen display direction of the intelligent terminal to the intelligent terminal, and if not, pushing a non-native page associated with the identifier and adapting to the current screen display direction of the intelligent terminal to the intelligent terminal), on one hand, cross-platform native page push is possible (for example, under the scene that corresponding native pages and non-native pages are configured for the same application program interface in advance, the native pages used for displaying the application program interface can be pushed to various intelligent terminals supporting native page display through the scheme of the invention, so that the various intelligent terminals can access the interface of the application program without installing the application program, and thus cross-platform native page pushing is realized, and the native pages are smoother in the loading and displaying process compared with the non-native pages (such as H5 pages), so that the page display effect of the intelligent terminal can be improved by pushing the native pages to the intelligent terminals supporting native page display. On the other hand, the page matched with the display direction of the screen of the intelligent terminal is pushed, so that the page can be better displayed on the intelligent terminal, and the page display effect of the intelligent terminal is improved in a certain procedure.
Example two
The difference between the embodiment of the present invention and the first embodiment is that the embodiment of the present invention divides the native page into a high-quality native page and a low-quality native page, and determines the type of the page to be sent by further acquiring the real-time network transmission speed of the intelligent terminal, thereby improving the flexibility of page pushing. Referring to fig. 2, a page processing method according to an embodiment of the present invention includes:
step 201, receiving a page access request of an intelligent terminal;
wherein, the page access request comprises: an identification of the page currently requested to be accessed.
In this embodiment of the present invention, the user may directly click a website (for example, a URL address) to trigger the page access request, or the user may click a link in a currently displayed page to trigger the page access request, or the user may trigger the page access request in other manners, which is not limited herein.
When the page access request is triggered, the identifier of the corresponding page (i.e. the identifier of the page currently requested to be accessed) is carried in the page access request and sent out, so that an upper device (e.g. a server) can receive the page access request carrying the identifier.
Step 202, if the page associated with the identifier of the page includes a native page and a non-native page, determining whether an operating system of the intelligent terminal supports display of the native page, and determining a current screen display direction of the intelligent terminal;
in the embodiment of the present invention, two types of pages may be configured for the same content (for example, the same application program interface), that is, a native page (for example, native page) and a non-native page (for example, H5 page) may be configured for the same content (for example, the same application program interface), so as to improve the extensibility of the page processing method of the present invention, and make the page processing method adaptable to more types of intelligent terminals. On the basis, the pages matched with the intelligent terminal in different screen display directions are further distributed and configured for each type of page, so that the pages have a better display effect in the matched screen display directions. The screen display direction is divided into vertical screen display and horizontal screen display, the vertical screen display is conventional display when the intelligent terminal is vertically placed, and the horizontal screen display is conventional display when the intelligent terminal is vertically placed. Specifically, the smart terminal may be triggered to detect the screen display direction of the smart terminal based on a sensor (e.g., one or more of a gyroscope, a gravity sensor, an acceleration sensor, etc.) inside the smart terminal, so as to feed back a detection result obtained by the detection, and the current screen display direction of the smart terminal may be determined based on the detection result fed back by the smart terminal in step 202.
In step 202, when the page associated with the identifier (i.e., the identifier of the page carried in the page access request) includes a native page and a non-native page (i.e., when it is detected that there are both a native page and a non-native page in the page associated with the identifier (i.e., the identifier of the page carried in the page access request)), it is determined whether the operating system of the intelligent terminal supports display of a native page and determines a current screen display direction of the intelligent terminal, if so, step 203 is performed, and if not, step 206 is performed.
Specifically, step 202 may refer to the description of step 102 in the embodiment shown in fig. 1, and is not described herein again.
Step 203, judging whether the current network transmission speed of the intelligent terminal is greater than a preset network speed threshold value;
in the embodiment of the present invention, the native pages are divided into: the method comprises the steps of obtaining a high-quality native page and a low-quality native page, wherein the resolution of picture resources contained in the high-quality native page is higher than that of the picture resources contained in the low-quality native page. For example, the high-quality native page may include a high-definition picture with a size of 100 kilobytes, and the low-quality native page may include a common picture with a size of 1 kilobyte.
In the embodiment of the present invention, the intelligent terminal may trigger the page access request and feed back the real-time network transmission speed of the intelligent terminal, so that step 203 determines whether the current network transmission speed of the intelligent terminal is greater than a preset network speed threshold. Or, the real-time network transmission speed of the intelligent terminal may be actively requested from the intelligent terminal, and whether the current network transmission speed of the intelligent terminal is greater than a preset network speed threshold is determined based on the network transmission speed fed back by the intelligent terminal, which is not limited herein.
In step 203, if the current network transmission speed of the intelligent terminal is determined not to be greater than the network speed threshold, step 204 is executed, and if the current network transmission speed of the intelligent terminal is determined to be greater than the network speed threshold, step 205 is executed.
Step 204, pushing a low-quality native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
in the embodiment of the present invention, when it is determined in step 203 that the current network transmission speed of the intelligent terminal is not greater than the preset network speed threshold, a low-quality native page associated with the identifier and matched with the current screen display direction of the intelligent terminal is pushed to the intelligent terminal, so that the intelligent terminal can load and display the low-quality native page through a display screen faster.
Step 205, pushing a high-quality native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
in the embodiment of the present invention, when it is determined in step 203 that the current network transmission speed of the intelligent terminal is greater than the preset network speed threshold, a low-quality native page associated with the identifier and matching with the current screen display direction of the intelligent terminal is pushed to the intelligent terminal, so that the intelligent terminal can load and display the high-quality native page through a display screen, and obtain a better display effect.
Step 206, pushing a non-native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
in this embodiment of the present invention, when it is determined in step 202 that the operating system of the intelligent terminal does not support display of a native page, a non-native page associated with the identifier and matching with the current screen display direction of the intelligent terminal is pushed to the intelligent terminal, so that the intelligent terminal loads and displays the non-native page through a display screen.
Optionally, in the embodiment of the present invention, if the page associated with the identifier carried in the received page access request only includes a non-native page, the non-native page associated with the identifier may be pushed to the intelligent terminal directly according to the identifier of the page; if the page associated with the identifier carried in the received page access request only contains a non-native page, the current screen display direction of the intelligent terminal can be further determined, and the non-native page associated with the identifier and matched with the current screen display direction of the intelligent terminal is pushed to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page; or if the page associated with the identifier carried in the received page access request does not exist, returning error information to the intelligent terminal to prompt that the current access request does not exist.
It should be noted that the page processing method in the embodiment of the present invention may be implemented by a page processing apparatus, and the page processing apparatus may be specifically integrated in an electronic device such as a server, a personal computer, and the like.
As can be seen from the above, the technical solution in the embodiment of the present invention can support page access requests of various intelligent terminals with different operating systems, and when a page access request of an intelligent terminal is received, by introducing a push detection mechanism (that is, when a page associated with an identifier of a page in the page access request includes a native page and a non-native page, determining whether the operating system of the intelligent terminal supports display of the native page, and determining a current screen display direction of the intelligent terminal, if so, pushing a native page associated with the identifier and matching with the current screen display direction of the intelligent terminal to the intelligent terminal, and if not, pushing a non-native page associated with the identifier and adapting to the current screen display direction of the intelligent terminal to the intelligent terminal), on one hand, cross-platform native page push is possible (for example, under the scene that corresponding native pages and non-native pages are configured for the same application program interface in advance, the native pages used for displaying the application program interface can be pushed to various intelligent terminals supporting native page display through the scheme of the invention, so that the various intelligent terminals can access the interface of the application program without installing the application program, and thus cross-platform native page pushing is realized, and the native pages are smoother in the loading and displaying process compared with the non-native pages (such as H5 pages), so that the page display effect of the intelligent terminal can be improved by pushing the native pages to the intelligent terminals supporting native page display. On the other hand, the page matched with the display direction of the screen of the intelligent terminal is pushed, so that the page can be better displayed on the intelligent terminal, and the page display effect of the intelligent terminal is improved in a certain procedure. On the other hand, by configuring the high-quality native page and the low-quality native page, for the intelligent terminal supporting native page display, the appropriate native page is pushed in combination with the real-time network transmission speed of the intelligent terminal, so that the native page can be loaded and displayed quickly under the condition that the intelligent terminal network is poor, and the flexibility of page pushing is improved.
EXAMPLE III
Fig. 3 is a schematic diagram of an operating environment of a computer program (e.g., a page processing program) related to the page processing method according to the embodiment of the present invention, where, for convenience of description, only parts related to the embodiment of the present invention are shown.
In the embodiment of the present invention, the page processing program is installed and run in the electronic device. The electronic device may include, but is not limited to, one or more memories 31 (only one shown), one or more processors 32 (only one shown), the memories 31 and processors 32 being connected by a bus 33. Fig. 3 only shows an electronic device having components 31-33, but it is to be understood that not all of the shown components are required to be implemented, and that more components (e.g., a display, etc.) or fewer components may be implemented instead.
The storage 31 may in some embodiments be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 31 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device. Further, the memory 31 may also include both an internal storage unit and an external storage device of the electronic device. The memory 31 is used for storing application software installed in the electronic device and various data, such as program codes of the page processing method programs described above. The memory 31 may also be used to temporarily store data that has been output or is to be output.
The processor 32 may be a Central Processing Unit (CPU), microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 31 or Processing data, such as executing the page Processing program.
Further, referring to fig. 4 on the basis of fig. 3, fig. 4 is a program module diagram of a page processing program corresponding to the page processing method according to the first embodiment of the present invention. In the embodiment of the present invention, the page handler may be divided into one or more modules, and the one or more modules are stored in the memory 31 and executed by one or more processors (in this embodiment, the processor 32) to complete the present invention. For example, in fig. 4, the above-mentioned page processing program may be divided into a receiving module 41, a first judging module 42, a determining module 43, and a pushing module 44. The module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, which are more suitable than programs for describing the execution process of the page processing program in the electronic device. The following description will specifically describe the functions of the receiving module 41, the first judging module 42, the determining module 43 and the pushing module 44.
A receiving module 41, configured to receive a page access request of an intelligent terminal, where the page access request includes: an identification of a page currently requested to be accessed;
the first judging module 42 is configured to judge whether an operating system of the intelligent terminal supports display of a native page if a page associated with the identifier of the page includes the native page and a non-native page;
a determining module 43, configured to determine a current screen display direction of the intelligent terminal if a page associated with the identifier of the page includes a native page and a non-native page, where the screen display direction is divided into a vertical screen display and a horizontal screen display;
a pushing module 44, configured to, when the determination result of the first determining module 42 is yes, push, according to the screen display direction determined by the determining module 43 and the identifier of the page, a native page that is associated with the identifier and matches the current screen display direction of the intelligent terminal to the intelligent terminal; and when the judgment result of the first judgment module 42 is negative, pushing a non-native page which is associated with the identifier and is matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the screen display direction determined by the determination module 43 and the identifier of the page.
Optionally, the native page includes: the high-quality native page comprises a picture resource with a quality better than that of a picture resource comprised by the low-quality native page. The above page processing program may be further divided into: and a second judgment module.
The second judging module is used for judging whether the current network transmission speed of the intelligent terminal is greater than a preset network speed threshold value;
the pushing module 44 is specifically configured to, when the determination result of the first determining module 42 is yes and the determination result of the second determining module is no, push a low-quality native page, which is associated with the identifier and is matched with the current screen display direction of the intelligent terminal, to the intelligent terminal according to the screen display direction determined by the determining module 43 and the identifier of the page; when the judgment result of the first judgment module 42 is yes and the judgment result of the second judgment module is yes, according to the screen display direction determined by the determination module 43 and the identifier of the page, pushing a high-quality native page, which is associated with the identifier and is matched with the current screen display direction of the intelligent terminal, to the intelligent terminal.
Optionally, if the page access request is triggered without accessing the corresponding server, the page access request further includes: and operating system information of the intelligent terminal, wherein the corresponding server is a server for providing the page associated with the page access request. The above page processing program may be further divided into: a recording unit, configured to record the operating system information of the intelligent terminal or update the recorded operating system information of the intelligent terminal when the page access request received by the receiving module 41 includes the operating system information of the intelligent terminal.
Optionally, the first determining unit 42 is specifically configured to: when the page associated with the identifier of the page includes a native page and a non-native page, and the page access request received by the receiving module 41 includes the operating system information of the intelligent terminal, determining whether the operating system of the intelligent terminal supports display of the native page based on the operating system information carried in the page access request; when the page associated with the identifier of the page includes a native page and a non-native page, and the page access request received by the receiving module 41 does not include the operating system information of the intelligent terminal, it is determined whether the operating system of the intelligent terminal supports display of the native page based on the recorded operating system information of the intelligent terminal.
It should be understood that the electronic device in the embodiment of the present invention may be used to implement all technical solutions in the above method embodiments, and details and references of parts that are not described and mentioned in the embodiment of the present invention may be referred to the description of the above method embodiments, and are not described herein again.
As can be seen from the above, the technical solution in the embodiment of the present invention can support page access requests of various intelligent terminals with different operating systems, and when a page access request of an intelligent terminal is received, by introducing a push detection mechanism (that is, when a page associated with an identifier of a page in the page access request includes a native page and a non-native page, determining whether the operating system of the intelligent terminal supports display of the native page, and determining a current screen display direction of the intelligent terminal, if so, pushing a native page associated with the identifier and matching with the current screen display direction of the intelligent terminal to the intelligent terminal, and if not, pushing a non-native page associated with the identifier and adapting to the current screen display direction of the intelligent terminal to the intelligent terminal), on one hand, cross-platform native page push is possible (for example, under the scene that corresponding native pages and non-native pages are configured for the same application program interface in advance, the native pages used for displaying the application program interface can be pushed to various intelligent terminals supporting native page display through the scheme of the invention, so that the various intelligent terminals can access the interface of the application program without installing the application program, and thus cross-platform native page pushing is realized, and the native pages are smoother in the loading and displaying process compared with the non-native pages (such as H5 pages), so that the page display effect of the intelligent terminal can be improved by pushing the native pages to the intelligent terminals supporting native page display. On the other hand, the page matched with the display direction of the screen of the intelligent terminal is pushed, so that the page can be better displayed on the intelligent terminal, and the page display effect of the intelligent terminal is improved in a certain procedure.
For convenience and simplicity of description, the division of the functional units and modules is only used for illustration, and in practical applications, the functions may be distributed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each program module in the embodiments of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module may be implemented in the form of hardware or a program module.
The integrated module may be stored in a computer-readable storage medium if it is implemented in the form of a program module and sold or used as a separate product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the above methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A page processing method is characterized by comprising the following steps:
receiving a page access request of an intelligent terminal, wherein the page access request comprises: an identification of a page currently requested to be accessed;
if the page associated with the page identifier comprises a native page and a non-native page, judging whether an operating system of the intelligent terminal supports the display of the native page, and determining the current screen display direction of the intelligent terminal, wherein the screen display direction is divided into vertical screen display and horizontal screen display, corresponding native page and non-native page are respectively configured for the same content, and pages matched with different screen display directions of the intelligent terminal are respectively configured for different types of pages;
if the operating system of the intelligent terminal supports the display of a native page, pushing the native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
if the operating system of the intelligent terminal does not support the display of the native page, pushing a non-native page which is associated with the identification and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identification of the page.
2. The page processing method according to claim 1, wherein the native page is divided into: the quality of the picture resources contained in the high-quality native page is better than that of the picture resources contained in the low-quality native page;
the receiving of the page access request of the intelligent terminal further comprises: judging whether the current network transmission speed of the intelligent terminal is greater than a preset network speed threshold value or not;
the pushing of the native page associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal comprises: if the current network transmission speed of the intelligent terminal is not greater than the network speed threshold, pushing a low-quality native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal; and if the current network transmission speed of the intelligent terminal is greater than the network speed threshold value, pushing a high-quality native page which is associated with the identifier and is matched with the current screen display direction of the intelligent terminal to the intelligent terminal.
3. The page processing method according to claim 1 or 2, wherein if the page access request is triggered without accessing the corresponding server, the page access request further includes: operating system information of the intelligent terminal, wherein the corresponding server is a server for providing a page associated with the page access request;
the receiving of the page access request of the intelligent terminal further comprises:
and when the page access request contains the operating system information of the intelligent terminal, recording the operating system information of the intelligent terminal or updating the recorded operating system information of the intelligent terminal.
4. The page processing method according to claim 3, wherein the determining whether the operating system of the intelligent terminal supports display of native pages comprises:
if the page access request contains the operating system information of the intelligent terminal, then: judging whether an operating system of the intelligent terminal supports the display of a native page or not based on the operating system information carried in the page access request;
if the page access request does not contain the operating system information of the intelligent terminal, then: and judging whether the operating system of the intelligent terminal supports the display of the native page or not based on the recorded operating system information of the intelligent terminal.
5. The page processing method according to claim 4, wherein the operating system information includes: an operating system type and a system version number.
6. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a page access request of an intelligent terminal, wherein the page access request comprises: an identification of a page currently requested to be accessed;
if the page associated with the page identifier comprises a native page and a non-native page, judging whether an operating system of the intelligent terminal supports the display of the native page, and determining the current screen display direction of the intelligent terminal, wherein the screen display direction is divided into vertical screen display and horizontal screen display, corresponding native page and non-native page are respectively configured for the same content, and pages matched with different screen display directions of the intelligent terminal are respectively configured for different types of pages;
if the operating system of the intelligent terminal supports the display of a native page, pushing the native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identifier of the page;
if the operating system of the intelligent terminal does not support the display of the native page, pushing a non-native page which is associated with the identification and matched with the current screen display direction of the intelligent terminal to the intelligent terminal according to the current screen display direction of the intelligent terminal and the identification of the page.
7. The electronic device of claim 6, wherein the native page is divided into: the quality of the picture resources contained in the high-quality native page is better than that of the picture resources contained in the low-quality native page;
the receiving of the page access request of the intelligent terminal further comprises: judging whether the current network transmission speed of the intelligent terminal is greater than a preset network speed threshold value or not;
the pushing of the native page associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal comprises: if the current network transmission speed of the intelligent terminal is not greater than the network speed threshold, pushing a low-quality native page which is associated with the identifier and matched with the current screen display direction of the intelligent terminal to the intelligent terminal; and if the current network transmission speed of the intelligent terminal is greater than the network speed threshold value, pushing a high-quality native page which is associated with the identifier and is matched with the current screen display direction of the intelligent terminal to the intelligent terminal.
8. The electronic device according to claim 6 or 7, wherein if the page access request is triggered without accessing the corresponding server, the page access request further comprises: operating system information of the intelligent terminal, wherein the corresponding server is a server for providing a page associated with the page access request;
the receiving of the page access request of the intelligent terminal further comprises:
and when the page access request contains the operating system information of the intelligent terminal, recording the operating system information of the intelligent terminal or updating the recorded operating system information of the intelligent terminal.
9. The electronic device of claim 8, wherein the determining whether the operating system of the smart terminal supports display of native pages comprises:
if the page access request contains the operating system information of the intelligent terminal, then: judging whether an operating system of the intelligent terminal supports the display of a native page or not based on the operating system information carried in the page access request;
if the page access request does not contain the operating system information of the intelligent terminal, then: and judging whether the operating system of the intelligent terminal supports the display of the native page or not based on the recorded operating system information of the intelligent terminal.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by at least one processor, carries out the steps of the method according to any one of claims 1-5.
CN201710852173.XA 2017-09-19 2017-09-19 Page processing method, electronic device and computer readable storage medium Active CN107798064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710852173.XA CN107798064B (en) 2017-09-19 2017-09-19 Page processing method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710852173.XA CN107798064B (en) 2017-09-19 2017-09-19 Page processing method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107798064A CN107798064A (en) 2018-03-13
CN107798064B true CN107798064B (en) 2020-04-28

Family

ID=61531954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710852173.XA Active CN107798064B (en) 2017-09-19 2017-09-19 Page processing method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107798064B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810243A (en) * 2018-04-08 2018-11-13 珠海市魅族科技有限公司 Information displaying method, device, terminal and computer readable storage medium
CN110389758A (en) * 2018-04-16 2019-10-29 北京高德云图科技有限公司 A kind of style sheet processing method and processing device
CN110502167A (en) * 2018-05-18 2019-11-26 腾讯科技(深圳)有限公司 A kind of page index method, apparatus and storage medium
CN111897613A (en) * 2020-07-31 2020-11-06 平安普惠企业管理有限公司 Page access method and related equipment
CN113467878A (en) * 2021-07-15 2021-10-01 掌阅科技股份有限公司 Page horizontal and vertical screen display method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602227A (en) * 2015-02-02 2015-05-06 携程计算机技术(上海)有限公司 Network-adaptive mobile application data loading method
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal
CN105138340A (en) * 2015-09-15 2015-12-09 北京齐尔布莱特科技有限公司 Interaction method and system for Native and Web pages
CN105159960A (en) * 2015-08-21 2015-12-16 湖南亿谷科技发展股份有限公司 Webpage adaptive adjustment method and system
CN106445583A (en) * 2016-08-31 2017-02-22 广州品唯软件有限公司 Page display method, equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal
CN104602227A (en) * 2015-02-02 2015-05-06 携程计算机技术(上海)有限公司 Network-adaptive mobile application data loading method
CN105159960A (en) * 2015-08-21 2015-12-16 湖南亿谷科技发展股份有限公司 Webpage adaptive adjustment method and system
CN105138340A (en) * 2015-09-15 2015-12-09 北京齐尔布莱特科技有限公司 Interaction method and system for Native and Web pages
CN106445583A (en) * 2016-08-31 2017-02-22 广州品唯软件有限公司 Page display method, equipment and system

Also Published As

Publication number Publication date
CN107798064A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN106445583B (en) Page display method, equipment and system
CN107291759B (en) Method and device for processing browser page resources
CN108021356B (en) Cross-screen and cross-platform measurable live-action map organization method
CN111444455A (en) Browser compatible method, system, computer device and storage medium
CN112612982A (en) Webpage preloading method and device and computer equipment
CN109117153B (en) Application processing method, device, terminal and storage medium
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN102377793B (en) Flash interaction method and device based on mobile communication equipment terminal
CN105955980B (en) File downloading device and method
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
CN111783010A (en) Webpage blank page monitoring method, device, terminal and storage medium
US11262995B2 (en) Method and apparatus for downloading installation-free application
CN108009226B (en) Promotion content display implementation method based on intelligent terminal application and intelligent terminal
CN113934954A (en) Webpage first screen rendering method and device in application program
US9189633B2 (en) Download management method and device based on android browser
CN110209402B (en) Application installation method, electronic device and computer storage medium
US10990750B2 (en) Dynamically bundling web page resources
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
CN109189588B (en) Browser function implementation method, device, terminal and storage medium
US20150248347A1 (en) Content providing apparatus and method, and computer program product
US20140237133A1 (en) Page download control method, system and program for ie core browser
CN111176969B (en) Data processing method, device, equipment and storage medium
US9967316B2 (en) Accessing media item referenced in application
CN115190174A (en) Data processing method and device, computer equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20180612

Address after: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 200000 Xuhui District, Shanghai Kai Bin Road 166, 9, 10 level.

Applicant before: Shanghai Financial Technologies Ltd

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant