CN109542544A - Interface display method and device - Google Patents

Interface display method and device Download PDF

Info

Publication number
CN109542544A
CN109542544A CN201710868490.0A CN201710868490A CN109542544A CN 109542544 A CN109542544 A CN 109542544A CN 201710868490 A CN201710868490 A CN 201710868490A CN 109542544 A CN109542544 A CN 109542544A
Authority
CN
China
Prior art keywords
interface
template
component
processing logic
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710868490.0A
Other languages
Chinese (zh)
Inventor
林星辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaodu Information Technology Co Ltd
Original Assignee
Beijing Xiaodu Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaodu Information Technology Co Ltd filed Critical Beijing Xiaodu Information Technology Co Ltd
Priority to CN201710868490.0A priority Critical patent/CN109542544A/en
Publication of CN109542544A publication Critical patent/CN109542544A/en
Pending legal-status Critical Current

Links

Abstract

Embodiment of the present invention provides interface display method and device, is related to computer application technology.Wherein, the interface display method includes: acquisition interface template;Determine the processing logic for corresponding to the interface template;Based on the interface template and the processing logic display interface.Due to determining corresponding processing logic as object using interface template, the logic degree of coupling between interface template and interface can be reduced, the flexibility of interface display is improved, and effectively takes into account the displaying demand at different interfaces.

Description

