CN107818143A - A kind of page configuration, generation method and device - Google Patents

A kind of page configuration, generation method and device Download PDF

Info

Publication number
CN107818143A
CN107818143A CN201710959775.5A CN201710959775A CN107818143A CN 107818143 A CN107818143 A CN 107818143A CN 201710959775 A CN201710959775 A CN 201710959775A CN 107818143 A CN107818143 A CN 107818143A
Authority
CN
China
Prior art keywords
page
template
configuration file
visited
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710959775.5A
Other languages
Chinese (zh)
Other versions
CN107818143B (en
Inventor
解楠
张昊
林芃
丰朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201710959775.5A priority Critical patent/CN107818143B/en
Publication of CN107818143A publication Critical patent/CN107818143A/en
Application granted granted Critical
Publication of CN107818143B publication Critical patent/CN107818143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

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

Abstract

The invention discloses a kind of page configuration, generation method and device.This method includes:Server chooses the mark of the template of the page to be configured in instruction according to the template received, determines the template of the page to be configured, and extracts the content element in the template of the page to be configured, and the content element in the template of the page to be configured is shown on display interface;And then server obtains the configuration file of the page to be configured according to the key element change directive received.The present invention is by using this mode, the content element that multiple different loose-leafs can be completed using a set of Page Template is configured, and so as to effectively avoid the exploitation input repeated, simplifies page development flow, page development efficiency is improved, and then activity can be shortened and reached the standard grade the cycle.

Description

A kind of page configuration, generation method and device
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of page configuration, generation method and device.
Background technology
With the rapid development of Internet technology, the exploitation of various front end pages has also obtained unprecedented development, increasingly More marketing activities is presented in front of the user in the form of the page, such as, Unionpay's wallet often has routine virus marketing and lived It is dynamic, it can also combine the marketing activity similar with mechanism progress of some brands.Therefore, the high efficiency of page development seems more and more heavier Will.
In the prior art, when developing the page of marketing activity, it usually needs research staff's composition page code is to build The page, then it is responsible for official documents and correspondence and Pages Design by runing, being related to personnel, this page development mode can be effectively applicable to page frame The different marketing activity of frame.However, theme difference is directed to, but the marketing activity that the page framework used is more similar, if adopting With above-mentioned page development mode, then it is required to realize by above-mentioned flow for each page, so as to cause page development to be imitated Rate is relatively low, the cycle of reaching the standard grade is longer and is related to numerous human inputs such as party in request, interaction design, exploitation, test.
To sum up, a kind of page configuration method is needed badly at present, page development is less efficient in the prior art, reaches the standard grade for solving The problem of cycle is longer.
The content of the invention
The embodiment of the present invention provides a kind of page configuration, generation method and device, similar to solve to develop in the prior art The low technical problem of page efficiency.
The present invention provides a kind of page configuration method, and methods described includes:
Server receives template and chooses instruction, and the template chooses the mark that instruction includes the template of the page to be configured;
The server determines the template of the page to be configured according to the mark of the template of the page to be configured;
The server extracts the content element in the template of the page to be configured, and on display interface described in display Content element in the template of the page to be configured;
The server receives key element change directive, and obtains the configuration of the page to be configured according to the key element change directive File.
Alternatively, the content element includes text, picture, pattern, color, the attribute of control.
Alternatively, methods described also includes:
The server receives configuration file and deletes instruction, and the configuration file, which deletes instruction, includes configuration to be deleted The mark of file;
The server deletes the configuration file to be deleted according to the mark of the configuration file to be deleted.
The embodiment of the present invention provides a kind of page generation method, and methods described includes:
Client device receives access instruction, and the access instruction includes the mark and mould of the configuration file of the page to be visited The mark of plate;
The client device is according to the mark of configuration file and the mark of template of the page to be visited, described in acquisition The configuration file and template of the page to be visited;
The client device generates the page to be visited according to the configuration file and template of the page to be visited.
Alternatively, the template of the page to be visited is default template;The default template includes the silent of content element Recognize value;
The client device generates the page to be visited according to the configuration file and template of the page to be visited, including:
The client device loads the framework of the page to be visited according to the default template, and waits to visit according to described The configuration file of the page is asked, content element in the configuration file is used on the basis of the framework of the page to be visited Value covers the default value of corresponding content element in the default template.
The embodiment of the present invention provides a kind of server, and the server includes:
Receiving unit, instruction is chosen for receiving template, the template, which chooses instruction, includes the template of the page to be configured Mark;
Processing unit, for the mark of the template according to the page to be configured, determine the template of the page to be configured;
Display unit, the content element in template for extracting the page to be configured, and shown on display interface Content element in the template of the page to be configured;
The receiving unit, it is additionally operable to receive key element change directive;
The processing unit, it is additionally operable to obtain the configuration file of the page to be configured according to the key element change directive.
Alternatively, the content element includes text, picture, pattern, color, the attribute of control.
Alternatively, the receiving unit is additionally operable to:
Receive configuration file and delete instruction, the configuration file, which deletes instruction, includes the mark of configuration file to be deleted Know;
The processing unit, the mark according to the configuration file to be deleted is additionally operable to, deletes described to be deleted match somebody with somebody Put file.
The embodiment of the present invention provides a kind of client device, and the client device includes:
Receiving unit, for receiving access instruction, the access instruction includes the mark of the configuration file of the page to be visited With the mark of template;
Acquiring unit, for the mark of configuration file and the mark of template according to the page to be visited, described in acquisition The configuration file and template of the page to be visited;
Generation unit, for the configuration file and template according to the page to be visited, generate the page to be visited.
Alternatively, the template of the page to be visited is default template;The default template includes the silent of content element Recognize value;
The generation unit is specifically used for:
The framework of the page to be visited is loaded according to the default template, and according to the configuration text of the page to be visited Part, the value of the content element in the configuration file is used to cover the acquiescence on the basis of the framework of the page to be visited The default value of corresponding content element in template.
In the embodiment of the present invention, server chooses the mark of the template of the page to be configured in instruction according to the template received Know, determine the template of the page to be configured, and extract the content element in the template of the page to be configured, and show on display interface Show the content element in the template of the page to be configured;And then server obtained according to the key element change directive received it is to be configured The configuration file of the page.By using this mode, can be completed in multiple different loose-leafs using a set of Page Template Hold key element configuration, so as to effectively avoid the exploitation input repeated, simplify page development flow, improve page development efficiency, and then Activity can be shortened to reach the standard grade the cycle;And server includes the content element in the template of the page to be configured on display interface, So as to provide the visualization interface of close friend, it is easy to developer to carry out page development.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of system architecture schematic diagram that the embodiment of the present invention is applicable;
Fig. 2 is the schematic flow sheet corresponding to a kind of page configuration method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the page to be configured provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of the content element shown on display interface provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet corresponding to a kind of page generation method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of blank page template provided in an embodiment of the present invention;
The schematic flow sheet that Fig. 7 is a kind of overall page configuration provided in an embodiment of the present invention and the page generates;
Fig. 8 is a kind of structural representation of server provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of client device provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Fig. 1 is a kind of system architecture schematic diagram that the embodiment of the present invention is applicable, as shown in figure 1, the system architecture includes Database 101, one or more server (first server 1021, second server 1022 in such as Fig. 1, the 3rd servers 1023), one or more client devices (the first client device 1031, the second client device 1032 in such as Fig. 1, Three client devices 1033).First server 1021, the server 1023 of second server 1022 and the 3rd can access data Storehouse 101, the first client device 1031, the second client device 1032, the 3rd client device 1033 can access data Storehouse 101.
In the embodiment of the present invention, server can be the various electronic equipments for having display screen and supporting page configuration, Such as configuration end equipment etc..Client device can be polytype terminal, such as smart mobile phone, tablet personal computer, intelligence electricity Depending on etc..
Specifically, server can be provided with various systems and instrument, such as page editing device, page configuration instrument Deng, in this way, operation designer, research staff or have permission user (such as can be oneself business promotion make page The user in face) page of marketing activity can be configured by server, after page configuration success, server can be by configuration file Store in database.
Client device can access number by the browser in client device or other kinds of application program According to the data in storehouse to obtain the information such as webpage, and corresponding webpage is shown to user.
It should be noted that Fig. 1 is only a kind of possible system architecture diagram, and in other possible embodiments, service Configuration file can also be stored directly in server by device, and subsequent clients end equipment can obtain configuration by accessing server File, now, without setting a single database.
Based on the network architecture shown in Fig. 1, Fig. 2 illustrates a kind of page configuration side provided in an embodiment of the present invention Schematic flow sheet corresponding to method, as shown in Fig. 2 specifically comprising the following steps:
Step 201, server receives template and chooses instruction, and the template, which chooses instruction, includes the template of the page to be configured Mark.
Step 202, server determines the template of the page to be configured according to the mark of the template of the page to be configured.
Step 203, server extracts the content element in the template of the page to be configured, and is shown on display interface Content element in the template of the page to be configured.
Step 204, server receives key element change directive, and obtains the page to be configured according to the key element change directive Configuration file.
It should be noted that above-mentioned steps 201 to the method described in step 204 can be opened based on Chrome browsers The expanded application of hair, specific implementation are that a Chrome expanded application is defined as one group of file being compressed together, including HTML (Hypertext Markup Language, HTML), CSS (Cascading Style Sheets, CSS), JavaScript scripts, picture file and other any desired files.They can be carried using browser All application programming interfaces (Application Programming Interface, API) supplied, contain from can Extend hypertext transfer request (XMLHttpRequest, XML) to object tag (JavaScript Object Notation, JSON HTML5 complete characteristic) is arrived.In this way, the new file in available HTML5 in Chrome browsers is passed through API --- FileSystem is operated, can be realized on a web browser to catalogue, the read-write operation of file, and it is all to catalogue, text The operation of part all employs the mechanism of the asynchronism callback in JavaScript language, so as to ensure catalogue, file operation High-performance.
In the embodiment of the present invention, server includes the content element in the template for extracting the page to be configured on display circle On face, then these content elements are modified again, in this way, using a set of Page Template can complete it is multiple not Content element with loose-leaf configures, and effectively avoids the exploitation input repeated, simplifies page development flow, improve page development Efficiency, and then activity can be shortened and reached the standard grade the cycle;Further, the personnel such as application developer and operation design can respectively take charge of it Duty, application developer are responsible for the personnel such as the design of Page Template to be configured, operation design and are responsible for the text of the page to be configured, sample Formula and operation flow, the so participation without application developer can configure the different content key element in the range of pattern rule The page.
Specifically, in step 201 and step 202, the page to be configured includes the information such as picture, text, various controls, root According to the difference of these information can be different type by page division to be configured, for example, the page of ballot activity, inviting good friend The page, the page of promotional activities, the page etc. of notice.The different types of page to be configured, the information that it is included is not yet Together, the page of ballot activity may include the letters such as theme of ballot, multiple polling options, text are described, picture is shown, button of voting Breath;Inviting the page of good friend may retouch comprising multiple controls (such as inputting name, input address, input contact method), text State, the information such as picture is shown, submitting button.The each type of corresponding page to be configured for representing the type of the page to be configured Template mark.
Further, the mark of template can be the information for being capable of unique mark template, such as can be numeral or letter Deng.By taking numeral as an example, as shown in table 1, the mark of the template of the page of ballot activity can be arranged to the 1, page of invitation good friend The mark of the template in face be arranged to the template of the page of 2, promotional activities mark be arranged to 3, notice the page template Mark be arranged to 4.By taking letter as an example, as shown in table 2, the mark of the template of the page of ballot activity can be arranged to Toupiao, invite good friend the page template mark be arranged to yaoqing, the mark of template of the page of promotional activities is set It is set to xuanchuan, the mark of template of the page of notice is arranged to tongzhi.
Table 1:The mark example one of template
Type with the configuration page The mark of template
The page of ballot activity 1
Invite the page of good friend 2
The page of promotional activities 3
The page of notice 4
…… ……
Table 2:The mark example two of template
Type with the configuration page The mark of template
The page of ballot activity toupiao
Invite the page of good friend yaoqing
The page of promotional activities xuanchuan
The page of notice tongzhi
…… ……
In the embodiment of the present invention, server can choose the mark of template in instruction according to template, determine the page to be configured Template, for example, by taking the above-mentioned table 1 as an example, the template that template is chosen instruction and included is identified as 1, it is determined that with template Be identified as corresponding to 1 band configuration the page be the ballot activity page.
In step 203, the content element in the template of the page to be configured can be picture, text, various controls etc..Fig. 3 A kind of schematic diagram of page to be configured provided in an embodiment of the present invention is illustrated, as shown in figure 3, the page to be configured is main Including herein below key element:Page title text 301, page abstract text 302, background picture 303, icon picture 304, input Control 305, submit control 306, hyperlink 307.In addition, the page to be configured can also include attribute of pattern, color, control etc. Content element, for example, pattern can refer to the specifying informations such as text font, size text;Color can refer to page layout background face The specifying informations such as color, textcolor, control Fill Color;The attribute of control can refer to show that control or hiding control etc. are specific Information.
It can be carried out clearer, in an orderly manner for the ease of operation designer, research staff or the user that has permission Key element is changed, and in the embodiment of the present invention, after server extracts the content element in the template of the above-mentioned page to be configured, can be incited somebody to action Content element after extraction is shown on display interface.Specific display mode can be on display interface in the form of a list Display content key element or display content key element, the present invention do not do specific in the form of word description on display interface Limit.
Further, in the embodiment of the present invention, the content element after extraction can enumerate to be shown in display interface one by one Include after above or content element is classified on display interface.Become apparent from for the ease of personnel such as operation designs bright Ground is modified to content element, and the embodiment of the present invention includes on display interface after preferably content element is classified, content The mode classification of key element has a variety of, for example, can be classified according to the form of content element, content element can be divided into text Class, picture category, control class etc.;It can also be classified according to the perform function of content element, content element can be divided into title Class, background classes, links category etc.;It can also be classified according to the particular content of content element, content element can be divided into activity Basic configuration class, invite detailed rules and regulations configuration class, background picture configuration class, base model configuration class etc..
For content as described above, a kind of content element shown on display interface provided in an embodiment of the present invention Schematic diagram, as shown in figure 4, the embodiment of the present invention is classified to the content element after extraction, be specifically divided into movable base This configuration, sharing contents configuration, gift bag page configuration, invitation page configuration, invitation list page configure, draw new detailed rules and regulations configuration, the back of the body The configuration of scape picture, the configuration of prompting card, base model interface configurations and clause, link configuration.Specifically, with movable basic Exemplified by configuration, this classification can include the contents such as activity SN (Identification, ID), page agreement, active state Key element;So that sharing contents configure as an example, this classification can include sharing title, sharing summary, share icon path, share figure Mark, barcode scanning prompting, share the content elements such as link.Based on same thinking, the included content element present invention of other classification It is no longer specific to introduce.
For example illustrated in fig. 4 in specific implementation process, server can be first according to classifying and selecting instruction be received, really The classification of the fixed content element to be changed, then shows the content element that the classification includes in the form of a list again.
In step 204, key element change directive is used for the change for indicating content element, for example, changing content of text, more altering The instructions such as body color, change background picture, change control property.In the embodiment of the present invention, it can be led to by personnel such as operation designs The mode for crossing input through keyboard triggers key element change directive, for example, the personnel such as operation design utilize keyboard corresponding to content element Word is inputted in input frame;Or server, example can also be sent to by way of mouse click by personnel such as operation designs Such as, the personnel such as operation design are clicked on using mouse in choice box corresponding to content element chooses.
Further, in the embodiment of the present invention, server is carried out according to the key element change directive received to content element After change, the configuration file of the page to be configured can be obtained, wherein, configuration file includes the tool of the content element after change Hold in vivo, for example, the text and control property of the page to be configured, the pattern and picture of the page to be configured.
In the embodiment of the present invention, after the configuration file of the page to be configured is obtained, for the ease of subsequently to configuration file Calling, the present invention can be stored configuration file, and the present invention is not limited specific storage mode, for example, can be with Configuration file is stored in the form of compressed package, in specific implementation process, can be utilized in third-party JavaScript storehouses Zip.js instruments realize that specifically, the methods of providing importBlob, exportBlob in zip.js instruments is realized pair Above the decompression of file system, compression etc. operate.After server obtains the configuration file of the page to be configured, it can pass through Zip.js instruments export as entitled theme.zip configuration file compressed package, can in the configuration file compressed package after decompression With including config.js files, theme.css files and img files, wherein, it is main in config.js files to include waiting to match somebody with somebody The text and control property of the page are put, the pattern of the page to be configured is mainly included in theme.css files, is led in img files To include the picture of the page to be configured.
In the embodiment of the present invention, configuration file can be stored and arrive server local by server, can also be by configuration file Store in database, configuration file can also be stored into server local and database, do not limited specifically.
Further, in order to which preferably management configuration file, the embodiment of the present invention can also delete to configuration file Remove, specifically include following operating procedure:
Step 1:Server deletes instruction in reception configuration file, and the configuration file deletion instruction includes to be deleted Configuration file mark.
Step 2:Server deletes the configuration file to be deleted according to the mark of the configuration file to be deleted.
Specifically, the mark of configuration file can be the generation time of configuration file, the theme letter of configuration file, have Body can represent that the present invention is not specifically limited by numeral, letter, character string, numeral and the forms such as the combination of letter.Lift individual Example, it is indicated with the generation time of configuration file with numeral, configuration file 1 is identified as 201710011507 representatives this is matched somebody with somebody Put file be October 1 day 15: 07 in 2017 it is mitogenetic into;By way of further example, carried out with the theme letter of configuration file with letter Represent, to represent the configuration file be that theme is on " Mid-autumn Festival " to the zhongqiujie that is identified as of configuration file 2;Lift again individual Example, it is indicated with the generation time of configuration file and theme letter with numeral and the combination of letter, the mark of configuration file 3 For guoqingjie201709300958 represent the configuration file be on " National Day ", and, the configuration file is 2017 30 days 09 month 09: 58 it is mitogenetic into.In some optional embodiments of the embodiment of the present invention, server can also to Put file be updated, the operation such as preview.
The particular content of page configuration method is described the above, and further, the embodiment of the present invention also carries For a kind of page generation method, the page generation method can combine above-mentioned page configuration method to perform, or, can also It is individually to perform.
Fig. 5 illustrates the schematic flow sheet corresponding to a kind of page generation method provided in an embodiment of the present invention, As shown in figure 5, specifically comprise the following steps:
Step 501, client device receives access instruction, and the access instruction includes the configuration file of the page to be visited The mark of mark and template.
Step 502, client device obtains according to the mark of configuration file and the mark of template of the page to be visited The configuration file and template of the page to be visited.
Step 503, client device generates the page to be visited according to the configuration file and template of the page to be visited.
In the embodiment of the present invention, client device generates page to be visited according to the configuration file and template of the page to be visited Face so that the content element that multiple different loose-leafs can be completed by a set of Page Template configures, and can effectively avoid weight Multiple exploitation input, simplifies page development flow, improves page development efficiency, and then can shorten activity and reach the standard grade the cycle.
Specifically, in step 501 and step 502, access instruction can be sent to client device in several ways, For example, the side that access instruction can be asked by HTTP (HyperText Transfer Protocol, HTTP) Formula is sent to client device.The mark of configuration file and the mark of template of the page to be visited are included in access instruction, specifically For, can be the website information of the page to be visited, such as URL (Uniform Resource in access instruction Locator, URL), the mark of configuration file and the mark of template of the page to be visited are included in website information;Or access refers to It can also be other types of information in order, be not particularly limited herein.
Further, the mark of the configuration file for the page to be visited that client device can be in access instruction, is obtained The configuration file of the page to be visited is taken, the mark of the template of the page to be visited in access instruction, obtains the page to be visited Template.For example, access instruction https://wallet.95516.com/toupiao/201709300958// Html/snsIndex.html, wherein, the configuration file for the page to be visited that the access instruction includes is identified as 201709300958, according to described above, the mark of the configuration file represent configuration file be on 09 30th, 2,017 09 point 58 is mitogenetic into the time;The template for the page to be visited that the access instruction includes is identified as toupiao, according to institute above State, the mark of the template represents the template that template is the ballot activity page.
In step 503, the template of the page can be that the value of content element is the template of blank value, i.e., the template of the page is sky White template, for example, exemplified by inviting the template of good friend's page, as shown in fig. 6, defining the work(of regional in blank template Can, but it is not related to the content being particularly shown;The template of the page can also be the template of the value for the content element for including acquiescence, i.e. page The template in face is default template, for example, as shown in Figure 3 above, the text 1 of acquiescence is " physical culture grand banquet Li Yue Unionpay ", acquiescence Text 2 is " sweat is striven today, and passion lights tomorrow!Develop physical culture and sports, whole people's pleasure is enjoyed preferential!" etc., wrapped in default template Include the default value of content element.When being generated in order to avoid the page, because the error during page configuration causes some content will The value of element be blank value, and the template of the preferable page is default template in the embodiment of the present invention.
, can be by the mould of the page according to the difference of the value of content element in the template of the page based on content described above Plate is divided into:Blank template and default template.The mode of the template generation page using both pages is carried out specifically below It is bright.
(1) template of the page is blank template:Client device loads the framework of the page to be visited according to blank template, so Afterwards according to the configuration file of the page to be visited, the content that the page to be visited is loaded on the basis of the framework of the page to be visited will Element.
Specifically, config.js files, theme.css texts can be included according to described above, in configuration file compressed package Part and img files, client device can be loaded respectively on the basis of the framework of the page to be visited config.js files, Theme.css files and img files, so as to generate the page to be visited.
(2) template of the page is default template:Client device loads the framework of the page to be visited according to default template, so Afterwards according to the configuration file of the page to be visited, the content in using the configuration file on the basis of the framework of the page to be visited The value of key element covers the default value of corresponding content element in the default template.
In specific implementation process, during config.js file of the client device in loading configuration file, it can use and increase The method of amount covering generates the page to be visited, and for example, client device can pass through jQuery $ .extend () sides Method, increment covering is carried out to the global configuration item window.config of acquiescence with the attribute of the control defined in it, if It is 0 to have the attribute of this control of showButton and default value in this global object of window.config, then when configuration text Control defined in the config.js files of part does not have this attribute of showButton, and this attribute of showButton will use Default value;It is 1 that control defined in the config.js files of configuration file, which has this attribute of showButton and value, all The value of variable window.config showButton attributes will be covered as 1.If global variable window.config In there is no this attribute of showButton, and the control defined in the config.js files of configuration file have showButton this One attribute, then the value of global variable window.config showButton attributes is literary by the config.js with configuration file What is configured in part is consistent, i.e., will use the configuration in the config.js files of configuration file when the page generates.
Client device, can also be in config.js files in the config.js files in loading configuration file Content element judge, the difference of the content element in config.js files enters different branches, so as to enter The different logical process of row.For example, client device can judge that content element window.config.showButton value is For 0 or 1, if 1 with regard to the Show Button, with regard to hiding button and its function is disabled for 0.
During theme.css file of the client device in loading configuration file, first it can load in default template Theme.css files, the theme.css files in rear loading configuration file, in this way, if right in theme.css Some content element has carried out particular arrangement, will cover the configuration on the content element in default template, so as to ensure to match somebody with somebody Put file has higher priority compared to default template.Similarly, the picture in the page to be visited uses the img of configuration file Picture in file, rather than the picture in default template.For example, if had in the theme.css files of default template Define the text color and background picture of this content element of .page-container.When the theme.css files of configuration file In also define this content element of .page-container, then when the page generates will be using configuration file Picture in the img files of text color and configuration file defined in theme.css files.
In the embodiment of the present invention, for the template of a page to be visited, multiple configuration files can be loaded, so as to The generation page that page framework is identical but content element is different.
According to content as described above, Fig. 7 illustrates a kind of overall page provided in an embodiment of the present invention Configuration and the schematic flow sheet of page generation, client device can be completed front and rear by front and back end communication technology AJAX modes The communication at end, the back office interface name that front end page request agrees upon in advance, parameter needed for transmission, background service is after receiving the request Processing is performed, and returns to response, after client device receives response, callback operation corresponding to execution.It can specifically combine above-mentioned Description, here is omitted.
Based on same inventive concept, Fig. 8 illustrates a kind of structure of server provided in an embodiment of the present invention Schematic diagram, as shown in figure 8, the server 800 includes receiving unit 801, processing unit 802, display unit 803;Wherein,
Receiving unit 801, instruction is chosen for receiving template, the template, which chooses instruction, includes the mould of the page to be configured The mark of plate;
Processing unit 802, for the mark of the template according to the page to be configured, determine the template of the page to be configured;
Display unit 803, the content element in template for extracting the page to be configured, and show on display interface Show the content element in the template of the page to be configured;
The receiving unit 801, it is additionally operable to receive key element change directive;
The processing unit 802, it is additionally operable to obtain the configuration file of the page to be configured according to the key element change directive.
Fig. 9 illustrates a kind of structural representation of client device provided in an embodiment of the present invention, such as Fig. 9 institutes Show, the server 900 includes receiving unit 901, acquiring unit 902, generation unit 903;Wherein,
Receiving unit 901, for receiving access instruction, the access instruction includes the mark of the configuration file of the page to be visited Know the mark with template;
Acquiring unit 902, for the mark of configuration file and the mark of template according to the page to be visited, obtain institute State the configuration file and template of the page to be visited;
Generation unit 903, for the configuration file and template according to the page to be visited, generate the page to be visited.
In the embodiment of the present invention, server chooses the mark of the template of the page to be configured in instruction according to the template received Know, determine the template of the page to be configured, and extract the content element in the template of the page to be configured, and show on display interface Show the content element in the template of the page to be configured;And then server obtained according to the key element change directive received it is to be configured The configuration file of the page.By using this mode, can be completed in multiple different loose-leafs using a set of Page Template Hold key element configuration, so as to effectively avoid the exploitation input repeated, simplify page development flow, improve page development efficiency, and then Activity can be shortened to reach the standard grade the cycle;And server includes the content element in the template of the page to be configured on display interface, So as to provide the visualization interface of close friend, it is easy to developer to carry out page development.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed 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 individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

  1. A kind of 1. page configuration method, it is characterised in that methods described includes:
    Server receives template and chooses instruction, and the template chooses the mark that instruction includes the template of the page to be configured;
    The server determines the template of the page to be configured according to the mark of the template of the page to be configured;
    The server extracts the content element in the template of the page to be configured, and waits to match somebody with somebody described in display on display interface Put the content element in the template of the page;
    The server receives key element change directive, and obtains the configuration text of the page to be configured according to the key element change directive Part.
  2. 2. according to the method for claim 1, it is characterised in that the content element include text, picture, pattern, color, The attribute of control.
  3. 3. method according to claim 1 or 2, it is characterised in that methods described also includes:
    The server receives configuration file and deletes instruction, and the configuration file, which deletes instruction, includes configuration file to be deleted Mark;
    The server deletes the configuration file to be deleted according to the mark of the configuration file to be deleted.
  4. 4. a kind of page generation method, it is characterised in that methods described includes:
    Client device receives access instruction, the mark of the configuration file of the access instruction including the page to be visited and template Mark;
    The client device is waited to visit according to the mark of configuration file and the mark of template of the page to be visited described in acquisition Ask the configuration file and template of the page;
    The client device generates the page to be visited according to the configuration file and template of the page to be visited.
  5. 5. according to the method for claim 4, it is characterised in that the template of the page to be visited is default template;It is described Default template includes the default value of content element;
    The client device generates the page to be visited according to the configuration file and template of the page to be visited, including:
    The client device loads the framework of the page to be visited according to the default template, and according to the page to be visited The configuration file in face, covered on the basis of the framework of the page to be visited using the value of the content element in the configuration file Cover the default value of corresponding content element in the default template.
  6. 6. a kind of server, it is characterised in that the server includes:
    Receiving unit, instruction is chosen for receiving template, the template chooses the mark that instruction includes the template of the page to be configured Know;
    Processing unit, for the mark of the template according to the page to be configured, determine the template of the page to be configured;
    Display unit, the content element in template for extracting the page to be configured, and on display interface described in display Content element in the template of the page to be configured;
    The receiving unit, it is additionally operable to receive key element change directive;
    The processing unit, it is additionally operable to obtain the configuration file of the page to be configured according to the key element change directive.
  7. 7. server according to claim 6, it is characterised in that the content element includes text, picture, pattern, face The attribute of color, control.
  8. 8. the server according to claim 6 or 7, it is characterised in that the receiving unit is additionally operable to:
    Receive configuration file and delete instruction, the configuration file, which deletes instruction, includes the mark of configuration file to be deleted;
    The processing unit, the mark according to the configuration file to be deleted is additionally operable to, deletes the configuration text to be deleted Part.
  9. 9. a kind of client device, it is characterised in that the client device includes:
    Receiving unit, for receiving access instruction, the access instruction includes the mark and mould of the configuration file of the page to be visited The mark of plate;
    Acquiring unit, for the mark of configuration file and the mark of template according to the page to be visited, wait to visit described in acquisition Ask the configuration file and template of the page;
    Generation unit, for the configuration file and template according to the page to be visited, generate the page to be visited.
  10. 10. client device according to claim 9, it is characterised in that the template of the page to be visited is acquiescence mould Plate;The default template includes the default value of content element;
    The generation unit is specifically used for:
    Load the framework of the page to be visited according to the default template, and according to the configuration file of the page to be visited, The value of the content element in the configuration file is used to cover the acquiescence mould on the basis of the framework of the page to be visited The default value of corresponding content element in plate.
CN201710959775.5A 2017-10-16 2017-10-16 Page configuration and generation method and device Active CN107818143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710959775.5A CN107818143B (en) 2017-10-16 2017-10-16 Page configuration and generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710959775.5A CN107818143B (en) 2017-10-16 2017-10-16 Page configuration and generation method and device

Publications (2)

Publication Number Publication Date
CN107818143A true CN107818143A (en) 2018-03-20
CN107818143B CN107818143B (en) 2021-12-17

Family

ID=61608205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710959775.5A Active CN107818143B (en) 2017-10-16 2017-10-16 Page configuration and generation method and device

Country Status (1)

Country Link
CN (1) CN107818143B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804318A (en) * 2018-05-24 2018-11-13 北京金山安全软件有限公司 Page element testing method and device, electronic equipment and storage medium
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN109002510A (en) * 2018-06-29 2018-12-14 北京百度网讯科技有限公司 A kind of dialog process method, apparatus, equipment and medium
CN109375960A (en) * 2018-09-29 2019-02-22 郑州云海信息技术有限公司 A kind of copyright information loading method and device
CN109447582A (en) * 2018-10-17 2019-03-08 东软集团股份有限公司 Processing method, equipment and the storage medium of operation flow
CN109670154A (en) * 2018-09-18 2019-04-23 平安科技(深圳)有限公司 Base table configuration method, equipment, storage medium and device
CN109977381A (en) * 2019-03-04 2019-07-05 安徽戴特教育科技有限公司 A kind of h5 interactive resources access editor and broadcasting tool based on Office Addin
CN110286907A (en) * 2019-06-25 2019-09-27 北京明略软件系统有限公司 A kind of display methods and device of common button component
WO2019218460A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Service line processing method, device, terminal equipment and medium
CN110633118A (en) * 2018-06-21 2019-12-31 绍兴锋芒电子科技有限公司 Program self-making method, device and storage medium
CN110716783A (en) * 2019-10-10 2020-01-21 秒针信息技术有限公司 Front-end page generation and deployment method and device, storage medium and equipment
CN111131352A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Theme switching method and device
CN111291302A (en) * 2020-03-20 2020-06-16 成都药王科技股份有限公司 Method for quickly creating active page
CN111813435A (en) * 2019-04-11 2020-10-23 天津五八到家科技有限公司 Page content configuration method and device and electronic equipment
CN111984254A (en) * 2020-07-07 2020-11-24 招联消费金融有限公司 Page generation method and device, computer equipment and storage medium
CN114567623A (en) * 2022-02-20 2022-05-31 中国银联股份有限公司 Page display method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7409710B1 (en) * 2003-10-14 2008-08-05 Sun Microsystems, Inc. Method and system for dynamically generating a web-based user interface
US20100037150A1 (en) * 2008-08-05 2010-02-11 Accenture Global Services Gmbh Synchronous to Asynchronous Web Page Conversion
CN101908044A (en) * 2009-06-04 2010-12-08 上海灵慧软件技术有限公司 Dynamically adjustable template and using method thereof
CN102201009A (en) * 2011-06-21 2011-09-28 深圳市凯立德科技股份有限公司 Form generating method and device
WO2011127758A1 (en) * 2010-04-14 2011-10-20 深圳市同洲电子股份有限公司 Method for manufacturing webpage, system, client and server thereof
CN103019684A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Dynamic template-based business page configuring method
CN103838576A (en) * 2014-02-25 2014-06-04 杨红俊 Website establishing method and device
CN103955367A (en) * 2014-04-28 2014-07-30 华为技术有限公司 Method and device for generating pages
CN105183475A (en) * 2015-09-08 2015-12-23 北京思特奇信息技术股份有限公司 Method and system for customizing individuality pages of portal website by user himself
CN106569800A (en) * 2016-10-17 2017-04-19 北京小米移动软件有限公司 Front end interface generation method and apparatus
CN106708480A (en) * 2015-07-29 2017-05-24 腾讯科技(深圳)有限公司 Management platform realization method and apparatus

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7409710B1 (en) * 2003-10-14 2008-08-05 Sun Microsystems, Inc. Method and system for dynamically generating a web-based user interface
US20100037150A1 (en) * 2008-08-05 2010-02-11 Accenture Global Services Gmbh Synchronous to Asynchronous Web Page Conversion
CN101908044A (en) * 2009-06-04 2010-12-08 上海灵慧软件技术有限公司 Dynamically adjustable template and using method thereof
WO2011127758A1 (en) * 2010-04-14 2011-10-20 深圳市同洲电子股份有限公司 Method for manufacturing webpage, system, client and server thereof
CN102201009A (en) * 2011-06-21 2011-09-28 深圳市凯立德科技股份有限公司 Form generating method and device
CN103019684A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Dynamic template-based business page configuring method
CN103838576A (en) * 2014-02-25 2014-06-04 杨红俊 Website establishing method and device
CN103955367A (en) * 2014-04-28 2014-07-30 华为技术有限公司 Method and device for generating pages
CN106708480A (en) * 2015-07-29 2017-05-24 腾讯科技(深圳)有限公司 Management platform realization method and apparatus
CN105183475A (en) * 2015-09-08 2015-12-23 北京思特奇信息技术股份有限公司 Method and system for customizing individuality pages of portal website by user himself
CN106569800A (en) * 2016-10-17 2017-04-19 北京小米移动软件有限公司 Front end interface generation method and apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XIONG P C 等: "Web service configuration under multiple quality-of-service attributes", 《IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING》 *
叶俊杰: "Web环境下商品的个性化展示方法研究", 《中国优秀博硕士学位论文全文数据库(博士)经济与管理科学辑》 *
王琛: "模板化的Web列表页面信息自动抽取方法的研究", 《现代计算机(专业版)》 *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019218460A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Service line processing method, device, terminal equipment and medium
CN108804318A (en) * 2018-05-24 2018-11-13 北京金山安全软件有限公司 Page element testing method and device, electronic equipment and storage medium
CN110633118A (en) * 2018-06-21 2019-12-31 绍兴锋芒电子科技有限公司 Program self-making method, device and storage medium
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN109002510A (en) * 2018-06-29 2018-12-14 北京百度网讯科技有限公司 A kind of dialog process method, apparatus, equipment and medium
CN109670154B (en) * 2018-09-18 2023-10-20 平安科技(深圳)有限公司 Base table configuration method, equipment, storage medium and device
CN109670154A (en) * 2018-09-18 2019-04-23 平安科技(深圳)有限公司 Base table configuration method, equipment, storage medium and device
CN109375960A (en) * 2018-09-29 2019-02-22 郑州云海信息技术有限公司 A kind of copyright information loading method and device
CN109447582A (en) * 2018-10-17 2019-03-08 东软集团股份有限公司 Processing method, equipment and the storage medium of operation flow
CN111131352A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Theme switching method and device
CN111131352B (en) * 2018-10-31 2023-01-13 北京国双科技有限公司 Theme switching method and device
CN109977381A (en) * 2019-03-04 2019-07-05 安徽戴特教育科技有限公司 A kind of h5 interactive resources access editor and broadcasting tool based on Office Addin
CN111813435A (en) * 2019-04-11 2020-10-23 天津五八到家科技有限公司 Page content configuration method and device and electronic equipment
CN110286907A (en) * 2019-06-25 2019-09-27 北京明略软件系统有限公司 A kind of display methods and device of common button component
CN110286907B (en) * 2019-06-25 2022-11-15 北京明略软件系统有限公司 Display method and device of public button assembly
CN110716783A (en) * 2019-10-10 2020-01-21 秒针信息技术有限公司 Front-end page generation and deployment method and device, storage medium and equipment
CN111291302A (en) * 2020-03-20 2020-06-16 成都药王科技股份有限公司 Method for quickly creating active page
CN111984254A (en) * 2020-07-07 2020-11-24 招联消费金融有限公司 Page generation method and device, computer equipment and storage medium
CN114567623A (en) * 2022-02-20 2022-05-31 中国银联股份有限公司 Page display method and device
CN114567623B (en) * 2022-02-20 2023-09-08 中国银联股份有限公司 Page display method and device

Also Published As

Publication number Publication date
CN107818143B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
CN107818143A (en) A kind of page configuration, generation method and device
US20220245328A1 (en) Customizable data management form builder method and devices
US20230092123A1 (en) Automated presentation of information using infographics
US20200110796A1 (en) Customized customer relationship management platform method and devices
US10248994B2 (en) Methods and systems for automatically searching for related digital templates during media-based project creation
EP3654211A1 (en) Automated response server device, terminal device, response system, response method, and program
CN104025068B (en) The Conflict solving of the CSS definition from multiple sources
CN106462555A (en) Methods and systems for web content generation
CN107451296A (en) A kind of Website Module rendering intent based on component
CN106688215A (en) Automated click type selection for content performance optimization
CN110263009A (en) Generation method, device, equipment and the readable storage medium storing program for executing of log classifying rules
CN107369090A (en) Open an account generation method, equipment and the computer-readable recording medium of the page
CN104182225B (en) A kind of General Mobile information system adaptation method and device
TW201610713A (en) Identifying and surfacing relevant report artifacts in documents
CN104199648B (en) A kind of General Mobile information system adaptation method and device
Ganapathy Learning google apps script
CN107423271A (en) Document structure tree method and apparatus
CN111367515B (en) Page card development method, device, computing equipment and storage medium
US12008064B1 (en) Systems and methods for a website generator that utilizes artificial intelligence
JP7481050B1 (en) Information processing device, information processing method, and program
JP7481051B1 (en) Information processing device, information processing method, and program
US20240176839A1 (en) Systems and methods for a website generator that utilizes artificial intelligence
Sasikala et al. Automating Guide selection process of the Department through Web Application
Nguyen et al. Website Wildlife Diseases Redesign
KR101540605B1 (en) A kiosk builder system, a tiosk system including the same, and a method of providing a tiosk system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant