A kind of customer terminal webpage generation method and device
Technical field
This application involves Internet technical field more particularly to a kind of customer terminal webpage generation method and devices.
Background technology
Client (Client), it is usually corresponding with server, it is mounted in subscriber terminal equipment, can provide to the user
The application program of service.After application program has carried out application function update, need to the client in subscriber terminal equipment
Upgrading update is carried out, to show the display interface to match with updated function.In practical applications, the side of client is updated
Formula is generally realized by issuing new version in application shop.It, may be frequent but in order to meet different business demands
It needs to be updated client user interface UI (User Interface) or service logic, if more new user interface every time
UI (User Interface) or service logic are required for developer to carry out new version exploitation and issue new edition in application shop
This, causes client update less efficient.
Invention content
A kind of customer terminal webpage generation method of the embodiment of the present application offer and device can effectively improve client update effect
Rate, and then improve the flexibility of customer terminal webpage displaying.
The embodiment of the present application provides a kind of customer terminal webpage generation method, including:
User end to server sends page data request, and the page data request includes page iden-tity;
The client receives at least one page module that the server returns, and the page module includes module
Data, module template identify first version parameter corresponding with module template, and at least one page module is according to
What page iden-tity determined;
For any page module, the client identifies and first according to the module template that the page module includes
Release parameter determines module template script corresponding with module template mark in the client;
The module data and the module template script that the client includes according at least one page module,
Generate customer terminal webpage.
Optionally, the module template mark for including according to the page module for any page module, the client
Knowledge and first version parameter, determine module template script corresponding with module template mark in the client, including:
If being stored with module template script corresponding with module template mark, the client in the client
Determine the module template script corresponding second edition parameter in the client;
If second edition parameter is less than first version parameter, the client determines that the module template is identified as and waits for more
New module template identification;
The client determines and module template mark to be updated according to module template to be updated mark and first version parameter
Know corresponding module template script.
Optionally, the module template mark for including according to the page module for any page module, the client
Knowledge and first version parameter, determine module template script corresponding with module template mark in the client, including:
If module template script corresponding with module template mark, the client are not stored in the client
End determines that the module template is identified as module template mark to be updated;
The client determines and module template mark to be updated according to module template to be updated mark and first version parameter
Know corresponding module template script.
Optionally, the client determines and mould to be updated according to module template to be updated mark and first version parameter
The corresponding module template script of block template identification, including:
The client is obtained to the server sending module template script and is asked, and the module template script acquisition is asked
It includes module template mark and first version parameter to be updated to ask;
The client receives the corresponding with the module template mark to be updated of the server return, and version
Parameter is the module template script of first version parameter;
The client will be corresponding with the module template mark to be updated, and Release parameter is first version parameter
Module template script be determined as module template script corresponding with the module template mark to be updated.
Optionally, if being stored with corresponding with module template mark in the client, and Release parameter is the
The module template script of one Release parameter, then the client by the module template stored in the client identify correspond to
, and the module template script that Release parameter is first version parameter is determined as module corresponding with module template mark
Template script.
Optionally, the module data and the module mould that the client includes according at least one page module
Plate script generates customer terminal webpage, including:
For any page module, the client parses the module for including with the page module by script engine
The corresponding module template script of template identification, obtains the corresponding module template of the page module;
The module data that any page module includes is tied to the corresponding module of the page module by the client
In template, the corresponding page module data model of the page module is obtained;
The client to the corresponding page module data model of at least one page module by carrying out view wash with watercolours
Dye generates customer terminal webpage.
Optionally, when it is at least two that the client, which receives the page module that the server returns, any page
Further include module position data in module;
The method further includes:
The client is according to any page face mould module position data in the block, page mould corresponding to the page module
Block data model is laid out.
Optionally, different page modules include identical module template mark;
And/or
Different page iden-tities determine identical page module.
Optionally, the module template script includes following at least one:Page configuration, user interface UI, business are patrolled
Volume and page resource.
The embodiment of the present application also provides a kind of customer terminal webpage generation method, including:
User end to server sends first page request of data, and the first page request of data includes first page
Mark;The client receives at least one first page module that the server returns, and is wrapped in the first page module
Include module data, module template identifies first version parameter corresponding with module template, at least one first page module
It is that determination is identified according to the first page;
For any first page module, module template mark that the client includes according to the first page module
Knowledge and first version parameter, determine module template script corresponding with module template mark in the client;The visitor
The module data and the module template script that family end includes according at least one first page module generate the first visitor
Family end page face;
The client sends second page request of data to the server, and the second page request of data includes
Second page identifies;The client receives at least one second page module that the server returns, the second page
Module includes that module data, module template identify corresponding with module template first version parameter, and described at least one second
Page module is to identify determination according to the second page;
For any second page module, module template mark that the client includes according to the second page module
Knowledge and first version parameter, determine module template script corresponding with module template mark in the client;The visitor
The module data and the module template script that family end includes according at least one second page module, generate the second family
End page face;
Wherein, the determining at least one first page module of the first page mark and second page mark
Determining at least one second page module includes identical page module;And/or
Different first page modules include identical module template mark;And/or;
Different second page modules include identical module template mark.
The embodiment of the present application also provides a kind of customer terminal webpage generating means, including:
Transmission unit sends page data request to server, and the page data request includes page iden-tity;
Receiving unit receives at least one page module that the server returns, and the page module includes module
Data, module template identify first version parameter corresponding with module template, and at least one page module is according to
What page iden-tity determined;
Determination unit, for any page module, the module template mark and first for including according to the page module
Release parameter determines module template script corresponding with module template mark in client;
Generation unit, the module data for including according at least one page module and the module template script,
Generate customer terminal webpage.
Optionally, the determination unit is specifically used for:
If being stored with module template script corresponding with module template mark in the client, it is determined that the mould
Block template script corresponding second edition parameter in the client;
If second edition parameter is less than first version parameter, it is determined that the module template is identified as module template to be updated
Mark;
According to module template to be updated mark and first version parameter, mould corresponding with module template to be updated mark is determined
Block template script.
Optionally, the determination unit is specifically used for:
If module template script corresponding with module template mark is not stored in the client, it is determined that described
Module template is identified as module template mark to be updated;
According to module template to be updated mark and first version parameter, mould corresponding with module template to be updated mark is determined
Block template script.
Optionally, the determination unit also particularly useful for:
It obtains and asks to the server sending module template script, it includes waiting for that the module template script, which obtains request,
Update module template identification and first version parameter;
The corresponding with the module template mark to be updated of the server return is received, and Release parameter is first
The module template script of Release parameter;
Will be corresponding with the module template mark to be updated, and the module template that Release parameter is first version parameter
Script is determined as module template script corresponding with the module template mark to be updated.
Optionally, the determination unit is specifically used for:
If be stored in the client it is corresponding with module template mark, and Release parameter be first version ginseng
Several module template scripts, then it is the module template stored in the client mark is corresponding, and Release parameter is
The module template script of first version parameter is determined as module template script corresponding with module template mark.
Optionally, the generation unit further comprises:
Script parsing subunit is parsed with the page module by script engine and includes for any page module
Module template identify corresponding module template script, obtain the corresponding module template of the page module;
Data bind subelement, and it is corresponding that the module data that any page module includes is tied to the page module
In module template, the corresponding page module data model of the page module is obtained;
Subelement is generated, by carrying out view wash with watercolours to the corresponding page module data model of at least one page module
Dye generates customer terminal webpage.
Optionally, when it is at least two that the receiving unit, which receives the page module that the server returns, any page
Further include module position data in face mould block;
Described device further includes:
Layout units, according to any page face mould module position data in the block, page mould corresponding to the page module
Block data model is laid out.
Optionally, different page modules include identical module template mark;
And/or
Different page iden-tities determine identical page module.
Optionally, the module template script includes following at least one:Page configuration, user interface UI, business are patrolled
Volume and page resource.
The embodiment of the present application also provides a kind of customer terminal webpage generating means, including:
Memory stores program;
Processor, executes the program of the memory storage, and specifically executes:
Page data request is sent to server, the page data request includes page iden-tity;
At least one page module that the server returns is received, the page module includes module data, module
Template identification and the corresponding first version parameter of module template, at least one page module are true according to the page iden-tity
Fixed;
For any page module, the module template mark and first version parameter for including according to the page module,
Determine module template script corresponding with module template mark in client;
The module data and the module template script for including according at least one page module generate client
The page.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, one or more of programs by the electronic equipment including multiple application programs when being executed so that described
Electronic equipment executes following methods:
Page data request is sent to server, the page data request includes page iden-tity;
At least one page module that the server returns is received, the page module includes module data, module
Template identification and the corresponding first version parameter of module template, at least one page module are true according to the page iden-tity
Fixed;
For any page module, the module template mark and first version parameter for including according to the page module,
Determine module template script corresponding with module template mark in client;
The module data and the module template script for including according at least one page module generate client
The page.
The embodiment of the present application also provides a kind of customer terminal webpage generating means, including:
First transmission unit sends first page request of data to server, and the first page request of data includes
First page identifies;
First receiving unit receives at least one first page module that the server returns, the first page face mould
Block includes module data, module template mark first version parameter corresponding with module template, at least one first page
Face mould block is to identify determination according to the first page;
First determination unit, for any first page module, the module mould for including according to the first page module
Panel sign and first version parameter determine module template script corresponding with module template mark in client;
First generation unit, the module data and the module mould for including according at least one first page module
Plate script generates the first customer terminal webpage;
Second transmission unit sends second page request of data, in the second page request of data to the server
It is identified including second page;
Second receiving unit receives at least one second page module that the server returns, the second page face mould
Block includes module data, module template mark first version parameter corresponding with module template, at least one second page
Face mould block is to identify determination according to the second page;
Second determination unit, for any second page module, the module mould for including according to the second page module
Panel sign and first version parameter determine module template script corresponding with module template mark in the client;
Second generation unit, the module data and the module mould for including according at least one second page module
Plate script generates the second family end page face;
Wherein, the determining at least one first page module of the first page mark and second page mark
Determining at least one second page module includes identical page module;And/or
Different first page modules include identical module template mark;And/or;
Different second page modules include identical module template mark.
The embodiment of the present application also provides a kind of customer terminal webpage generating means, including:
Memory stores program;
Processor, executes the program of the memory storage, and specifically executes:
First page request of data is sent to server, the first page request of data includes first page mark;
At least one first page module that the server returns is received, the first page module includes module data, module
Template identification and the corresponding first version parameter of module template, at least one first page module is according to the first page
Face mark determination;
For any first page module, the module template mark and the first edition for including according to the first page module
This parameter determines module template script corresponding with module template mark in client;According to described at least one first
The module data and the module template script that page module includes generate the first customer terminal webpage;
Second page request of data is sent to the server, the second page request of data includes second page mark
Know;At least one second page module that the server returns is received, the second page module includes module data, mould
Block template identification and the corresponding first version parameter of module template, at least one second page module is according to described second
What page iden-tity determined;
For any second page module, the module template mark and the first edition for including according to the second page module
This parameter determines module template script corresponding with module template mark in the client;According to described at least one
The module data and the module template script that second page module includes generate the second family end page face;
Wherein, the determining at least one first page module of the first page mark and second page mark
Determining at least one second page module includes identical page module;And/or
Different first page modules include identical module template mark;And/or;
Different second page modules include identical module template mark.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, one or more of programs by the electronic equipment including multiple application programs when being executed so that described
Electronic equipment executes following methods:
First page request of data is sent to server, the first page request of data includes first page mark;
At least one first page module that the server returns is received, the first page module includes module data, module
Template identification and the corresponding first version parameter of module template, at least one first page module is according to the first page
Face mark determination;
For any first page module, the module template mark and the first edition for including according to the first page module
This parameter determines module template script corresponding with module template mark in client;According to described at least one first
The module data and the module template script that page module includes generate the first customer terminal webpage;
Second page request of data is sent to the server, the second page request of data includes second page mark
Know;At least one second page module that the server returns is received, the second page module includes module data, mould
Block template identification and the corresponding first version parameter of module template, at least one second page module is according to described second
What page iden-tity determined;
For any second page module, the module template mark and the first edition for including according to the second page module
This parameter determines module template script corresponding with module template mark in the client;According to described at least one
The module data and the module template script that second page module includes generate the second family end page face;
Wherein, the determining at least one first page module of the first page mark and second page mark
Determining at least one second page module includes identical page module;And/or
Different first page modules include identical module template mark;And/or;
Different second page modules include identical module template mark.
Above-mentioned at least one technical solution that the embodiment of the present application uses can reach following advantageous effect:
User end to server transmission includes the page data request of page iden-tity, and receives at least the one of server return
A page module, page module include module data, module template mark first version parameter corresponding with module template, needle
To any page module, client is identified according to the module template that page module includes and first version parameter, determines client
Module template script corresponding with module template mark in end, and then the module data for including according at least one page module
With module template script, customer terminal webpage is generated, so that without developing client new version, it is only necessary to by for page configuration
Module template script realizes the update that customer terminal webpage is shown, effectively improves client update efficiency, and then improve client's end page
The flexibility of face displaying.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please do not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow diagram of customer terminal webpage generation method provided by the embodiments of the present application;
Fig. 2 is the schematic diagram of generation module template script provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of template engine provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of customer terminal webpage provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of customer terminal webpage provided by the embodiments of the present application;
Fig. 6 is a kind of flow diagram of customer terminal webpage generation method provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of customer terminal webpage generating means provided by the embodiments of the present application.
Specific implementation mode
In order to realize the purpose of the application, the embodiment of the present application provides a kind of customer terminal webpage generation method and device,
This method includes:User end to server transmission includes the page data request of page iden-tity, and receives server and return extremely
A few page module, page module include module data, module template mark first version ginseng corresponding with module template
Number, for any page module, client is identified according to the module template that page module includes and first version parameter, determines
Module template script corresponding with module template mark in client, and then the module for including according at least one page module
Data and module template script generate customer terminal webpage, so that without developing client new version, it is only necessary to by for the page
Configuration module template script realizes the update that customer terminal webpage is shown, effectively improves client update efficiency, and then improve client
Hold the flexibility of page presentation.
Technical scheme is clearly and completely retouched with reference to the application specific embodiment and corresponding attached drawing
It states.Obviously, the described embodiments are only a part but not all of the embodiments of the present application.Based in the application
Embodiment, every other embodiment obtained by those of ordinary skill in the art without making creative efforts,
It shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical solution that each embodiment of the application provides is described in detail.
Embodiment 1
Fig. 1 is a kind of flow diagram of customer terminal webpage generation method provided by the embodiments of the present application.The method can
With as follows.
Step 102:User end to server sends page data request, and page data request includes page iden-tity.
When user open client or using client when, the different operation behavior of user can make client to
Family shows different customer terminal webpages.Before showing customer terminal webpage, client obtains page number firstly the need of to server
According to.
Behavior sends page data request to client to server depending on the user's operation, which includes
Page iden-tity.
For example, when client receives the operation behavior of user's opening client, page data request is sent to server,
The page data request includes the page iden-tity for indicating client homepage.
Step 104:Client receives at least one page module that server returns, and page module includes number of modules
First version parameter corresponding with module template is identified according to, module template.
Wherein, at least one page module is determined according to page iden-tity.
In practical application, when needing more new user interface UI (User Interface) or service logic, developer
It is packaged after being updated to the independent page and obtains the client installation kit of new version, and issue new version in application shop
Client installation kit.
After user completes client update by downloading the client installation kit of new version in application shop, client
It holds after server sends the page data request comprising page iden-tity, server is to client back page data, and root
Customer terminal webpage is generated according to the page data to be shown so that client updates that efficiency is low and the displaying of customer terminal webpage is inadequate
Flexibly.
In the embodiment of the present application, in client development process, developer develops more according to business demand for client
A module template script, the development process page module phase only corresponding with the module template script of each module template script
It closes, there is no data correlation between modules template script.Multiple module moulds that developer will complete in development platform exploitation
The template server that plate script is uploaded in server corresponding with client is stored.
In practical application, according to different business demand, developer can develop new module template script and be uploaded to mould
Plate server, and/or, version updating is carried out to the module template script stored in template server.
For example, template server includes module template A1.0 scripts, with the change of business demand, developer is opening
It sends out exploitation on platform and completes module template A2.0 scripts, and module template A2.0 scripts are uploaded to template server so that
Module template A scripts in template server are updated to version 2 .0 from version 1.0.
For another example template server includes module template A1.0 scripts, with the change of business demand, developer exists
1.0 scripts of module template B are completed in exploitation in development platform, and 1.0 scripts of module template B are uploaded to template server,
So that the module template B scripts of the increase version 1.0 in template server.
Further include different page marks in template server other than including module template script in the embodiment of the present application
Know corresponding module template identification list, which includes at least one module template mark and any
Module template identifies corresponding Release parameter.
By configuring different module template identification lists for different page iden-tities so that in practical applications, Ke Yi
A variety of different customer terminal webpages are generated in client, realize that client realizes neatly mobilism operational effect.
For example, for indicating that the corresponding module template identification list of the page iden-tity of client homepage is:Module template A
1.0, module template B 2.0, module template C 1.0 indicate that client can pass through 1.0 scripts of module template A, module template B
2.0 scripts, 1.0 scripts of module template C build the corresponding user interface UI of client homepage.
In the embodiment of the present application, module template script includes following at least one:Page configuration, user interface UI, industry
Logic of being engaged in and page resource.
Fig. 2 is the schematic diagram of generation module template script provided by the embodiments of the present application.
As shown in Fig. 2, according to business demand, the user interface XML UI description texts of module template are write by XML language
Part A.xml and B.xml, and then user interface XML UI are described into file, service logic, page configuration js related to page resource
File etc. carries out precompile, ultimately generates module template script.
It is associated with since the exploitation of each module template script is not relied on the exploitation of other module template scripts so that every
A module template script can flexmux combination, without being influenced by other module template scripts.
In the embodiment of the present application, user end to server sends page data request, can be in user end to server
Service server send page data request.
Service server determines and the page iden-tity according to the page iden-tity in page data request from template server
Corresponding module template identification list, and then service server determines and any module template according to the module template identification list
Identify corresponding module data.
For example, service server receives the page iden-tity for indicating client homepage of client transmission, according to this
Page iden-tity for indicating client homepage, the module template identification list determined from template server are:Module template A
1.0, module template B 2.0, module template C 1.0, and then the corresponding module datas of service server determining module template A, mould
The corresponding module datas of block template B, the corresponding module datas of module template C.
Service server is according to determining module template mark, first version parameter and module data, the determining and page
Identify corresponding at least one page module.
In the embodiment of the present application, different page modules include identical module template mark;
And/or
Different page iden-tities determine identical page module.
It is associated with since the exploitation of each module template script is not relied on the exploitation of other module template scripts so that every
A module template script can flexmux inside the page or between the page.
For example, determining three page modules corresponding with page iden-tity according to page iden-tity:Page module one, module template
A1.0 and module data;Page module two, 2.0 module datas of module template B;Page module three, module template A1.0 and module
Data.Namely three Multiplexing module template A of page module one and page module.
For another example determining two page modules corresponding with page iden-tity one according to page iden-tity one:Page module one, mould
Block template A1.0 and module data;Page module two, 2.0 module datas of module template B.According to the determination of page iden-tity two and page
Face identifies two corresponding three page modules:Page module one, module template A1.0 and module data;Page module two, module
2.0 module datas of template B;Page module three, module template A1.0 and module data.Namely the one corresponding page of page iden-tity
It is multiplexed page module one and page module two with the two corresponding page of page iden-tity.
Service server returns at least one page module corresponding with page iden-tity to client so that client receives
To at least one page module corresponding with page iden-tity, page module includes:Module data, module template mark, module
The corresponding first version parameter of template.
For example, service server determines three page modules corresponding with for indicating the page iden-tity of client homepage:
Page module one includes module template A1.0 and module data;Page module two includes module template B 2.0 and number of modules
According to;Page module three includes module template C 1.0 and module data.Wherein, the corresponding first version parameters of module template A are
The corresponding first version parameter of 1.0, module template B is 2.0, and the corresponding first version parameters of module template C are 1.0.
Step 106:For any page module, client identifies and first according to the module template that page module includes
Release parameter determines module template script corresponding with module template mark in client.
Part of module template script has been locally stored in client, and server returns and page iden-tity is received in client
After corresponding at least one page module, the module template mark and first version parameter for including according to page module, really
Determine module template script corresponding with module template mark in client.
Determine that the mode for identifying corresponding module template script in client with module template may include following three kinds:
The first:
If being stored with module template script corresponding with module template mark, client determining module template in client
Script corresponding second edition parameter in the client;
If second edition parameter is less than first version parameter, client determining module template identification is module mould to be updated
Panel sign;
Client determines and module template to be updated mark pair according to module template to be updated mark and first version parameter
The module template script answered.
Specifically, user end to server sending module template script obtains request, and module template script obtains in request
Including module template to be updated mark and first version parameter;
Client receives the corresponding with module template to be updated mark of server return, and Release parameter is the first edition
The module template script of this parameter;
Client will be corresponding with module template to be updated mark, and the module mould that Release parameter is first version parameter
Plate script is determined as module template script corresponding with module template to be updated mark.
For example, the page module two that client receives includes:Module template B 2.0 and module data, i.e. module mould
Panel sign is module template B, and first version parameter is 2.0.
If being stored with 1.0 scripts of module template B in client, i.e., the corresponding modules of module template B are stored in client
Template script, and second edition parameter is 1.0.
It less than first version parameter is 2.0 that second edition parameter, which is 1.0, then the template server in user end to server
2.0 scripts of acquisition module template B, and 2.0 scripts of module template B got are determined as the corresponding modules of module template B
Template script.
Second:
If module template script corresponding with module template mark, client determining module mould are not stored in client
Panel sign identifies for module template to be updated;
Client determines and module template to be updated mark pair according to module template to be updated mark and first version parameter
The module template script answered.
Specifically, user end to server sending module template script obtains request, and module template script obtains in request
Including module template to be updated mark and first version parameter;
Client receives the corresponding with module template to be updated mark of server return, and Release parameter is the first edition
The module template script of this parameter;
Client will be corresponding with module template to be updated mark, and the module mould that Release parameter is first version parameter
Plate script is determined as module template script corresponding with module template to be updated mark.
For example, the page module two that client receives includes:Module template B 2.0 and module data, i.e. module mould
Panel sign is module template B, and first version parameter is 2.0.
If the corresponding module template scripts of module template B are not stored in client, the mould in user end to server
2.0 scripts of plate server acquisition module template B, and 2.0 scripts of module template B got are determined as B pairs of module template
The module template script answered.
The third:
If be stored in client it is corresponding with module template mark, and Release parameter be first version parameter module
Template script, then client identifies the module template stored in client corresponding, and Release parameter is joined for first version
Several module template scripts is determined as module template script corresponding with module template mark.
For example, the page module two that client receives includes:Module template B 2.0 and module data, i.e. module mould
Panel sign is module template B, and first version parameter is 2.0.
If being stored with 2.0 scripts of module template B in client, without being updated to the module template script, directly
2.0 scripts of module template B are determined as the corresponding module template scripts of module template B.
Step 108:The module data and module template script that client includes according at least one page module, generate
Customer terminal webpage.
The module data that client includes according at least one page module and the module mould for including with page module
The corresponding module template script of panel sign carries out script parsing, data binding, view rendering by template engine, ultimately generates
Customer terminal webpage, and show customer terminal webpage to user.
In the embodiment of the present application, module data and module template foot that client includes according at least one page module
This, generates customer terminal webpage, including:
For any page module, client is identified by the module template that script engine parsing includes with page module
Corresponding module template script obtains the corresponding module template of page module;
The module data that any page module includes is tied in the corresponding module template of page module by client, is obtained
To the corresponding page module data model of page module;
Client generates visitor by carrying out view rendering to the corresponding page module data model of at least one page module
Family end page face.
Fig. 3 is the schematic diagram of template engine provided by the embodiments of the present application.
As shown in figure 3, template engine includes four data analysis layers, data analysis layer 31 includes script engine, at data
It includes module/bridge joint registration center to manage layer 32, and data analysis layer 33 includes module/class/view in module template script file,
Data analysis layer 34 includes template loader/view rendering device.
The module template foot that data analysis layer 33 is included by the module for including by data analysis layer 32/bridge joint registration center
Module/class/view in this document imports the script engine that data analysis layer 31 includes, and is parsed by the script of script engine,
Obtain the corresponding module template of any page module;The template loader that data analysis layer 34 includes will wrap in any page module
The module data included is tied to the module template that page module includes and identifies in corresponding module template, obtains page module pair
The page module data model answered, and then the view rendering device that data analysis layer 34 includes is corresponding at least one page module
Page module data model carries out view rendering, generates customer terminal webpage.
Fig. 4 is the schematic diagram of customer terminal webpage provided by the embodiments of the present application.
As shown in figure 4, customer terminal webpage includes three page modules:Page module 41, page module 42 and page module
43。
It is corresponding with the module template mark that the page module includes for any page module in the embodiment of the present application
Module template script, can be one, or it is multiple, be not specifically limited.
In the embodiment of the present application, when it is at least two that client, which receives the page module that server returns, any page
Further include module position data in module;
The method further includes:
Client is according to any page face mould module position data in the block, page module data mould corresponding to page module
Type is laid out.
By the way that different module position data are arranged for different page modules so that in practical applications, can be in client
In end different page modules are carried out with different layouts, and then generates different customer terminal webpages so that client is realized flexible
Ground mobilism operational effect.
Fig. 5 is the schematic diagram of customer terminal webpage provided by the embodiments of the present application.
As shown in figure 5, by being carried out to the page module 51, page module 52 and page module 53 that constitute customer terminal webpage
Different module position data settings, generates two different customer terminal webpages.
The technical solution that the embodiment of the present application is recorded, user end to server transmission include that the page data of page iden-tity is asked
It asks, and receives at least one page module of server return, page module includes module data, module template mark and mould
The corresponding first version parameter of block template, for any page module, module template that client includes according to page module
Mark and first version parameter, determine module template script corresponding with module template mark in client, and then according at least
The module data and module template script that one page module includes generate customer terminal webpage, so that without developing visitor
Family end new version, it is only necessary to by the update shown for page configuration module template script, realization customer terminal webpage, effectively improve visitor
Family end updates efficiency, and then improves the flexibility of customer terminal webpage displaying.
The embodiment of the present application also provides a kind of customer terminal webpage generation method, including:User end to server sends first
Page data request, first page request of data include first page mark;Client receives at least one that server returns
A first page module, first page module include module data, the module template mark first edition corresponding with module template
This parameter, at least one first page module are to identify determination according to first page;For any first page module, client
The module template mark and first version parameter that end includes according to first page module, determine in client with module template mark
Know corresponding module template script;The module data and module template that client includes according at least one first page module
Script generates the first customer terminal webpage;User end to server sends second page request of data, in second page request of data
It is identified including second page;Client receives at least one second page module that server returns, and is wrapped in second page module
Module data, module template mark first version parameter corresponding with module template are included, at least one second page module is root
Determining according to second page mark;For any second page module, the module that client includes according to second page module
Template identification and first version parameter determine module template script corresponding with module template mark in client;Client root
The module data and module template script for including according at least one second page module generate the second family end page face;Wherein,
At least one second page module at least one first page module and second page the mark determination that one page iden-tity determines
It include identical page module;And/or different first page modules include identical module template mark;And/or;No
Include identical module template mark with second page module, by can between the different pages flexmux module mould
Plate script effectively increases client update efficiency, and then improves the flexibility of customer terminal webpage displaying.
Embodiment 2
Present invention design is described in detail based on previous embodiment 1, for the ease of being better understood from the application's
Technical characteristic, means and effect are below described further the customer terminal webpage display methods of the application, to form this Shen
Another embodiment please.
Customer terminal webpage shows that process shows that process is similar to customer terminal webpage in embodiment 1 in the embodiment of the present application 2, real
It applies some other step not made referrals in example 2 and may refer to associated description in embodiment 1, details are not described herein again.
Fig. 6 is a kind of flow diagram of customer terminal webpage generation method provided by the embodiments of the present application.The method can
With as follows.
Step 601:Client sends page data request to service server, and page data request includes page mark
Know.
Step 602:Service server sends Template Information to template server and obtains request, and Template Information obtains in request
Including page iden-tity.
Step 603:Template server determines at least one page module corresponding with page iden-tity according to page iden-tity,
Page module includes that module template identifies first version parameter corresponding with module template;And to service server return and page
Face identifies corresponding at least one page module.
Wherein, multiple module template scripts, and the corresponding page mould of different page iden-tities are stored in template server
The module template mark that block includes.
Step 604:Service server determines corresponding with any page module module data, so return to client and
The corresponding at least one page module of page iden-tity, page module include:Module data, module template mark, module template
Corresponding first version parameter.
Step 605:The module template mark and first that template engine in client includes according to any page module
Release parameter, the module template to be updated mark in determining module template identification.
Step 606:Template engine in client is obtained to template server sending module template script asks, module mould
It includes module template mark and first version parameter to be updated that plate script, which obtains request,.
Step 607:Template engine in client receive that template server returns with module template to be updated mark pair
It answers, and the module template script that Release parameter is first version parameter;And then for the mould that any page module includes
Block template identification will identify the module template script that corresponding and Release parameter is first version parameter with the module template,
It is determined as the module template and identifies corresponding module template script.
Step 608:The module data and module that template engine in client includes according at least one page module
Template script carries out script parsing, data binding, view rendering by template engine, ultimately generates customer terminal webpage, and to
Family shows customer terminal webpage.
The technical solution that the embodiment of the present application is recorded, user end to server transmission include that the page data of page iden-tity is asked
It asks, and receives at least one page module of server return, page module includes module data, module template mark and mould
The corresponding first version parameter of block template, for any page module, module template that client includes according to page module
Mark and first version parameter, determine module template script corresponding with module template mark in client, and then according at least
The module data and module template script that one page module includes generate customer terminal webpage, so that without developing visitor
Family end new version, it is only necessary to by the update shown for page configuration module template script, realization customer terminal webpage, effectively improve visitor
Family end updates efficiency, and then improves the flexibility of customer terminal webpage displaying.
Embodiment 3
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.As shown in fig. 7, in hardware view,
The electronic equipment includes processor, further includes optionally internal bus, network interface, memory.Wherein, memory may include
Memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile deposit
Reservoir (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that it
The required hardware of his business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..For ease of indicating, only indicated with a four-headed arrow in Fig. 7, it is not intended that an only bus or a type of
Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from then operation in corresponding computer program to memory is read in nonvolatile memory, in logical layer
Customer terminal webpage generating means are formed on face.Processor executes the program that memory is stored, and specifically for executing following two
Kind operation:
The first:
Page data request is sent to server, page data request includes page iden-tity;
At least one page module that server returns is received, page module includes module data, module template mark
First version parameter corresponding with module template, at least one page module are determined according to page iden-tity;
For any page module, the module template mark and first version parameter for including according to page module determine
Module template script corresponding with module template mark in client;
The module data and module template script for including according at least one page module generate customer terminal webpage.
Second:
First page request of data is sent to server, first page request of data includes first page mark;It receives
At least one first page module that server returns, first page module include module data, module template mark and mould
The corresponding first version parameter of block template, at least one first page module are to identify determination according to first page;
For any first page module, the module template mark and first version that include according to first page module are joined
Number, determines module template script corresponding with module template mark in client;According at least one first page module
The module data and the module template script for including generate the first customer terminal webpage;
Second page request of data is sent to server, second page request of data includes second page mark;It receives
At least one second page module that server returns, second page module include module data, module template mark and mould
The corresponding first version parameter of block template, at least one second page module are to identify determination according to second page;
For any second page module, the module template mark and first version that include according to second page module are joined
Number, determines module template script corresponding with module template mark in client;It is wrapped according at least one second page module
The module data and module template script included generates the second family end page face;
Wherein, first page mark determining at least one first page module and second page identifies determining at least one
A second page module includes identical page module;And/or
Different first page modules include identical module template mark;And/or;
Different second page modules include identical module template mark.
The above-mentioned method executed such as the embodiment of the present application 1 can be applied in processor, or be realized by processor.Processing
Device may be a kind of IC chip, the processing capacity with signal.During realization, each step of the above method can be with
It is completed by the integrated logic circuit of the hardware in processor or the instruction of software form.Above-mentioned processor can be general
Processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), special integrated
Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present application.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..In conjunction with the embodiment of the present application institute
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory, processor reads the information in memory, the above method is completed in conjunction with its hardware.
The method that the electronic equipment can also carry out Fig. 1 execution, and realize the function of above-described embodiment 1, the embodiment of the present application
Details are not described herein.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, which works as is held by the electronic equipment including multiple application programs
When row, the electronic equipment can be made to execute the customer terminal webpage display methods in embodiment illustrated in fig. 1, and specifically under execution
State two kinds of operations:
The first:
Page data request is sent to server, page data request includes page iden-tity;
At least one page module that server returns is received, page module includes module data, module template mark
First version parameter corresponding with module template, at least one page module are determined according to page iden-tity;
For any page module, the module template mark and first version parameter for including according to page module determine
Module template script corresponding with module template mark in client;
The module data and module template script for including according at least one page module generate customer terminal webpage.
Second:
First page request of data is sent to server, first page request of data includes first page mark;It receives
At least one first page module that server returns, first page module include module data, module template mark and mould
The corresponding first version parameter of block template, at least one first page module are to identify determination according to first page;
For any first page module, the module template mark and first version that include according to first page module are joined
Number, determines module template script corresponding with module template mark in client;According at least one first page module
The module data and the module template script for including generate the first customer terminal webpage;
Second page request of data is sent to server, second page request of data includes second page mark;It receives
At least one second page module that server returns, second page module include module data, module template mark and mould
The corresponding first version parameter of block template, at least one second page module are to identify determination according to second page;
For any second page module, the module template mark and first version that include according to second page module are joined
Number, determines module template script corresponding with module template mark in client;It is wrapped according at least one second page module
The module data and module template script included generates the second family end page face;
Wherein, first page mark determining at least one first page module and second page identifies determining at least one
A second page module includes identical page module;And/or
Different first page modules include identical module template mark;And/or;
Different second page modules include identical module template mark.
Fig. 8 is a kind of structural schematic diagram of customer terminal webpage generating means provided by the embodiments of the present application.Device 800 wraps
It includes:
Transmission unit 801 sends page data request to server, and page data request includes page iden-tity;
Receiving unit 802, receive server return at least one page module, page module include module data,
Module template identifies first version parameter corresponding with module template, and at least one page module is determined according to page iden-tity
's;
Determination unit 803, for any page module, the module template mark and the first edition for including according to page module
This parameter determines module template script corresponding with module template mark in client;
Generation unit 804, the module data for including according at least one page module and module template script generate visitor
Family end page face.
Optionally it is determined that unit 803 is specifically used for:
If being stored with module template in client identifies corresponding module template script, it is determined that module template script is in visitor
Corresponding second edition parameter in the end of family;
If second edition parameter is less than first version parameter, it is determined that module template is identified as module template mark to be updated
Know;
According to module template to be updated mark and first version parameter, mould corresponding with module template to be updated mark is determined
Block template script.
Optionally it is determined that unit 803 is specifically used for:
If not being stored with module template in client identifies corresponding module template script, it is determined that module template is identified as
Module template mark to be updated;
According to module template to be updated mark and first version parameter, mould corresponding with module template to be updated mark is updated
Block template script.
Optionally it is determined that unit 803 also particularly useful for:
It obtains and asks to server sending module template script, it includes module to be updated that module template script, which obtains request,
Template identification and first version parameter;
The corresponding with module template to be updated mark of server return is received, and Release parameter is first version parameter
Module template script;
Will be corresponding with module template to be updated mark, and the module template script that Release parameter is first version parameter
It is determined as module template script corresponding with module template to be updated mark.
Optionally it is determined that unit 803 is specifically used for:
If being stored in client, module template mark is corresponding, and the module mould that Release parameter is first version parameter
Plate script, then it is the module template stored in client mark is corresponding, and the module that Release parameter is first version parameter
Template script is determined as module template script corresponding with module template mark.
Optionally, generation unit 804 further comprises:
Script parsing subunit, for any page module, the mould for including with page module by script engine parsing
The corresponding module template script of block template identification, obtains the corresponding module template of page module;
Data bind subelement, and the module data that any page module includes is tied to the corresponding module of page module
In template, the corresponding page module data model of page module is obtained;
Subelement is generated, by carrying out view rendering to the corresponding page module data model of at least one page module,
Generate customer terminal webpage.
Optionally, when it is at least two that receiving unit, which receives the page module that server returns, in any page module
Further include module position data;
Device 800 further includes:
Layout units, according to any page face mould module position data in the block, page module number corresponding to page module
It is laid out according to model.
Optionally, different page modules include identical module template mark;
And/or
Different page iden-tities determine identical page module.
Optionally, the corresponding module template of page module includes following at least one:Page configuration, user interface UI,
Service logic and page resource.
According to customer terminal webpage display unit, transmission unit sends page data request, page data request to server
It include page iden-tity;Receiving unit receives at least one page module that server returns, and page module includes number of modules
First version parameter corresponding with module template is identified according to, module template, at least one page module is true according to page iden-tity
Fixed;Determination unit is directed to any page module, the module template mark and first version parameter for including according to page module,
Determine module template script corresponding with module template mark in client;Generation unit is wrapped according at least one page module
The module data and module template script included generates customer terminal webpage, so that without developing client new version, it is only necessary to logical
It is page configuration module template script to cross, and realizes the update that customer terminal webpage is shown, effectively improves client update efficiency, in turn
Improve the flexibility of customer terminal webpage displaying.
The embodiment of the present application also provides a kind of customer terminal webpage generating means, including:
First transmission unit sends first page request of data to server, and first page request of data includes first
Page iden-tity;
First receiving unit, receives at least one first page module that server returns, and first page module includes
Module data, module template identify first version parameter corresponding with module template, and at least one first page module is basis
First page mark determination;
First determination unit, for any first page module, the module template mark for including according to first page module
Knowledge and first version parameter, determine module template script corresponding with module template mark in client;
First generation unit, the module data and module template script for including according at least one first page module,
Generate the first customer terminal webpage;
Second transmission unit sends second page request of data to server, and second page request of data includes second
Page iden-tity;
Second receiving unit, receives at least one second page module that server returns, and second page module includes
Module data, module template identify first version parameter corresponding with module template, and at least one second page module is basis
Second page mark determination;
Second determination unit, for any second page module, the module template mark for including according to second page module
Knowledge and first version parameter, determine module template script corresponding with module template mark in client;
Second generation unit, the module data and module template script for including according at least one second page module,
Generate the second family end page face;
Wherein, first page mark determining at least one first page module and second page identifies determining at least one
A second page module includes identical page module;And/or
Different first page modules include identical module template mark;And/or;
Different second page modules include identical module template mark.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.
Above is only an example of the present application, it is not intended to limit this application.For those skilled in the art
For, the application can have various modifications and variations.It is all within spirit herein and principle made by any modification, equivalent
Replace, improve etc., it should be included within the scope of claims hereof.