CN114443200A - Page display method, device, equipment and storage medium for mobile client - Google Patents

Page display method, device, equipment and storage medium for mobile client Download PDF

Info

Publication number
CN114443200A
CN114443200A CN202210112350.1A CN202210112350A CN114443200A CN 114443200 A CN114443200 A CN 114443200A CN 202210112350 A CN202210112350 A CN 202210112350A CN 114443200 A CN114443200 A CN 114443200A
Authority
CN
China
Prior art keywords
target
page
matched
client
control
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.)
Granted
Application number
CN202210112350.1A
Other languages
Chinese (zh)
Other versions
CN114443200B (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.)
Shanghai Dajiaying Information Technology Co Ltd
Suzhou Dajiaying Information Technology Co Ltd
Original Assignee
Shanghai Dajiaying Information Technology Co Ltd
Suzhou Dajiaying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Dajiaying Information Technology Co Ltd, Suzhou Dajiaying Information Technology Co Ltd filed Critical Shanghai Dajiaying Information Technology Co Ltd
Priority to CN202210112350.1A priority Critical patent/CN114443200B/en
Publication of CN114443200A publication Critical patent/CN114443200A/en
Application granted granted Critical
Publication of CN114443200B publication Critical patent/CN114443200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a page display method, a device, equipment and a storage medium of a mobile client, wherein the method comprises the following steps: when detecting that the preset login state detection condition is met, acquiring a user login role matched with a current login user; responding to a viewing request of a target page, acquiring target identification information, and acquiring matched control layout data from a temporary resource pool corresponding to the target identification information; and rendering and displaying the target page according to a target adapter established based on the control layout data and a preset total data source. According to the technical scheme, when the current login user requests to view the target page of the client, the temporary resource pool corresponding to the target identification information is established to store the control layout data matched with the target page, so that repeated traversal of all the control layout data in the client can be avoided, the data processing pressure of the client can be reduced, and real-time differential display of the client page can be realized.

Description

