CN107870798A - The page layout processing method and terminal of application program - Google Patents

The page layout processing method and terminal of application program Download PDF

Info

Publication number
CN107870798A
CN107870798A CN201710883942.2A CN201710883942A CN107870798A CN 107870798 A CN107870798 A CN 107870798A CN 201710883942 A CN201710883942 A CN 201710883942A CN 107870798 A CN107870798 A CN 107870798A
Authority
CN
China
Prior art keywords
layout pattern
page
configuration file
pattern configuration
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710883942.2A
Other languages
Chinese (zh)
Inventor
刘亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201710883942.2A priority Critical patent/CN107870798A/en
Publication of CN107870798A publication Critical patent/CN107870798A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention, which provides a kind of page layout processing method of application program and terminal, this method, to be included:When the page loads, judge layout pattern configuration file corresponding to the page whether is preserved in terminal;When preserving layout pattern configuration file corresponding to the page in the terminal, the page is shown according to the layout pattern recorded in the layout pattern configuration file;Wherein, the layout pattern configuration file is generated by setting of the terminal previously according to user, and the layout pattern configuration file is used for the dimension information for recording the identifying of the component that the page need to be shown, the positional information of the component and the component.It the method achieve according to the personal settings of user to show the page, the significant increase usage experience of user.

Description