Interface display method and device
Technical field
The present invention relates to computer application technologies, more particularly, it is related to interface display method and device.
Background technique
In recent years, universal with intelligent terminal and internet, intelligent terminal and internet gradually change people Life style, such as done shopping by network shopping mall, game selected by online game center, passes through social networks and friend Friend's interaction etc..
With the promotion of the usage amount of intelligent terminal and internet, the quantity of the network company of disparate networks service is provided Gradually increase, network company is in order to promote the usage experience of user and the use stickiness of user, it will usually according to the network of oneself The product content of service product develops corresponding client.For client, usually there is the interface of differing complexity, Such as the displaying content at some interfaces is relatively fixed, and some interfaces are commonly used in opening up the content of a certain type Show, but when carrying out showing interface, in order to protrude the characteristics of showing content, and needs to carry out the content shown on interface Personal settings, such as businessman show interface, game prefecture interface and individual center interface etc..
However, there are the higher problems of the logic degree of coupling between interface template and interface for existing solution, thus Cause the flexibility of interface display lower, it is difficult to meet the displaying demand at different interfaces.
Summary of the invention
In the existing solution, usually with display interface, thus fixed processing mode is executed to interface template So that the logic degree of coupling between interface template and interface is higher.
Embodiment of the present invention provides interface display method and device, above-mentioned in the presence of the prior art to solve Technical problem.
In a first aspect, embodiment of the present invention provides a kind of interface display method.
Specifically, which comprises
Obtain interface template;
Determine the processing logic for corresponding to the interface template;
Based on the interface template and the processing logic display interface.
Due to determining corresponding processing logic as object using interface template, interface template and interface can be reduced Between the logic degree of coupling, improve the flexibility of interface display, and effectively take into account the displaying demand at different interfaces.
With reference to first aspect, in certain embodiments of the present invention, the interface template and the processing logic are based on Display interface includes:
If the processing logic is the first processing logic, the interface template is rendered with display interface.
Due to directly being rendered interface template to show boundary in the case of handling logic is the first processing logic Face, therefore can guarantee showing interface efficiency while improving showing interface flexibility.
With reference to first aspect, in certain embodiments of the present invention, the interface template and the processing logic are based on Display interface includes:
If the processing logic is second processing logic, data supplement process is executed to the interface template;
Interface template after the data supplement process is rendered with display interface.
Due to executing data supplement process to interface template in the case of handling logic is second processing logic;To warp The interface template of the data supplement process is rendered with display interface, therefore can improve the same of showing interface flexibility When, it realizes that the personalized of interface shows, meets the displaying demand of complicated interface.
With reference to first aspect, in certain embodiments of the present invention, data supplement process is executed to the interface template Include:
The identification information of template component is read from the interface template;
Supplementary data is obtained according to the identification information;
The supplementary data is written in the interface template.
Due to according to the identification information of template component obtain supplementary data, may be implemented using template component as object into Row is personalized to be shown, to further increase the flexibility of showing interface.
With reference to first aspect, in certain embodiments of the present invention, the method also includes:
Attribute information (the feature letter that template component all has in any interface in module information based on template component Breath) establish tree node;
The tree node is associated with according to the location information in the module information to establish component tree (with template component for section The tree form data structure of point);
Based on the component tree assembly template component to generate the interface template.
Since the retrieval of template component can be improved with the storage of this data structure of component tree, tissue templates component Efficiency, to improve the formation efficiency of interface template.
Second aspect, embodiment of the present invention provide a kind of interface display apparatus.
Specifically, described device includes:
Module is obtained, for obtaining interface template;
Logic determining module is handled, for determining the processing logic for corresponding to the interface template;
Display module, for being based on the interface template and the processing logic display interface.
Due to determining corresponding processing logic as object using interface template, interface template and interface can be reduced Between the logic degree of coupling, improve the flexibility of interface display, and effectively take into account the displaying demand at different interfaces.
In conjunction with second aspect, in certain embodiments of the present invention, the display module is used for through following manner reality Now based on the interface template and the processing logic display interface: in the situation that the processing logic is the first processing logic Under, the interface template is rendered with display interface.
Due to directly being rendered interface template to show boundary in the case of handling logic is the first processing logic Face, therefore can guarantee showing interface efficiency while improving showing interface flexibility.
In conjunction with second aspect, in certain embodiments of the present invention, the display module includes:
Data supplementary units are used in the case of the processing logic is second processing logic, to the interface template Execute data supplement process;
Display unit, for being rendered the interface template after the data supplement process with display interface.
Due to executing data supplement process to interface template in the case of handling logic is second processing logic;To warp The interface template of the data supplement process is rendered with display interface, therefore can improve the same of showing interface flexibility When, it realizes that the personalized of interface shows, meets the displaying demand of complicated interface.
In conjunction with second aspect, in certain embodiments of the present invention, the data supplementary units include:
Reading assembly, for reading the identification information of template component from the interface template;
Securing component, for obtaining supplementary data according to the identification information;
Component is written, for the supplementary data to be written in the interface template.
Due to according to the identification information of template component obtain supplementary data, may be implemented using template component as object into Row is personalized to be shown, to further increase the flexibility of showing interface.
In conjunction with second aspect, in certain embodiments of the present invention, described device further include:
Tree node establishes module, establishes tree node for the attribute information in the module information based on template component;
Component tree establishes module, for being associated with the tree node according to the location information in the module information to establish group Part tree;
Generation module, for being based on the component tree assembly template component to generate the interface template.
Since the retrieval of template component can be improved with the storage of this data structure of component tree, tissue templates component Efficiency, to improve the formation efficiency of interface template.
The aspects of the invention or other aspects can more straightforwards in the description of following specific embodiments.
Detailed description of the invention
It, below will be to required in embodiment description in order to illustrate more clearly of the technical solution of embodiment of the present invention The attached drawing used is made one and is simply introduced, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, right For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the flow chart of the interface display method of embodiment 1 according to the method for the present invention;
Fig. 2 is the flow chart of the interface display method of embodiment 2 according to the method for the present invention;
Fig. 3 is the flow chart of the interface display method of embodiment 3 according to the method for the present invention;
Fig. 4 is the flow chart of the interface display method of embodiment 4 according to the method for the present invention;
Fig. 5 is the flow chart of the interface display method of embodiment 5 according to the method for the present invention;
Fig. 6 shows a kind of embodiment of processing S53 shown in fig. 5;
Fig. 7 shows the another embodiment of processing S532 shown in fig. 6;
Fig. 8 shows another embodiment of processing S532 shown in fig. 6;
Fig. 9 is the effect diagram of the component typesetting of embodiment according to the present invention;
Figure 10 is the schematic diagram of the component Configuration list of embodiment according to the present invention;
Figure 11 is the schematic diagram of the component tree of embodiment according to the present invention;
Figure 12 is the structural schematic diagram of the interface display apparatus of product embodiment 1 according to the present invention;
Figure 13 shows a kind of embodiment of display module 13 shown in Figure 12;
Figure 14 shows a kind of embodiment of data supplementary units 131 shown in Figure 13;
Figure 15 is the structural schematic diagram of the interface display apparatus of product embodiment 5 according to the present invention;
Figure 16 shows a kind of embodiment of generation module 16 shown in figure 15;
Figure 17 shows a kind of embodiments of acquiring unit 162 shown in Figure 16;
Figure 18 is a kind of structural schematic diagram of terminal device of embodiment according to the present invention.
Specific embodiment
In the existing solution, usually with display interface, thus fixed processing mode is executed to interface template So that the logic degree of coupling between interface template and interface is higher.
In order to solve this technical problem, embodiment of the present invention provide interface display method and device, terminal device and Computer storage medium.It is described in detail to various aspects of the present invention below in conjunction with the drawings and specific embodiments.Wherein, In each specific embodiment of the invention, well-known operating process, program module, unit and its mutual company It connects, link, communicate or operates and be not shown or do not elaborate.
Also, described feature, framework or function can combine in any way in one or more embodiments.
In addition, it will be appreciated by those skilled in the art that following various embodiments be served only for for example, not for It limits the scope of the invention.Those skilled in the art can also be readily appreciated that, each reality described herein and shown in the drawings Applying the program module in mode, unit or step can be combined and be designed by a variety of different configurations.
It, unless otherwise specified, all should be with ability for the technical term not being specifically described in the present specification The broadest meaning in domain explains.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its Sequence is executed or is executed parallel, and the label of operation such as S10, S11 etc. be only used for distinguishing each different operation, serial number It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Below in conjunction with attached drawing, the technical solution in embodiment of the present invention is clearly and completely described, it is clear that Described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the present invention In embodiment, those skilled in the art every other embodiment party obtained under the premise of not making the creative labor Formula shall fall within the protection scope of the present invention.
[method implementation 1]
Fig. 1 is the flow chart of the interface display method of embodiment 1 according to the method for the present invention.Referring to Fig. 1, in this embodiment party In formula, which comprises
S11: interface template is obtained.
S12: the processing logic for corresponding to the interface template is determined.
S13: the interface template and the processing logic display interface are based on.
For taking out platform, the interface is, for example, the Webpage for being used to show trade company and its commodity, correspondingly, Definition is for showing the template component (such as identification information comprising trade company) of merchant information and for showing quotient in interface template The template component (such as identification information comprising commodity) of product information, and the associated characters for being associated with aforementioned two kinds of template components Section.There is certain rule of correspondence between interface template and interface.And handling logic then is the finger for being used to indicate the rule of correspondence Mark.For example, can indicate different processing logics by the way that different values is arranged in the configuration information of interface template.
Different from executing fixed processing mode to interface template in the prior art, in the present embodiment, with interface mould Plate is that object determines matched processing logic, and is based on the matched processing logic display interface of interface template and its institute, Therefore, for same interface template, by configuring the available different interface of different processing logics, interface is reduced The logic degree of coupling between template and interface, improves the flexibility of interface display, and the displaying for effectively taking into account different interfaces needs It asks.
[method implementation 2]
Present embodiment is described further one of situation that S13 is handled in method implementation 1.Referring to fig. 2, In the present embodiment, which comprises
S21: interface template is obtained.
S22: the processing logic for corresponding to the interface template is determined.
S23: in the case of the processing logic is the first processing logic, the interface template is rendered to show Interface.
Wherein, the first processing logic is for example used to indicate following processing rules: directly carrying out to the interface template got Rendering is with display interface.In the present embodiment, on the basis of handling logic to interface template individual cultivation, for some Interface template (for example, for showing the interface template of relatively-stationary content) configuration the first processing logic is with direct to its It is rendered, it is possible thereby to guarantee showing interface efficiency while improving showing interface flexibility.
[method implementation 3]
Present embodiment is described further one of situation that S13 is handled in method implementation 1.Referring to Fig. 3, In the present embodiment, which comprises
S31: interface template is obtained.
S32: the processing logic for corresponding to the interface template is determined.
S33: in the case of the processing logic is second processing logic, the interface template is executed at data supplement It manages (such as data are inserted into interface template).
S34: the interface template after the data supplement process is rendered with display interface.
Wherein, second processing logic is for example used to indicate following processing rules: processing to the interface template got (such as described data supplement process), renders with display interface the interface template after processing.In the present embodiment, exist On the basis of handling logic to interface template individual cultivation, for some interface templates (for example, for showing a certain type The interface template of content (in order to protrude the characteristics of showing content, and needing to carry out personal settings to displaying content)) configuration institute Second processing logic is stated, therefore can use the data supplement process to the interface template personalized ground insert number got According to realize that the personalized of interface shows, to meet the displaying demand of complicated interface.
[method implementation 4]
Present embodiment is described further a kind of implementation that S33 is handled in method implementation 3.Referring to fig. 4, In the present embodiment, which comprises
S41: interface template is obtained.
S42: the processing logic for corresponding to the interface template is determined.
S43: in the case of the processing logic is second processing logic, template component is read from the interface template Identification information.
S44: supplementary data is obtained according to the identification information.
S45: the supplementary data is written in the interface template.
S46: the interface template of write-in supplementary data is rendered with display interface.
Wherein, supplementary data for example, except (such as the component object of component object information contained in interface template Identification information) other than component object information.
By taking component object is commodity as an example, the identification information of commodity is for example only recorded in interface template, is based on the mark Information retrieves the supplementary datas such as title, price and the description information of the commodity from database table (such as merchandise news table), These supplementary datas are added in interface template in order to more intuitively show the commodity.
Due to according to the identification information of template component obtain supplementary data, may be implemented using template component as object into Row is personalized to be shown, to further increase the flexibility of showing interface.
[method implementation 5]
Present embodiment increases the specific generating process of interface template on the basis of method implementation 4.Referring to figure 5, in the present embodiment, which comprises
S51: the attribute information in the module information based on template component establishes tree node.
S52: the tree node is associated with to establish component tree according to the location information in the module information.
For example, establishing incidence relation between the tree node isolated each other that processing S51 is established to realize association burl Point.
S53: based on the component tree assembly template component to generate interface template.
S54: the interface template is obtained.
S55: the processing logic for corresponding to the interface template is determined.
S56: in the case of the processing logic is second processing logic, template component is read from the interface template Identification information.
S57: supplementary data is obtained according to the identification information.
S58: the supplementary data is written in the interface template.
S59: the interface template of write-in supplementary data is rendered with display interface.
In the present embodiment, S51 to S59 is executed by same executing subject, but it should be recognized that of the invention In other embodiments, S51 to S59 can be executed by different executing subjects, such as execute S51 on a terminal device To S53, S54 to S59 is executed on another terminal device.
Wherein, the attribute information of template component refers to the characteristic information that template component all has in any interface.At this In the embodiment of invention, for different types of template component, the particular content that attribute information is included can be different, example Such as, for the first template component, attribute information includes but is not limited to: the identification information of template component, for the second mould For board group part, attribute information includes but is not limited to: the type information of template component is (for example, trade company's component or commodity components Deng) and component object identification information (identification information that also can be considered corresponding template component).
Component object refers to the used object shown of template component, such as trade company is the component object of trade company's component.
Component tree refers to the tree form data structure using template component as node.
Since the retrieval of template component can be improved with the storage of this data structure of component tree, tissue templates component Efficiency, to improve the formation efficiency of interface template.
[method implementation 6]
Interface display method provided by present embodiment includes the full content in method implementation 5, herein not It repeats again.As shown in fig. 6, in the present embodiment, processing S53 is accomplished in the following manner:
S531: the type of template component is determined according to the attribute information stored in the tree node.
S532: the template component acquisition modes acquisition template component for corresponding to the type is executed.
S533: the hierarchical structure based on the component tree assembles the template component of acquisition to generate interface template.
In embodiments of the present invention, can be accomplished in the following manner processing S531: in recognition property information whether Containing type information, if not containing type information, determine that the type of template component belongs to the first kind, if believing containing type Breath, then determine that the type of template component belongs to Second Type.
Certainly the invention is not limited thereto, and those skilled in the art can also make to remember in the attribute information of each template component Type information is carried, and according to type information come the type of recognition template component.For example, mould is identified according to type information first Board group part A is trade company's component, is then based on the template component that the carrier recognitions such as mapping table trade company component belongs to Second Type.
Since the type for template component executes corresponding template component acquisition modes, template component can be improved The flexibility of acquisition, to effectively meet the displaying demand of different component objects.
[method implementation 7]
Interface display method provided by present embodiment includes the full content in method implementation 5, herein not It repeats again.As shown in fig. 7, in the present embodiment, processing S532 is accomplished in the following manner:
S5321 ': the type of template component is determined according to the attribute information stored in the tree node.
S5322 ': in the case of the type belongs to the first kind, template is retrieved according to the identification information of template component Component.
Due to directly being examined according to the identification information of template component in the case of the type of template component belongs to the first kind Rope template component, therefore the acquisition efficiency of template component can be taken into account while improving the flexibility that template component obtains.
[method implementation 8]
Interface display method provided by present embodiment includes the full content in method implementation 5, herein not It repeats again.As shown in figure 8, in the present embodiment, processing S532 is accomplished in the following manner:
S5321 ": the type of template component is determined according to the attribute information stored in the tree node.
S5322 ": in the case of the type belongs to Second Type, according to the type information securing component of template component Model.
S5323 ": template component is generated based on the component object information of the component model and template component.
Due in the case of the type of template component belongs to Second Type, according to template component in the attribute information Type information securing component model generates template component based on the component object information of the component model and template component, Therefore it can realize that the personalized of template component generates while improving the flexibility that template component obtains, meet complicated boundary The displaying demand in face.
[method implementation 9]
Below for taking out platform interface, the interface display method provided present embodiment is specifically described.? In present embodiment, which comprises
Step 1: the component model of template component or template component is predefined.
The items list that all interfaces can be reduced under the combination of component, such as trade company can simplify as trade company's group Part and commodity components, and trade company's component can be considered as parent component, commodity components are considered as sub-component.
The component model example of trade company's component and commodity components is provided separately below:
Trade company's component:
{
“field”:“shop_id”,
“type”:“string”
}
Commodity components:
{
“field”:“good_id”,
" type ": " string ",
“parent”:“shop_id”,
“node”:“good_list”
}
Wherein, field indicates title, and type indicates type, and parent indicates parent component corresponding to the component, node table Show the associate field of the component and his father's inter-module.
Step 2: determining the module information of template component.
It, can be by the way that component icon to be dragged to the configuring area of allocation window as shown in figure 9, in configuration interface template In, the typesetting of Lai Shixian template component operates, wherein multiple template inter-module allows shared or establishes new set membership.It rings The location information of template component and the identification information of template component or type information should can be determined in icon dragging event.
After carrying out typesetting operation, the component object information of template component can be received by list as shown in Figure 10 (for example, identification information of component object).
In the present embodiment, such as tiling list can be used to reduce the interface configurations complexity of configuration personnel.
Step 3: according to the module information formation component tree.
Present embodiment can generate component tree as shown in figure 11 based on module information, specifically, compiler according to Attribute information in module information establishes tree node, and is associated with the tree node based on the location information in module information to establish Component tree.Wherein, such as by tree node it stores in the data structure (data structure i.e. first-in last-out) of entitled " stack ", it is optional Ground, with " Hash " data structure records node data, to improve the recall precision of node.
Step 4: based on component tree assembly template component to generate interface template.
In the present embodiment, the compiler can complete component traversal of tree by constantly carrying out Pop operations, Thus according to hierarchical structure assembly template component defined in component tree to generate interface template.
It is with a kind of json (JavaScript Object Notation, data interchange format of lightweight) format below Example provides the specific example of interface template:
Step 5: by interface template and its configuration information (such as recording the processing logic for having interface template) deposit database In.
Step 6: according to the ID (identification, identifier) of request data median surface template, being read from database Take interface template and its configuration information.
Step 7: the processing logic of interface template is determined according to the configuration information.If the processing logic is the first processing Logic thens follow the steps 8, if the processing logic is second processing logic, thens follow the steps 9.
Step 8: the interface template being fed back into front end, in order to which front end renders to show the interface template Interface.
Step 9: the identification information of template component is read from the interface template.
Step 10: supplementary data is obtained according to the identification information.
Step 11: the supplementary data is written in the interface template.
The specific example of interface template after write-in supplementary data is given below:
Wherein, following the description is supplementary data:
“good_info”:{
" name ": " demonstration ",
“price”:“100”,
" description ": " data structure after executing customizing method "
}
Step 12: by be written supplementary data after interface template feed back to front end, in order to front end it is rendered with Display interface.
It in the present embodiment, before executing step 9, such as can be first number by json format conversion by template data Group format.
[product embodiment 1]
Figure 12 is the structural schematic diagram of the interface display apparatus of product embodiment 1 according to the present invention.Referring to Figure 12, at this In embodiment, interface display apparatus 10 includes: to obtain module 11, processing logic determining module 12 and display module 13, specifically Ground:
Module 11 is obtained for obtaining interface template.
It handles logic determining module 12 and corresponds to the processing logic for obtaining the interface template that module 11 obtains for determining.
What display module 13 was used to determine based on the interface template and processing logic determining module 12 that obtain the acquisition of module 11 Handle logic display interface.
For taking out platform, the interface is, for example, the Webpage for being used to show trade company and its commodity, correspondingly, Definition is for showing the template component (such as identification information comprising trade company) of merchant information and for showing quotient in interface template The template component (such as identification information comprising commodity) of product information, and the associated characters for being associated with aforementioned two kinds of template components Section.
There is certain rule of correspondence between interface template and interface.And handling logic then is to be used to indicate the rule of correspondence Index.For example, can indicate that different processing is patrolled by the way that different values is arranged in the configuration information of interface template Volume.
Different from executing fixed processing mode to interface template in the prior art, in the present embodiment, with interface mould Plate is that object determines matched processing logic, and is based on the matched processing logic display interface of interface template and its institute, Therefore, for same interface template, by configuring the available different interface of different processing logics, interface is reduced The logic degree of coupling between template and interface, improves the flexibility of interface display, and the displaying for effectively taking into account different interfaces needs It asks.
[product embodiment 2]
Interface display apparatus provided by present embodiment includes the full content in product embodiment 1, herein no longer It repeats.In the present embodiment, display module 13 is realized especially by following manner based on the interface mould for obtaining the acquisition of module 11 The processing logic display interface that plate and processing logic determining module 12 determine: in the feelings that the processing logic is the first processing logic Under shape, the interface template is rendered with display interface.
Wherein, the first processing logic is for example used to indicate following processing rules: directly carrying out to the interface template got Rendering is with display interface.In the present embodiment, on the basis of handling logic to interface template individual cultivation, for some Interface template (for example, for showing the interface template of relatively-stationary content) configuration the first processing logic is with direct to its It is rendered, it is possible thereby to guarantee showing interface efficiency while improving showing interface flexibility.
[product embodiment 3]
Interface display apparatus provided by present embodiment includes the full content in product embodiment 1, herein no longer It repeats.As shown in figure 13, in the present embodiment, indicating template 13 includes: data supplementary units 131 and display unit 132, tool Body:
Data supplementary units 131 are used in the case of the processing logic is second processing logic, to the interface mould Plate executes data supplement process.
Display unit 132 is used to carry out wash with watercolours to the interface template after data supplementary units 131 carry out data supplement process Dye is with display interface.
Wherein, second processing logic is for example used to indicate following processing rules: processing to the interface template got (such as described data supplement process), renders with display interface the interface template after processing.In the present embodiment, exist On the basis of handling logic to interface template individual cultivation, for some interface templates (for example, for showing a certain type The interface template of content (in order to protrude the characteristics of showing content, and needing to carry out personal settings to displaying content)) configuration institute Second processing logic is stated, therefore can use the data supplement process to the interface template personalized ground insert number got According to realize that the personalized of interface shows, to meet the displaying demand of complicated interface.
[product embodiment 4]
Interface display apparatus provided by present embodiment includes the full content in product embodiment 3, herein no longer It repeats.As shown in figure 14, in the present embodiment, data supplementary units 132 include: reading assembly 1321, securing component 1322 With write-in component 1323, specifically:
Reading assembly 1321 from the interface template for reading the identification information of template component.
The identification information that securing component 1322 is used to be read according to reading assembly 1321 obtains supplementary data.
The supplementary data that write-in component 1323 is used to will acquire the acquisition of component 1322 is written in the interface template.
Wherein, supplementary data for example, except (such as the component object of component object information contained in interface template Identification information) other than component object information.
By taking component object is commodity as an example, the identification information of commodity is for example only recorded in interface template, is based on the mark Information retrieves the supplementary datas such as title, price and the description information of the commodity from database table (such as merchandise news table), These supplementary datas are added in interface template in order to more intuitively show the commodity.
Due to according to the identification information of template component obtain supplementary data, may be implemented using template component as object into Row is personalized to be shown, to further increase the flexibility of showing interface.
[product embodiment 5]
Interface display apparatus provided by present embodiment includes the full content in product embodiment 4, herein no longer It repeats.As shown in figure 15, in the present embodiment, interface display apparatus 10 further include: tree node establishes module 14, component tree is built Formwork erection block 15 and generation module 16, specifically:
Tree node establishes module 14 and establishes tree node based on the attribute information in the module information of template component.
Component tree establishes module 15 for establishing module 14 according to the location information association tree node in the module information The tree node of foundation is to establish component tree.
Incidence relation is established for example, establishing between the tree node isolated each other that module 14 is established in tree node to realize It is associated with tree node.
It is described to generate that generation module 16 is used to establish the component tree assembly template component of the foundation of module 15 based on component tree Interface template.
It should be noted that tree node can be established to module 14 in other embodiments of the invention, component tree is built Formwork erection block 15 and generation module 16 are arranged on another terminal device different from interface display apparatus 10.
Wherein, the attribute information of template component refers to the characteristic information that template component all has in any interface.At this In the embodiment of invention, for different types of template component, the particular content that attribute information is included can be different, example Such as, for the first template component, attribute information includes but is not limited to: the identification information of template component, for the second mould For board group part, attribute information includes but is not limited to: the type information of template component is (for example, trade company's component or commodity components Deng) and component object identification information (identification information that also can be considered corresponding template component).
Component object refers to the used object shown of template component, such as trade company is the component object of trade company's component.
Component tree refers to the tree form data structure using template component as node.
Since the retrieval of template component can be improved with the storage of this data structure of component tree, tissue templates component Efficiency, to improve the formation efficiency of interface template.
[product embodiment 6]
Interface display apparatus provided by present embodiment includes the full content in product embodiment 5, herein no longer It repeats.As shown in figure 16, in the present embodiment, generation module 16 include: type determining units 161, acquiring unit 162 and Assembly unit 163, specifically:
Type determining units 161 are used to determine the type of template component in the tree node according to the attribute information stored.
Acquiring unit 162 is used to execute the template component acquisition modes for corresponding to the type that type determining units 161 determine Obtain template component.
Assembly unit 163 is used for the hierarchical structure based on the component tree, the template component that assembly acquiring unit 162 obtains To generate the interface template.
In embodiments of the present invention, type determining units 161 can pass through the class of following manner recognition template component Whether type: containing type information in recognition property information, if not containing type information, determines that the type of template component belongs to One type determines that the type of template component belongs to Second Type if containing type information.
Certainly the invention is not limited thereto, and those skilled in the art can also make to remember in the attribute information of each template component Type information is carried, and according to type information come the type of recognition template component.For example, mould is identified according to type information first Board group part A is trade company's component, is then based on the template component that the carrier recognitions such as mapping table trade company component belongs to Second Type.
Since the type for template component executes corresponding template component acquisition modes, template component can be improved The flexibility of acquisition, to effectively meet the displaying demand of different component objects.
[product embodiment 7]
Interface display apparatus provided by present embodiment includes the full content in product embodiment 6, herein no longer It repeats.In the present embodiment, acquiring unit 162 is realized especially by following manner executes the template group for corresponding to the type Part acquisition modes: in the case of the type belongs to the first kind, template component is retrieved according to the identification information of template component.
Due to directly being examined according to the identification information of template component in the case of the type of template component belongs to the first kind Rope template component, therefore the acquisition efficiency of template component can be taken into account while improving the flexibility that template component obtains.
[product embodiment 8]
Interface display apparatus provided by present embodiment includes the full content in product embodiment 6, herein no longer It repeats.As shown in figure 17, in the present embodiment, acquiring unit 162 includes: securing component 1621 and formation component 1622, tool Body:
Securing component 1621 is used in the case of the type belongs to Second Type, according to the type information of template component Securing component model.
Formation component 1622 is used to generate template group based on the component object information of the component model and template component Part.
Due in the case of the type of template component belongs to Second Type, according to the type information acquisition group of template component Part model generates template component based on the component object information of the component model and template component, therefore can improve While the flexibility that template component obtains, realizes that the personalized of template component generates, meet the displaying demand of complicated interface.
As shown in figure 18, embodiments of the present invention additionally provide a kind of terminal device, including memory 21 and processor 22;Wherein,
Memory 21 is for storing one or more computer instruction, wherein the one or more computer instruction quilt Processor 22 can be realized the method as described in any one of method implementation 1 to method implementation 9 when executing.
Due to determining corresponding processing logic as object using interface template, interface template and interface can be reduced Between the logic degree of coupling, improve the flexibility of interface display, and effectively take into account the displaying demand at different interfaces.
In addition, embodiments of the present invention also provide a kind of computer storage medium, the computer storage medium is used for Store one or more computer instruction, wherein can be realized such as side when one or more computer instruction is performed Method embodiment 1 is to the method described in any one of method implementation 9.
Due to determining corresponding processing logic as object using interface template, interface template and interface can be reduced Between the logic degree of coupling, improve the flexibility of interface display, and effectively take into account the displaying demand at different interfaces.
Those skilled in the art can be understood that the present invention can be all by software realization, can also be by software It is realized in conjunction with the mode of hardware platform.Based on this understanding, technical solution of the present invention contributes to background technique It can be embodied in the form of software products in whole or in part, the computer software product can store in storage medium In, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (it can be personal computer, Server, smart phone or network equipment etc.) execute certain part institutes of each embodiment of the present invention or embodiment The method stated.
Words such as " softwares " used herein refer both to any type of computer code or calculating in general sense Machine executable instruction set can run the coding or instruction set to make computer or other processor programs to execute such as The various aspects of the upper technical solution of the present invention.In addition, it should be noted that, according to the one aspect of embodiment, The one or more computer programs for implementing the method for technical solution of the present invention when being executed necessarily will be in a computer Or on processor, but in the module that can be distributed in multiple computers or processor, to execute technical side of the invention The various aspects of case.
Computer executable instructions can there are many form, such as program module, can by one or more computer or Other equipment execute.Generally, program module includes routine, programs, objects, component and data structure etc., is executed specific Task or implement specific abstract data type.Particularly, in various embodiments, the operation that program module carries out can To be combined or split according to the needs of each different embodiments.
Also, technical solution of the present invention can be presented as a kind of method, and the method has been provided at least One example.Movement can be executed by any suitable sequence, the movement displaying is a part in the method. Therefore, embodiment can be configured to that movement can be executed according to shown execution order in a different order, wherein can be with Including simultaneously executing some movements (although in the embodiment as shown, these movements are continuous).
Definition that is given in this article and using, dictionary should be compareed, the definition in the document that is incorporated by reference into, And/or it usually looks like and is understood.
In detail in the claims and in above-mentioned specification, all excessive phrases, such as " comprising ", " having ", " packet Containing ", " carrying ", " having ", " being related to ", " mainly by ... form " and similar word be understood as it is open, that is, packet Contain but is not limited to.
Term and wording used in description of the invention are just to for example, be not intended to constitute restriction.Ability Field technique personnel should be appreciated that under the premise of not departing from the basic principle of disclosed embodiment, to above embodiment In each details can carry out various change.Therefore, the scope of the present invention is only determined by claim, in the claims, unless It is otherwise noted, all terms should be understood by the broadest reasonable meaning.
A variety of different embodiments of the invention described in detail above, the description present invention is each in another form below The various aspects or feature of the technical solution of embodiment, and its be not limited to a series of following paragraphs for the sake of clarity can Alphanumeric is specified to some or all of paragraphs in these paragraphs.Each section in these paragraphs can be with any suitable side Formula is combined with the content of other one or more paragraphs.Under conditions of not limiting some examples in suitable combination, under Some paragraphs in text especially quote other paragraphs and further limit other paragraphs.
A1, a kind of interface display method, which comprises
Obtain interface template;
Determine the processing logic for corresponding to the interface template;
Based on the interface template and the processing logic display interface.
In A2, method as described in a1, include: based on the interface template and the processing logic display interface
If the processing logic is the first processing logic, the interface template is rendered with display interface.
In A3, method as described in a1, include: based on the interface template and the processing logic display interface
If the processing logic is second processing logic, data supplement process is executed to the interface template;
Interface template after the data supplement process is rendered with display interface.
In A4, the method as described in A3, executing data supplement process to the interface template includes:
The identification information of template component is read from the interface template;
Supplementary data is obtained according to the identification information;
The supplementary data is written in the interface template.
In A5, the method as described in A4, the method also includes:
Attribute information in module information based on template component establishes tree node;
The tree node is associated with according to the location information in the module information to establish component tree;
Based on the component tree assembly template component to generate the interface template.
In A6, method as described in a5, include: to generate the interface template based on the component tree assembly template component
The type of template component is determined according to the attribute information stored in the tree node;
Execute the template component acquisition modes acquisition template component for corresponding to the type;
Based on the hierarchical structure of the component tree, the template component of acquisition is assembled to generate the interface template.
In A7, the method as described in A6, the template component acquisition modes that execution corresponds to the type include:
If the type belongs to the first kind, template component is retrieved according to the identification information of template component.
In A8, the method as described in A6, the template component acquisition modes that execution corresponds to the type include:
If the type belongs to Second Type, according to the type information securing component model of template component;
Template component is generated based on the component object information of the component model and template component.
B9, a kind of interface display apparatus, described device include:
Module is obtained, for obtaining interface template;
Logic determining module is handled, for determining the processing logic for corresponding to the interface template;
Display module, for being based on the interface template and the processing logic display interface.
In B10, the device as described in B9, the display module is for being accomplished in the following manner based on the interface template With the processing logic display interface: the processing logic be first processing logic in the case of, to the interface template into Row rendering is with display interface.
In B11, the device as described in B9, the display module includes:
Data supplementary units are used in the case of the processing logic is second processing logic, to the interface template Execute data supplement process;
Display unit, for being rendered the interface template after the data supplement process with display interface.
In B12, device as described in b11, the data supplementary units include:
Reading assembly, for reading the identification information of template component from the interface template;
Securing component, for obtaining supplementary data according to the identification information;
Component is written, for the supplementary data to be written in the interface template.
B13, as described in B12 in device, described device further include:
Tree node establishes module, establishes tree node for the attribute information in the module information based on template component;
Component tree establishes module, for being associated with the tree node according to the location information in the module information to establish group Part tree;
Generation module, for being based on the component tree assembly template component to generate the interface template.
In B14, the device as described in B13, the generation module includes:
Type determining units, for determining the type of template component according to the attribute information stored in the tree node;
Acquiring unit, for executing the template component acquisition modes acquisition template component for corresponding to the type;
Assembly unit assembles the template component of acquisition for the hierarchical structure based on the component tree to generate the boundary Face die plate.
In B15, the device as described in B14, the acquiring unit is for being accomplished in the following manner execution corresponding to described The template component acquisition modes of type: in the case of the type belongs to the first kind, according to the identification information of template component Retrieve template component.
In B16, the device as described in B15, the acquiring unit includes:
Securing component, for being obtained according to the type information of template component in the case of the type belongs to Second Type Take component model;
Formation component generates template component for the component object information based on the component model and template component.
C17, a kind of terminal device, including memory and processor;Wherein,
The memory is for storing one or more computer instruction, wherein one or more computer instruction It can be realized the method as described in any one of A1 to A8 when being executed by the processor.
D18, a kind of computer storage medium, for store one or more computer instruction, wherein when described one or A plurality of computer instruction is performed the method that can be realized as described in any one of A1 to A8.

Claims (10)

1. a kind of interface display method, which is characterized in that the described method includes:
Obtain interface template;
Determine the processing logic for corresponding to the interface template;
Based on the interface template and the processing logic display interface.
2. the method as described in claim 1, which is characterized in that be based on the interface template and the processing logic display interface Include:
If the processing logic is the first processing logic, the interface template is rendered with display interface.
3. the method as described in claim 1, which is characterized in that be based on the interface template and the processing logic display interface Include:
If the processing logic is second processing logic, data supplement process is executed to the interface template;
Interface template after the data supplement process is rendered with display interface.
4. method as claimed in claim 3, which is characterized in that executing data supplement process to the interface template includes:
The identification information of template component is read from the interface template;
Supplementary data is obtained according to the identification information;
The supplementary data is written in the interface template.
5. method as claimed in claim 4, which is characterized in that the method also includes:
Attribute information in module information based on template component establishes tree node;
The tree node is associated with according to the location information in the module information to establish component tree;
Based on the component tree assembly template component to generate the interface template.
6. a kind of interface display apparatus, which is characterized in that described device includes:
Module is obtained, for obtaining interface template;
Logic determining module is handled, for determining the processing logic for corresponding to the interface template;
Display module, for being based on the interface template and the processing logic display interface.
7. device as claimed in claim 6, which is characterized in that
The display module is for being accomplished in the following manner based on the interface template and the processing logic display interface: In the case of the processing logic is the first processing logic, the interface template is rendered with display interface.
8. device as claimed in claim 6, which is characterized in that the display module includes:
Data supplementary units, for being executed to the interface template in the case of processing logic is second processing logic Data supplement process;
Display unit, for being rendered the interface template after the data supplement process with display interface.
9. device as claimed in claim 8, which is characterized in that the data supplementary units include:
Reading assembly, for reading the identification information of template component from the interface template;
Securing component, for obtaining supplementary data according to the identification information;
Component is written, for the supplementary data to be written in the interface template.
10. device as claimed in claim 9, which is characterized in that described device further include:
Tree node establishes module, establishes tree node for the attribute information in the module information based on template component;
Component tree establishes module, for being associated with the tree node according to the location information in the module information to establish component Tree;
Generation module, for being based on the component tree assembly template component to generate the interface template.
CN201710868490.0A 2017-09-22 2017-09-22 Interface display method and device Pending CN109542544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710868490.0A CN109542544A (en) 2017-09-22 2017-09-22 Interface display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710868490.0A CN109542544A (en) 2017-09-22 2017-09-22 Interface display method and device

Publications (1)

Publication Number Publication Date
CN109542544A true CN109542544A (en) 2019-03-29

Family

ID=65830785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710868490.0A Pending CN109542544A (en) 2017-09-22 2017-09-22 Interface display method and device

Country Status (1)

Country Link
CN (1) CN109542544A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193786A (en) * 2010-03-11 2011-09-21 中国工商银行股份有限公司 Device and method for constructing self-adaptive graphic user interface (GUI)
CN104216691A (en) * 2013-05-31 2014-12-17 华为技术有限公司 Application creating method and device
CN106648555A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Page generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193786A (en) * 2010-03-11 2011-09-21 中国工商银行股份有限公司 Device and method for constructing self-adaptive graphic user interface (GUI)
CN104216691A (en) * 2013-05-31 2014-12-17 华为技术有限公司 Application creating method and device
CN106648555A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Page generation method and device

Similar Documents

Publication Publication Date Title
US11294968B2 (en) Combining website characteristics in an automatically generated website
Barbier et al. Data mining in social media
US8352495B2 (en) Distributed platform for network analysis
US20180053234A1 (en) Description information generation and presentation systems, methods, and devices
US20210049554A1 (en) Method and system for creating step by step projects
CN106055710A (en) Video-based commodity recommendation method and device
US20130007747A1 (en) Method and apparatus for managing a working task based on a communication message
US11436446B2 (en) Image analysis enhanced related item decision
CN110199274A (en) System and method for automating query answer generation
JP7116744B2 (en) Method and apparatus for displaying textual information
CN104572125A (en) Methods and devices for drawing and storing entity relation diagrams
CN107918618A (en) Data processing method and device
CN107832338A (en) A kind of method and system for identifying core product word
US20200356633A1 (en) Sentiment topic model
CN110413767A (en) System and method based on spatial term rendering content
CN110110172A (en) Information displaying method and device
CN107885769A (en) A kind of family tree management system
US8935264B2 (en) Characteristic-based selection in a networked computing environment
CN115329753B (en) Intelligent data analysis method and system based on natural language processing
CN104063367A (en) Annotation search apparatus, method and program
CN109542544A (en) Interface display method and device
CN106257443A (en) A kind of data lead-in method and device
CN107977459A (en) Report form generation method and device
KR101798139B1 (en) Filter system and method according to type of data variable in web-based data visualization system
CN110472998A (en) A kind of method, apparatus and electronic equipment of building user portrait information

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant after: Beijing Xingxuan Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant before: Beijing Xiaodu Information Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329