Page display method, device and equipment of mobile client and storage medium
Technical Field
The embodiment of the invention relates to a mobile application development technology, in particular to a page display method, a page display device, page display equipment and a storage medium of a mobile client.
Background
With the continuous development of the mobile application technology, in the display page of the mobile client, aiming at different page contents which are not displayed by a user, the method has important significance for improving the page display effect of the mobile client and improving the use experience of the mobile client of the user.
At present, in an existing page display method of a mobile client, corresponding permission information is generally configured for different users manually, and then when the mobile client detects that a user requests to view a certain page, a corresponding function module is displayed to the user in the page according to the permission information corresponding to the user. However, in the prior art, each time one functional module in a page is displayed, configuration data of all functional modules in a client needs to be read in a traversal manner once to search for matched configuration data, so that data processing pressure of the client is increased, and thus the real-time performance of differential display of the page of the client is poor.
Disclosure of Invention
The invention provides a page display method, a page display device, page display equipment and a page display storage medium of a mobile client, which can avoid repeated traversal of all control layout data in the client when a current login user requests to view a target page of the client, and can reduce the traversal times of all control layout data, thereby reducing the data processing pressure of the client and realizing real-time differential display of the client page.
In a first aspect, an embodiment of the present invention provides a page display method for a mobile client, including:
when the target client side is detected to meet the preset login state detection condition currently, acquiring a user login role matched with the current login user;
responding to a viewing request of a current login user to a target page in a target client, and acquiring target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page;
acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to the control layout data matched with the target page and a preset total data source, a target adapter matched with the target page is established, wherein the target adapter comprises the adaptation relation between the control layout corresponding to each functional control in the target page and the subdata source matched with each functional control;
and rendering and displaying the target page according to the target adapter matched with the target page.
In a second aspect, an embodiment of the present invention further provides a page display apparatus for a mobile client, including:
the user login role acquisition module is used for acquiring a user login role matched with a current login user when the target client side is detected to meet the preset login state detection condition currently;
the target identification information acquisition module is used for responding to a viewing request of a current login user for a target page in a target client, and acquiring target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page;
the control layout data acquisition module is used for acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
the target adapter establishing module is used for establishing a target adapter matched with the target page according to the control layout data matched with the target page and a preset total data source, and the target adapter comprises an adaptive relation between the control layout corresponding to each functional control in the target page and a subdata source matched with each functional control;
and the page rendering display module is used for rendering and displaying the target page according to the target adapter matched with the target page.
In a third aspect, an embodiment of the present invention further provides a client device, where the client device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the page display method of the mobile client according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page display method of the mobile client provided in any embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, when the target client side is detected to meet the preset login state detection condition currently, the user login role matched with the current login user is obtained; responding to a viewing request of a current login user for a target page in a target client, and acquiring target identification information obtained by combining a user login role and a page identifier corresponding to the target page; further acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information; and according to the control layout data matched with the target page and a preset total data source, establishing a target adapter matched with the target page, and rendering and displaying the target page according to the target adapter matched with the target page. When a current login user requests to view a target page of a client, a temporary resource pool corresponding to target identification information is established to store control layout data matched with the target page, so that repeated traversal of all control layout data in the client can be avoided, the traversal times of all control layout data can be reduced, the data processing pressure of the client can be reduced, and real-time differential display of the client page can be realized.
Drawings
Fig. 1 is a flowchart of a page display method of a mobile client according to a first embodiment of the present invention;
fig. 2 is a flowchart of a page display method of a mobile client according to a second embodiment of the present invention;
fig. 3A is a flowchart of a page display method of a mobile client according to a third embodiment of the present invention;
fig. 3B is a schematic diagram of a control layout corresponding to a function control in the third embodiment of the present invention;
fig. 3C is a schematic diagram of a client page in the third embodiment of the present invention;
FIG. 4 is a block diagram of a page displaying apparatus of a mobile client according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a client device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a page displaying method of a mobile client according to an embodiment of the present invention, where this embodiment is applicable to a situation where different users display respective corresponding client pages to the different users when it is detected that the different users log in the client, and the method may be executed by a page displaying apparatus of the mobile client according to an embodiment of the present invention and integrated on a client device, where typically, the client device may be a mobile terminal, and specifically includes the following steps:
s110, when the target client side is detected to meet the preset login state detection condition currently, a user login role matched with the current login user is obtained.
The target client may be an Application (APP) client of a mobile terminal (e.g., a mobile phone, a tablet computer, etc.); in this embodiment, the APP may support an android operating system or an IOS operating system, which is not specifically limited in this embodiment.
In this embodiment, the preset login state detection condition may be a preset condition for determining whether a latest user login role needs to be requested from the backend server; for example, the preset login state detection condition may be that the target client starts to run in the foreground and is in a logged-in state, and when detecting that the detection condition is met, the target client may request the background server for a user login role matched with the current login user.
The "foreground" and "background" are relative to the operating system of the mobile terminal. Taking an android operating system as an example, when a client is determined to be in a running state, if the client has a corresponding user visible view component, has a running foreground service or has another client associated with the client, the client can be determined to run in the "foreground" of the android operating system; correspondingly, if the conditions are not met, the client can be determined to run in the background of the android operating system.
The user login role is associated with user permissions corresponding to all the functional controls contained in the target client; the background server can configure user permissions corresponding to the functional controls for the user by endowing the target client with user login roles corresponding to the user. The background server may be a remote device communicating with the target client. The functionality control refers to a program entity for implementing a specific functionality, and for example, the functionality control may include a payroll control, a replacement-triggered control, a flexible employment control, and the like. Correspondingly, the user permissions may include behavior permissions (e.g., whether the user can be selected and jump after being selected, etc.) and state permissions (e.g., whether the user can be seen) corresponding to the functionality control.
In this embodiment, a corresponding user right is configured for a user of a target client by giving a user login role, so that when different users correspond to the same user right, only one user login role corresponding to the same user right needs to be configured. At the moment, the user login role is given to each user, so that the same corresponding user authority can be configured for each user, manual and repeated configuration of the same user authority can be avoided, and the configuration efficiency of the user authority can be greatly improved; in addition, in the interaction process of the user and the target client, when the user permission needs to be updated, only the latest user login role of the current user needs to be given, and the real-time performance of user permission updating can be improved.
S120, responding to a viewing request of a current login user to a target page in a target client, and acquiring target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page.
In this embodiment, each functional page of the target client has a unique corresponding page identifier, and therefore, when the target client detects that the current login user clicks a selection target page (or clicks an access entry corresponding to the target page), the target client can determine the page identifier corresponding to the target page, and thus, the target client can generate target identification information matched with the current login user in combination with a user login role sent by the background server.
It should be noted that, in the target identification information, the user login role and the page identifier corresponding to the target page may be combined in any form, which is not specifically limited in this embodiment.
S130, acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information.
The control layout data matched with the target page may include configuration data of each function control in the target page, for example, a display width, a display height, a supported user login role, and the like of the function control. In this embodiment, after the target identification information is obtained, a temporary resource pool corresponding to the target identification information may be found in a local cache of the target client, that is, a temporary resource pool that is simultaneously matched with the user login role and the page identifier corresponding to the target page is obtained, and data in the temporary resource pool is read to obtain control layout data matched with the target page.
In this embodiment, after acquiring the user login role matched with the current login user, the target client may automatically combine the user login role and the page identifier corresponding to each function page, create a temporary resource pool corresponding to each function page of the target client for the current login user, and store the temporary resource pool in the local cache. And when a viewing request of the current login user for the target page is detected subsequently, the temporary resource pool corresponding to the target identification information can be directly searched in the local cache, and the control layout data matched with the target page is obtained from the temporary resource pool. Through the setting, the obtaining speed of the control layout data matched with the target page can be increased, and the rendering and displaying speed of the target page can be increased.
Optionally, after obtaining the user login role matched with the current login user, the target client may not create the corresponding temporary resource pool, but when detecting that the current login user views the target page for the first time, filter, from the configuration data of all the functional controls, the configuration data of the functional controls matched with the page identifiers corresponding to the user login role and the target page at the same time, so as to establish the temporary resource pool corresponding to the target identification information. Through the setting, the occupation of a temporary resource pool corresponding to the created target page on the local cache can be avoided, and the use efficiency of the storage space corresponding to the target client can be improved.
It should be noted that, because only one user is currently in a logged-on state at a target client in each mobile terminal, only one user logs in a role at the same time for the target client; by establishing the corresponding temporary resource pool for the current login user, frequent reading of the preset resource pool in which the configuration data corresponding to all the functional controls are stored in the target client in the later period can be avoided, and the data processing pressure of the target client can be reduced.
S140, according to the control layout data matched with the target page and a preset total data source, a target adapter matched with the target page is established, wherein the target adapter comprises the adaptation relation between the control layout corresponding to each functional control in the target page and the sub data source matched with each functional control.
The preset total data source may include subdata sources adapted to all the functional controls of the target client; a child data source may be a collection of multiple data content (e.g., pictures, text, etc.). And the target adapter is used for defining the adaptation relation between the control layout corresponding to the functional control in the target page and the matched sub data source, and can be regarded as a bridge between the functional control and the sub data source.
In this embodiment, after the control layout data matched with the target page is obtained, the control layout corresponding to each functional control in the target page may be determined according to the control layout data, for example, the size of the control area, the sub-controls (for example, a picture sub-control and a text sub-control) included in the functional control, the relative position of each sub-control in the control area, and the like. And then, the sub data source adapted to each function control can be determined, and the adaptation relation between each sub control of the function control and the data content in the adapted sub data source is established, so that the target adapter matched with the target page is established.
S150, rendering and displaying the target page according to the target adapter matched with the target page.
In this embodiment, after the target adapter matched with the target page is established, the functional controls of the target page may be traversed based on each pair of adaptation relations in the target adapter, so as to render and display the functional controls supporting the current user login role, thereby implementing the rendering and display of the target page.
According to the technical scheme provided by the embodiment of the invention, when the target client side is detected to meet the preset login state detection condition currently, the user login role matched with the current login user is obtained; responding to a viewing request of a current login user for a target page in a target client, and acquiring target identification information obtained by combining a user login role and a page identifier corresponding to the target page; further acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information; and according to the control layout data matched with the target page and a preset total data source, establishing a target adapter matched with the target page, and rendering and displaying the target page according to the target adapter matched with the target page. When a current login user requests to view a target page of a client, a temporary resource pool corresponding to target identification information is established to store control layout data matched with the target page, so that repeated traversal of all control layout data in the client can be avoided, the traversal times of all control layout data can be reduced, the data processing pressure of the client can be reduced, and real-time differential display of the client page can be realized.
Example two
Fig. 2 is a flowchart of a page display method of a mobile client according to a second embodiment of the present invention, which is a further refinement of the foregoing technical solution. Specifically, referring to fig. 2, the method specifically includes the following steps:
s210, when it is detected that the target client starts to operate in the foreground currently, whether the target client is in a logged-on state or not is judged.
In this embodiment, when it is detected that the target client is currently started, it may be determined that the target client currently starts to operate in the foreground; or when the view component corresponding to a certain page of the target client is detected to be created, the target client can be determined to be currently started to run in the foreground. Further, when it is determined that the target client starts to run in the foreground, whether the target client is currently in a logged-on state is determined.
And S220, if yes, determining that the target client side meets the preset login state detection condition when the foreground running state of the target client side is not waken from the background to the foreground.
It should be noted that if the target client wakes up from the background to the foreground, it indicates that the target client has been started before a short time and is not currently logged out; at this time, the user login role corresponding to the current login user is not changed due to the short interval time. If the target client requests the user login role again from the background server, repeated requests for the same user login role in a short time can be caused, the effectiveness of obtaining the user login role can be reduced, the request times of a corresponding interface of the background server can be increased, and the data processing pressure of the background server can be increased.
In view of the above problem, in this embodiment, after determining that the target client is in the logged-on state, it is further determined whether the target client is woken up from the background to the foreground, that is, whether the target client has been started before and has not logged out. If the current foreground running state is determined not to be woken up from the background to the foreground, a user login role obtaining request can be sent to the background server. After receiving the user login role obtaining request, the background server may search a pre-established correspondence between the user identifier and the user login role according to the user identifier (e.g., a user name or a user account) of the current login user, and obtain a first user login role matched with the current login user, and send the first user login role to the target client. And if the current foreground running state is determined to be awakened from the background to the foreground, the locally cached user login role can be continuously used.
The advantages of the above arrangement are: by judging the current foreground running state of the target client to determine whether to request the matched user login role from the background server, repeated requests for the same user login role can be avoided, the effectiveness of obtaining the user login role can be improved, in addition, frequent and unnecessary requests for the user login role from the background server can be avoided, the number of requests for corresponding interfaces of the background server can be reduced, and the data processing pressure of the server is reduced.
Wherein, it is not awaken from the background to the foreground to detect the foreground running state, and may include: detecting whether a view component corresponding to a main page of the target client exists in a view component manager of the target client; if not, determining that the foreground running state is not waken from the background to the foreground.
The view components are software entities for realizing the display of the client pages and correspond to the client pages one to one; correspondingly, the view component manager is a functional module for recording and managing the view components. In this embodiment, a view component manager having a history view component recording function may be locally provided to store view components corresponding to pages displayed by a target client within a certain time. It is noted that when the target client is completely closed, killed by the background of the operating system, or restarted by the terminal on which the target client is installed, the view component manager corresponding to the target client will be completely emptied.
It should be noted that, after the user opens the client, the user defaults to enter the main page of the client, that is, the default main page is the 1 st page displayed after the client is opened. Therefore, if the target client is previously opened and is not completely closed, the user must open the main page of the target client, and thus the view component manager must have a view component for displaying the main page of the target client; therefore, whether the target client is awakened from the background to the foreground can be judged by searching the view component corresponding to the main page in the view component manager of the target client.
In a specific example, when the target client corresponds to an android operating system, the corresponding view component may be an Activity component; the Activity component is an inherent component of the android system and is used for providing an interactive interface between a program and a user; specifically, the Activity component can realize the whole process of creating, displaying and ending the interactive interface through a series of preconfigured controls. Specifically, in an Activity component manager of a target client, detecting whether an Activity component corresponding to a main page of the target client exists or not; if the target client is determined to exist, the target client can be determined to be woken up from the background to the foreground.
It should be noted that, at present, the login states of many APPs are cached locally, even if the APPs are completely turned off or the mobile phone is restarted, if the APPs are restarted within the validity period, the APPs are still in the logged-in state, and do not need to be logged in again, for example, after the WeChat is turned off, the APP does not need to be logged in again when turned on again. However, the validity period of the APP setting may be 1 week or more, and during this period, the background server may update the matching user login role. Therefore, if only the login state of the target client is detected, the latest user login role matched with the current login user may not be obtained in time, and thus the real-time performance of differential display of the client page is poor.
In this embodiment, after the target client is detected to be in the logged-in state, whether to request the background server to acquire the current user login role is determined according to whether the view component corresponding to the home page exists in the view component manager, so that the latest user login role can be acquired in time, frequent and unnecessary requests for the user login role caused by the situation that the target client wakes up from the background to the foreground can be avoided, the number of requests for the corresponding interface of the background server can be reduced, and the data processing pressure of the background server is reduced.
Optionally, detecting that the foreground operating state is not waken from the background to the foreground, further includes: judging whether the process corresponding to the target client is in a survival state; if so, determining that the foreground running state is not wakened from the background to the foreground when detecting that the view component corresponding to the main page of the target client does not exist in the view component manager of the target client.
In this embodiment, when detecting whether the foreground running state is woken up from the background to the foreground, it may also be detected whether the background process of the target client is in a live state; if so, determining that the target client is not completely killed by the background of the operating system; further, if it is determined that a view component corresponding to the main page exists in the view component manager, it may be determined that the current foreground operating state of the target client is woken up from the background to the foreground.
The advantages of the above arrangement are: whether the process corresponding to the target client is in the survival state or not and whether the view component manager comprises the view component corresponding to the main page or not are combined, whether the foreground running state is awakened from the background to the foreground or not is finally judged, and the judgment accuracy of the foreground running state of the target client can be improved.
In another optional implementation manner of this embodiment, after determining whether the target client is in a logged-in state, the method may further include: if not, displaying a login page of the target client to the current access user; and acquiring user login information input by the current access user in the login page, and determining that the target client currently meets a preset login state detection condition when detecting that the user login information successfully passes user identity authentication.
In one scenario, after a target client is opened, the target client is in an unregistered state; at this time, the target client may provide a login page to the current accessing user at the human-computer interaction interface. The current access user can input user login information such as a user account, a user password and the like in the login page and click a login button. When the target client detects the click of the login button, the target client sends the user login information input by the user to the background server and requests a user login interface of the background server to verify the user login information. The method comprises the steps that when a background server detects a request of a target client to a user login interface, received user login information is verified; if the user identity verification is successfully passed, the target client can be determined to currently meet the preset login state detection condition.
And S230, acquiring a user login role matched with the current login user.
S240, responding to a viewing request of a current login user to a target page in a target client, and acquiring target identification information matched with the current login user.
The target identification information is a combination of a user login role and a page identifier corresponding to a target page.
And S250, acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information.
S260, according to the control layout data matched with the target page and a preset total data source, a target adapter matched with the target page is established, wherein the target adapter comprises the adaptation relation between the control layout corresponding to each functional control in the target page and the sub data source matched with each functional control.
And S270, rendering and displaying the target page according to the target adapter matched with the target page.
According to the technical scheme provided by the embodiment of the invention, whether the target client meets the preset login state detection condition is detected to judge whether the server is requested to acquire the latest user login role matched with the current login user, so that the latest user login role corresponding to the user can be acquired in time, the timeliness of acquiring the latest user login role can be ensured, repeated and unnecessary requests for the same user login role in a short time can be avoided, the effectiveness of the acquired user login role can be ensured, the balance of the timeliness and the effectiveness of acquiring the user login role can be realized through the setting, and the real-time differential display of the client page can be finally realized.
EXAMPLE III
Fig. 3A is a flowchart of a page display method of a mobile client according to a third embodiment of the present invention, which is a further refinement of the foregoing technical solution, and the technical solution in this embodiment may be combined with one or more of the foregoing embodiments. Specifically, referring to fig. 3A, the method specifically includes the following steps:
s310, when the target client side is detected to meet the preset login state detection condition currently, a user login role matched with the current login user is obtained.
S320, responding to a viewing request of a current login user to a target page in a target client, and acquiring target identification information matched with the current login user.
The target identification information is a combination of a user login role and a page identifier corresponding to a target page.
S330, detecting whether a temporary resource pool corresponding to the target identification information exists in a local cache of the target client, if not, establishing a new temporary resource pool corresponding to the target identification information.
In this embodiment, after the target identification information matched with the current login user is obtained, whether a temporary resource pool matched with the target identification information exists or not may be searched in a local cache; if the matched temporary resource pool is found successfully, the data in the temporary resource pool can be directly read to obtain the control layout data matched with the target page. And if the temporary resource pool corresponding to the target identification information is not detected, the current login user is indicated to access the target page for the first time, and new establishment of the corresponding temporary resource pool is required.
S340, according to the user login role matched with the current login user and the page identification corresponding to the target page, screening the preset resource pool corresponding to the target client side to obtain control layout data matched with the target page.
The preset resource pool can include configuration data of all functional controls of the target client; the control layout data that matches the target page may be considered a collection of configuration data for a plurality of functionality controls. When the functional controls in the target client need to be added, deleted and modified, only the configuration data of the corresponding functional controls need to be modified in the preset resource pool. The configuration data of the functional control mainly comprises a page identification corresponding to the functional control, a user login role supported by the functional control, a control name corresponding to the functional control and a control identification corresponding to the functional control. The control identifier corresponding to the function control may be in the form of numbers or letters, and the like, which is not specifically limited in this embodiment.
In a specific example, taking an android operating system as an example, the preset resource pool may be implemented based on an ArrayList type container, and in the ArrayList, a plurality of myview type function controls may be defined. Correspondingly, the temporary resource pool can also be implemented based on an ArrayList type container. It should be noted that the ArrayList may configure a unique corresponding control identifier for each stored function control, so as to serve as an identity identifier of each function control in the ArrayList.
It should be noted that, after the new temporary resource pool corresponding to the target identification information is created, the content of the new temporary resource pool is empty. At this time, the configuration data of the functional control which is matched with the user login role and the page identifier corresponding to the target page at the same time can be obtained by screening from the configuration data of all the functional controls in the preset resource pool, and the configuration data of the functional control obtained by screening is added to the newly-built temporary resource pool. At this time, the data in the temporary resource pool corresponding to the target identification information is the control layout data matched with the target page, and further data search in the temporary resource pool is not needed.
When the configuration data of the functional control matched with the page identifier corresponding to the user login role and the target page at the same time is screened, the configuration data of each functional control supporting the user login role can be screened out in a preset resource pool, then, on the basis of obtaining the configuration data of each functional control supporting the user login role through screening, further screening is carried out according to the page identifier of the target page to obtain the configuration data of the functional control supporting the user login role in the target page, and the finally screened data is added into a newly-built temporary resource pool.
And S350, storing the control layout data matched with the target page into the newly-built temporary resource pool corresponding to the target identification information.
And S360, acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information.
And S370, establishing a target adapter matched with the target page according to the control layout data matched with the target page and a preset total data source, wherein the target adapter comprises the adaptation relation between the control layout corresponding to each functional control in the target page and the sub data source matched with each functional control.
In an optional implementation manner of this embodiment, establishing, according to the control layout data matched with the target page and a preset total data source, a target adapter matched with the target page may include:
s371, acquiring control layout corresponding to each functional control in the target page according to the control layout data matched with the target page;
the control layout corresponding to the function control may include each sub-control corresponding to the function control, a display position of each sub-control, and a display state (e.g., visible or invisible) corresponding to each sub-control. Taking the functional control shown in fig. 3B as an example, the corresponding sub-controls include two picture sub-controls (a control icon sub-control and a red dot sub-control at the upper right corner) and two text sub-controls (a control name sub-control and an unread message number sub-control); the control icon sub-control is located in the middle, the red dot sub-control is located on the upper right of the control icon sub-control, the control name sub-control is located below the control icon sub-control, and the unread message number sub-control is located in the red dot sub-control on the upper right corner. In this embodiment, the form of the layout of the control corresponding to the function control is not particularly limited.
It should be noted that, the control layout corresponding to the function control is defined by the configuration data of the function control, and when the control layout corresponding to one function control needs to be adjusted, only the configuration data of the function control needs to be modified correspondingly. Therefore, after the control layout data matched with the target page is obtained, the control layout corresponding to each functional control in the target page can be determined according to the configuration data corresponding to each functional control in the control layout data. It is worth noting that each function control in the current target page supports the user login role matched with the current login user.
S372, determining subdata sources matched with the functional controls in the target page in preset total data sources according to the control identifications corresponding to the functional controls in the target page;
in this embodiment, each sub-data source of the preset total data source has a mapping relationship with the control identifier corresponding to the function control, so that the sub-data source matched with each function control can be searched in the preset total data source according to the control identifier corresponding to each function control in the target page.
S373, if it is determined that the historical adapter matched with the target page does not exist, respectively establishing an adaptation relation between the control layout corresponding to each functional control and the sub-data source matched with each functional control through a preset adapter interface to obtain the target adapter matched with the target page;
the function control can comprise a picture sub control and a text sub control, and the corresponding sub data source matched with the function accessory can comprise picture data corresponding to the picture sub control and text data corresponding to the text sub control. The historical adapter can be an adapter which is established when the current login user accesses the target page before.
In this embodiment, after obtaining the sub data sources matched with the function controls in the target page, it may be first determined whether there is a history adapter matched with the target page, and if it is determined that there is no history adapter matched with the target page, it indicates that the current login user accesses the target page for the first time; at this time, the adaptive relationship between the control layout corresponding to each functional control and the sub data source matched with each functional control can be established through a preset adapter interface for configuring the adaptive relationship between the control layout and the sub data source, so as to establish a target adapter matched with the target page.
It should be noted that the control layout corresponding to one function control may include a plurality of sub-controls (e.g., a picture sub-control, a text sub-control, etc.), and in this embodiment, the order corresponding to each sub-control may be predefined; correspondingly, in the sub-data source matched with the function control, the data content matched with each sub-control is also stored according to the predefined sequence. Therefore, after the adaptation relationship between the control layout corresponding to one function control and the sub data source matched with the function control is determined, the adaptation relationship between each sub control in the control layout and the data content is also naturally determined. Optionally, a mapping relationship between each data content and a child control identifier corresponding to the child control may also be preconfigured in each child data source; and subsequently, searching data content matched with each sub-control in the sub-data source according to the sub-control identification corresponding to each sub-control.
In a specific example, still taking the android operating system as an example, the adaptive relationship between the control layout corresponding to the functional control and the sub data source matched with the functional control may be set by using a workbench interface of an Adapter. Specifically, taking the functional control shown in fig. 3B as an example, the adaptation relationship between the picture sub-control and the picture data in the sub-data source matched with the picture sub-control can be determined through the workbench interface, and the adaptation relationship between the text sub-control and the text data in the sub-data source matched with the text sub-control can be determined. In addition, other control attributes can be set through a WorkbenchAdapter interface, for example, the control display area parameters, whether the control can be clicked, whether the control is displayed, and the like; for example, the number of unread messages corresponding to the functional control may be obtained, and if the number of unread messages is 0, the red dot sub-control in the upper right corner of the functional control may be set to be invisible; if the number of the unread messages is not 0, the red dot sub-control at the upper right corner of the functional control can be set to be visible, and the corresponding unread message number sub-control is displayed in the red dot sub-control, wherein the content corresponding to the unread message number sub-control is the unread message number value.
In an optional implementation manner of this embodiment, after determining, in a preset total data source, child data sources matched with the function controls in the target page, the method may further include: and if the historical adapter matched with the target page exists, updating the adaptation relation in the historical adapter matched with the target page according to the control layout corresponding to each functional control in the target page and the subdata source matched with each functional control to obtain the target adapter matched with the target page.
If the historical adapter matched with the target page is determined to exist, the target page is loaded by the target client, and when the page is refreshed or the data source is changed, the original adaptation relation in the historical adapter can be updated by adopting the control layout corresponding to each functional control in the current target page and the sub-data source matched with each functional control, so that the target adapter matched with the target page is obtained.
And S380, rendering and displaying the target page according to the target adapter matched with the target page.
In another optional implementation manner of this embodiment, before rendering and displaying the target page according to the target adapter matched with the target page, the method may further include: and acquiring frame layout data corresponding to the target page according to the page identifier corresponding to the target page.
The frame layout data may be definition data of a target page frame (e.g., page width, page height, area division of a page, etc.). In this embodiment, the association relationship between the page identifier and the frame layout data corresponding to each function page may be configured in advance. It should be noted that the frame layout data corresponding to different function pages may be the same or different, and this embodiment is not limited in this respect.
Correspondingly, rendering and displaying the target page according to the target adapter matched with the target page may include: rendering and displaying a page frame corresponding to the target page according to the frame layout data corresponding to the target page; and rendering and displaying each functional control at a corresponding position of a page frame corresponding to the target page according to the adaptation relationship between the control layout corresponding to each functional control in the target adapter and the subdata source matched with each functional control through a preset page layout component corresponding to the target page.
The preset page layout component may be a preset system component for rendering and displaying the function control, for example, the preset page layout component may be a recycle view component of an android operating system. The RecycleView component supports rendering display of multiple types of page layouts, for example, a linear layout (supporting horizontal and vertical effects), a grid layout (supporting horizontal and vertical effects) and a distributed layout (supporting waterfall flow effects) can be realized, and by using the RecycleView component, more flexible and more efficient page rendering display can be realized.
Specifically, after frame layout data corresponding to a target page is acquired, rendering display of a page frame of the target page may be performed according to the frame layout data, and the recycle view component is bound to the target adapter on the basis of the page frame, so that each function control is rendered and displayed at a corresponding position of the page frame according to an adaptation relationship between a control layout corresponding to each function control in the target adapter and a sub data source matched with each function control.
In a specific example, the page display effect that can be achieved by the technical solution of the present embodiment can be as shown in fig. 3C; the functional page corresponds to a grid layout, and the control layout corresponding to each functional control is divided into a picture sub-control (displaying an icon corresponding to the functional control) and a text sub-control (displaying a control name corresponding to the functional control). It is worth noting that the number and types of the function controls displayed in the function page are different for different users, so that differentiated display of the client page can be achieved.
According to the technical scheme provided by the embodiment of the invention, before the control layout data matched with the target page is acquired from the temporary resource pool corresponding to the target identification information, whether the temporary resource pool corresponding to the target identification information exists in the local cache of the target client is detected in advance; if the temporary resource pool does not exist, a temporary resource pool corresponding to the target identification information is created, control layout data matched with the target page is screened from a preset resource pool corresponding to the target client according to a user login role matched with the current login user and a page identification corresponding to the target page, and the control layout data matched with the target page is stored in the created temporary resource pool corresponding to the target identification information; by screening the control layout data matched with the target page from the preset resource pool of the target client to newly create the temporary resource pool corresponding to the target identification information, frequent reading of the preset resource pool in the client can be avoided, the reading times of the preset resource pool can be reduced, and the data processing pressure of the target client can be reduced.
Example four
Fig. 4 is a block diagram of a structure of a page display apparatus of a mobile client according to a fourth embodiment of the present invention, where the apparatus specifically includes: a user login role obtaining module 410, a target identification information obtaining module 420, a control layout data obtaining module 430, a target adapter establishing module 440 and a page rendering display module 450; wherein;
a user login role obtaining module 410, configured to, when it is detected that the target client currently meets a preset login state detection condition, obtain a user login role matched with a current login user;
the target identification information obtaining module 420 is configured to, in response to a request for viewing a target page in a target client from a current login user, obtain target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page;
a control layout data obtaining module 430, configured to obtain control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
the target adapter establishing module 440 is configured to establish a target adapter matched with the target page according to the control layout data matched with the target page and a preset total data source, where the target adapter includes an adaptation relationship between a control layout corresponding to each functional control in the target page and a sub data source matched with each functional control;
and a page rendering and displaying module 450, configured to render and display the target page according to the target adapter matched with the target page.
According to the technical scheme provided by the embodiment of the invention, when the target client side is detected to meet the preset login state detection condition currently, the user login role matched with the current login user is obtained; responding to a viewing request of a current login user for a target page in a target client, and acquiring target identification information obtained by combining a user login role and a page identifier corresponding to the target page; further acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information; and according to the control layout data matched with the target page and a preset total data source, establishing a target adapter matched with the target page, and rendering and displaying the target page according to the target adapter matched with the target page. When a current login user requests to view a target page of a client, a temporary resource pool corresponding to target identification information is established to store control layout data matched with the target page, so that repeated traversal of all control layout data in the client can be avoided, the traversal times of all control layout data can be reduced, the data processing pressure of the client can be reduced, and real-time differential display of the client page can be realized.
Optionally, on the basis of the above technical solution, the page display device of the mobile client further includes:
the temporary resource pool detection module is used for detecting whether a temporary resource pool corresponding to the target identification information exists in a local cache of the target client side, and if not, establishing a new temporary resource pool corresponding to the target identification information;
the control layout data screening module is used for screening control layout data matched with the target page in a preset resource pool corresponding to the target client according to the user login role matched with the current login user and the page identification corresponding to the target page;
and the control layout data storage module is used for storing the control layout data matched with the target page into the newly-built temporary resource pool corresponding to the target identification information.
Optionally, on the basis of the foregoing technical solution, the user login role obtaining module 410 includes:
the login state judging unit is used for judging whether the target client is in a logged-in state or not when detecting that the target client starts to run in the foreground currently;
and the first condition determining unit is used for determining that the target client side meets the preset login state detection condition when detecting that the foreground running state of the target client side is not waken from the background to the foreground if the target client side is in the foreground running state.
Optionally, on the basis of the foregoing technical solution, the first condition determining unit includes:
a view component detection subunit, configured to detect, in a view component manager of the target client, whether a view component corresponding to a main page of the target client exists;
and the first foreground running state determining subunit is used for determining that the foreground running state is not waken from the background to the foreground if the foreground running state is not waken from the background to the foreground.
Optionally, on the basis of the foregoing technical solution, the first condition determining unit includes:
a process survival state judgment subunit, configured to judge whether a process corresponding to the target client is in a survival state;
and the second foreground running state determining subunit is configured to determine that the foreground running state is not wakened from the background to the foreground when detecting that the view component corresponding to the main page of the target client does not exist in the view component manager of the target client if the foreground running state is determined to be not wakened from the background to the foreground.
Optionally, on the basis of the foregoing technical solution, the user login role obtaining module 410 further includes:
the login page display unit is used for displaying the login page of the target client to the current access user if the current access user does not access the target client;
and the second condition determining unit is used for acquiring user login information input by the current access user in the login page, and determining that the target client currently meets the preset login state detection condition when the user login information is detected to pass the user identity authentication successfully.
Optionally, on the basis of the foregoing technical solution, the target adapter establishing module 440 includes:
the control layout acquisition unit is used for acquiring control layouts corresponding to the functional controls in the target page according to the control layout data matched with the target page;
a matching data source determining unit, configured to determine, according to the control identifier corresponding to each functional control in the target page, a sub data source matching each functional control in the target page in a preset total data source;
a first target adapter obtaining unit, configured to, if it is determined that there is no history adapter matching the target page, respectively establish, through a preset adapter interface, an adaptation relationship between a control layout corresponding to each function control and a sub data source matching each function control, so as to obtain a target adapter matching the target page;
the sub data source comprises picture data and text data corresponding to each function control in the target page.
Optionally, on the basis of the foregoing technical solution, the target adapter establishing module 440 further includes:
and the second target adapter obtaining unit is used for updating the adaptation relation in the history adapter matched with the target page according to the control layout corresponding to each functional control in the target page and the sub data source matched with each functional control to obtain the target adapter matched with the target page if the history adapter matched with the target page is determined to exist.
Optionally, on the basis of the above technical solution, the page display device of the mobile client further includes:
the frame layout data acquisition module is used for acquiring frame layout data corresponding to the target page according to the page identifier corresponding to the target page;
a page rendering display module 450, comprising:
the page frame rendering unit is used for rendering and displaying the page frame corresponding to the target page according to the frame layout data corresponding to the target page;
and the functional control rendering unit is used for rendering and displaying each functional control at the corresponding position of the page frame corresponding to the target page according to the adaptation relation between the control layout corresponding to each functional control in the target adapter and the sub data source matched with each functional control through a preset page layout component corresponding to the target page.
The device can execute the page display method of the mobile client provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the foregoing embodiments of the present invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a client apparatus according to a fifth embodiment of the present invention, as shown in fig. 5, the client apparatus includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the client device may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, memory 520, input device 530, and output device 540 in the client device may be connected by a bus or other means, such as by a bus connection in fig. 5. The memory 520 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a page display method of a mobile client in any embodiment of the present invention (for example, the user login role obtaining module 410, the target identification information obtaining module 420, the control layout data obtaining module 430, the target adapter establishing module 440, and the page rendering display module 450 in a page display apparatus of a mobile client). The processor 510 executes various functional applications and data processing of the client device by executing software programs, instructions and modules stored in the memory 520, so as to implement the page display method of the mobile client. That is, the program when executed by the processor implements:
when the target client side is detected to meet the preset login state detection condition currently, acquiring a user login role matched with the current login user;
responding to a viewing request of a current login user to a target page in a target client, and acquiring target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page;
acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to the control layout data matched with the target page and a preset total data source, a target adapter matched with the target page is established, wherein the target adapter comprises an adaptive relation between the control layout corresponding to each functional control in the target page and a subdata source matched with each functional control;
and rendering and displaying the target page according to the target adapter matched with the target page.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to client devices over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the client device, and may include a keyboard and a mouse, etc. The output device 540 may include a display device such as a display screen.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method according to any embodiment of the present invention. Of course, the computer-readable storage medium provided in the embodiments of the present invention may perform related operations in the page displaying method of the mobile client provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
when the target client side is detected to meet the preset login state detection condition currently, acquiring a user login role matched with the current login user;
responding to a viewing request of a current login user to a target page in a target client, and acquiring target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page;
acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to the control layout data matched with the target page and a preset total data source, a target adapter matched with the target page is established, wherein the target adapter comprises an adaptive relation between the control layout corresponding to each functional control in the target page and a subdata source matched with each functional control;
and rendering and displaying the target page according to the target adapter matched with the target page.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the page display apparatus of the mobile client, each unit and each module included in the page display apparatus are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A page display method of a mobile client is characterized by comprising the following steps:
when the target client side is detected to meet the preset login state detection condition currently, acquiring a user login role matched with the current login user;
responding to a viewing request of a current login user to a target page in a target client, and acquiring target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page;
acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to the control layout data matched with the target page and a preset total data source, a target adapter matched with the target page is established, wherein the target adapter comprises an adaptive relation between the control layout corresponding to each functional control in the target page and a subdata source matched with each functional control;
and rendering and displaying the target page according to the target adapter matched with the target page.
2. The method of claim 1, further comprising, before obtaining control layout data matching the target page from a temporary resource pool corresponding to the target identification information:
detecting whether a temporary resource pool corresponding to the target identification information exists in a local cache of a target client, and if not, establishing a new temporary resource pool corresponding to the target identification information;
screening control layout data matched with the target page in a preset resource pool corresponding to the target client according to the user login role matched with the current login user and the page identification corresponding to the target page;
and storing the control layout data matched with the target page into the newly-built temporary resource pool corresponding to the target identification information.
3. The method of claim 1, wherein detecting that the target client currently satisfies a predetermined login state detection condition comprises:
when detecting that a target client starts to run in a foreground currently, judging whether the target client is in a logged-on state or not;
if yes, determining that the target client side meets a preset login state detection condition when detecting that the foreground running state of the target client side is not waken from the background to the foreground.
4. The method of claim 3, wherein detecting that the foreground operating state is not waking from background to foreground comprises:
detecting whether a view component corresponding to a main page of the target client exists in a view component manager of the target client;
if not, determining that the foreground running state is not waken from the background to the foreground.
5. The method of claim 3, wherein detecting that the foreground operating state is not waking from background to foreground comprises:
judging whether the process corresponding to the target client is in a survival state;
if so, determining that the foreground running state is not wakened from the background to the foreground when detecting that the view component corresponding to the main page of the target client does not exist in the view component manager of the target client.
6. The method of claim 3, after determining whether the target client is in a logged-on state, further comprising:
if not, displaying a login page of the target client to the current access user;
and acquiring user login information input by the current access user in the login page, and determining that the target client currently meets a preset login state detection condition when detecting that the user login information successfully passes user identity authentication.
7. The method of claim 2, wherein establishing a target adapter matching the target page according to the control layout data matching the target page and a preset total data source comprises:
acquiring control layout corresponding to each functional control in the target page according to the control layout data matched with the target page;
determining subdata sources matched with the functional controls in the target page in preset total data sources according to the control identifications corresponding to the functional controls in the target page;
if the historical adapter matched with the target page does not exist, respectively establishing an adaptation relation between the control layout corresponding to each functional control and the sub-data source matched with each functional control through a preset adapter interface to obtain the target adapter matched with the target page;
the sub data source comprises picture data and text data corresponding to each function control in the target page.
8. The method of claim 7, after determining the sub data sources matching the function controls in the target page from the preset total data sources, further comprising:
and if the historical adapter matched with the target page exists, updating the adaptation relation in the historical adapter matched with the target page according to the control layout corresponding to each functional control in the target page and the subdata source matched with each functional control to obtain the target adapter matched with the target page.
9. The method according to claim 7 or 8, before rendering and displaying the target page according to the target adapter matched with the target page, further comprising:
acquiring frame layout data corresponding to the target page according to the page identifier corresponding to the target page;
rendering and displaying the target page according to the target adapter matched with the target page, wherein the rendering and displaying process comprises the following steps:
rendering and displaying a page frame corresponding to the target page according to the frame layout data corresponding to the target page;
and rendering and displaying each functional control at a corresponding position of a page frame corresponding to the target page according to the adaptation relationship between the control layout corresponding to each functional control in the target adapter and the subdata source matched with each functional control through a preset page layout component corresponding to the target page.
10. A page display device of a mobile client is characterized by comprising:
the user login role acquisition module is used for acquiring a user login role matched with a current login user when the target client side is detected to meet the preset login state detection condition currently;
the target identification information acquisition module is used for responding to a viewing request of a current login user for a target page in a target client and acquiring target identification information matched with the current login user; the target identification information is a combination of the user login role and a page identifier corresponding to the target page;
the control layout data acquisition module is used for acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
the target adapter establishing module is used for establishing a target adapter matched with the target page according to the control layout data matched with the target page and a preset total data source, and the target adapter comprises an adaptive relation between the control layout corresponding to each functional control in the target page and a subdata source matched with each functional control;
and the page rendering display module is used for rendering and displaying the target page according to the target adapter matched with the target page.
11. A client device, the client device comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the page presentation method of the mobile client according to any of claims 1-9.
12. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, carries out a page presentation method for a mobile client according to any one of claims 1 to 9.
CN202210112350.1A 2022-01-29 2022-01-29 Page display method, device and equipment of mobile client and storage medium Active CN114443200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210112350.1A CN114443200B (en) 2022-01-29 2022-01-29 Page display method, device and equipment of mobile client and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210112350.1A CN114443200B (en) 2022-01-29 2022-01-29 Page display method, device and equipment of mobile client and storage medium