The page layout processing method and terminal of application program
Technical field
The present invention relates to the page layout processing method and terminal of computer technology, more particularly to a kind of application program.
Background technology
With the continuous development of mobile Internet, user can use increasing application program by mobile terminal (Application, abbreviation APP), unified APP product design styles can not gradually meet the personalized need that user is increasingly lifted Ask.
In the prior art, some APP provide the user the layout templates of a variety of fixations and selected for user, to meet user couple In the different demands of APP view layouts.
But fixed layout templates can not fully meet the individual demand of user, cause the experience of user bad.
The content of the invention
The present invention provides a kind of the page layout processing method and terminal of application program, for solving in the prior art can not Fully meet the problem of Consumer's Experience caused by the individual demand of user is bad.
First aspect present invention provides a kind of page layout processing method of application program, including:
When the page loads, judge layout pattern configuration file corresponding to the page whether is preserved in terminal;
When preserving layout pattern configuration file corresponding to the page in the terminal, configured according to the layout pattern Layout pattern recorded in file shows the page;
Wherein, the layout pattern configuration file is generated by setting of the terminal previously according to user, the layout sample Formula configuration file is used to record the identifying of the component that the page need to be shown, the positional information of the component and the component Dimension information.
Further, the layout pattern according to recorded in the layout pattern configuration file show the page it Before, in addition to:
Receive edit operation of the user to the layout pattern of the page;
According to the result of edit operation of the user to the layout pattern of the page, determine to need to show in the page The identifying of component, the size of the position of the component and the component;
It is raw according to the size that the identifying of component of display, the position of the component and the component are needed in the page Into the layout pattern configuration file;
The version number of the layout pattern configuration file is determined, by the layout pattern configuration file and the version number It is sent to server.
Further, the result according to edit operation of the user to the layout pattern of the page, determines institute The size of the identifying of component that display is needed in the page, the position of the component and the component is stated, including:
It is determined that mark, position and size with the most short fiducial of upper left corner distance of the page;
Using the position of the fiducial as reference, according to removing the benchmark group in the page described in order traversal from left to right Remaining components outside part, it is determined that the position of the mark of each remaining components, size and the relatively previous component of each remaining components, Position using the position of the relatively previous component as the remaining components.
Further, the layout pattern according to recorded in the layout pattern configuration file show the page it Before, in addition to:
The first request message is sent to server, first request message is used to ask layout sample corresponding to the page The latest edition number of formula configuration file;
Receive the latest edition number of layout pattern configuration file corresponding to the page that the server is sent;
Judge the version number of the layout pattern configuration file that is preserved in the terminal whether with the latest edition number Unanimously, if so, then showing institute according to the layout pattern recorded in the layout pattern configuration file preserved in the terminal The page is stated, if it is not, layout pattern configuration file corresponding to the latest edition number then is received from the server, and described in use Layout pattern configuration file corresponding to latest edition number replaces the layout pattern configuration file preserved in the terminal.
Further, in addition to:
When layout pattern configuration file corresponding to the page is not preserved in the terminal:
The page is shown using the default layout pattern of the application program;
The second request message is sent to server, the request message is used to ask layout pattern corresponding to the page to be matched somebody with somebody Put the version number of file and layout pattern configuration file.
Second aspect of the present invention provides a kind of terminal, including:
Judge module, match somebody with somebody for layout pattern corresponding to when the page loads, judging whether to preserve the page in terminal Put file;
First display module, for when preserving layout pattern configuration file corresponding to the page in the terminal, root The page is shown according to the layout pattern recorded in the layout pattern configuration file;
Wherein, the layout pattern configuration file is generated by setting of the terminal previously according to user, the layout sample Formula configuration file is used to record the identifying of the component that the page need to be shown, the positional information of the component and the component Dimension information.
Further, in addition to:
First receiving module, for receiving edit operation of the user to the layout pattern of the page;
Determining module, for the result according to edit operation of the user to the layout pattern of the page, determine institute State the size of the identifying of component that display is needed in the page, the position of the component and the component;
Generation module, for according to needing the identifying of component of display, the position of the component and described in the page The size of component, generate the layout pattern configuration file;
First sending module, for determining the version number of the layout pattern configuration file, the layout pattern is configured File and the version number are sent to server.
Further, the determining module includes:
First determining unit, for determining and the mark of the most short fiducial of the upper left corner of page distance, position And size;
Second determining unit, for using the position of the fiducial as reference, according to described in order traversal from left to right Remaining components in the page in addition to the fiducial, it is determined that mark, size and each remaining components of each remaining components The position of relatively previous component, the position using the position of the relatively previous component as the remaining components.
Further, in addition to:
Second sending module, for sending the first request message to server, first request message is used to ask institute State the latest edition number of layout pattern configuration file corresponding to the page;
Second receiving module, layout pattern configuration file corresponding to the page sent for receiving the server Latest edition number;
Processing module, for the version number of the layout pattern configuration file that judges to preserve in the terminal whether with institute State that latest edition number is consistent, if so, then according to the cloth recorded in the layout pattern configuration file preserved in the terminal Office's pattern shows the page, if it is not, then receiving layout pattern configuration text corresponding to the latest edition number from the server Part, and the layout pattern preserved in the terminal is replaced using layout pattern configuration file corresponding to the latest edition number Configuration file.
Further, in addition to:
Second display module, for when layout pattern configuration file corresponding to the page is not preserved in the terminal, The page is shown using the default layout pattern of the application program;
3rd sending module, for sending the second request message to server, the request message is used to ask the page The version number of layout pattern configuration file and layout pattern configuration file corresponding to face.
The page layout processing method and terminal of application program provided by the present invention, by user previously according to the happiness of oneself The layout pattern of the page is set well, and terminal preserves the setting of user in the form of layout pattern configuration file, when user is next When opening the page again, i.e., when the page loads again, terminal according to the layout pattern recorded in layout pattern configuration file come The page is shown, it is achieved thereby that show the page according to the personal settings of user, the significant increase usage experience of user.
Brief description of the drawings
, below will be to embodiment or prior art in order to illustrate more clearly of technical scheme of the invention or of the prior art The required accompanying drawing used is briefly described in description, it should be apparent that, drawings in the following description are the one of the present invention A little embodiments, for those of ordinary skill in the art, without having to pay creative labor, can also be according to this A little accompanying drawings obtain other accompanying drawings.
Fig. 1 is system architecture diagram corresponding to the page layout processing method of application program provided by the invention;
Fig. 2 is the schematic flow sheet of the page layout processing method embodiment one of application program provided by the invention;
Fig. 3 is the schematic flow sheet of the page layout processing method embodiment two of application program provided by the invention;
Fig. 4 is the schematic flow sheet of the page layout processing method embodiment three of application program provided by the invention;
Fig. 5 is the schematic flow sheet of the page layout processing method example IV of application program provided by the invention;
Fig. 6 is the schematic flow sheet of the page layout processing method embodiment five of application program provided by the invention;
Fig. 7 is the function structure chart of terminal embodiment one provided by the invention;
Fig. 8 is the function structure chart of terminal embodiment two provided by the invention;
Fig. 9 is the function structure chart of terminal embodiment three provided by the invention;
Figure 10 is the function structure chart of terminal embodiment four provided by the invention;
Figure 11 is the function structure chart of terminal embodiment five provided by the invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention Figure, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is the present invention Part of the embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having The every other embodiment obtained under the premise of creative work is made, belongs to the scope of protection of the invention.
The layout templates for providing a variety of fixations in the application in the prior art select for user, different layout moulds The size of the component of plate, position differ, and user can need the template for selecting oneself to like and be applied in the page.But It is that user can only be selected in application program gives tacit consent to the layout templates provided in this mode, if application program acquiescence carries There is no the layout pattern that user likes in the layout templates of confession, then user can not use this according to the layout pattern that oneself is liked Application program, i.e. prior art can not meet individual demand of the user for page layout, so as to cause the experience of user not It is good.
The present invention is based on above mentioned problem, proposes a kind of page layout processing method of application program, this method can be supported User is liked to set the layout pattern of the page according to oneself, and the setting of user is saved as into configuration file, when user beats When opening the page, i.e., the page is shown according to the layout pattern set by user, so as to the usage experience of significant increase user.
Fig. 1 is system architecture diagram corresponding to the page layout processing method of application program provided by the invention, such as Fig. 1 institutes To show, the system includes terminal and server, wherein, the server is APP server, and the terminal is installation APP client Terminal, the terminal can be mobile terminal, such as mobile phone, tablet personal computer etc..User passes through the work(in client using APP Can, operation and server interaction of the terminal according to user on the client, send data to server or received from server Data.
Fig. 2 be application program provided by the invention page layout processing method embodiment one schematic flow sheet, the party The executive agent of method is terminal, as shown in Fig. 2 this method includes:
S201, when the page loads, judge layout pattern configuration file corresponding to the page whether is preserved in terminal.
S202, when preserving layout pattern configuration file corresponding to the above-mentioned page in terminal, matched somebody with somebody according to above-mentioned layout pattern Put the layout pattern recorded in file and show the above-mentioned page.
Wherein, above-mentioned layout pattern configuration file is generated by setting of the above-mentioned terminal previously according to user, above-mentioned layout sample Formula configuration file is used for the size for recording the mark for the component that the above-mentioned page need to be shown, the positional information of the component and the component Information.
Specifically, user can configure a page or multiple pages on APP in advance corresponding to layout pattern, configure Afterwards, terminal preserves the layout pattern set by user in the form of layout pattern configuration file, and specifically including the page needs The dimension information of the mark for the component to be shown, the positional information of component and component.Wherein, the mark of component for example can be The title of component, specific sequence number of component etc., the positional information of component is finger assembly location in the page, component Dimension information is length and width information of finger assembly etc..
It should be noted that above-mentioned layout pattern configuration file and the page can be one-to-many corresponding relations, i.e., one Multiple pages that layout pattern configuration file can apply in APP, the specific webpage that can also be only applied in APP, User can flexibly be configured as needed.
In the present embodiment, the layout pattern of the page is set by user previously according to the hobby of oneself, terminal is set user's Put and preserved in the form of layout pattern configuration file, when user opens the page next time again, i.e., when the page loads again, terminal The page is shown according to the layout pattern recorded in layout pattern configuration file, it is achieved thereby that being set according to the personalization of user Put to show the page, the significant increase usage experience of user.
On the basis of above-described embodiment, the present embodiment is related to the detailed process that user sets the layout pattern of the page, i.e. Fig. 3 is the schematic flow sheet of the page layout processing method embodiment two of application program provided by the invention, as shown in figure 3, Before above-mentioned steps S202, this method also includes:
S301, receive edit operation of the user to the layout pattern of the page.
Alternatively, option or button of function etc. are set in APP for the page one layout pattern of increase, work as user After clicking on the option or button, the component on the page enters can in edit-mode, and user can holding on to the page The operations such as row dragging, stretching, diminution, deletion, to rearrange the component on the page.
It should be noted that user executive editor can operate on one page, but the result edited can be not only It can be selected this after completing the editing applied to as the previous page, other pages that can also be applied in APP, user Secondary edited result is applied to a page or multiple pages, if being applied to multiple pages, user needs selection will simultaneously The mark for the page being applied to.
S302, the result according to edit operation of the user to the layout pattern of the above-mentioned page, determine to need to show in the above-mentioned page The size of the mark of the component shown, the position of the component and the component.
After user, which edits, to terminate, terminal confirms the information on the page, including component mark one by one in a certain order Knowledge, position and dimension information.
S303, according to the mark of component, the size of the position of component and component that display is needed in the above-mentioned page, in generation State layout pattern configuration file.
Alternatively, because layout pattern determined by terminal contains mark, position and the dimension information of component, i.e., pair The each component shown, all mark comprising component, position and dimension information are needed in the page, therefore, terminal can lead to The form of data dictionary is crossed to represent layout pattern that user has finally configured.
And then the information represented in the form of data dictionary is formed layout pattern configuration file by terminal, and sample will be laid out Formula configuration file is stored in terminal local.
S304, the version number for determining above-mentioned layout pattern configuration file, by the layout pattern configuration file and described Version number is sent to server.
During user uses APP, its layout pattern may be repeatedly changed for the same page, or, use Family can also be laid out the setting of pattern in different terminals to the same page on APP, therefore can be by be each The layout pattern configuration file generated during setting adds version number to distinguish setting each time.
For the same page, the initial value of layout pattern configuration file for example can be 0, whenever carrying out once new set Put, then version number is added 1, the version number using the version number added after 1 as the layout pattern configuration file after this setting.Its In, terminal needs to obtain current version number from server first, then adds 1 to current version number.
And then terminal needs layout pattern configuration file and its version number being sent to server, is protected by server It can be configured when card different terminals or the not setting of homogeneous based on newest version number.
It should be noted that above-mentioned steps S304 is not necessarily to be immediately performed after above-mentioned steps S303, but by The suitable time is selected to perform according to certain principle according to terminal.For example, after user sets up layout pattern, terminal First preserved, server is sent it to again when terminal is in more idle state.
On the basis of above-described embodiment, the present embodiment is related to the tool that terminal determines the mark of component, position and size Body method, i.e. Fig. 4 is the schematic flow sheet of the page layout processing method embodiment three of application program provided by the invention, such as Shown in Fig. 4, above-mentioned steps S302 is specifically included:
S401, determine mark, position and size apart from most short fiducial with the upper left corner of the above-mentioned page.
S402, using the position of above-mentioned fiducial as reference, according in the above-mentioned page of order traversal from left to right except above-mentioned Remaining components outside fiducial, it is determined that mark, size and the relatively previous component of each remaining components of each remaining components Position, the position using the position of the relatively previous component as remaining components.
Specifically, a component near the page upper left corner is selected to determine the fiducial as fiducial first Mark, size and position, and then, since the fiducial, travel through remaining components one by one from left to right, often travel through out one Individual component, it is determined that mark, size and the position of the component, wherein, the position of each component in remaining components refers to this Position of the component with respect to the previous component of the component.After the completion of traversal, terminal i.e. can determine that the mark of all component in the page, Position and dimension information.
On the basis of above-described embodiment, the present embodiment is related to the side that terminal obtains newest layout pattern configuration file Method, i.e. Fig. 5 is the schematic flow sheet of the page layout processing method example IV of application program provided by the invention, such as Fig. 5 institutes Show, before above-mentioned steps S202, this method also includes:
S501, the first request message is sent to server, first request message is used to ask cloth corresponding to the above-mentioned page The latest edition number of office's style configuration file.
The latest edition number of layout pattern configuration file corresponding to the above-mentioned page that S502, the reception server are sent.
S503, judge the version number of the layout pattern configuration file that is preserved in the terminal whether with above-mentioned latest edition This number consistent, if so, then performing S504, otherwise performs S505.
S504, above-mentioned page shown according to the layout pattern recorded in the above-mentioned layout pattern configuration file preserved in terminal Face.
S505, layout pattern configuration file corresponding to above-mentioned latest edition number is received from server, and using above-mentioned newest Layout pattern configuration file corresponding to version number replaces the above-mentioned layout pattern configuration file preserved in terminal.
When user carries out APP layout pattern configuration, it is understood that there may be following scene:
Same user S is assembled with same APP on terminal A and terminal B, and user S is first to APP's on terminal A The page is laid out the setting of pattern, and then, user S is laid out the setting of pattern on terminal B to the APP page again, then For terminal A, if only carrying out loading page according to the terminal A layout pattern configuration files locally preserved, it can not use and use Newest settings of the family S on terminal B loads.
Based on this, in foregoing step S304, user can be set generated layout pattern configuration file to send out by terminal Server is given, i.e., whenever generating new layout pattern configuration file, terminal all sends it to server, to ensure server Upper preservation always is newest layout pattern configuration file.
And then in the present embodiment, before the page is shown, terminal obtains layout pattern configuration text from server first The latest edition number of part, then the version number for the layout pattern configuration file that the latest edition number and terminal local are preserved are carried out Compare, if unanimously, illustrate locally to preserve is exactly newest layout pattern configuration file, then terminal is directly according to local institute Office's style configuration file of preservation shows to carry out the page.And if the layout sample that the latest edition number is preserved with terminal local The version number of formula configuration file is inconsistent, then illustrates that user may carry out the setting of layout pattern on other-end, then eventually End is needed to obtain newest layout pattern configuration file from server, and the layout pattern configuration file locally preserved is replaced For the newest layout pattern configuration file obtained from server.In addition, terminal also needs to version number also replacing with server On latest edition number.
On the basis of above-described embodiment, the present embodiment is related to processing when not preserving layout pattern configuration file in terminal Process, i.e. Fig. 6 be application program provided by the invention page layout processing method embodiment five schematic flow sheet, such as Fig. 6 Shown, when not preserving layout pattern configuration file corresponding to the page in terminal, this method also includes:
S601, using the default layout pattern of application program show the above-mentioned page.
S602, the second request message is sent to server, the request message is used to ask layout sample corresponding to the above-mentioned page The version number of formula configuration file and layout pattern configuration file.
When the page loads, if terminal judges layout pattern configuration file corresponding to no preservation page in terminal, Then illustrate that user did not carry out layout pattern setting on the terminal, then terminal carries out the page using default layout pattern It has been shown that, on this basis, terminal obtain the layout pattern configuration file preserved on server and layout pattern from server The version number of configuration file, preserved after obtaining, when loading the page next time, terminal is according to acquired in from server Layout pattern configuration file shown to carry out the page.
Fig. 7 is the function structure chart of terminal embodiment one provided by the invention, as shown in fig. 7, the terminal includes:
Judge module 701, for when the page loads, judging layout pattern corresponding to the page whether is preserved in terminal Configuration file.
First display module 702, for when preserving layout pattern configuration file corresponding to the page in the terminal, The page is shown according to the layout pattern recorded in the layout pattern configuration file.
Wherein, the layout pattern configuration file is generated by setting of the terminal previously according to user, the layout sample Formula configuration file is used to record the identifying of the component that the page need to be shown, the positional information of the component and the component Dimension information.
Fig. 8 is the function structure chart of terminal embodiment two provided by the invention, as shown in figure 8, the terminal also includes:
First receiving module 703, for receiving edit operation of the user to the layout pattern of the page.
Determining module 704, for the result according to edit operation of the user to the layout pattern of the page, it is determined that The size of the identifying of component of display, the position of the component and the component is needed in the page.
Generation module 705, for according to the identifying of component, the position of the component and the institute that display is needed in the page The size of component is stated, generates the layout pattern configuration file.
First sending module 706, for determining the version number of the layout pattern configuration file, the layout pattern is matched somebody with somebody Put file and the version number is sent to server.
Fig. 9 is the function structure chart of terminal embodiment three provided by the invention, as shown in figure 9, determining module 704 includes:
First determining unit 7041, for determine with the mark of the most short fiducial of the upper left corner of page distance, Position and size.
Second determining unit 7042, for using the position of the fiducial as reference, according to order traversal from left to right Remaining components in the page in addition to the fiducial, it is determined that the mark of each remaining components, size and each residue The position of the relatively previous component of component, the position using the position of the relatively previous component as the remaining components.
Figure 10 is the function structure chart of terminal embodiment four provided by the invention, as shown in Figure 10, in addition to:
Second sending module 707, for sending the first request message to server, first request message is used to ask The latest edition number of layout pattern configuration file corresponding to the page;
Second receiving module 708, layout pattern configuration text corresponding to the page sent for receiving the server The latest edition number of part;
Processing module 709, for the version number of the layout pattern configuration file that judges to preserve in the terminal whether It is consistent with the latest edition number, if so, then according to recorded in the layout pattern configuration file preserved in the terminal Layout pattern show the page, if it is not, then from the server receive the latest edition number corresponding to layout pattern match somebody with somebody File is put, and the layout preserved in the terminal is replaced using layout pattern configuration file corresponding to the latest edition number Style configuration file.
Figure 11 is the function structure chart of terminal embodiment five provided by the invention, as shown in figure 11, in addition to:
Second display module 710, for not preserving layout pattern configuration file corresponding to the page in the terminal When, show the page using the default layout pattern of the application program.
3rd sending module 711, for sending the second request message to server, the request message is described for asking The version number of layout pattern configuration file and layout pattern configuration file corresponding to the page.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

  1. A kind of 1. page layout processing method of application program, it is characterised in that including:
    When the page loads, judge layout pattern configuration file corresponding to the page whether is preserved in terminal;
    When preserving layout pattern configuration file corresponding to the page in the terminal, according to the layout pattern configuration file Recorded in layout pattern show the page;
    Wherein, the layout pattern configuration file is generated by setting of the terminal previously according to user, and the layout pattern is matched somebody with somebody Put the size that file is used to record the identifying of the component that the page need to be shown, the positional information of the component and the component Information.
  2. 2. according to the method for claim 1, it is characterised in that described according to recorded in the layout pattern configuration file Layout pattern show the page before, in addition to:
    Receive edit operation of the user to the layout pattern of the page;
    According to the result of edit operation of the user to the layout pattern of the page, determine to need the group of display in the page The size of the identifying of part, the position of the component and the component;
    According to the size that the identifying of component of display, the position of the component and the component are needed in the page, institute is generated State layout pattern configuration file;
    The version number of the layout pattern configuration file is determined, the layout pattern configuration file and the version number are sent To server.
  3. 3. according to the method for claim 2, it is characterised in that the layout pattern according to the user to the page Edit operation result, determine to need the identifying of component, the position of the component and the component of display in the page Size, including:
    It is determined that mark, position and size with the most short fiducial of upper left corner distance of the page;
    Using the position of the fiducial as reference, according in the page described in order traversal from left to right in addition to the fiducial Remaining components, it is determined that the position of the mark of each remaining components, size and the relatively previous component of each remaining components, by institute State position of the position of relatively previous component as the remaining components.
  4. 4. according to the method described in claim any one of 1-3, it is characterised in that described according to the layout pattern configuration file Recorded in layout pattern show the page before, in addition to:
    The first request message is sent to server, first request message is used to ask layout pattern corresponding to the page to be matched somebody with somebody Put the latest edition number of file;
    Receive the latest edition number of layout pattern configuration file corresponding to the page that the server is sent;
    Judge whether the version number of the layout pattern configuration file that is preserved in the terminal is consistent with the latest edition number, If so, the page is then shown according to the layout pattern recorded in the layout pattern configuration file preserved in the terminal Face, if it is not, layout pattern configuration file corresponding to the latest edition number then is received from the server, and using described newest Layout pattern configuration file corresponding to version number replaces the layout pattern configuration file preserved in the terminal.
  5. 5. according to the method described in claim any one of 1-3, it is characterised in that also include:
    When layout pattern configuration file corresponding to the page is not preserved in the terminal:
    The page is shown using the default layout pattern of the application program;
    The second request message is sent to server, the request message is used to ask layout pattern configuration text corresponding to the page The version number of part and layout pattern configuration file.
  6. A kind of 6. terminal, it is characterised in that including:
    Judge module, for when the page loads, judging whether to preserve layout pattern configuration text corresponding to the page in terminal Part;
    First display module, for when preserving layout pattern configuration file corresponding to the page in the terminal, according to institute State the layout pattern recorded in layout pattern configuration file and show the page;
    Wherein, the layout pattern configuration file is generated by setting of the terminal previously according to user, and the layout pattern is matched somebody with somebody Put the size that file is used to record the identifying of the component that the page need to be shown, the positional information of the component and the component Information.
  7. 7. terminal according to claim 6, it is characterised in that also include:
    First receiving module, for receiving edit operation of the user to the layout pattern of the page;
    Determining module, for the result according to edit operation of the user to the layout pattern of the page, determine the page The size of the identifying of component of display, the position of the component and the component is needed in face;
    Generation module, for according to the identifying of component, the position of the component and the component that display is needed in the page Size, generate the layout pattern configuration file;
    First sending module, for determining the version number of the layout pattern configuration file, by the layout pattern configuration file And the version number is sent to server.
  8. 8. terminal according to claim 7, it is characterised in that the determining module includes:
    First determining unit, for determine with the mark of the most short fiducial of the upper left corner of page distance, position and Size;
    Second determining unit, for using the position of the fiducial as reference, according to the page described in order traversal from left to right In remaining components in addition to the fiducial, it is determined that the mark of each remaining components, size and each remaining components are relative The position of previous component, the position using the position of the relatively previous component as the remaining components.
  9. 9. according to the terminal described in claim any one of 6-8, it is characterised in that also include:
    Second sending module, for sending the first request message to server, first request message is used to ask the page The latest edition number of layout pattern configuration file corresponding to face;
    Second receiving module, layout pattern configuration file is newest corresponding to the page sent for receiving the server Version number;
    Processing module, for the version number of the layout pattern configuration file that judges to preserve in the terminal whether with it is described most New version number is consistent, if so, then according to the layout sample recorded in the layout pattern configuration file preserved in the terminal Formula shows the page, if it is not, layout pattern configuration file corresponding to the latest edition number then is received from the server, and The layout pattern preserved in the terminal is replaced using layout pattern configuration file corresponding to the latest edition number to configure File.
  10. 10. according to the terminal described in claim any one of 6-8, it is characterised in that also include:
    Second display module, for when not preserving layout pattern configuration file corresponding to the page in the terminal, using The default layout pattern of the application program shows the page;
    3rd sending module, for sending the second request message to server, the request message is used to ask the page pair The layout pattern configuration file answered and the version number of layout pattern configuration file.
CN201710883942.2A 2017-09-26 2017-09-26 The page layout processing method and terminal of application program Pending CN107870798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710883942.2A CN107870798A (en) 2017-09-26 2017-09-26 The page layout processing method and terminal of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710883942.2A CN107870798A (en) 2017-09-26 2017-09-26 The page layout processing method and terminal of application program

Publications (1)

Publication Number Publication Date
CN107870798A true CN107870798A (en) 2018-04-03

Family

ID=61752413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710883942.2A Pending CN107870798A (en) 2017-09-26 2017-09-26 The page layout processing method and terminal of application program

Country Status (1)

Country Link
CN (1) CN107870798A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299414A (en) * 2018-09-26 2019-02-01 深圳壹账通智能科技有限公司 A kind of method and terminal of loading page
CN109445889A (en) * 2018-09-25 2019-03-08 北京奇艺世纪科技有限公司 Page display method, device, terminal, server, computer readable storage medium
CN109885746A (en) * 2019-01-17 2019-06-14 平安城市建设科技(深圳)有限公司 Page Dynamic Distribution method, apparatus, equipment and storage medium
CN109918600A (en) * 2019-01-28 2019-06-21 平安普惠企业管理有限公司 Generate method, apparatus, computer equipment and the storage medium of H5 active page
CN109947317A (en) * 2019-03-11 2019-06-28 北京字节跳动网络技术有限公司 Application program page display method and device
CN110045999A (en) * 2019-04-23 2019-07-23 北京三快在线科技有限公司 Draw method, apparatus, terminal and the storage medium of component
CN110069737A (en) * 2019-04-19 2019-07-30 北京三快在线科技有限公司 Content generating method, device, computer equipment and storage medium
CN110389758A (en) * 2018-04-16 2019-10-29 北京高德云图科技有限公司 A kind of style sheet processing method and processing device
CN110543298A (en) * 2018-05-28 2019-12-06 北京京东尚科信息技术有限公司 webpage style generation method and device and webpage generation method and device
CN110727497A (en) * 2019-10-22 2020-01-24 网易(杭州)网络有限公司 Message display method and device
CN110968312A (en) * 2018-09-30 2020-04-07 北京奇虎科技有限公司 Method and device for changing interface layout of application program
CN111124412A (en) * 2020-01-02 2020-05-08 腾讯科技(深圳)有限公司 Game page drawing method, device, equipment and storage medium
CN112181341A (en) * 2020-10-10 2021-01-05 珠海格力电器股份有限公司 Remote synchronization method for display picture
CN113535267A (en) * 2021-07-16 2021-10-22 口碑(上海)信息技术有限公司 Applet page configuration method and device, electronic equipment and storage medium
CN113656110A (en) * 2021-09-02 2021-11-16 武汉众邦银行股份有限公司 Page loading method and device for clear-free cache after front-end upgrading

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024659B2 (en) * 2001-04-16 2006-04-04 Canon Kabushiki Kaisha Graphic display of configuration information and of further device components required
US8863015B2 (en) * 2006-01-19 2014-10-14 Raytheon Company Multi-monitor, multi-JVM java GUI infrastructure with layout via XML
CN104731833A (en) * 2013-12-24 2015-06-24 中兴通讯股份有限公司 Web layout method and device
CN105242937A (en) * 2014-06-27 2016-01-13 中兴通讯股份有限公司 Method for dynamically updating application interface, terminal and system
CN106648666A (en) * 2016-12-23 2017-05-10 深圳市金证科技股份有限公司 User interface generating method and user interface generating system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024659B2 (en) * 2001-04-16 2006-04-04 Canon Kabushiki Kaisha Graphic display of configuration information and of further device components required
US8863015B2 (en) * 2006-01-19 2014-10-14 Raytheon Company Multi-monitor, multi-JVM java GUI infrastructure with layout via XML
CN104731833A (en) * 2013-12-24 2015-06-24 中兴通讯股份有限公司 Web layout method and device
CN105242937A (en) * 2014-06-27 2016-01-13 中兴通讯股份有限公司 Method for dynamically updating application interface, terminal and system
CN106648666A (en) * 2016-12-23 2017-05-10 深圳市金证科技股份有限公司 User interface generating method and user interface generating system

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389758A (en) * 2018-04-16 2019-10-29 北京高德云图科技有限公司 A kind of style sheet processing method and processing device
CN110543298A (en) * 2018-05-28 2019-12-06 北京京东尚科信息技术有限公司 webpage style generation method and device and webpage generation method and device
CN109445889A (en) * 2018-09-25 2019-03-08 北京奇艺世纪科技有限公司 Page display method, device, terminal, server, computer readable storage medium
CN109299414A (en) * 2018-09-26 2019-02-01 深圳壹账通智能科技有限公司 A kind of method and terminal of loading page
CN110968312A (en) * 2018-09-30 2020-04-07 北京奇虎科技有限公司 Method and device for changing interface layout of application program
CN109885746A (en) * 2019-01-17 2019-06-14 平安城市建设科技(深圳)有限公司 Page Dynamic Distribution method, apparatus, equipment and storage medium
CN109918600A (en) * 2019-01-28 2019-06-21 平安普惠企业管理有限公司 Generate method, apparatus, computer equipment and the storage medium of H5 active page
CN109947317A (en) * 2019-03-11 2019-06-28 北京字节跳动网络技术有限公司 Application program page display method and device
CN110069737A (en) * 2019-04-19 2019-07-30 北京三快在线科技有限公司 Content generating method, device, computer equipment and storage medium
CN110069737B (en) * 2019-04-19 2020-08-14 北京三快在线科技有限公司 Content generation method and device, computer equipment and storage medium
CN110045999A (en) * 2019-04-23 2019-07-23 北京三快在线科技有限公司 Draw method, apparatus, terminal and the storage medium of component
CN110727497A (en) * 2019-10-22 2020-01-24 网易(杭州)网络有限公司 Message display method and device
CN110727497B (en) * 2019-10-22 2022-06-17 网易(杭州)网络有限公司 Message display method and device
CN111124412A (en) * 2020-01-02 2020-05-08 腾讯科技(深圳)有限公司 Game page drawing method, device, equipment and storage medium
CN112181341A (en) * 2020-10-10 2021-01-05 珠海格力电器股份有限公司 Remote synchronization method for display picture
CN113535267A (en) * 2021-07-16 2021-10-22 口碑(上海)信息技术有限公司 Applet page configuration method and device, electronic equipment and storage medium
CN113656110A (en) * 2021-09-02 2021-11-16 武汉众邦银行股份有限公司 Page loading method and device for clear-free cache after front-end upgrading
CN113656110B (en) * 2021-09-02 2024-03-29 武汉众邦银行股份有限公司 Page loading method and device for front-end updating free cache

Similar Documents

Publication Publication Date Title
CN107870798A (en) The page layout processing method and terminal of application program
US10198420B2 (en) Telling interactive, self-directed stories with spreadsheets
US6910188B2 (en) Viewing changes to a shared document in one object
US20050262521A1 (en) User specified transfer of data between applications
CN107797826B (en) Rule configuration method based on rule engine, terminal and equipment
CN109039857A (en) For providing the method and its electronic device of message function
CN104133828A (en) Drag-and-drop clipboard for HTML documents
US20150370757A1 (en) Software system and application for organizing and viewing information
CN106681698A (en) Dynamic list generating method and device
CN111666740A (en) Flow chart generation method and device, computer equipment and storage medium
US9451423B2 (en) Method and apparatus for recording information during a call
CN108762654A (en) Method, apparatus, terminal and the computer readable storage medium of text editing
CN106126274A (en) Control method and device for application program data in mobile terminal and mobile terminal
CN108334385A (en) A kind of the user interface skins management method and device of application
US8020097B2 (en) Recorder user interface
CN105830103A (en) Employment of presence-based history information in notebook application
CN103279337A (en) Method and apparatus for executing application file and screen capture method and apparatus therefor
CN105718434A (en) Natural language formula editing method and system
CN107911550A (en) A kind of method, apparatus of recording, computer installation and storage medium
CN115048659A (en) Sharing method and device of shared object, electronic equipment and storage medium
CN109213785A (en) Bill compilation method, apparatus, computer equipment and storage medium
WO2015103663A1 (en) Document and object manipulation
CN107102971A (en) Pattern clone method, device and equipment
CN111079375B (en) Information sorting method and device, computer storage medium and terminal
CN108205420A (en) disk configuration tool generation method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180403

RJ01 Rejection of invention patent application after publication