Page display method and device, medium and equipment
By directly obtaining identity information, avoiding user identity authentication, improving the loading efficiency and user experience of H5 pages, solving the problem of slow speed and experience separation caused by complex authentication during loading.
Patent Information
- Application Number
- CN202411609927.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-18
AI Technical Summary
When a user opens the H5 page through the client software, complex user identity authentication is required during the loading process, resulting in slow loading speed, split user experience, and difficult to unify the visual effects.
By directly obtaining identity information, avoiding complex user identity authentication during the page display process. Use the page display method to respond to user access operations, determine the page to be displayed, and obtain user identity information when needed, refresh the display interface and load the occlusion The mask layer is finally rendered based on the page rendering information and cancel the mask layer.
Improve page loading efficiency, reduce user waiting time, optimize user experience, enable users to access required content faster, while providing clear visual feedback, enhance user patience and beautify the display interface.
Smart Images

Figure CN119473484A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of page display technology and the field of financial technology, and specifically, to a page display method, device, medium and equipment. Background Art
[0002] With the rapid development of mobile Internet, H5 pages have gradually become an important carrier of marketing content and business development tools. Especially in platforms that can interact with users, H5 pages can flexibly display rich multimedia content and improve user experience. However, when users open H5 pages through client software, the page loading process often faces multiple challenges. This process usually involves multiple links such as obtaining user identity and processing authentication. The complexity of these links not only affects the loading speed, but also leads to the fragmentation of user experience, making it impossible to form a unified visual effect of the entire page, which in turn affects user satisfaction.
[0003] Take an insurance recommendation software client as an example. When loading a third-party H5 page (such as an insurance application page), the client usually needs to wake up the built-in browser first. This process will appear as a white screen, and the green loading bar that appears immediately further prolongs the user's waiting time. If the page itself needs to authenticate the identity of the software or other business systems, the page needs to be refreshed again, resulting in repeated interruptions to the user experience. The overall loading time is usually between 3 and 10 seconds, and the user experience is slow. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a page display method, apparatus, medium and device, which avoids complex user identity authentication during the page display process by directly obtaining identity information, thereby not only improving the efficiency of page loading and reducing user waiting time, but also optimizing the user experience, allowing users to access required content more quickly.
[0005] The present disclosure provides a page display method, including:
[0006] In response to an access operation of a user, determining a page to be displayed corresponding to the access operation, and judging whether to include obtaining user identity information based on an access condition corresponding to the page to be displayed;
[0007] In the case where the access condition corresponding to the page to be displayed includes obtaining user identity information, obtaining the user identity information corresponding to the page to be displayed, refreshing the display interface from the current page to the page to be displayed and loading a mask layer, wherein the loading mask layer is located above the page to be displayed;
[0008] Obtain page rendering information corresponding to the page to be displayed, render the page to be displayed based on the page rendering information, and cancel display of the loading mask layer when the page to be displayed completes rendering.
[0009] The present disclosure provides a page display device, including:
[0010] A page determination module, configured to determine, in response to an access operation of a user, a page to be displayed corresponding to the access operation, and determine whether to include obtaining user identity information based on the access condition corresponding to the page to be displayed;
[0011] an identity recognition module, configured to obtain user identity information corresponding to the page to be displayed, if the access condition corresponding to the page to be displayed includes obtaining user identity information, refresh the display interface from the current page to the page to be displayed and load a mask layer, wherein the loading mask layer is located above the page to be displayed;
[0012] The page display module is used to obtain page rendering information corresponding to the page to be displayed, render the page to be displayed based on the page rendering information, and cancel the display of the loading mask layer when the page to be displayed completes rendering.
[0013] An embodiment of the present disclosure provides a computer device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, a page display method as described in any possible implementation manner described above is performed.
[0014] An embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the page display method described in any possible implementation manner described above is implemented.
[0015] The page display method, apparatus, medium and equipment provided in the embodiments of the present disclosure avoid complex user identity authentication during the page display process by directly obtaining identity information, which not only improves the efficiency of page loading and reduces user waiting time, but also optimizes the user experience, allowing users to access required content more quickly. At the same time, loading a mask layer above the page to be displayed can provide users with clear visual feedback, which not only enhances users' patience and prevents users from repeating operations, but also beautifies the display interface.
[0016] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required to be cited in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A schematic diagram of an application environment of a page display method provided by an embodiment of the present disclosure is shown;
[0019] Figure 2 A flow chart of a page display method provided by an embodiment of the present disclosure is shown;
[0020] Figure 3 A schematic diagram showing the structure of a page display device provided by an embodiment of the present disclosure is shown;
[0021] Figure 4 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0023] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0024] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0025] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0026] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0027] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0028] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0029] With the rapid development of mobile Internet, many marketing content and business tools have begun to use H5 pages as their display platforms. Especially in platforms that can interact with users, H5 pages can flexibly display a variety of multimedia content, thereby improving user experience. However, when users open H5 pages through software clients, the loading process often faces many challenges. This process involves multiple steps such as user identity acquisition and authentication. The complexity of these links not only affects the loading speed, but also causes a fragmentation of the user experience, making it difficult to unify the visual effects of the page, thus affecting user satisfaction.
[0030] Take an insurance recommendation software client as an example. When loading a third-party H5 page (such as an insurance application page or insurance business-related page), the client usually needs to start the built-in browser first. This process may result in a white screen, and the subsequent green loading bar further prolongs the user's waiting time. If the page requires the software's identity or other system authentication, it may be necessary to refresh the page again, which will repeatedly interfere with the user experience. The overall loading time is usually between 3 and 10 seconds, which makes the user feel that the experience is slow.
[0031] In response to the above problems, a page display method, apparatus, medium and device are provided in an embodiment of the present disclosure, the method comprising: in response to a user's access operation, determining a page to be displayed corresponding to the access operation, and judging whether it includes obtaining user identity information based on the access conditions corresponding to the page to be displayed; in the case where the access conditions include obtaining user identity information, obtaining the user identity information corresponding to the page to be displayed, refreshing the display interface from the current page to the page to be displayed and a loading mask layer; obtaining page rendering information corresponding to the page to be displayed, rendering the page to be displayed based on the page rendering information, and canceling the display of the loading mask layer when the page to be displayed completes rendering.
[0032] In this embodiment, by directly obtaining identity information, complex user identity authentication is avoided during the page display process, which not only improves the efficiency of page loading and reduces user waiting time, but also optimizes the user experience, allowing users to access required content more quickly. At the same time, loading a mask layer above the page to be displayed can provide users with clear visual feedback, which not only enhances users' patience and prevents users from repeating operations, but also beautifies the display interface.
[0033] To facilitate understanding of this embodiment, the execution subject of the page display method provided by the embodiment of the present disclosure is first introduced in detail. The page display method provided by the embodiment of the present invention can be applied to Figure 1 In an application environment, the client communicates with the server through a network. The client can be a mobile device, a user terminal, a terminal, a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms. Optionally, the method can also be applied to an implementation environment composed of a client and a server.
[0034] The following is a detailed description of the page display method provided by the embodiment of the present application in conjunction with the accompanying drawings. Figure 2FIG. 2 is a flow chart of a page display method provided by an embodiment of the present disclosure, and the method includes the following S201 to S203:
[0035] S201, in response to an access operation of a user, determining a page to be displayed corresponding to the access operation, and judging whether to include obtaining user identity information based on an access condition corresponding to the page to be displayed.
[0036] Here, the user's access operation is an operation of sending a request to the server through a browser or mobile device. When the user initiates the access, the system will respond to the access operation and parse it (which may include identifying the requested URL, request type (GET, POST, etc.), and other related HTTP header information) to determine the corresponding page to be displayed. Then, a judgment can be made based on the access conditions of the page to be displayed to determine whether the access conditions corresponding to the page to be displayed include the item of obtaining user identity information. Among them, the access conditions can also include obtaining the source authority of the access operation request (to determine whether the request comes from an allowed domain to prevent security issues such as cross-site request forgery (CSRF)), etc.
[0037] Exemplarily, before determining whether to obtain user identity information based on the access condition corresponding to the page to be displayed, the following (1) to (2) may be included:
[0038] (1) for a preset scene, obtaining a user identity information acquisition code corresponding to the preset scene; wherein the preset scene is associated with at least one preset page, and the preset page includes the page to be displayed;
[0039] (2) Encapsulating the user identity information acquisition code, and uploading the encapsulated user identity information acquisition code to a local content distribution network for storage.
[0040] It is understandable that the preset scenario refers to an application environment that involves user interaction, such as chat software, insurance recommendation software, other mobile applications or web services, etc. These preset scenarios are associated with at least one preset page, and the preset page includes the page to be displayed. Taking an insurance recommendation software as an example, the preset page associated with the software may include an insurance recommendation homepage in the software's official account, and the page to be displayed corresponding to the preset page may be an insurance page for handling insurance in the homepage.
[0041] Specifically, according to the specific needs of each preset scenario, the corresponding user identity information acquisition code can be configured to obtain the user's identity information during the user's login and registration process, or when they access specific functions such as payment confirmation, social media sharing, and personal order details viewing. For example: when applying for insurance page login authorization in the software public account, the user identity information acquisition code under the software scenario is executed to obtain the user's identity information through the insurance page login authorization.
[0042] Here, after obtaining the user identity information acquisition code corresponding to the preset scenario, it can be packaged, and the packaged user identity information acquisition code can be uploaded to the local content distribution network for storage. Among them, the local content distribution network (Content Delivery Network, CDN) is a distributed content distribution system, which allows users to obtain required information by caching content on multiple nodes in the network. It can be understood that when the user identity information acquisition code is packaged, it can be packaged into an independent JavaScript code block or other format suitable for front-end calls, and the packaged code block is deployed on the CDN for storage.
[0043] In the disclosed embodiment, by encapsulating the identity information acquisition code for different preset scenarios and storing the encapsulation results in the local CDN, not only the loading speed of acquiring the identity information is accelerated, but also flexibility and scalability are provided to facilitate adaptation to various application environments.
[0044] S202, when the access condition corresponding to the page to be displayed includes obtaining user identity information, obtaining user identity information corresponding to the page to be displayed, refreshing the display interface from the current page to the page to be displayed, and loading a mask layer.
[0045] Specifically, when the access condition corresponding to the page to be displayed includes obtaining user identity information, the packaged user identity information acquisition code associated with the page to be displayed is obtained from the local content distribution network, and the packaged user identity information acquisition code is executed to obtain the user identity information from the local storage of the device. At this time, it is necessary to judge whether the user identity information is stored in the local storage of the device. When the user identity information is stored in the local storage of the device, the user identity information is directly obtained and the display interface is refreshed from the current page to the page to be displayed and the loading mask layer, and the loading mask layer is located above the page to be displayed. At this time, the user's display interface can be set to a white background, and a preset text animation is played in a loop in the middle of the interface, such as prompt information such as "Loading..." or "Please wait...", to show the user that the current page is loading. On the contrary, when the user identity information is not stored in the local storage of the device, the display interface is refreshed from the current page to the user identity information acquisition page, and the user is guided to enter the necessary information or the authorization server is automatically obtained by other means to complete the identity information acquisition. After the identity information is successfully acquired, the display interface is refreshed from the user identity information acquisition page to the page to be displayed and the loading mask layer. Here, the loading mask layer includes looping a preset text animation to ensure that the user waits for the prompt page smoothly and stably. In some other embodiments, the loading mask layer also includes a loading progress bar, an animation graphic or a prompt message, which is not specifically limited here.
[0046] In the embodiment of the present disclosure, when the page to be displayed needs to identify the user's identity, the user's identity information is directly and quickly obtained by using the user identity information acquisition code pre-stored in the local content distribution network, which reduces the request frequency to the server, improves the overall response speed, and ensures the validity of the user's access rights. At the same time, the present disclosure also proposes a solution if the user's identity information is not stored in the local storage of the device (i.e., guiding the user to complete the information filling), ensuring that even in the absence of information, the user can still successfully complete the identity authentication and access the relevant content. In addition, after the user information is obtained, the current page is refreshed to the page to be displayed and the loading mask is displayed, which can provide the user with a smooth experience visually. The display of the loading mask makes the user feel no abruptness or delay during the page switching process, thereby enhancing the friendliness of the system. In addition, by executing the page refresh immediately, the waiting time of the user in the identity identification process is almost shortened, reaching a process optimization of 0.5-1 seconds, and the user can hardly perceive the delay. In this way, the present solution effectively improves the user experience, security and system performance.
[0047] S203: Obtain page rendering information corresponding to the page to be displayed, render the page to be displayed based on the page rendering information, and cancel display of the loading mask layer when the page to be displayed completes rendering.
[0048] Among them, page rendering information includes non-logical content and logical content. Non-logical content usually refers to static elements of the page, such as images, style sheets, and layout information. This information does not involve data processing and business logic and is only used for the visual presentation of the page; logical content contains dynamic data related to user interaction, such as real-time data obtained from the server (for example, product lists, user comments, etc.). These contents need to be processed by the back-end logic to ensure the functionality and interactivity of the page.
[0049] For example, in the process of rendering a page promoting insurance, its non-logical content may include the background image, style sheet, and layout elements of the page, and its logical content may include real-time purchase data and user feedback of insurance products.
[0050] Therefore, when rendering the page to be displayed based on the page rendering information, the following (a) to (b) may be included:
[0051] (a) obtaining the non-logical content, and performing preliminary rendering of the embedded rendering page according to the non-logical content based on the embedded rendering framework; in the preliminary rendering process, using the embedded rendering framework to preload the logical content into the rendering memory of the embedded rendering framework;
[0052] (b) Rendering the embedded rendering page based on the embedded rendering framework according to the preliminary rendering result and the logical content in the rendering memory.
[0053] Here, the embedded rendering frame (iframe) refers to a technology that embeds other documents in a web page. It allows external content (embedded rendering page) to be displayed independently in the main page (to be rendered page). Through iframe, content isolation and dynamic loading can be achieved to avoid style and script conflicts and improve user experience. Rendering memory is used to store memory space for content and data required during the rendering process.
[0054] It is understandable that, since the non-logical content is small in size and can quickly reach the embedded rendering framework, in the present disclosure, when rendering a page, the non-logical content is first obtained, and the embedded rendering page is initially rendered based on the non-logical content based on the embedded rendering framework. During the initial rendering process, the logical content is preloaded into the rendering memory of the embedded rendering framework to facilitate the rapid rendering of subsequent embedded rendering pages.
[0055] In the disclosed embodiment, since the non-logical content is small in size, it is first acquired and rendered, and the logical content is loaded during the preliminary rendering process. This not only shortens the loading time, but also avoids conflicts between styles and scripts, thereby improving the stability and fluency of the page.
[0056] Exemplarily, after all the logical contents are loaded into the rendering memory of the embedded rendering framework, the embedded rendering page is rendered based on the embedded rendering framework according to the preliminary rendering result and the logical contents in the rendering memory. Specifically, the embedded rendering framework can use the preliminary rendering result as a reference frame and start rendering the embedded rendering page from a preset expansion point (which can be set as the center point of the page) according to the logical contents in the rendering memory; during the rendering process, the embedded rendering framework gradually enlarges the rendering size of the embedded rendering page according to a preset size enlargement rule until the enlarged rendering size of the embedded rendering page is equal to the page size corresponding to the page to be displayed, thereby completing the rendering of the embedded rendering page.
[0057] Here, in the process of rendering the embedded rendering page, the transparency of the loading mask layer can be adjusted according to the rendering size of the embedded rendering page. For example, when the rendering size of the embedded rendering page reaches 50% of the page size corresponding to the page to be displayed, the transparency of the loading mask layer is set to 50%; when the rendering size of the embedded rendering page reaches 60% of the page size corresponding to the page to be displayed, the transparency of the loading mask layer is set to 60%. The above adjustment process continues until the rendering size of the enlarged embedded rendering page is equal to the page size corresponding to the page to be displayed, and the transparency of the loading mask layer reaches the target value (for example, the target value is 100%), so as to cancel the display of the loading mask layer, that is, the loading mask layer disappears.
[0058] In this disclosure, based on the preliminary rendering results, starting from the preset expansion point, the size of the embedded rendering page is gradually enlarged until it matches the target page size. This process not only ensures the consistency of page rendering, but also provides a smoother visual transition by dynamically adjusting the transparency of the loading mask layer, reducing the user's anxiety when waiting, improving the overall interactive experience, and making the page loading process smoother and more natural.
[0059] The page display method, apparatus, medium and equipment provided in the embodiments of the present disclosure avoid complex user identity authentication during the page display process by directly obtaining identity information, which not only improves the efficiency of page loading and reduces user waiting time, but also optimizes the user experience, allowing users to access required content more quickly. At the same time, loading a mask layer above the page to be displayed can provide users with clear visual feedback, which not only enhances users' patience and prevents users from repeating operations, but also beautifies the display interface.
[0060] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0061] Based on the same inventive concept, a page display device corresponding to the page display method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned page display method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0062] Reference Figure 3 FIG. 3 is a schematic diagram of a page display device 300 provided in an embodiment of the present disclosure, wherein the device includes:
[0063] The page determination module 301 is used to determine, in response to a user's access operation, a page to be displayed corresponding to the access operation, and determine whether to obtain user identity information based on the access condition corresponding to the page to be displayed;
[0064] The identity recognition module 302 is used to obtain the user identity information corresponding to the page to be displayed, and refresh the display interface from the current page to the page to be displayed and the loading mask layer, wherein the loading mask layer is located above the page to be displayed, when the access condition corresponding to the page to be displayed includes obtaining the user identity information;
[0065] The page display module 303 is used to obtain page rendering information corresponding to the page to be displayed, render the page to be displayed based on the page rendering information, and cancel the display of the loading mask layer when the page to be displayed completes rendering.
[0066] In some possible embodiments, the page determination module 301 is further configured to:
[0067] For a preset scene, obtaining a user identity information acquisition code corresponding to the preset scene; wherein the preset scene is associated with at least one preset page, and the preset page includes the page to be displayed;
[0068] Encapsulating the user identity information acquisition code, and uploading the encapsulated user identity information acquisition code to a local content distribution network for storage;
[0069] The identity recognition module 302 is specifically used for:
[0070] The encapsulated user identity information acquisition code is obtained from the local content distribution network, and the encapsulated user identity information acquisition code is executed to obtain the user identity information.
[0071] In some possible embodiments, the identity recognition module 302 is further used to:
[0072] After executing the packaged user identity information acquisition code, determining whether the user identity information is stored in the local storage of the device;
[0073] When the user identity information is not stored in the local storage of the device, the display interface is refreshed from the current page to the user identity information acquisition page; and based on the user identity information acquisition result, the display interface is refreshed from the user identity information acquisition page to the page to be displayed and the mask layer is loaded.
[0074] In some possible embodiments, the page information to be rendered includes non-logical content and logical content; the page display module 303 is specifically used to:
[0075] Acquire the non-logical content, and perform preliminary rendering of the embedded rendering page according to the non-logical content based on the embedded rendering framework; in the preliminary rendering process, use the embedded rendering framework to preload the logical content into the rendering memory of the embedded rendering framework;
[0076] The embedded rendering page is rendered based on the embedded rendering framework according to the preliminary rendering result and the logical content in the rendering memory.
[0077] In some possible embodiments, the page display module 303 is specifically used to:
[0078] According to the preliminary rendering result and the logical content in the rendering memory, the embedded rendering page is rendered from a preset expansion point based on the embedded rendering framework; during the rendering process, the embedded rendering framework gradually enlarges the rendering size of the embedded rendering page according to a preset size enlargement rule until the enlarged rendering size of the embedded rendering page is equal to the page size corresponding to the page to be displayed, thereby completing the rendering of the embedded rendering page.
[0079] In some possible embodiments, the page display module 303 is specifically used to:
[0080] During the process of rendering the embedded rendering page, the transparency of the loading mask layer is adjusted based on the rendering size of the embedded rendering page until the rendering size of the enlarged embedded rendering page is equal to the page size corresponding to the page to be displayed, and the transparency of the loading mask layer reaches the target value, so as to cancel the display of the loading mask layer.
[0081] In some possible embodiments, the loading of the mask layer includes looping and playing a preset text animation.
[0082] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 44 is a schematic diagram of the structure of a computer device 400 provided in an embodiment of the present disclosure, including a processor 401, a memory 402, and a bus 403. The memory 402 is used to store execution instructions, including a memory 4021 and an external memory 4022; the memory 4021 is also called an internal memory, which is used to temporarily store the operation data in the processor 401 and the data exchanged with the external memory 4022 such as a hard disk. The processor 401 exchanges data with the external memory 4022 through the memory 4021.
[0083] In the embodiment of the present application, the memory 402 is specifically used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 401. That is, when the computer device 400 is running, the processor 401 communicates with the memory 402 through the bus 403, so that the processor 401 executes the application code stored in the memory 402, and then executes the method described in any of the above embodiments.
[0084] Among them, the memory 402 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0085] Processor 401 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0086] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the computer device 400. In other embodiments of the present application, the computer device 400 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0087] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the page display method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0088] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the page display method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0089] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0090] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0092] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0093] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0094] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A page display method, characterized in that: include: In response to an access operation of a user, determining a page to be displayed corresponding to the access operation, and judging whether to include obtaining user identity information based on an access condition corresponding to the page to be displayed; In the case where the access condition corresponding to the page to be displayed includes obtaining user identity information, obtaining the user identity information corresponding to the page to be displayed, refreshing the display interface from the current page to the page to be displayed and loading a mask layer, wherein the loading mask layer is located above the page to be displayed; Obtain page rendering information corresponding to the page to be displayed, render the page to be displayed based on the page rendering information, and cancel display of the loading mask layer when the page to be displayed completes rendering.
2. The method according to claim 1, characterized in that The determining whether to obtain user identity information based on the access condition corresponding to the to-be-displayed page includes: For a preset scene, obtaining a user identity information acquisition code corresponding to the preset scene; wherein the preset scene is associated with at least one preset page, and the preset page includes the page to be displayed; Encapsulating the user identity information acquisition code, and uploading the encapsulated user identity information acquisition code to a local content distribution network for storage; The obtaining of user identity information corresponding to the page to be displayed includes: The encapsulated user identity information acquisition code is obtained from the local content distribution network, and the encapsulated user identity information acquisition code is executed to obtain the user identity information.
3. The method according to claim 2, characterized in that The method further comprises: After executing the packaged user identity information acquisition code, determining whether the user identity information is stored in the local storage of the device; When the user identity information is not stored in the local storage of the device, the display interface is refreshed from the current page to the user identity information acquisition page; and based on the user identity information acquisition result, the display interface is refreshed from the user identity information acquisition page to the page to be displayed and the mask layer is loaded.
4. The method according to claim 1, characterized in that: The page to be rendered information includes non-logical content and logical content; the rendering of the page to be displayed based on the page rendering information includes Acquire the non-logical content, and perform preliminary rendering of the embedded rendering page according to the non-logical content based on the embedded rendering framework; in the preliminary rendering process, use the embedded rendering framework to preload the logical content into the rendering memory of the embedded rendering framework; The embedded rendering page is rendered based on the embedded rendering framework according to the preliminary rendering result and the logical content in the rendering memory.
5. The method according to claim 4, characterized in that The rendering of the embedded rendering page based on the embedded rendering framework according to the preliminary rendering result and the logical content in the rendering memory includes: According to the preliminary rendering result and the logical content in the rendering memory, the embedded rendering page is rendered from a preset expansion point based on the embedded rendering framework; during the rendering process, the embedded rendering framework gradually enlarges the rendering size of the embedded rendering page according to a preset size enlargement rule until the enlarged rendering size of the embedded rendering page is equal to the page size corresponding to the page to be displayed, thereby completing the rendering of the embedded rendering page.
6. The method according to claim 5, characterized in that The step of cancelling the display of the loading mask layer when the to-be-displayed page has completed rendering includes: During the process of rendering the embedded rendering page, the transparency of the loading mask layer is adjusted based on the rendering size of the embedded rendering page until the rendering size of the enlarged embedded rendering page is equal to the page size corresponding to the page to be displayed, and the transparency of the loading mask layer reaches the target value, so as to cancel the display of the loading mask layer.
7. The method according to claim 6, characterized in that The loading of the mask layer includes looping and playing a preset text animation.
8. A page display device, characterized in that: include: A page determination module, for determining, in response to an access operation of a user, a page to be displayed corresponding to the access operation, and judging whether to include obtaining user identity information based on the access condition corresponding to the page to be displayed; an identity recognition module, configured to obtain user identity information corresponding to the page to be displayed, if the access condition corresponding to the page to be displayed includes obtaining user identity information, refresh the display interface from the current page to the page to be displayed and load a mask layer, wherein the loading mask layer is located above the page to be displayed; The page display module is used to obtain page rendering information corresponding to the page to be displayed, render the page to be displayed based on the page rendering information, and cancel the display of the loading mask layer when the page to be displayed completes rendering.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.