CN114443200B - Page display method, device and equipment of mobile client and storage medium - Google Patents

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

Info

Publication number
CN114443200B
CN114443200B CN202210112350.1A CN202210112350A CN114443200B CN 114443200 B CN114443200 B CN 114443200B CN 202210112350 A CN202210112350 A CN 202210112350A CN 114443200 B CN114443200 B CN 114443200B
Authority
CN
China
Prior art keywords
target
page
matched
control
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210112350.1A
Other languages
Chinese (zh)
Other versions
CN114443200A (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

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

Landscapes

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

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 the fact that the preset login state detection condition is met is detected, 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 the target adapter established based on the control layout data and the preset total data source. According to the technical scheme, when a current login user requests to view the target page of the client, a temporary resource pool corresponding to target identification information is established to store control layout data matched with the target page, repeated traversal of all control layout data in the client can be avoided, data processing pressure of the client can be reduced, and real-time differential display of the client page can be achieved.

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, device and equipment of a mobile client and a storage medium.
Background
Along with the continuous development of mobile application technology, in the display page of the mobile client, different page contents are displayed for the user without using the mobile client, so that 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 the existing page display method of the mobile client, corresponding authority information is manually configured for different users, and when the mobile client detects that the user requests to view a certain page, the corresponding functional module is displayed to the user in the page according to the authority information corresponding to the user. However, in the prior art, each function module in the display page needs to perform one-time traversal reading on the configuration data of all the function modules in the client to find the matched configuration data, so that the data processing pressure of the client is increased, and the real-time performance of differential display of the client page is poor.
Disclosure of Invention
The invention provides a page display method, device, equipment and 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 differentiated display of the client page.
In a first aspect, an embodiment of the present invention provides a page display method of a mobile client, including:
when the target client side is detected to currently meet the preset login state detection condition, acquiring a user login role matched with a current login user;
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;
acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to 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 adaptation relation between control layouts corresponding to all functional controls in the target page and sub data sources matched with all the functional controls;
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 device of 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 detecting that the target client currently meets a preset login state detection condition;
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 building module is used for building a target adapter matched with the target page according to control layout data matched with the target page and a preset total data source, and the target adapter comprises an adaptation relation between control layouts corresponding to all the functional controls in the target page and sub data sources matched with all the functional controls;
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;
a 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 for a 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, where a computer program is stored, where the program when executed by a processor implements the page presentation 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 currently meet the preset login state detection condition, a user login role matched with a current login user is acquired; 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, control layout data matched with the target page is obtained from a temporary resource pool corresponding to the target identification information; and building 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, so as to render and display 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, repeated traversing of all control layout data in the client can be avoided, traversing times of all control layout data can be reduced, accordingly data processing pressure of the client can be reduced, and real-time differentiated display of the client page can be achieved.
Drawings
FIG. 1 is a flow chart of a page display method of a mobile client according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a page display method of a mobile client according to a second embodiment of the present invention;
FIG. 3A is a flow chart 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 functional control in a third embodiment of the present invention;
FIG. 3C is a schematic diagram of a client page in accordance with a third embodiment of the present invention;
FIG. 4 is a block diagram showing a mobile client page display device according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a client device in a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a mobile client page display method according to a first embodiment of the present invention, where the method may be applied to a case of displaying respective corresponding client pages to different users when detecting that different users log in to a client, and the method may be performed by a mobile client page display device according to the embodiment of the present invention and integrated on a client device, typically, the client device may be a mobile terminal, and includes the following steps:
S110, when the fact that the target client side currently meets the preset login state detection conditions is detected, 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 judging whether the latest user login role needs to be requested from the background 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 the target client detects that the detection condition is met, the target client may request a user login role matched with the current login user from the background server.
Where "foreground" and "background" are both relative to the operating system of the mobile terminal. Taking an android operating system as an example, when determining that a client is 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, determining that the client runs 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 the user permission corresponding to each function control contained in the target client; the background server can configure the user authority corresponding to each function control for the user by endowing the user of the target client with the user login role corresponding to the user. The background server may be a remote device that communicates with the target client. Functional controls refer to program entities for implementing specific functions, for example, the functional controls may include payroll controls, cushioned controls, flexible recruitment controls, and the like. Correspondingly, the user permissions may include behavior permissions (e.g., whether it may be selected and whether it may jump after being selected, etc.) and status permissions (e.g., whether it is visible) corresponding to the functionality controls.
In this embodiment, the corresponding user authority is configured for the user of the target client by giving the user a login role, so that when different users correspond to the same user authority, only one user login role corresponding to the same user authority needs to be configured. At this time, by giving each user the user login role, the corresponding same user authority can be configured for each user, so that 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 authority is required to be updated, the latest user login role of the current user is only required to be given, and the real-time performance of the user authority update can be improved.
S120, 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.
In this embodiment, each functional page of the target client has a unique corresponding page identifier, so when the target client detects that the current login user clicks to select the 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, so that the target identification information matched with the current login user can be generated in combination with the user login role sent by the background server.
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 particularly 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 functional control in the target page, for example, a display width and a display height of the functional control, a supported user login role, and the like. 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 matched with the page identifier corresponding to the user login role and the target page at the same time is obtained, and data in the temporary resource pool is read, so as to obtain control layout data that is matched with the target page.
In this embodiment, after the target client obtains the user login role matched with the current login user, the target client may automatically combine the user login role with the page identifier corresponding to each functional page, create temporary resource pools corresponding to each functional page of the target client for the current login user, and store the temporary resource pools in the local cache. And when detecting a viewing request of the current login user for the target page, the temporary resource pool corresponding to the target identification information can be directly searched in the local cache, and control layout data matched with the target page can be obtained. Through the setting, the acquisition speed of the control layout data matched with the target page can be improved, and the rendering display speed of the target page can be improved.
Optionally, after the target client obtains the user login role matched with the current login user, the target client may not first create a corresponding temporary resource pool, but screen configuration data of all the functional controls, which are matched with the page identifications corresponding to the user login role and the target page at the same time, from configuration data of all the functional controls when detecting that the current login user views the target page for the first time, so as to create the temporary resource pool corresponding to the target identification information. Through the arrangement, occupation of the temporary resource pool corresponding to the created target page to 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 in the logged-in state at present at the target client in each mobile terminal, only one user logs in role at the same time for the target client; by establishing a corresponding temporary resource pool for the current login user, frequent reading of a preset resource pool storing configuration data corresponding to all the functional controls in the target client in a later period can be avoided, and the data processing pressure of the target client can be reduced.
And S140, 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 an adaptation relation between a control layout corresponding to each functional control in the target page and a sub data source matched with each functional control.
The preset total data source can comprise sub data sources adapted by all the functional controls of the target client; a sub-data source may be a collection of multiple data content (e.g., pictures, text, etc.). 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, the picture sub-control and the text sub-control) included in the functional control, the relative positions of the sub-controls in the control area, and the like. And then the sub data source adapted by 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 a target adapter matched with the target page is established.
And 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, each functional control of the target page may be traversed based on each pair of adaptation relationships in the target adapter, so as to render and display each functional control supporting the current user login role, thereby implementing 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 currently meet the preset login state detection condition, a user login role matched with a current login user is acquired; 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, control layout data matched with the target page is obtained from a temporary resource pool corresponding to the target identification information; and building 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, so as to render and display 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, repeated traversing of all control layout data in the client can be avoided, traversing times of all control layout data can be reduced, accordingly data processing pressure of the client can be reduced, and real-time differentiated display of the client page can be achieved.
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, where the technical solution in this embodiment may be combined with one or more of the foregoing embodiments. Specifically, referring to fig. 2, the method specifically includes the following steps:
s210, judging whether the target client is in a logged-in state or not when detecting that the target client is started to run in the foreground currently.
In this embodiment, when it is detected that the target client is currently turned on, it may be determined that the target client is currently started to run in the foreground; or when it is detected that a view component corresponding to a page of the target client is created, it may be determined that the target client is currently started to run in the foreground. Further, when the target client is determined to start running in the foreground, whether the target client is in a logged-in state or not is judged.
And S220, if so, determining that the target client meets a preset login state detection condition when detecting that the foreground running state of the target client is not awakened 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 turned on before a short time and is not currently exited; at this time, since the interval time is short, the user login role corresponding to the current login user is not changed. If the target client requests the user login role from the background server again, repeated requests of the same user login role in a short time are caused, the effectiveness of acquiring the user login role is reduced, the number of requests of the corresponding interface of the background server is increased, and the data processing pressure of the background server is increased.
In view of the above, in this embodiment, after determining that the target client is in the logged-in state, it is further determined whether the target client wakes up from the background to the foreground, that is, whether the target client has been previously turned on and has not been logged out. If it is determined that the current foreground operating state is not awakened from the background to the foreground, a user login role acquisition request may be sent to the background server. After receiving the user login role obtaining request, the background server may find a corresponding relationship between a pre-established user identifier and a user login role according to a user identifier (for example, a user name or a user account number) of a current login user, obtain a first user login role matched with the current login user, and send the first user login role to the target client. 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 used continuously.
The advantages of the above arrangement are that: by judging the current foreground running state of the target client to determine whether to request the matched user login roles from the background server, repeated requests of the same user login roles can be avoided, the effectiveness of acquiring the user login roles can be improved, in addition, frequent and unnecessary requests of the background server on the user login roles can be avoided, the number of requests of the background server on the corresponding interfaces can be reduced, and the data processing pressure of the server is reduced.
Wherein, detecting that the foreground operation state is not awakened from the background to the foreground may include: detecting whether a view component corresponding to a homepage of the target client exists in a view component manager of the target client; if not, determining that the foreground running state is not awakened from the background to the foreground.
The view component is a software entity for realizing the display of the client page and corresponds to the client page one by one; and the view component manager is used for recording and managing the view components. In this embodiment, a view component manager with a history view component recording function may be locally configured to store view components corresponding to pages displayed by the target client in a certain time. Notably, when the target client is completely shut down, killed by the operating system background, or a restart occurs at the terminal where 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 client is opened, the user will enter the main page of the client by default, 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 not completely closed, the user must open the main page passing through the target client, so that the view component manager must have a view component for displaying the main page of the target client; therefore, the view component corresponding to the main page can be searched in the view component manager of the target client to judge whether the target client wakes up from the background to the foreground.
In a specific example, when the target client corresponds to the 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 the program and a user; specifically, the Activity component can realize all processes of creating, displaying and ending the interactive interface through a series of pre-configured controls. Specifically, in an Activity component manager of the target client, detecting whether an Activity component corresponding to a homepage of the target client exists; if it is determined that there is, it may be determined that the target client is awakened from the background to the foreground.
It should be noted that, at present, the login state of many APPs will be cached locally, even if the APP is completely closed or the mobile phone is restarted, if the APP is restarted within the validity period, the APP will still be in the logged state, and no re-login is needed, for example, after the WeChat is closed, no re-login is needed when the WeChat is opened again. However, the validity period of APP settings may be 1 week or longer, during which time the backend server may update the matching user login roles. Therefore, if only the login state of the target client is detected, the latest user login role matched with the current login user cannot be obtained in time, so that 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 the current user login role is requested to be acquired by the background server is determined according to whether a view component corresponding to the homepage exists in the view component manager, so that timely acquisition of the latest user login role can be realized, frequent and unnecessary requests for the user login role caused by the condition that the target client wakes up from the background to the foreground can be avoided, the number of requests of the corresponding interface of the background server can be reduced, and the data processing pressure of the background server can be reduced.
Optionally, detecting that the foreground operating state is not awakened from the background to the foreground may further include: judging whether the process corresponding to the target client is in a survival state or not; if so, determining that the foreground running state is not awakened from the background to the foreground when detecting that no view component corresponding to the homepage of the target client exists in the view component manager of the target client.
In this embodiment, when detecting whether the foreground running state wakes up from the background to the foreground, it may also be detected whether the background process of the target client is in a surviving state; if yes, the target client can be determined not to be thoroughly killed by the background of the operating system; further, if it is determined that the view component corresponding to the main page exists in the view component manager, it may be determined that the current foreground running state of the target client wakes up from the background to the foreground.
The advantages of the above arrangement are that: by combining whether the process corresponding to the target client is in a survival state and whether the view component corresponding to the main page is included in the view component manager or not, whether the foreground operation state is awakened from the background to the foreground or not is finally judged, and the judgment accuracy of the foreground operation state of the target client can be improved.
In another optional implementation manner of this embodiment, after determining whether the target client is in the 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 the user login information is detected to pass user authentication successfully.
In one scenario, when the 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 access user at the human-computer interaction interface. The current access user can input user login information such as a user account number, a user password and the like in a login page, and click a login button. When the target client detects clicking of the login button, user login information input by a user is sent to the background server, and a user login interface of the background server is requested to check the user login information. When the background server detects a request of a target client to a user login interface, checking the received user login information; if the user identity verification is successful, the target client can be determined to currently meet the preset login state detection condition.
S230, acquiring a user login role matched with the current login user.
S240, 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 a user login role and a page identifier corresponding to a target page.
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 an adaptation relation between a control layout corresponding to each functional control in the target page and a 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 side meets the preset login state detection condition is detected, so that whether the latest user login role matched with the current login user is requested to be acquired from the server is judged, 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, meanwhile, repeated and unnecessary requests for the same user login role in a short time can be avoided, the validity of the acquired user login role can be ensured, the balance of the timeliness and the validity of the acquisition of the user login role can be realized through the setting, and finally, the real-time differentiated display of the client side page is 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, where 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:
and S310, when the fact that the target client side currently meets the preset login state detection condition is detected, acquiring a user login role matched with the current login user.
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 the local cache of the target client, and if not, creating a temporary resource pool corresponding to the target identification information.
In this embodiment, after obtaining the target identification information matched with the current login user, it may first find whether there is a temporary resource pool matched with the target identification information in the local cache; if the matched temporary resource pool is successfully found, the data in the temporary resource pool can be directly read to obtain the control layout data matched with the target page. 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 construction of the corresponding temporary resource pool is needed.
S340, according to the user login role matched with the current login user and the page identification corresponding to the target page, the control layout data matched with the target page is obtained by screening in a preset resource pool corresponding to the target client.
The preset resource pool can comprise configuration data of all the functional controls of the target client; control layout data matching the target page may be considered a collection of configuration data for a plurality of functionality controls. When the function controls in the target client are required to be added, deleted and modified, configuration data of the corresponding function controls are only required to be modified in the preset resource pool. The configuration data of the functional control mainly comprises page identifications corresponding to the functional control, user login roles supported by the functional control, control names corresponding to the functional control and control identifications corresponding to the functional control. The control identifier corresponding to the functional control may be in the form of numbers or letters, 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, where multiple myview type functionality controls may be defined. Correspondingly, the temporary resource pool can be implemented based on an ArrayList type container as well. It should be noted that the ArrayList may configure a unique corresponding control identifier for each stored function control, so as to be used as an identity identifier of each function control in the ArrayList.
It is noted that after the temporary resource pool corresponding to the target identification information is newly created, the content of the newly created temporary resource pool is currently empty. At this time, 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 can be obtained by screening in 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 into 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 no further data searching is needed in the temporary resource pool.
When screening configuration data of the functional controls which are matched with page identifications corresponding to the user login roles and the target pages at the same time, the configuration data of each functional control supporting the user login roles can be screened out in a preset resource pool, then the configuration data of each functional control supporting the user login roles is further screened out according to the page identifications of the target pages on the basis of screening the configuration data of each functional control supporting the user login roles, so that the configuration data of the functional control supporting the user login roles in the target pages are obtained, and the finally screened data are 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.
S360, obtaining 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 an adaptation relation between a control layout corresponding to each functional control in the target page and a sub data source matched with each functional control.
In an optional implementation manner of this embodiment, establishing the target adapter matched with the target page according to the control layout data matched with the target page and the preset total data source may include:
s371, obtaining control layout corresponding to each function control in the target page according to control layout data matched with the target page;
the control layout corresponding to the functional control may include each sub-control corresponding to the functional control, a display position of each sub-control, and a display state (for example, visible or invisible) corresponding to each sub-control. Taking the functional control shown in fig. 3B as an example, the corresponding child controls include two picture child controls (a control icon child control and an upper right red dot child control) and two text child controls (a control name child control and an unread message number child control); the control icon sub-control is positioned at the middle position, the red dot sub-control is positioned at the upper right of the control icon sub-control, the control name sub-control is positioned below the control icon sub-control, and the unread message number sub-control is positioned in the red dot sub-control at the upper right corner. In this embodiment, the form of the control layout corresponding to the function control is not particularly limited.
The control layout corresponding to the functional control is defined by the configuration data of the functional control, and when the control layout corresponding to one functional control needs to be adjusted, only the configuration data of the functional control needs to be correspondingly modified. 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. Notably, each functional control in the current target page supports a user login role matched with the current login user.
S372, determining sub data sources matched with each function control in the target page in a preset total data source according to control identifications corresponding to each function control in the target page;
in this embodiment, mapping relation exists between each sub data source of the preset total data source and the control identifier corresponding to the functional control, so that the sub data source matched with each functional control can be searched in the preset total data source according to the control identifier corresponding to each functional control in the target page.
S373, if it is determined that the history adapter matched with the target page does not exist, respectively establishing an adaptation relation between a control layout corresponding to each functional control and sub data sources matched with each functional control through a preset adapter interface to obtain the target adapter matched with the target page;
The function controls can comprise picture sub-controls and text sub-controls, and the corresponding sub-data sources matched with the function accessories can comprise picture data corresponding to the picture sub-controls and text data corresponding to the text sub-controls. The history adapter can be an adapter established by the current login user before accessing the target page.
In this embodiment, after obtaining the sub data sources matched with each function control in the target page, it may first determine 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 adaptation relation between the control layout corresponding to each functional control and the sub data source matched with each functional control can be established through the preset adapter interface for configuring the adaptation relation between the control layout and the sub data source, so as to establish the target adapter matched with the target page.
It should be noted that, the control layout corresponding to one functional control may include a plurality of sub-controls (for example, a picture sub-control, a text sub-control, etc.), and in this embodiment, the sequence corresponding to each sub-control may be predefined; correspondingly, in the sub-data sources matched with the functional control, the data content matched with each sub-control is stored according to a predefined sequence. Therefore, after the adaptation relation between the control layout corresponding to one functional control and the sub-data sources matched with the functional control is determined, the adaptation relation between each sub-control of the control layout and the data content is also naturally determined. Optionally, a mapping relation between each data content and a child control identifier corresponding to the child control may be preconfigured in each child data source; and searching the 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 an android operating system as an example, a workbench interface of an Adapter may be used to set an adaptation relationship between a control layout corresponding to a functional control and a sub-data source matched with the functional control. 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 matched sub-data source thereof and the adaptation relationship between the text sub-control and the text data in the matched sub-data source thereof can be determined through the workbench interface. In addition, other control attributes can be set through a workbench interface, such as control display area parameters, whether the control can be clicked, whether the control is displayed or not, and the like; for example, the number of unread messages corresponding to the functional control can be obtained, and if the number of unread messages is 0, the red point child control at the upper right corner of the functional control can be set to be invisible; if the number of the unread messages is not 0, the red point sub-control at the right upper corner of the functional control can be set to be visible, and the corresponding unread message number sub-control is displayed in the red point 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, a sub data source that matches each function control in the target page, the method may further include: if the history adapter matched with the target page is determined to exist, 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 it is determined that there is a history adapter matched with the target page, it indicates that the target client has loaded the target page before, and when there is page refreshing or a data source is changed, a control layout corresponding to each function control in the current target page and a sub data source matched with each function control may be adopted to update an original adaptation relationship in the history adapter to obtain the target adapter matched with the target page.
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 obtaining 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, region division of a page, etc.). In this embodiment, the association relationship between the page identifier corresponding to each functional page and the frame layout data may be preconfigured. It should be noted that the frame layout data corresponding to different functional pages may be the same or different, which is not particularly limited in this embodiment.
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 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 by the 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 functionality control, for example, the preset page layout component may be a recycleView component of the android operating system. The RecycloView component supports rendering displays for multiple types of page layouts, e.g., linear layouts (supporting horizontal and vertical effects), grid layouts (supporting horizontal and vertical effects), and distributed layouts (supporting waterfall flow effects) can be implemented, and by using the RecycloView component, a more flexible and efficient rendering presentation of pages can be achieved.
Specifically, after frame layout data corresponding to a target page is obtained, rendering display of a page frame of the target page can be performed according to the frame layout data, and on the basis of the page frame, a RecycloView component and a target adapter are bound, so that rendering display of each functional control at a corresponding position of the page frame is performed according to an adaptation relation between a control layout corresponding to each functional control in the target adapter and a sub-data source matched with each functional control.
In a specific example, the page display effect achieved by the technical solution of the embodiment may be as shown in fig. 3C; the functional page corresponds to the grid layout, and the control layout corresponding to each functional control is divided into a picture sub-control (an icon corresponding to the display functional control) and a text sub-control (a control name corresponding to the display functional control). Notably, for different users, the number and types of the functional controls displayed in the functional pages are different, so that the differential display of the client pages can be realized.
According to the technical scheme provided by the embodiment of the invention, whether the temporary resource pool corresponding to the target identification information exists in the local cache of the target client is detected in advance before control layout data matched with the target page is acquired from the temporary resource pool corresponding to the target identification information; if the control layout data does not exist, a temporary resource pool corresponding to the target identification information is newly built, 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 identifier corresponding to the target page, and the control layout data matched with the target page is stored in the newly built temporary resource pool corresponding to the target identification information; the control layout data matched with the target page is screened from the preset resource pool of the target client to newly establish the temporary resource pool corresponding to the target identification information, so that frequent reading of the preset resource pool in the client can be avoided, the number of times of reading the preset resource pool can be reduced, and the data processing pressure of the target client can be reduced.
Example IV
Fig. 4 is a block diagram of a page display device of a mobile client according to a fourth embodiment of the present invention, where the device specifically includes: a user login role acquisition module 410, a target identification information acquisition module 420, a control layout data acquisition module 430, a target adapter establishment module 440, and a page rendering display module 450; wherein;
the user login role obtaining module 410 is configured to obtain a user login role matched with a current login user when it is detected that the target client currently meets a preset login state detection condition;
the target identification information obtaining module 420 is configured to obtain target identification information matched with a current login user in response to a request of the current login user to view a target page in a target client; 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 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 the page rendering display module 450 is used for 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, when the target client side is detected to currently meet the preset login state detection condition, a user login role matched with a current login user is acquired; 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, control layout data matched with the target page is obtained from a temporary resource pool corresponding to the target identification information; and building 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, so as to render and display 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, repeated traversing of all control layout data in the client can be avoided, traversing times of all control layout data can be reduced, accordingly data processing pressure of the client can be reduced, and real-time differentiated display of the client page can be achieved.
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 the local cache of the target client, and if not, a temporary resource pool corresponding to the target identification information is newly built;
the control layout data screening module is used for screening control layout data matched with the target page from a preset resource pool corresponding to the target client according to a user login role matched with a current login user and a page identifier 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 above 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 is started to run in the foreground currently;
and the first condition determining unit is used for determining that the target client meets the preset login state detection condition when the foreground running state of the target client is detected not to be awakened from the background to the foreground if the target client is yes.
Optionally, on the basis of the above technical solution, the first condition determining unit includes:
a view component detecting subunit, configured to detect, in a view component manager of the target client, whether a view component corresponding to a home 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 awakened from the background to the foreground if the first foreground running state is not awakened from the background to the foreground.
Optionally, on the basis of the above technical solution, the first condition determining unit includes:
a process survival state judging 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 used for determining that the foreground running state is not awakened from the background to the foreground when detecting that the view component corresponding to the homepage of the target client does not exist in the view component manager of the target client.
Optionally, on the basis of the above technical solution, the user login role obtaining module 410 further includes:
the login page display unit is used for displaying a login page of the target client to the current access user if not;
And the second condition determining unit is used for acquiring the 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 authentication successfully.
Optionally, based on the above technical solution, the target adapter building module 440 includes:
the control layout acquisition unit is used for acquiring control layouts corresponding to all the functional controls in the target page according to the control layout data matched with the target page;
the matching data source determining unit is used for determining sub data sources matched with each functional control in the target page in a preset total data source according to control identifications corresponding to each functional control in the target page;
the first target adapter acquisition unit is used for respectively establishing an adaptation relation between a control layout corresponding to each functional control and a sub data source matched with each functional control through a preset adapter interface if the history adapter matched with the target page does not exist, so as to obtain a 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.
Optionally, on the basis of the above technical solution, the target adapter building module 440 further includes:
and the second target adapter acquisition 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 function control in the target page and the sub-data source matched with each function control if the history adapter matched with the target page is determined to exist, so as to obtain the target adapter matched with the target page.
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;
the page rendering display module 450 includes:
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 the functional controls at the corresponding positions of the page frame corresponding to the target page according to the adaptation relation between the control layout corresponding to the functional controls in the target adapter and the sub data sources matched with the functional controls through the 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 the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment can be found in the methods provided in the previous embodiments of the present invention.
Example five
Fig. 5 is a schematic structural diagram of a client device according to a fifth embodiment of the present invention, where, as shown in fig. 5, the client device 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, one processor 510 being taken as an example in fig. 5; the processor 510, memory 520, input means 530, and output means 540 in the client device may be connected by a bus or other means, for example by a bus connection in fig. 5. The memory 520 is a computer readable storage medium, and may be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to a mobile client page display method in any embodiment of the present invention (e.g., a user login role obtaining module 410, a target identification information obtaining module 420, a control layout data obtaining module 430, a target adapter building module 440, and a page rendering display module 450 in a mobile client page display device). The processor 510 executes various functional applications of the client device and data processing by running software programs, instructions and modules stored in the memory 520, i.e., implements a mobile client page presentation method as described above. That is, the program, when executed by the processor, implements:
When the target client side is detected to currently meet the preset login state detection condition, acquiring a user login role matched with a current login user;
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;
acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to 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 adaptation relation between control layouts corresponding to all functional controls in the target page and sub data sources matched with all the functional controls;
and rendering and displaying the target page according to the target adapter matched with the target page.
Memory 520 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, 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 the client device via 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 means 530 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the client device, which may include a keyboard, a mouse, and the like. The output 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 having a computer program stored thereon, where the computer program when executed by a processor implements the method according to any embodiment of the present invention. Of course, the computer readable storage medium provided by the embodiments of the present invention may perform the related operations in the page display method of the mobile client provided by any embodiment of the present invention. That is, the program, when executed by the processor, implements:
when the target client side is detected to currently meet the preset login state detection condition, acquiring a user login role matched with a current login user;
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;
Acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to 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 adaptation relation between control layouts corresponding to all functional controls in the target page and sub data sources matched with all the functional controls;
and rendering and displaying the target page according to the target adapter matched with the target page.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the page display device of the mobile client, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. The page display method of the mobile client is characterized by comprising the following steps of:
when the target client side is detected to currently meet the preset login state detection condition, acquiring a user login role matched with a current login user;
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;
acquiring control layout data matched with the target page from a temporary resource pool corresponding to the target identification information;
according to 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 adaptation relation between control layouts corresponding to all functional controls in the target page and sub data sources matched with all the functional controls;
rendering and displaying the target page according to a target adapter matched with the target page;
before the target page is rendered and displayed according to the target adapter matched with the target page, the method further comprises the following steps:
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 a target adapter matched with the target page, wherein the rendering and displaying the target page 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;
rendering and displaying each function 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 function control in the target adapter and the sub data source matched with each function control through the preset page layout component corresponding to the target page;
the 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 comprises the following steps:
acquiring control layout corresponding to each functional control in the target page according to control layout data matched with the target page;
determining sub data sources matched with each functional control in the target page in a preset total data source according to control identifications corresponding to each functional control in the target page;
if it is determined that the history adapter matched with the target page does not exist, respectively establishing an adaptation relation between a control layout corresponding to each functional control and a 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.
2. The method of claim 1, further comprising, prior to 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 the target client, if not, creating a temporary resource pool corresponding to the target identification information;
according to a user login role matched with a current login user and a page identifier corresponding to the target page, screening control layout data matched with the target page from a preset resource pool corresponding to the target client;
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 the preset login status detection condition comprises:
when detecting that a target client starts running in the foreground currently, judging whether the target client is in a logged-in state or not;
If so, when the foreground running state of the target client is detected not to be awakened from the background to the foreground, determining that the target client meets the preset login state detection condition.
4. A method according to claim 3, wherein detecting that the foreground operational state is not awakening from background to foreground comprises:
detecting whether a view component corresponding to a homepage of the target client exists in a view component manager of the target client;
if not, determining that the foreground running state is not awakened from the background to the foreground.
5. A method according to claim 3, wherein detecting that the foreground operational state is not awakening from background to foreground comprises:
judging whether the process corresponding to the target client is in a survival state or not;
if so, determining that the foreground running state is not awakened from the background to the foreground when detecting that no view component corresponding to the homepage of the target client exists in the view component manager of the target client.
6. The method of claim 3, further comprising, after determining whether the target client is in a logged-on state:
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 the user login information is detected to pass user authentication successfully.
7. The method of claim 1, further comprising, after determining a sub data source matching each functionality control in the target page in a preset total data source:
if the history adapter matched with the target page is determined to exist, 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.
8. A page display device of a mobile client, comprising:
the user login role acquisition module is used for acquiring a user login role matched with a current login user when detecting that the target client currently meets a preset login state detection condition;
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 building module is used for building a target adapter matched with the target page according to control layout data matched with the target page and a preset total data source, and the target adapter comprises an adaptation relation between control layouts corresponding to all the functional controls in the target page and sub data sources matched with all the functional controls;
the page rendering display module is used for rendering and displaying the target page according to the target adapter matched with the target page;
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;
The page rendering display module comprises:
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;
the functional control rendering unit is used for rendering and displaying the functional controls at the corresponding positions of the page frame corresponding to the target page according to the adaptation relation between the control layout corresponding to the functional controls in the target adapter and the sub data sources matched with the functional controls through the preset page layout component corresponding to the target page;
the target adapter establishment module further includes:
the control layout acquisition unit is used for acquiring control layouts corresponding to all the functional controls in the target page according to the control layout data matched with the target page;
the matching data source determining unit is used for determining sub data sources matched with each functional control in the target page in a preset total data source according to control identifications corresponding to each functional control in the target page;
the first target adapter acquisition unit is used for respectively establishing an adaptation relation between a control layout corresponding to each functional control and a sub data source matched with each functional control through a preset adapter interface if the history adapter matched with the target page does not exist, so as to obtain a 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.
9. A client device, the client device comprising:
one or more processors;
a 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 mobile client page presentation method of any of claims 1-7.
10. A computer storage medium having stored thereon a computer program, which when executed by a processor implements a page presentation method of a mobile client according to any of claims 1-7.
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 CN114443200A (en) 2022-05-06
CN114443200B true 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)

