CN110162305A - A kind of method and client at configuration activities interface - Google Patents
A kind of method and client at configuration activities interface Download PDFInfo
- Publication number
- CN110162305A CN110162305A CN201910469979.XA CN201910469979A CN110162305A CN 110162305 A CN110162305 A CN 110162305A CN 201910469979 A CN201910469979 A CN 201910469979A CN 110162305 A CN110162305 A CN 110162305A
- Authority
- CN
- China
- Prior art keywords
- configuration
- client
- json
- attribute
- widget
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Abstract
The present invention provides the method and client at a kind of configuration activities interface, this method are as follows: client obtains the display page, and the display page is for showing configuration attribute.Load preset json configuration, wherein during being pre-configured with client corresponding json configuration, the content of real-time exhibition json configuration.Json configuration is converted into dictionary map object.Map object is parsed, the attribute of each widget widget is obtained.The attribute of each widget is shown in the display page.In the present solution, being pre-configured with the json configuration of client, client, by the map object of json configuration conversion, obtains the attribute of each widget by parsing, and the attribute of each widget is shown in the display page.Json by configuring client is configured, and dynamic configures the active interface of client, and interface and logical code are decoupled.
Description
Technical field
The present invention relates to interface configurations technical fields, and in particular to a kind of method and client at configuration activities interface.
Background technique
With the development of internet technology, network has become a part indispensable in daily life, all types of
Client also becomes the internet applications being commonly used in people's daily life.
It is at present usually that the system platform according to used in client selects corresponding volume for the interface development of client
Cheng Yuyan carries out interface development.Such as the ios platform for Apple Inc., interface, which is carried out, usually using object-c language opens
Hair carries out interface development usually using Java language for Android (Android) platform.But it is opened using above two interface
The interface of originating party formula can be coupled with logical code, can not decouple interface and logical code.
Therefore, the method that a kind of pair of interface is decoupled with logical code is needed at present.
Summary of the invention
In view of this, the embodiment of the present invention provides the method and client at a kind of configuration activities interface, to solve existing boundary
The problem of face development scheme can not be decoupled interface and logical code.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
First aspect of the embodiment of the present invention discloses a kind of method at configuration activities interface, is suitable for client, the side
Method includes:
Client obtains the display page, and the display page is for showing configuration attribute;
Load preset json configuration, wherein real during being pre-configured with the client corresponding json configuration
When show the content of json configuration;
Json configuration is converted into dictionary map object;
The map object is parsed, the attribute of each widget widget is obtained;
The attribute of each widget is shown in the display page.
Preferably, the preset json configuration of the load, comprising:
The request configured for obtaining the corresponding json of the client is sent to server;
If the request is completed, newest the first json configuration for client configuration is loaded, and save described first
Json configuration;
If the request failure loads the 2nd json configuration once loaded before the client.
Preferably, the parsing map object, obtains the attribute of each widget, comprising:
Obtain the configuration of the corresponding main interface of the map object, wherein the main interface is made of multiple sub-interfaces;
Read the child control information of each sub-interface;
Obtain the type of each child control information;
The corresponding attribute of type for determining each child control information, obtains the attribute of each widget.
It is preferably, described that json configuration is converted into dictionary map object, comprising:
Using JsonToMap method, json configuration is converted into map object.
Preferably, after the request sent to server for obtaining the corresponding json configuration of the client, institute
State method further include:
If the client sends the request configured for obtaining json, and the request to the server for the first time
Failure, load are pre-stored in the 3rd json configuration of the client.
Second aspect of the embodiment of the present invention discloses a kind of client, and the client includes:
Acquiring unit obtains the display page, and the display page is for showing configuration attribute;
Loading unit, for loading preset json configuration, wherein match being pre-configured with the corresponding json of the client
During setting, the content of the configuration of json described in real-time exhibition;
Converting unit, for json configuration to be converted to dictionary map object;
Resolution unit obtains the attribute of each widget widget for parsing the map object;
Display unit, for showing the attribute of each widget in the display page.
Preferably, the loading unit includes:
Request module, for sending the request configured for obtaining the corresponding json of the client to server;
First loading module loads newest the first json for client configuration and matches if completing for the request
It sets, and saves the first json configuration;
Second loading module loads the 2nd json once loaded before the client and matches if failing for the request
It sets.
Preferably, the resolution unit includes:
First obtain module, for obtaining the configuration of the corresponding main interface of the map object, wherein the main interface by
Multiple sub-interfaces are constituted;
Read module, for reading the child control information of each sub-interface;
Second obtains module, for obtaining the type of each child control information;
Determining module obtains each widget's for determining the corresponding attribute of type of each child control information
Attribute.
The third aspect of the embodiment of the present invention discloses a kind of electronic equipment, and the electronic equipment is for running program, wherein
A kind of method at configuration activities interface as disclosed in first aspect of the embodiment of the present invention is executed when described program is run.
Fourth aspect of the embodiment of the present invention discloses a kind of storage medium, and the storage medium includes the program of storage,
In, it is controlled one disclosed in equipment where the storage medium is executed such as first aspect of the embodiment of the present invention in described program operation
The method at kind configuration activities interface.
Method and client based on a kind of configuration activities interface that the embodiments of the present invention provide, this method are as follows: visitor
Family end obtains the display page for showing configuration attribute;Load preconfigured json configuration, wherein in configuration json configuration
During real-time exhibition json configure content;Json configuration is converted into map object;Map object is parsed, is obtained each
The attribute of widget;The attribute of each widget is shown in the display page;In the present solution, the json for being pre-configured with client matches
It sets, client, by the map object of json configuration conversion, obtains the attribute of each widget by parsing, shows in the display page
Show the attribute of each widget.Json by configuring client is configured, and dynamic configures the active interface of client, and will
Interface and logical code are decoupled, and the dependency degree between interface and logical code is reduced.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of method flow diagram at configuration activities interface provided in an embodiment of the present invention;
Fig. 2 a is the flow diagram provided in an embodiment of the present invention for obtaining widget attribute;
Fig. 2 b is the schematic diagram of child control type provided in an embodiment of the present invention;
Fig. 3 is the flow chart of load json configuration provided in an embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of client provided in an embodiment of the present invention;
Fig. 5 is the structural block diagram of another client provided in an embodiment of the present invention;
Fig. 6 is the structural block diagram of another client provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In this application, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion,
So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having
The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having
There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element
There is also other identical elements in journey, method, article or equipment.
It can be seen from background technology that be usually the system according to used in client for the interface development of client at present
The corresponding programming language of platform selecting carries out interface development.Such as the ios platform for Apple Inc., usually using object-c
Language carries out interface development, for Android (Android) platform, carries out interface development usually using Java language.But it uses
The interface of above two interface development mode can be coupled with logical code, can not solve interface and logical code
Coupling.
Therefore, the embodiment of the present invention provides the method and client at a kind of configuration activities interface, is pre-configured with client
Json configuration, client, by the map object of json configuration conversion, obtain the attribute of each widget by parsing, in display page
The attribute of each widget is shown in face.Json by configuring client is configured, and realizes the movable boundary of dynamic configuration client
Face, and interface and logical code are decoupled.
With reference to Fig. 1, a kind of method flow diagram at configuration activities interface provided in an embodiment of the present invention, the method are shown
The following steps are included:
Step S101: client obtains the display page.
During implementing step S101, the client obtains a blank page, i.e., the described display in advance
The page shows configuration attribute using the display page, such as: preconfigured picture and text are shown using the display page
Word, the picture and text are preset by technical staff, and need to show the picture and text in the interface of the client
Word.
Step S102: the client loads preset json configuration.
During implementing step S102, technical staff determines the version platform for needing to configure active interface, base
In flutter, the json is pre-configured with using the format of json and is configured, and is being pre-configured with the corresponding json of the client
During configuration, the content of the configuration of json described in real-time exhibition.The content for configuring the json configuration includes but are not limited to:
The relevant configurations such as version, country, language, platform and the file of the corresponding interface display of client.
It should be noted that the present embodiments relate to js object numbered musical notation (JavaScript Object Notation,
Json) be a kind of lightweight data interchange format.The flutter is a kind of Cross-border congestion management technology, and technical staff is at it
Its platform, such as when configuring in web platform json configuration, it can be in such a way that real-time exhibition be using json by flutter
The content of configuration.
It should be noted that the json configuration is issued in the client by technical staff, therefore, it is being issued
Before, whether the format that technical staff need to veritify the json configuration is json format, guarantees that issuing for the json configuration is accurate
Property.When configuring json configuration, since the client can be used in multiple countries, need to set in advance for the client
Set multiple using country, technical staff need to be made described according to the client using the literal type in country's adjustment interface
The text in interface that client is shown need to meet the language requirement using country.Such as: when configuring json configuration, in advance
First be arranged 10 using country for client, when the client in Russia in use, needing to show the client
Text conversion in interface is Russian.If the country where the client does not use in country at above-mentioned 10, by the visitor
The text default setting in interface that family end is shown is English.
Step S103: json configuration is converted to dictionary (map) object by the client.
During implementing step S103, the particular content of the json configuration is character string, the client
The content efficiency for directly reading the json configuration is lower.Therefore, the json need to be configured and is converted to map object, improve visitor
Read the efficiency of the content of json configuration in family end.Especially by JsonToMap method, json configuration is converted to map pairs
As.
Step S104: the client parses the map object, obtains the attribute of each widget (widget).
During implementing step S104, the map object is made of key (key) and value (value).Therefore,
By parsing the map object, the content of the value in the map object is obtained, that is, obtains the attribute of each widget.
It should be noted that all interface elements are all widget types in flutter, for example, in interface element
Text, picture and container are all widget types.
It should be noted that dynamic translation library is arranged inside the client in advance, different control and right is chosen
Control built-in attribute carries out assignment, extracts the attribute of various widget types.
More preferably to illustrate the process for obtaining widget attribute involved in step S104, lifted by Fig. 2 a and Fig. 2 b row
Example explanation.In Fig. 2 a, comprising the following steps:
Step S201: client end interface configuration.
During implementing step S201, the configuration of the corresponding main interface of the map object is obtained, wherein institute
Main interface is stated to be made of multiple sub-interfaces.
Step S202: client reads child control information.
During implementing step S202, the corresponding child control information of the child control is read.
Step S203: client obtains type, selects different display controls.
During implementing step S203, according to the child control information, the type of each child control, root are obtained
Different display controls is selected according to the type of the child control.The type of child control content as shown in Fig. 2 b, such as: scheming
In 2b, the type for obtaining a child control is text (text), and the type for obtaining another child control is container (container).
Step S204: client extracts the attribute of type, and carries out assignment.
During implementing step S204, determines the corresponding attribute of type of each child control information, obtain
To the attribute of each widget.Such as: in conjunction with the content in Fig. 2 b, the type for obtaining a child control information is text, it is determined that
The corresponding attribute of the type of the child control information are as follows: height, font and color of text etc., and to the type of the child control information
Corresponding attribute carries out assignment, such as height, the size of font and the color of setting text.
Step S105: the client shows the attribute of each widget in the display page.
Each of during implementing step S105, parsed according to above-mentioned steps S101 into step S104
The attribute of widget shows the attribute of each widget in the display page, completes the configuration of the page.
In embodiments of the present invention, client obtains the display page for showing configuration attribute.It loads preconfigured
Json configuration, wherein the content of real-time exhibition json configuration during configuring json configuration.Json configuration is converted to
Map object.Map object is parsed, the attribute of each widget is obtained.The attribute of each widget is shown in the display page.It is logical
The json configuration of configuration client is crossed, dynamic configures the active interface of client, and interface and logical code are solved
Coupling reduces the dependency degree between interface and logical code.
The process for the client load json configuration being related in above-mentioned Fig. 1 step S102 shows this hair with reference to Fig. 3
The flow chart for the load json configuration that bright embodiment provides, comprising the following steps:
Step S301: user end to server sends the request for obtaining the corresponding json configuration of the client.If
It requests successfully, to execute step S302, if request failure, executes step S303.
During implementing step S301, technical staff in advance uploads the corresponding json configuration of the client
To in the server, for client use, the client is requested by http request or service to the clothes
Business device obtains corresponding json configuration.
When the network between the client and server occurs normal, after requesting successfully, the client is from described
Server loads newest the first json configuration for client configuration, and saves the first json configuration.
When the network between the client and server occurs abnormal, request fails, described in the client load
The 2nd json configuration once loaded before client.
Step S302: newest the first json configuration for client configuration of load, and save the first json and match
It sets.
Step S303: the 2nd json configuration once loaded before the client is loaded.
Preferably, the json configuration for storing a default in the client in advance, is executing above-mentioned steps S301's
In the process, if the client sends the request configured for obtaining json, and the request to the server for the first time
Failure, since the client is there is no the preceding primary successful json configuration of load, load is pre-stored in the client
The 3rd json configuration at end, wherein the 3rd json is configured to the above-mentioned default stored in the client in advance
Json configuration.
More preferably to illustrate content shown in above-mentioned steps S301 to step S303, lifted by process A1 to A4
Example explanation.
The json for being assumed to be the client latest configuration is configured to the first json configuration, once loads before the client
Successful json is configured to the 2nd json configuration, and the default json for being stored in advance in the client is configured to the 3rd json and matches
It sets.
The corresponding json configuration of A1, the user end to server request.
If A2, network are normal, the client success is configured to the corresponding json of server request, the client
The first json configuration is loaded, and saves the json configuration.
If A3, Network Abnormal, the corresponding json configuration failure of the user end to server request, and the visitor
Family end is not for the first time to server request json configuration, and the client loads the 2nd json configuration.
If A4, Network Abnormal, the corresponding json configuration failure of the user end to server request, and the visitor
Family end is for the first time to server request json configuration, and the client loads the 3rd json configuration.
In embodiments of the present invention, user end to server sends the request for obtaining corresponding json configuration, if asking
Hope for success function, then obtains newest the first json configuration for client configuration.If request failure, once loads before obtaining client
The first json configuration.Guarantee the data accuracy and functional completeness of client.
Corresponding with a kind of method at configuration activities interface disclosed in the embodiments of the present invention, with reference to Fig. 4, the present invention is real
It applies example and a kind of structural block diagram of client is also provided, the client includes: acquiring unit 401, loading unit 402, conversion list
Member 403, resolution unit 404 and display unit 405.
Acquiring unit 401 obtains the display page, and the display page is for showing configuration attribute.
Loading unit 402, for loading preset json configuration, wherein the client is corresponding being pre-configured with
During json is configured, the content of the configuration of json described in real-time exhibition.The process of the json configuration is set referring to above-mentioned
Corresponding content in inventive embodiments Fig. 1 step S102.
Converting unit 403, for json configuration to be converted to map object.
In the concrete realization, the converting unit 403 is specifically used for utilizing JsonToMap method, and the json is configured
Be converted to map object.
Resolution unit 404 obtains the attribute of each widget for parsing the map object.Obtain each widget's
The process of attribute is referring to corresponding content in step S104 in embodiments of the present invention Fig. 1.
Display unit 405, for showing the attribute of each widget in the display page.
In embodiments of the present invention, client obtains the display page for showing configuration attribute.It loads preconfigured
Json configuration, wherein the content of real-time exhibition json configuration during configuring json configuration.Json configuration is converted to
Map object.Map object is parsed, the attribute of each widget is obtained.The attribute of each widget is shown in the display page.It is logical
The json configuration of configuration client is crossed, dynamic configures the active interface of client, and interface and logical code are solved
Coupling reduces the dependency degree between interface and logical code.
Preferably, a kind of structural block diagram of client provided in an embodiment of the present invention is shown with reference to Fig. 5 in conjunction with Fig. 4,
The loading unit 402 includes: request module 4021, the first loading module 4022 and the second loading module 4023.
Request module 4021, for sending the request configured for obtaining the corresponding json of the client to server.
First loading module 4022, if completing for the request, loading newest is the first of client configuration
Json configuration, and save the first json configuration.
Second loading module 4023, if loading second once loaded before the client for request failure
Json configuration.
Preferably, second loading module 4023 is also used to: if the client is sent to the server for the first time
For obtaining the request of json configuration, and the request fails, and the 3rd json that load is pre-stored in the client matches
It sets.
In embodiments of the present invention, user end to server sends the request for obtaining corresponding json configuration, if asking
Hope for success function, then obtains newest the first json configuration for client configuration.If request failure, once loads before obtaining client
The first json configuration.Guarantee the data accuracy and functional completeness of client.
Preferably, a kind of structural block diagram of client provided in an embodiment of the present invention is shown with reference to Fig. 6 in conjunction with Fig. 4,
The resolution unit 404 includes: the first acquisition module 4041, the acquisition module 4043 of read module 4042, second and determining module
4044。
First obtains module 4041, for obtaining the configuration of the corresponding main interface of the map object, wherein the main boundary
Face is made of multiple sub-interfaces.
Read module 4042, for reading the child control information of each sub-interface.
Second obtains module 4043, for obtaining the type of each child control information.
Determining module 4044 obtains each for determining the corresponding attribute of type of each child control information
The attribute of widget.
Based on client disclosed in the embodiments of the present invention, above-mentioned modules by processor and can be deposited by one kind
The electronic equipment that reservoir is constituted is realized.Specifically: above-mentioned modules are stored in memory as program unit, by processor
Above procedure unit stored in memory is executed to realize the configuration of active interface.
Wherein, include kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can be set
One or more realizes the configuration of active interface by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
Further, the embodiment of the invention provides a kind of processors, and the processor is for running program, wherein institute
State the method for executing configuration activities interface when program operation.
Further, the embodiment of the invention provides a kind of electronic equipment, the electronic equipment includes processor, memory
And the program that can be run on a memory and on a processor is stored, processor performs the steps of client when executing program
The display page is obtained, the display page is for showing configuration attribute;Load preset json configuration, wherein be pre-configured with
During the corresponding json configuration of the client, the content of the configuration of json described in real-time exhibition;Json configuration is turned
It is changed to map object;The map object is parsed, the attribute of each widget is obtained;It is shown in the display page each described
The attribute of widget.
Wherein, the preset json configuration of the load, comprising: sent to server corresponding for obtaining the client
The request of json configuration;If the request is completed, newest the first json configuration for client configuration is loaded, and save institute
State the first json configuration;If the request failure loads the 2nd json configuration once loaded before the client.
Wherein, the parsing map object, obtains the attribute of each widget, comprising: obtain the map object pair
The configuration for the main interface answered, wherein the main interface is made of multiple sub-interfaces;Read the child control letter of each sub-interface
Breath;Obtain the type of each child control information;The corresponding attribute of type for determining each child control information obtains every
The attribute of a widget.
Wherein, described that json configuration is converted into map object, comprising: JsonToMap method is utilized, it will be described
Json configuration is converted to map object.
Further, after the request sent to server for obtaining the corresponding json configuration of the client,
If the client sends the request configured for obtaining json to the server for the first time, and the request fails, and adds
Carry the 3rd json configuration for being pre-stored in the client.
Equipment disclosed in the embodiment of the present invention can be PC, PAD, mobile phone etc..
Further, the embodiment of the invention also provides a kind of storage medium, it is stored thereon with program, the program is processed
The configuration of active interface is realized when device executes.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program of beginningization there are as below methods step: client obtains the display page, and the display page is used to show configuration attribute;Load
Preset json configuration, wherein during being pre-configured with the client corresponding json configuration, described in real-time exhibition
The content of json configuration;Json configuration is converted into map object;The map object is parsed, the category of each widget is obtained
Property;The attribute of each widget is shown in the display page.
Wherein, the preset json configuration of the load, comprising: sent to server corresponding for obtaining the client
The request of json configuration;If the request is completed, newest the first json configuration for client configuration is loaded, and save institute
State the first json configuration;If the request failure loads the 2nd json configuration once loaded before the client.
Wherein, the parsing map object, obtains the attribute of each widget, comprising: obtain the map object pair
The configuration for the main interface answered, wherein the main interface is made of multiple sub-interfaces;Read the child control letter of each sub-interface
Breath;Obtain the type of each child control information;The corresponding attribute of type for determining each child control information obtains every
The attribute of a widget.
Wherein, described that json configuration is converted into map object, comprising: JsonToMap method is utilized, it will be described
Json configuration is converted to map object.
Further, after the request sent to server for obtaining the corresponding json configuration of the client,
If the client sends the request configured for obtaining json to the server for the first time, and the request fails, and adds
Carry the 3rd json configuration for being pre-stored in the client.
In conclusion the embodiment of the present invention provides the method and client at a kind of configuration activities interface, this method are as follows: client
End obtains the display page for showing configuration attribute.Load preconfigured json configuration, wherein in configuration json configuration
The content of real-time exhibition json configuration in the process.Json configuration is converted into map object.Map object is parsed, is obtained each
The attribute of widget.The attribute of each widget is shown in the display page.In the present solution, the json for being pre-configured with client matches
It sets, client, by the map object of json configuration conversion, obtains the attribute of each widget by parsing, shows in the display page
Show the attribute of each widget.Json by configuring client is configured, and dynamic configures the active interface of client, and will
Interface and logical code are decoupled, and the dependency degree between interface and logical code is reduced.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system or
For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method
The part of embodiment illustrates.System and system embodiment described above is only schematical, wherein the conduct
The unit of separate part description may or may not be physically separated, component shown as a unit can be or
Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root
According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill
Personnel can understand and implement without creative efforts.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of method at configuration activities interface, which is characterized in that be suitable for client, which comprises
Client obtains the display page, and the display page is for showing configuration attribute;
Load preset json configuration, wherein during being pre-configured with the client corresponding json configuration, open up in real time
Show the content of the json configuration;
Json configuration is converted into dictionary map object;
The map object is parsed, the attribute of each widget widget is obtained;
The attribute of each widget is shown in the display page.
2. the method according to claim 1, wherein the preset json configuration of the load, comprising:
The request configured for obtaining the corresponding json of the client is sent to server;
If the request is completed, newest the first json configuration for client configuration is loaded, and save the first json
Configuration;
If the request failure loads the 2nd json configuration once loaded before the client.
3. the method according to claim 1, wherein the parsing map object, obtains each widget's
Attribute, comprising:
Obtain the configuration of the corresponding main interface of the map object, wherein the main interface is made of multiple sub-interfaces;
Read the child control information of each sub-interface;
Obtain the type of each child control information;
The corresponding attribute of type for determining each child control information, obtains the attribute of each widget.
4. the method according to claim 1, wherein it is described by the json configuration be converted to dictionary map object,
Include:
Using JsonToMap method, json configuration is converted into map object.
5. according to the method described in claim 2, it is characterized in that, described send to server for obtaining the client pair
After the request for the json configuration answered, the method also includes:
If the client sends the request configured for obtaining json to the server for the first time, and the request is lost
It loses, load is pre-stored in the 3rd json configuration of the client.
6. a kind of client, which is characterized in that the client includes:
Acquiring unit obtains the display page, and the display page is for showing configuration attribute;
Loading unit, for loading preset json configuration, wherein be pre-configured with the corresponding json configuration of the client
In the process, the content of the configuration of json described in real-time exhibition;
Converting unit, for json configuration to be converted to dictionary map object;
Resolution unit obtains the attribute of each widget widget for parsing the map object;
Display unit, for showing the attribute of each widget in the display page.
7. client according to claim 6, which is characterized in that the loading unit includes:
Request module, for sending the request configured for obtaining the corresponding json of the client to server;
First loading module loads newest the first json configuration for client configuration if completing for the request, and
Save the first json configuration;
Second loading module loads the 2nd json configuration once loaded before the client if failing for the request.
8. client according to claim 6, which is characterized in that the resolution unit includes:
First obtains module, for obtaining the configuration of the corresponding main interface of the map object, wherein the main interface is by multiple
Sub-interface is constituted;
Read module, for reading the child control information of each sub-interface;
Second obtains module, for obtaining the type of each child control information;
Determining module obtains the attribute of each widget for determining the corresponding attribute of type of each child control information.
9. a kind of electronic equipment, which is characterized in that the electronic equipment is for running program, wherein described program is held when running
Row such as a kind of method at configuration activities interface as claimed in any one of claims 1 to 5.
10. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment execute a kind of such as side at configuration activities interface as claimed in any one of claims 1 to 5
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910469979.XA CN110162305A (en) | 2019-05-31 | 2019-05-31 | A kind of method and client at configuration activities interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910469979.XA CN110162305A (en) | 2019-05-31 | 2019-05-31 | A kind of method and client at configuration activities interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110162305A true CN110162305A (en) | 2019-08-23 |
Family
ID=67630935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910469979.XA Pending CN110162305A (en) | 2019-05-31 | 2019-05-31 | A kind of method and client at configuration activities interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110162305A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515599A (en) * | 2019-08-30 | 2019-11-29 | 北京浪潮数据技术有限公司 | A kind of data open interface method and system based on configuration |
CN110766772A (en) * | 2019-09-10 | 2020-02-07 | 北京字节跳动网络技术有限公司 | Flatter-based cross-platform poster manufacturing method, device and equipment |
CN110806915A (en) * | 2019-11-01 | 2020-02-18 | 广州华多网络科技有限公司 | Special topic page processing method and client |
CN111314419A (en) * | 2020-01-16 | 2020-06-19 | 广州酷狗计算机科技有限公司 | Network request method and device |
WO2022099913A1 (en) * | 2020-11-10 | 2022-05-19 | 海尔数字科技(青岛)有限公司 | Interface configuration method and apparatus, and device and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103823676A (en) * | 2014-02-14 | 2014-05-28 | 珠海市君天电子科技有限公司 | Display control method, display control device and client side |
CN104731590A (en) * | 2015-03-13 | 2015-06-24 | 广东欧珀移动通信有限公司 | Method and device for realizing user interface controls |
WO2016057249A1 (en) * | 2014-10-09 | 2016-04-14 | Wrap Media, LLC | Integration of social media with card packages |
CN106775836A (en) * | 2016-11-29 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Interface display method and interface display apparatus |
-
2019
- 2019-05-31 CN CN201910469979.XA patent/CN110162305A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103823676A (en) * | 2014-02-14 | 2014-05-28 | 珠海市君天电子科技有限公司 | Display control method, display control device and client side |
WO2016057249A1 (en) * | 2014-10-09 | 2016-04-14 | Wrap Media, LLC | Integration of social media with card packages |
CN104731590A (en) * | 2015-03-13 | 2015-06-24 | 广东欧珀移动通信有限公司 | Method and device for realizing user interface controls |
CN106775836A (en) * | 2016-11-29 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Interface display method and interface display apparatus |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515599A (en) * | 2019-08-30 | 2019-11-29 | 北京浪潮数据技术有限公司 | A kind of data open interface method and system based on configuration |
CN110766772A (en) * | 2019-09-10 | 2020-02-07 | 北京字节跳动网络技术有限公司 | Flatter-based cross-platform poster manufacturing method, device and equipment |
CN110806915A (en) * | 2019-11-01 | 2020-02-18 | 广州华多网络科技有限公司 | Special topic page processing method and client |
CN111314419A (en) * | 2020-01-16 | 2020-06-19 | 广州酷狗计算机科技有限公司 | Network request method and device |
WO2022099913A1 (en) * | 2020-11-10 | 2022-05-19 | 海尔数字科技(青岛)有限公司 | Interface configuration method and apparatus, and device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110162305A (en) | A kind of method and client at configuration activities interface | |
CN110413294B (en) | Service release system, method, device and equipment | |
CN104781802B (en) | User Defined Resource in resource stack | |
EP3011442B1 (en) | Method and apparatus for customized software development kit (sdk) generation | |
US20170083307A1 (en) | Updating Web Resources | |
CN109684607B (en) | JSON data analysis method and device, computer equipment and storage medium | |
WO2018210096A1 (en) | Rule engine-based rule configuration method, terminal and device, and storage medium | |
US9998452B1 (en) | Customizing user interfaces for multiple different clients | |
US20160259933A1 (en) | Information processing system, information processing apparatus, and information processing method | |
CN108228293B (en) | Interface skin switching method and device | |
CN109375971B (en) | Page layout method and device, storage medium and electronic device | |
JP2006191384A (en) | Mobile and content transmission method | |
JP5754264B2 (en) | Program execution device, image processing device, and program | |
CN109508211A (en) | A kind of multilingual configuration method, device, system and electronic equipment | |
CN109324836A (en) | The processing method of the generation method and device of personalized photo, personalized splashette | |
CN115712411A (en) | Method and device for generating user-defined serial number | |
US11604685B2 (en) | Data processing system and method | |
JP6434363B2 (en) | Voice input device, voice input method, and program | |
JP7070276B2 (en) | Personal information protection device, personal information protection method and program | |
JPWO2015076094A1 (en) | Supporter selection device, supporter selection method, and program | |
US20160182649A1 (en) | Url issuing device, url issuing method, and url issuing program | |
TW202001554A (en) | Starting method and device for activity of Android system | |
CN111882430B (en) | Intelligent scheduling method and device for banking system | |
JP2008242655A (en) | File transmission server | |
Pelin et al. | IoTPub–Infrastructure and Backend AP |
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 | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20190823 Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd. Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd. Contract record no.: X2021440000030 Denomination of invention: A method of configuring active interface and client License type: Common License Record date: 20210125 |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190823 |