Summary of the invention
In view of this, the embodiment of the present invention provides a kind of page configuration method, system and client, with solve currently for
There is the problems such as changing at high cost and change low efficiency in the change of the primary page of client.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
First aspect of the embodiment of the present invention discloses a kind of page configuration method, is applied to client, which comprises
To the preset Page Container of remote server request;
Page Container address based on each page container obtains the corresponding subpage frame collection in each Page Container address
It closes, wherein pre-establish the corresponding relationship of each the Page Container address and subpage frame set, each subpage frame set includes
Multiple subpage frames;
When opening any Page Container, the corresponding subpage frame set of the Page Container is shown.
Preferably, the Page Container address based on each page container obtains each Page Container address pair
The subpage frame set answered, comprising:
For each Page Container, determine whether the remote server is that the Page Container configures the first subpage
Face set;
If so, the Page Container address based on the Page Container, obtains and caches the first subpage frame set;
If it is not, determining that the Page Container whether there is preceding the second subpage frame set once cached;
If it exists, based on the Page Container address of the Page Container, the second subpage frame set is obtained;
If it does not exist, based on the Page Container address of the Page Container, the preset default of subpage frame set is obtained
Subpage frame set.
Preferably, described when opening any Page Container, show the corresponding subpage frame set of the Page Container,
Include:
When opening any Page Container, the client is rendered using the corresponding subpage frame set of the Page Container
The page, show navigation bar and the preset default subpage frame of the subpage frame set, wherein the navigation bar includes the subpage
Each subpage frame navigation title for including and Navigation Picture in the set of face, subpage frame include at least navigation title, Navigation Picture and
Page address;
The navigation title currently chosen is switched to the corresponding navigation title of the default subpage frame.
Preferably, the client is to before the preset Page Container of remote server request, further includes:
Page Container address is set for each Page Container, and page address is set for each subpage frame;
Default subpage frame set is set for each Page Container, and is each subpage frame set setting default subpage
Face.
Preferably, described that for each Page Container, Page Container address is set, and page is set for each subpage frame
Face address, comprising:
Using uniform resource position mark URL, Page Container address is set for each page container in advance, and is each son
Page setup subpage frame address.
Second aspect of the embodiment of the present invention discloses a kind of page configuration system, the system comprises:
First acquisition unit is used for the preset Page Container of remote server request;
Second acquisition unit obtains each Page Container for the Page Container address based on each page container
The corresponding subpage frame set in address, wherein the corresponding relationship of each the Page Container address and subpage frame set is pre-established,
Each subpage frame set includes multiple subpage frames;
Display unit, for showing the corresponding subpage frame collection of the Page Container when opening any Page Container
It closes.
Preferably, the second acquisition unit includes:
First determining module determines whether the remote server is the page for being directed to each Page Container
Surface vessel configures the first subpage frame set, if so, executing first obtains module, if it is not, executing the second determining module;
Described first obtains module, for the Page Container address based on the Page Container, obtains and caches described the
One subpage frame set;
Second determining module, for determining that the Page Container whether there is preceding the second subpage frame set once cached,
If it exists, it executes second and obtains module, if it does not exist, execute third and obtain module;
Described second obtains module, for the Page Container address based on the Page Container, obtains second subpage
Face set;
The third obtains module and obtains the subpage frame collection for the Page Container address based on the Page Container
Close preset default subpage frame set.
Preferably, the display unit includes:
Display module when being used to open any Page Container, utilizes the corresponding subpage frame set of the Page Container
The page of the client is rendered, shows navigation bar and the preset default subpage frame of the subpage frame set, wherein the navigation
Column includes the navigation title and Navigation Picture that each subpage frame includes in the subpage frame set, and subpage frame includes at least navigation name
Title, Navigation Picture and page address;
Switching module, the navigation title for will currently choose are switched to the corresponding navigation title of the default subpage frame.
Preferably, the system also includes:
First setting unit is used to that Page Container address to be arranged for each Page Container, and is each subpage frame
Page address is set;
Second setting unit defaults subpage frame set for being arranged for each Page Container, and is each subpage
Face set setting default subpage frame.
The third aspect of the embodiment of the present invention discloses a kind of client, including embodiments of the present invention second aspect discloses
Page configuration system.
Based on a kind of page configuration method, system and client that the embodiments of the present invention provide, this method are as follows: Xiang Yuan
The preset Page Container of journey server request.Page Container address based on each page container obtains every page face
The corresponding subpage frame set in device address, wherein pre-establish the corresponding relationship of each page capsule address Yu subpage frame set, often
One subpage frame set includes multiple subpage frames.When opening any Page Container, the corresponding subpage frame collection of the Page Container is shown
It closes.In the present solution, Page Container and subpage frame set are pre-configured with, by obtaining Page Container and page appearance to remote server
The corresponding subpage frame set of device shows the corresponding subpage frame set of the Page Container when opening any Page Container.It is changing
When the page of client, multiple workflows such as cumbersome exploitation, test and publication are needed not move through, the page is reduced and changes cost
Efficiency is changed with the page is improved.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In this application, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion,
So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having
The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having
There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element
There is also other identical elements in journey, method, article or equipment.
It can be seen from background technology that change for the primary page of client needs more by exploitation, test and publication etc.
A workflow, and the needs of work a large amount of time, man power and material such as developed, tested and issued.Therefore, currently for
There is the problems such as changing at high cost and change low efficiency in the change of the primary page of client.
Therefore, the embodiment of the present invention provides a kind of page configuration method, system and client, be pre-configured with Page Container and
Subpage frame set, it is any when opening by obtaining Page Container and the corresponding subpage frame set of Page Container to remote server
When Page Container, the corresponding subpage frame set of the Page Container is shown, to reduce page change cost and improve page change effect
Rate.
It should be noted that the particular content of the Page Container and subpage frame that are related in the embodiment of the present invention be detailed in it is following
Explanation.
Page Container: client user is allowed to pass through the Page Container of navigation switching content of pages.
Subpage frame: the page of any shown content of navigation in carrying Page Container.
Wherein, each page is Page Container or subpage frame, and Page Container is specially the page for carrying other pages,
Subpage frame is the page in Page Container.Similarly, the subpage frame in Page Container may also be Page Container.
With reference to Fig. 1, a kind of flow chart of page configuration method provided in an embodiment of the present invention, the page configuration are shown
Method is applied to client, comprising the following steps:
Step S101: to the preset Page Container of remote server request.
During implementing step S101, when client terminal start-up, Xiang Suoshu remote server request is all
Pre-set Page Container, and obtain the Page Container address pass corresponding with subpage frame set of each Page Container
System.Wherein, the corresponding relationship of each the Page Container address and subpage frame set is pre-established, each subpage frame set includes
Multiple subpage frames.
It should be noted that defining a uniform resource locator (Uniform in advance for each page container and subpage frame
Resource Locator, URL), wherein URL is made of mode/agreement (scheme) and path (path).For each page
Container and subpage frame, using the scheme in URL as the mark of the client, using the path in URL as Page Container and
The address of subpage frame identifies.For example, client is broadcast live for YY, the URL of Page Container are as follows: yymobile: //
YY5LiveIndex/Home.Wherein, " yymobile " is the scheme in URL, the client of the as described YY live streaming client
Mark, " //YY5LiveIndex/Home " are the path in URL, are identified for the address of the Page Container.
Step S102: it is corresponding to obtain each Page Container address for the Page Container address based on each page container
Subpage frame set.
During implementing step S102, the content as shown in above-mentioned steps S101 is it is found that client is opening
When dynamic, all preset Page Containers are obtained, and obtains Page Container address and the subpage frame set of each page container
Corresponding relationship.Therefore, based on the Page Container address of each page container, the corresponding son in each Page Container address is obtained
Page set.
It should be noted that subpage frame set is combined to obtain by the corresponding path of the subpage frame for constituting the subpage frame set,
Each subpage frame includes at least: the page address of subpage frame, the navigation title of subpage frame and Navigation Picture.
Step S103: when opening any Page Container, the corresponding subpage frame set of the Page Container is shown.
During implementing step S103, when opening any Page Container, the Page Container pair is utilized
The subpage frame set answered renders the page of the client, shows navigation bar and the preset default subpage of the subpage frame set
The navigation title currently chosen is switched to the corresponding navigation title of the default subpage frame by face.Wherein, the navigation bar includes
The navigation title and Navigation Picture that each subpage frame includes in the subpage frame set, subpage frame include at least navigation title, lead
Chart piece and page address.
Preferably, before executing step S101 to step S103, Page Container address is set for each Page Container,
And page address is set for each subpage frame.It and is each Page Container setting default subpage frame set, Yi Jiwei
Each subpage frame set setting default subpage frame.
More preferably to illustrate the particular content of the above-mentioned Page Container being related to and defaulting the setting of subpage frame, lead to below
Fig. 2 a and Fig. 2 b is crossed to be illustrated.
With reference to the content in Fig. 2 a, the configuration diagram of Page Container is shown, in Fig. 2 a, the Page Container
Show navigation bar and the preset default subpage frame of subpage frame set.In the navigation bar, each subpage frame in subpage frame set
Corresponding navigation title is respectively as follows: " live streaming ", " bright spot ", " concern ", " playing together " and " individual center " four navigation names
Title and Navigation Picture.Wherein, the corresponding navigation entitled " live streaming " of the default subpage frame of displaying, therefore will currently choose
Navigation title be switched to " live streaming ".
With reference to Fig. 2 b, the schematic diagram of setting default subpage frame provided in an embodiment of the present invention is shown, in Fig. 2 b,
The sequence of each subpage frame in subpage frame set is preset, and default subpage frame is set.
It should be noted that content shown in above-mentioned Fig. 2 a and Fig. 2 b is only applicable to for example, the specific page holds
The setting of the particular content and default subpage frame of device is not specifically limited in embodiments of the present invention.
In embodiments of the present invention, it is pre-configured with Page Container and subpage frame set, by obtaining page to remote server
Surface vessel and the corresponding subpage frame set of Page Container show the corresponding son of the Page Container when opening any Page Container
Page set.When changing the page of client, multiple workflows such as cumbersome exploitation, test and publication are needed not move through,
It reduces page change cost and improves the page and change efficiency.
What is be related in above-mentioned Fig. 1 step S102 obtains the mistake of the corresponding subpage frame set in each Page Container address
Journey shows the flow chart provided in an embodiment of the present invention for obtaining subpage frame set with reference to Fig. 3, comprising the following steps:
Step S301: it is directed to each Page Container, determines whether the remote server is that the Page Container is matched
Set the first subpage frame set.If so, step S302 is executed, if it is not, executing step S303.
During implementing step S301, the client obtains to the remote server all on startup
After preset Page Container, for Page Container described in each, determine whether the remote server is the Page Container
Configure the first subpage frame set.
It should be noted that the content as shown in above-mentioned Fig. 1 is it is found that be in advance each page container setting default subpage
Face set.But technical staff can be according to actual needs that Page Container configures corresponding son by the remote server in real time
Page set.
Step S302: the Page Container address based on the Page Container obtains and caches the first subpage frame set.
In specific implementation step S302, for each Page Container, if the remote service is Page Container configuration
The first subpage frame set, then the Page Container address based on the Page Container obtains the first subpage frame set, by institute
State the default subpage frame set that the first subpage frame set replaces the Page Container.And caching the first subpage frame set, with
Use when starting for the client next time.
It should be noted that the remote server is established simultaneously when configuring the first subpage frame set for Page Container
The corresponding relationship of the Page Container address of the Page Container and the first subpage frame set.
Step S303: determine the Page Container with the presence or absence of preceding the second subpage frame set once cached.If it exists, it holds
Row step S304 executes step S305 if it does not exist.
During implementing step S303, the content as shown in above-mentioned steps S302 is it is found that when described long-range
Server is default that the first subpage frame set can be replaced to the Page Container after Page Container configures the first subpage frame set
Page set, and caching the first subpage frame set.Therefore, at current time, when there is no long-range clothes for the Page Container
When the first subpage frame set of business device configuration, the Page Container need to be determined with the presence or absence of preceding the second subpage frame collection once cached
It closes.I.e. in step S303, the second subpage frame collection, which is combined into before the remote server, once to be configured simultaneously for the Page Container
First subpage frame set of caching.
It should be noted that the above-mentioned default subpage frame set being related to, that remote server is Page Container configuration
There are the relationships of priority for one subpage frame set and the second subpage frame set of caching.The subpage frame set of Page Container it is preferential
Grade sorts from high to low are as follows: the first subpage frame set, the second subpage frame set and default subpage frame set.I.e. when Page Container is deposited
It is preferential to obtain the first subpage frame set when by the first subpage frame set of remote server configuration.When Page Container is not present
When the first subpage frame set, the second subpage frame set of last caching is obtained.When the first subpage frame collection is not present in Page Container
When closing with the second subpage frame set, the pre-set default subpage frame set of Page Container is obtained.
Step S304: the Page Container address based on the Page Container obtains the second subpage frame set.
Step S305: the Page Container address based on the Page Container obtains the preset default of subpage frame set
Subpage frame set.
In embodiments of the present invention, it after obtaining Page Container to remote server, for each page container, determines remote
Whether journey server is that the Page Container configures the first subpage frame set, if so, obtaining and showing the first subpage frame set.If
It is no, determine the Page Container with the presence or absence of the second subpage frame set of last caching, and if it exists, to obtain and show the second subpage
Face set.If it does not exist, it obtains and shows the preset default subpage frame set of the Page Container.In the page of change client
When, multiple workflows such as cumbersome exploitation, test and publication are needed not move through, page change cost is reduced and the raising page changes
Efficiency of movement.
Corresponding with a kind of page configuration method disclosed in the embodiments of the present invention, with reference to Fig. 4, the embodiment of the present invention is also
A kind of structural block diagram of page configuration system is provided, the system comprises: first acquisition unit 401, second acquisition unit 402
With display unit 403.
First acquisition unit 401 is used for the preset Page Container of remote server request.Page Container and subpage
Corresponding content in the step S101 that the setting up procedure in face is disclosed referring to embodiments of the present invention Fig. 1.
Second acquisition unit 402 obtains each page and holds for the Page Container address based on each page container
The corresponding subpage frame set in device address, wherein pre-establish each Page Container address pass corresponding with subpage frame set
System, each subpage frame set include multiple subpage frames.The detailed process of subpage frame set is obtained referring to the embodiments of the present invention
Corresponding content in the step S102 that Fig. 1 is disclosed.
Display unit 403, for showing the corresponding subpage frame of the Page Container when opening any Page Container
Set.
In embodiments of the present invention, it is pre-configured with Page Container and subpage frame set, by obtaining page to remote server
Surface vessel and the corresponding subpage frame set of Page Container show the corresponding son of the Page Container when opening any Page Container
Page set.When changing the page of client, multiple workflows such as cumbersome exploitation, test and publication are needed not move through,
It reduces page change cost and improves the page and change efficiency.
Preferably, a kind of structure of page configuration system provided in an embodiment of the present invention is shown with reference to Fig. 5 in conjunction with Fig. 4
Block diagram, the second acquisition unit 402 include: that the first determining module 4021, first obtains module 4022, the second determining module
4023, second module 4024 and third acquisition module 4025 are obtained.
First determining module 4021 determines whether the remote server is institute for being directed to each Page Container
It states Page Container and configures the first subpage frame set, if so, executing first obtains module 4022, if it is not, executing the second determining module
4023。
The first acquisition module 4022 obtains for the Page Container address based on the Page Container and caches institute
State the first subpage frame set.It obtains and the process for caching the first subpage frame set is public referring to embodiments of the present invention Fig. 3
Corresponding content in the step S302 opened.
Second determining module 4023, for determining the Page Container with the presence or absence of preceding the second subpage frame collection once cached
It closes, and if it exists, execute second and obtain module 4024, if it does not exist, execute third and obtain module 4025.Determine second subpage
Corresponding content in the step S303 that the process of face set is disclosed referring to embodiments of the present invention Fig. 3.
Described second obtains module 4024, for the Page Container address based on the Page Container, obtains described second
Subpage frame set.
The third obtains module 4025 and obtains the subpage for the Page Container address based on the Page Container
Gather preset default subpage frame set in face.
In embodiments of the present invention, it after obtaining Page Container to remote server, for each page container, determines remote
Whether journey server is that the Page Container configures the first subpage frame set, if so, obtaining and showing the first subpage frame set.If
It is no, determine the Page Container with the presence or absence of the second subpage frame set of last caching, and if it exists, to obtain and show the second subpage
Face set.If it does not exist, it obtains and shows the preset default subpage frame set of the Page Container.In the page of change client
When, multiple workflows such as cumbersome exploitation, test and publication are needed not move through, page change cost is reduced and the raising page changes
Efficiency of movement.
Preferably, a kind of structure of page configuration system provided in an embodiment of the present invention is shown with reference to Fig. 6 in conjunction with Fig. 4
Block diagram, the display unit 403 include:
Display module 4031 when being used to open any Page Container, utilizes the corresponding subpage frame of the Page Container
Set renders the page of the client, shows navigation bar and the preset default subpage frame of the subpage frame set, wherein described
Navigation bar includes the navigation title and Navigation Picture that each subpage frame includes in the subpage frame set, and subpage frame is included at least and led
Boat title, Navigation Picture and page address.
Switching module 4032, the navigation title for will currently choose are switched to the corresponding navigation name of the default subpage frame
Claim.
In embodiments of the present invention, it when opening Page Container, is obtained using according to the Page Container address of the Page Container
The subpage frame set rendering client page obtained shows navigation bar and the preset default subpage frame of the subpage frame set, and
The navigation title currently selected is switched into the corresponding navigation title of the default subpage frame, completes the page change of client.No
It needs to reduce page change cost by multiple workflows such as cumbersome exploitation, test and publication and improve page change effect
Rate.
Preferably, a kind of structure of page configuration system provided in an embodiment of the present invention is shown with reference to Fig. 7 in conjunction with Fig. 4
Block diagram, the system also includes: the first setting unit 404 and the second setting unit 405.
First setting unit 404 is used to that Page Container address to be arranged for each Page Container, and is each subpage
Page address is arranged in face.
In the concrete realization, first setting unit 404 is specifically used for: utilizing uniform resource position mark URL, is in advance
Page Container address is arranged in each page container, and subpage frame address is arranged for each subpage frame.
Second setting unit 405 defaults subpage frame set for being arranged for each Page Container, and is each height
Page set setting default subpage frame.
In embodiments of the present invention, corresponding address is arranged in each Page Container and subpage frame by being in advance, and
Default subpage frame set is set for each page container, for each subpage frame set setting default subpage frame.Hold opening the page
When device, the subpage frame set rendering client page acquired using the Page Container address according to the Page Container is shown
Navigation bar and the preset default subpage frame of the subpage frame set, and the navigation title currently selected is switched into the default subpage frame
Corresponding navigation title completes the page change of client.Need not move through multiple work such as cumbersome exploitation, test and publication
Process reduces page change cost and improves the page and changes efficiency.
Preferably, the embodiment of the invention also provides a kind of clients, including embodiments of the present invention Fig. 4 is into Fig. 7
A kind of disclosed page configuration system.
In conclusion the embodiment of the present invention provides a kind of page configuration method, system and client, this method are as follows: Xiang Yuan
The preset Page Container of journey server request.Page Container address based on each page container obtains every page face
The corresponding subpage frame set in device address, wherein pre-establish the corresponding relationship of each page capsule address Yu subpage frame set, often
One subpage frame set includes multiple subpage frames.When opening any Page Container, the corresponding subpage frame collection of the Page Container is shown
It closes.In the present solution, Page Container and subpage frame set are pre-configured with, by obtaining Page Container and page appearance to remote server
The corresponding subpage frame set of device shows the corresponding subpage frame set of the Page Container when opening any Page Container.It is changing
When the page of client, multiple workflows such as cumbersome exploitation, test and publication are needed not move through, the page is reduced and changes cost
Efficiency is changed with the page is improved.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system or
For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method
The part of embodiment illustrates.System and system embodiment described above is only schematical, wherein the conduct
The unit of separate part description may or may not be physically separated, component shown as a unit can be or
Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root
According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill
Personnel can understand and implement without creative efforts.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.