Families Citing this family (1)

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

Citations (12)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2364628A1 (en) * 2001-12-04 2003-06-04 Kevin W. Jameson Collection role changing gui

Patent Citations (12)

* 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
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

Also Published As

Publication number Publication date
CN114443200A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
US11314568B2 (en) Message processing method and apparatus, storage medium, and computer device
WO2018108059A1 (en) Method and device for processing template data, requesting for template data and presenting template data
US10659418B1 (en) Managing notifications across services
CN108182060B (en) Hybrid application point burying method, mobile terminal and system
CN107450903B (en) Information processing method and device
US11663540B2 (en) Ad hoc group management within a collaboration project sharing workflow
US20140331121A1 (en) Web page display method and system
CN102918540A (en) Creating and launching a web application with credentials
CN112019820B (en) Interface generation method and device
US20110271201A1 (en) Decentralized Contextual Collaboration Across Heterogeneous Environments
US11729228B2 (en) Systems and methods for sharing content externally from a group-based communication platform
CN111177613A (en) Page processing method, device, equipment and storage medium
US20180152430A1 (en) Information processing system, information processing terminal, and information processing method
US20110277039A1 (en) Image Storage In Electronic Documents
CN114443200B (en) Page display method, device and equipment of mobile client and storage medium
WO2024011899A1 (en) Widget loading method and apparatus, device, and storage medium
WO2022265775A1 (en) Service-driven widgets with multiple forms of authentication displayed in a widgets board
JP2015184827A (en) Browsing sharing server, browsing sharing system, browsing sharing method, and browsing sharing program
CN109948332A (en) A kind of physical machine login password remapping method and device
US20230216816A1 (en) Collaboration software development kit
US10380218B2 (en) Server-side access filters for web content
CN114518924B (en) Page display method, device and equipment of mobile client and storage medium
US11893199B2 (en) Systems and methods for viewing incompatible web pages via remote browser instances
CN114265661B (en) Page display method, device, equipment and storage medium for mobile client
CN111443907A (en) Method and device for calling SDK function

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
GR01 Patent grant