Publications (2)

Publication Number Publication Date
CN114443200A true CN114443200A (en) 2022-05-06
CN114443200B CN114443200B (en) 2024-04-09

Family

ID=81371563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210112350.1A Active CN114443200B (en) 2022-01-29 2022-01-29 Page display method, device and equipment of mobile client and storage medium

Country Status (1)

Country Link
CN (1) CN114443200B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114978671A (en) * 2022-05-18 2022-08-30 中国平安财产保险股份有限公司 Method and device for accessing front-end resources, computer equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030107591A1 (en) * 2001-12-04 2003-06-12 Jameson Kevin W. Collection role changing GUI
US7146617B2 (en) * 2001-09-29 2006-12-05 Siebel Systems, Inc. Method, apparatus, and system for implementing view caching in a framework to support web-based applications
CN102724221A (en) * 2011-03-30 2012-10-10 上海微河信息科技有限公司 Enterprise information system using cloud computing and method for setting user authority thereof
CN106911687A (en) * 2017-02-20 2017-06-30 深圳国泰安教育技术股份有限公司 A kind of page makeup control method and device
CN108255974A (en) * 2017-12-27 2018-07-06 武汉天喻教育科技有限公司 A kind of modular Web page shows system and method
CN109388460A (en) * 2018-09-26 2019-02-26 浙江万朋教育科技股份有限公司 A method of it promoting client application and pulls homepage data efficiency
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium
CN110647698A (en) * 2019-08-12 2020-01-03 视联动力信息技术股份有限公司 Page loading method and device, electronic equipment and readable storage medium
CN112350991A (en) * 2020-09-28 2021-02-09 珠海大横琴科技发展有限公司 Login method and device of front-end system
US11061548B1 (en) * 2019-10-18 2021-07-13 Splunk Inc. Context-sensitive user interfaces in an information technology (IT) and security operations application
CN113536253A (en) * 2021-07-23 2021-10-22 工银科技有限公司 Method, apparatus, device and medium for controlling display authority of page element
CN113609460A (en) * 2021-06-30 2021-11-05 苏州浪潮智能科技有限公司 Page loading method and system based on user permission
CN113867715A (en) * 2021-09-27 2021-12-31 平安国际智慧城市科技股份有限公司 Page bottom bar configuration method, device, equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7146617B2 (en) * 2001-09-29 2006-12-05 Siebel Systems, Inc. Method, apparatus, and system for implementing view caching in a framework to support web-based applications
US20030107591A1 (en) * 2001-12-04 2003-06-12 Jameson Kevin W. Collection role changing GUI
CN102724221A (en) * 2011-03-30 2012-10-10 上海微河信息科技有限公司 Enterprise information system using cloud computing and method for setting user authority thereof
CN106911687A (en) * 2017-02-20 2017-06-30 深圳国泰安教育技术股份有限公司 A kind of page makeup control method and device
CN108255974A (en) * 2017-12-27 2018-07-06 武汉天喻教育科技有限公司 A kind of modular Web page shows system and method
CN109388460A (en) * 2018-09-26 2019-02-26 浙江万朋教育科技股份有限公司 A method of it promoting client application and pulls homepage data efficiency
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium
CN110647698A (en) * 2019-08-12 2020-01-03 视联动力信息技术股份有限公司 Page loading method and device, electronic equipment and readable storage medium
US11061548B1 (en) * 2019-10-18 2021-07-13 Splunk Inc. Context-sensitive user interfaces in an information technology (IT) and security operations application
CN112350991A (en) * 2020-09-28 2021-02-09 珠海大横琴科技发展有限公司 Login method and device of front-end system
CN113609460A (en) * 2021-06-30 2021-11-05 苏州浪潮智能科技有限公司 Page loading method and system based on user permission
CN113536253A (en) * 2021-07-23 2021-10-22 工银科技有限公司 Method, apparatus, device and medium for controlling display authority of page element
CN113867715A (en) * 2021-09-27 2021-12-31 平安国际智慧城市科技股份有限公司 Page bottom bar configuration method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114978671A (en) * 2022-05-18 2022-08-30 中国平安财产保险股份有限公司 Method and device for accessing front-end resources, computer equipment and storage medium
CN114978671B (en) * 2022-05-18 2024-02-13 中国平安财产保险股份有限公司 Method, device, computer equipment and storage medium for front-end resource access

Also Published As

Publication number Publication date
CN114443200B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US10877826B2 (en) Message processing method and apparatus, storage medium, and computer device
EP3467692B1 (en) Message permission management method and device, and storage medium
US10075426B2 (en) Web-based single sign-on with form-fill proxy application
US10116647B2 (en) Unified provisioning of applications on devices in an enterprise system
US10764278B2 (en) Authentication on a computing device
US11489671B2 (en) Serverless connected app design
CN108182060B (en) Hybrid application point burying method, mobile terminal and system
US10445392B2 (en) Official account quick response code generation method and server, official account following method and server, and terminal
CN108710528B (en) Desktop cloud virtual machine access and control method, device, equipment and storage medium
US20140282983A1 (en) Single certificate service system and operational method thereof
CN112019820B (en) Interface generation method and device
US20100241417A1 (en) Localized content
US9781154B1 (en) Systems and methods for supporting information security and sub-system operational protocol conformance
CN113094136A (en) Page display control method and device, storage medium and electronic equipment
US20110271201A1 (en) Decentralized Contextual Collaboration Across Heterogeneous Environments
US11729228B2 (en) Systems and methods for sharing content externally from a group-based communication platform
US11921726B2 (en) Logical partitions via header-based partition filtering
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN114443200B (en) Page display method, device and equipment of mobile client and storage medium
CN109948332A (en) A kind of physical machine login password remapping method and device
US8949930B1 (en) Template representation of security resources
US9049174B2 (en) Maintaining sessions in a smart thin client server
CN110120963B (en) Data processing method, device, equipment and machine readable medium
CN114265661B (en) Page display method, device, equipment and storage medium for mobile client
CN114518924B (en) Page display method, device and equipment of mobile client 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
GR01 Patent grant