CN107666406B - Intelligent card display method and device - Google Patents

Intelligent card display method and device Download PDF

Info

Publication number
CN107666406B
CN107666406B CN201610616992.XA CN201610616992A CN107666406B CN 107666406 B CN107666406 B CN 107666406B CN 201610616992 A CN201610616992 A CN 201610616992A CN 107666406 B CN107666406 B CN 107666406B
Authority
CN
China
Prior art keywords
data
terminal
layout
smart card
server
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.)
Active
Application number
CN201610616992.XA
Other languages
Chinese (zh)
Other versions
CN107666406A (en
Inventor
齐国鹏
蔡新文
冯磊
龚海龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610616992.XA priority Critical patent/CN107666406B/en
Publication of CN107666406A publication Critical patent/CN107666406A/en
Application granted granted Critical
Publication of CN107666406B publication Critical patent/CN107666406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a method and a device for displaying an intelligent card, and belongs to the technical field of networks. The method comprises the following steps: abstracting a plurality of data types according to data required by the generated intelligent card to form a data model; acquiring layout data and service data of the smart card from a server; assembling the layout data and the service data according to a plurality of data types in the data model to obtain an intelligent card; the smart card is displayed in the application page. According to the invention, the server provides the layout data and the service data of the smart card, so that the data stored in the server can be directly updated when the updating is required, and each terminal does not need to update when a user triggers an application updating instruction, so that the operation is simple, convenient and quick. And data abstraction is carried out according to the data required by the generated intelligent card to form a data model, the intelligent card can be assembled according to the data model, the workload is reduced, and the operation efficiency is improved.

Description

Intelligent card display method and device
Technical Field
The invention relates to the technical field of networks, in particular to a method and a device for displaying an intelligent card.
Background
With the increasing abundance of application data, more and more data need to be displayed in application pages, the requirements of users on the display effect of the application pages are higher and higher, and application operators need to continuously update the styles, contents and the like of the application pages to meet the diversified requirements of the users. The current application page is usually composed of a smart card, so that the manageability of the application page can be improved while rich data is displayed.
Normally, the terminal configures layout data for determining the layout of the smart card and service data for determining data to be provided on the smart card, and generates and displays the smart card based on the layout data and the service data.
In the process of implementing the invention, the inventor finds that the prior art has at least the following defects: the layout data and the service data are configured in the local terminal, the updating process of the layout data and the service data depends on the updating process of the application, the layout data and the service data can be updated only when a user triggers an application updating instruction to update the application, and the operation is complicated.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the invention provides a smart card display method and a smart card display device. The technical scheme is as follows:
in a first aspect, a smart card display method is provided, the method including:
abstracting a plurality of data types according to data required by the generated intelligent card to form a data model;
the method comprises the steps that layout data and service data of the smart card are obtained from a server, the layout data are used for determining the layout of the smart card, the service data refer to data provided on the smart card, and the server is used for providing the layout data and the service data;
assembling the layout data and the service data according to the plurality of data types in the data model to obtain the intelligent card;
and displaying the smart card in an application page.
In a second aspect, there is provided a smart card display device, the device comprising:
the model construction module is used for abstracting a plurality of data types according to data required by the intelligent card to form a data model;
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring layout data and service data of the smart card from a server, the layout data is used for determining the layout of the smart card, the service data is data provided on the smart card, and the server is used for providing the layout data and the service data;
the assembling module is used for assembling the layout data and the service data according to the plurality of data types in the data model to obtain the intelligent card;
and the display module is used for displaying the smart card in an application page.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the method and the device provided by the embodiment of the invention, the server provides the layout data and the service data of the smart card, and the data stored on the server can be directly updated when the updating is needed, so that each terminal does not need to update when a user triggers an application updating instruction, and the operation is simple, convenient and quick. And data abstraction is carried out according to the data required by the generated intelligent card to form a data model, the intelligent card can be assembled according to the data model, the workload is reduced, and the operation efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of an implementation framework provided by an embodiment of the invention;
fig. 3 is a flowchart of a smart card display method according to an embodiment of the present invention;
FIG. 4 is a diagram of a search results page provided by an embodiment of the present invention;
FIG. 5A is a diagram of a data model provided by an embodiment of the invention;
fig. 5B is a schematic diagram of a smart card according to an embodiment of the present invention;
fig. 6 is a flowchart of a smart card display method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a smart card display device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of an implementation environment provided by an embodiment of the present invention, and referring to fig. 1, the implementation environment includes: the terminal is connected with the server through a network.
In the embodiment of the invention, the server stores the layout data and the service data of the intelligent card, the layout data is used for determining the layout of the intelligent card, and the service data refers to the data to be provided on the intelligent card. In the application process, the server provides layout data and service data of the intelligent card for the terminal, and the terminal can acquire the layout data and the service data from the server to perform dynamic loading automatic adaptation, so that the intelligent card is generated, and the intelligent card is displayed when an application page is displayed.
Optionally, the terminal installs a specific application, and the server is associated with the specific application and is used for providing a service for the specific application. And when the terminal opens the specified application and the application page of the specified application needs to be displayed, generating and displaying an intelligent card according to the layout data and the service data provided by the server.
The application page has a plurality of intelligent cards with different styles, rich styles and good interaction provide excellent service for a large number of users, and in a specific operation process, the content displayed on the intelligent card or the style of the intelligent card needs to be adjusted according to the current social hot spot or the hot spot concerned by the user, or the intelligent card is newly added, so that the requirement of the user for continuous change is met. Therefore, in the embodiment of the invention, the server provides the data of the smart card, the layout data and the service data are stored in the server, when the layout data and the service data are to be updated, the data stored in the server are directly updated, the data can be updated at one time without independently updating each terminal, the operation is simple and convenient, the updating period is greatly shortened, the development, test and release period of about two weeks at present is shortened to about several days, the development efficiency is greatly improved, the product release requirement is better met, and the workload of developers is reduced.
Further, the implementation framework of the terminal and the server may be as shown in fig. 2, and the server may include a layout data configuration system and a service data configuration system, which are respectively used for configuring the layout data and the service data of the smart card. The Server also comprises smart card filtering logic, a layout data Server (Server) and a service data Server, when the terminal acquires the layout data and the service data of the smart card, the smart card filtering logic is used for filtering the smart card according to the version information of the data, the layout resolver version of the terminal or other information, and only the layout data and the service data of the smart card which need to be issued are left and issued to the terminal through the layout data Server and the service data Server.
The terminal comprises a layout data acquisition protocol and a service data acquisition protocol which are respectively used for acquiring the layout data and the service data of the intelligent card from the server. The terminal also comprises a data format conversion module which is used for converting the data sent by the server into the specified data format supported by the terminal. The terminal also comprises a layout resolver, wherein the layout resolver comprises a commonly-used source generation control, a developer self-defined control, interaction logic, reporting logic and the like of the control, and can assemble layout data and service data of the intelligent card according to an established data model to generate the intelligent card.
Fig. 3 is a flowchart of a smart card display method according to an embodiment of the present invention. The interactive main body of the embodiment of the invention is a terminal and a server, and referring to fig. 3, the method comprises the following steps:
301. and abstracting a plurality of data types by the terminal according to the data required by the intelligent card generation to form a data model.
The embodiment of the invention is applied to the scene that the terminal needs to display the application page, and the application page is composed of at least one intelligent card, so that the terminal needs to generate and display at least one intelligent card.
The application page may be any page of any application on the terminal, for example, the application page may be a main page of a specific application installed in the terminal or a search result page, and the like. Referring to fig. 4, the search result page includes three smart cards, each of which displays a name, an icon, a rating, and a "download install" button of the searched photographing software.
In the embodiment of the invention, considering that one intelligent card comprises a plurality of items of data, and the types of the plurality of items of data are different, in order to facilitate the generation of the intelligent card, the terminal firstly classifies the data required for generating the intelligent card, abstracts out a plurality of data types, and forms a data model according to the plurality of data types. The data model determines the structural relationship between the plurality of data types according to which smart cards can be conveniently generated.
Optionally, the data model includes a plurality of nodes in a tree structure, at least one of which represents a data type, and others of which may be used to determine structural relationships between the plurality of data types.
For example, the data model may be as shown in fig. 5A, the data model includes a plurality of nodes, where the "card title" node, the "text control" node, the "dividing line" node, the "picture control" node, the "download button" node, and the "download progress bar" node each represent a data type, and the data model determines the structural relationship between each node, for example, the smart card Group1 includes a text control and a groudview control Group2, and the groudview control Group2 includes four sub-cards, each of which includes a text control, a picture control, a download button, and a download progress bar (fig. 5A only shows a second sub-card).
It should be noted that, in the embodiment of the present invention, only one smart card is taken as an example for description, and actually, the terminal may respectively create data models for different smart cards, or may create the same data model for a plurality of smart cards, and then fill the layout data and the service data of different smart cards into the data model, so as to obtain different smart cards. The embodiment of the invention does not limit the number of data models.
302. And the server sends the layout data and the service data of the intelligent card to the terminal.
The multiple items of data required for generating the smart card are divided according to types, can be divided into multiple data types, and can be divided into two types according to action division: layout data and business data. The layout data is used for determining the layout of the smart card, and may include at least one control, position information of each control, and an identifier of the smart card, and the service data refers to data to be provided on the smart card, and may include at least one of display data, interactive data, and report data of each control, and an identifier of the smart card.
The position information of the control is used to determine the position of the control in the smart card, the display data of the control refers to data to be displayed to a user on the control or a display mode of the control, such as characters displayed on the control, the size and the color of the control, whether a frame is added or not, the interactive data of the control may include an operation which can be triggered on the control and an action to be executed by a terminal after the operation is triggered, and the reporting data of the control refers to data which needs to be reported to the server in the display process of the control, such as a click rate of the control.
The identifier of the smart card is used to uniquely determine the smart card, and may be an ID (Identity, serial number) or a key value (key value) of the smart card, and the layout data and the service data are associated with each other by the identifier.
Optionally, the layout data and the service data are represented by a Map type data structure, that is, stored in a key value pair form, and the layout data and the service data of the same smart card are associated with each other according to the key value in the Map data structure. Or, the layout data and the service data are represented by an array type data structure, or by a List (linked List) type data structure, a common field may be defined in the stored layout data and service data, and the common field is filled with the identifier of the smart card, so that the layout data and the service data of the same smart card are associated with each other.
In the embodiment of the present invention, the layout data and the service data of the smart card are both stored in the server, and when the terminal is to generate the smart card, the server sends the layout data and the service data of the smart card to the terminal, which may specifically include the following situations 3021 and 3023:
3021. and the server issues the layout data and the service data when determining that the terminal side version information and the server side version information of the intelligent card are different.
Specifically, the terminal sends terminal-side version information of the smart card to the server, and the server receives the terminal-side version information of the smart card, acquires the server-side version information of the smart card, and determines whether the terminal-side version information is the same as the server-side version information.
If the layout data and the service data of the intelligent card on the terminal are the same, the layout data and the service data of the intelligent card on the terminal are the latest version data, the data do not need to be sent to the terminal, and the terminal can generate the intelligent card according to the existing layout data and the service data.
If the difference indicates that the layout data and the service data of the intelligent card on the terminal need to be updated, the server issues the layout data and the service data of the intelligent card which are currently stored in the server to the terminal, and the terminal receives the layout data and the service data and replaces the old version of the layout data and the service data which are stored in the terminal.
The version information of the smart card may include a version number or version release time of the smart card, and the version of the smart card may be determined according to the version information. By judging whether the terminal side version information is the same as the server side version information or not, repeated updating of the same data is avoided, and incremental updating is realized.
3022. And the server issues the layout data and the service data when determining that the terminal-side version information and the server-side version information of the intelligent card are different, the version of a layout resolver supported by the intelligent card is not higher than the version of the layout resolver of the terminal, and the resolution of the intelligent card supports the resolution of the terminal.
Specifically, the terminal sends terminal-side version information of the smart card, version information of a layout analyzer of the terminal, and resolution of the terminal to the server, and when the server receives the information, the server-side version information of the smart card, the version of the layout analyzer supported by the smart card, and the resolution of the smart card are acquired, and whether the terminal-side version information is the same as the server-side version information is judged.
If the layout data and the service data of the intelligent card on the terminal are the same, the layout data and the service data of the intelligent card on the terminal are the latest version data, the data do not need to be sent to the terminal, and the terminal can generate the intelligent card according to the existing layout data and the service data.
If the difference indicates that the layout data and the service data of the smart card on the terminal need to be updated, the server judges whether the layout resolver version supported by the smart card is higher than the layout resolver version of the terminal, and judges whether the resolution of the smart card supports the resolution of the terminal. When the layout resolver version supported by the intelligent card is not higher than the layout resolver version of the terminal and the resolution of the intelligent card supports the resolution of the terminal, the server issues the layout data and the service data of the intelligent card which are currently stored to the terminal, and the terminal receives the layout data and the service data and replaces the old version of the layout data and the service data which are stored on the terminal. And when the layout resolver version supported by the intelligent card is higher than the layout resolver version of the terminal or the resolution of the intelligent card does not support the resolution of the terminal, the server does not issue data to the terminal any more, and the terminal generates the intelligent card according to the existing layout data and service data.
The terminal can be configured with a layout analyzer, and the layout analyzer can analyze layout data and service data and generate the intelligent card. When the version of the layout resolver supported by the intelligent card is not higher than that of the terminal, the terminal can generate the intelligent card through the currently configured layout resolver, and when the version of the layout resolver supported by the intelligent card is higher than that of the terminal, the terminal can generate the intelligent card normally by the currently configured layout resolver. In addition, when the resolution of this smart card supports the resolution at this terminal, show that this terminal can normally show this smart card, and when the resolution of this smart card does not support the resolution at this terminal, show that this terminal can not normally show this smart card. For example, the resolution of the smart card is 1080p, and the resolution of the terminal is 720p, then the resolution of the smart card supports the resolution of the terminal.
3023. And the server issues the layout data and the service data of the newly added intelligent card when determining that the layout resolver version supported by the newly added intelligent card is not higher than the layout resolver version of the terminal and the resolution of the newly added intelligent card supports the resolution of the terminal.
Specifically, when the layout data and the service data of the smart card are newly added to the server, if the terminal sends the terminal-side version information of the smart card, the version information of the layout parser of the terminal, and the resolution of the terminal to the server, and the server determines that the newly added smart card exists through comparison, it is determined whether the layout parser version supported by the newly added smart card is higher than the layout parser version of the terminal, and it is determined whether the resolution of the newly added smart card supports the resolution of the terminal. And when the layout analyzer version supported by the newly added intelligent card is not higher than the layout analyzer version of the terminal and the resolution of the newly added intelligent card supports the resolution of the terminal, issuing layout data and service data of the newly added intelligent card, and generating a new intelligent card by the terminal according to the layout data and the service data of the newly added intelligent card.
It should be noted that the terminal may acquire the layout data and the service data in the above several manners, or may acquire the layout data and the service data in other manners, and the layout data and the service data may be acquired in different manners. Or, the terminal may set a layout data acquisition protocol and a service data acquisition protocol, and respectively acquire the layout data and the service data according to the layout data acquisition protocol and the service data acquisition protocol. In addition, the step 302 may be executed when the terminal opens a specific application, or executed periodically, or executed under a specific condition, and the execution timing of the step 302 is not limited in the embodiment of the present invention.
In order to support data in various formats conveniently, the terminal can provide a data format conversion function, when layout data and service data in any format issued by the server are received, the layout data and the service data are converted into a specified data format supported by the terminal, so that the terminal can identify the data, and an intelligent card is generated according to the data, so that the data in the specified data format can be obtained no matter what format the server provides, and the flexibility is improved.
The specified data format may be a JSON (JavaScript Object notification, lightweight data exchange Language), XML (eXtensible Markup Language), or other format, which is not limited in the embodiments of the present invention.
303. And when the terminal receives the layout data and the service data sent by the server, assembling the layout data and the service data according to a plurality of data types in the data model to obtain the intelligent card.
The layout data and the service data comprise a plurality of different types of data, and after the terminal acquires the layout data and the service data, the layout data and the service data can be assembled according to the structural relationship among a plurality of data types in the data model.
Specifically, the data model includes nodes representing data types, the terminal sequentially fills each item of data in the service data into the nodes of the data model with mutually matched types, and then assembles the nodes according to the structural relationship between the nodes in the data model and the layout data, thereby obtaining the smart card.
Referring to fig. 5A, the obtained layout data and the obtained service data are assembled according to the data model, and the smart card shown in fig. 5B can be obtained. The smart card Group1 includes a text control including a card title "my socializing me, a text control" all "and a dividing line, and a Group2 of a Group control of a Group view, which 2 includes four sub-cards, for example, a first sub-card including a text control" XX control, "a picture control" picture 1, "a download button" download "and a download progress bar" 24.2MB ".
In addition, the step 303 may be executed by a layout parser configured by the terminal, where the layout parser may include smart card combinations, common source generation controls, developer-defined controls, interaction logic, reporting logic, and the like, and this is not limited in the embodiment of the present invention. The terminal calls the layout resolver, the layout resolver acquires the required controls, the plurality of controls are laid out according to the layout data, and the service data are filled into the corresponding controls, so that the intelligent card is assembled.
304. The terminal displays the smart card in an application page.
It should be noted that, in the embodiment of the present invention, a display process of only one smart card is used for illustration, actually, for any application page, the application page usually includes a plurality of smart cards, when the application page is to be displayed, the method provided in the embodiment of the present invention may be used to generate a plurality of smart cards, and the smart cards are displayed in the application page, and the number of the smart cards in the application page is not limited in the embodiment of the present invention.
According to the method provided by the embodiment of the invention, the server provides the layout data and the service data of the smart card, and the data stored in the server can be directly updated when the updating is required, so that each terminal does not need to update when a user triggers an application updating instruction, and the operation is simple, convenient and quick. And data abstraction is carried out according to the data required by the generated intelligent card to form a data model, the intelligent card can be assembled according to the data model, the workload is reduced, and the operation efficiency is improved.
Fig. 6 is a flowchart of a smart card display method according to an embodiment of the present invention, and referring to fig. 6, the method includes:
601. and abstracting a plurality of data types according to the data required by the generation of the intelligent card to form a data model.
602. The method comprises the steps of obtaining layout data and service data of the smart card from a server, wherein the layout data are used for determining the layout of the smart card, the service data refer to data provided on the smart card, and the server is used for providing the layout data and the service data.
603. And assembling the layout data and the service data according to the plurality of data types in the data model to obtain the intelligent card.
604. The smart card is displayed in an application page.
According to the method provided by the embodiment of the invention, the server provides the layout data and the service data of the smart card, and the data stored in the server can be directly updated when the updating is required, so that each terminal does not need to update when a user triggers an application updating instruction, and the operation is simple, convenient and quick. And data abstraction is carried out according to the data required by the generated intelligent card to form a data model, the intelligent card can be assembled according to the data model, the workload is reduced, and the operation efficiency is improved.
Optionally, the data model includes a plurality of nodes in a tree structure, at least one of the plurality of nodes representing a data type.
Optionally, the server issues the layout data and the service data when determining that the terminal-side version information and the server-side version information of the smart card are different; alternatively, the first and second electrodes may be,
and the server issues the layout data and the service data when determining that the terminal-side version information and the server-side version information of the intelligent card are different, the version of a layout resolver supported by the intelligent card is not higher than the version of the layout resolver of the terminal, and the resolution of the intelligent card supports the resolution of the terminal.
Optionally, the layout data and the service data of the newly added smart card are issued by the server when it is determined that the layout parser version supported by the newly added smart card is not higher than the layout parser version of the terminal and the resolution of the newly added smart card supports the resolution of the terminal.
Optionally, after the obtaining the layout data and the service data of the smart card from the server, the method further includes:
and converting the layout data and the service data into a specified data format supported by the home terminal.
Optionally, the layout data includes at least one control, position information of each control, and an identifier of the smart card; the service data comprises at least one item of display data, interactive data and reporting data of each control and the identification of the intelligent card.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 7 is a schematic structural diagram of a smart card display device according to an embodiment of the present invention, and referring to fig. 7, the smart card display device includes:
the model construction module 701 is used for abstracting a plurality of data types according to data required by the generation of the intelligent card to form a data model;
an obtaining module 702, configured to obtain layout data and service data of the smart card from a server, where the layout data is used to determine a layout of the smart card, the service data is data provided on the smart card, and the server is used to provide the layout data and the service data;
an assembling module 703, configured to assemble the layout data and the service data according to the multiple data types in the data model to obtain the smart card;
a display module 704, configured to display the smart card in the application page.
Optionally, the data model includes a plurality of nodes in a tree structure, at least one of the plurality of nodes representing a data type.
Optionally, the server issues the layout data and the service data when determining that the terminal-side version information and the server-side version information of the smart card are different; alternatively, the first and second electrodes may be,
and the server issues the layout data and the service data when determining that the terminal-side version information and the server-side version information of the intelligent card are different, the version of a layout resolver supported by the intelligent card is not higher than the version of the layout resolver of the terminal, and the resolution of the intelligent card supports the resolution of the terminal.
Optionally, the layout data and the service data of the newly added smart card are issued by the server when it is determined that the layout parser version supported by the newly added smart card is not higher than the layout parser version of the terminal and the resolution of the newly added smart card supports the resolution of the terminal.
Optionally, the apparatus further comprises:
and the data format conversion module is used for converting the layout data and the service data into a specified data format supported by the home terminal.
Optionally, the layout data includes at least one control, position information of each control, and an identifier of the smart card; the service data comprises at least one item of display data, interactive data and reporting data of each control and the identification of the intelligent card.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the smart card display device provided in the above embodiment, when the smart card is displayed, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the smart card display device provided by the above embodiment and the smart card display method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention. Specifically, the method comprises the following steps:
the terminal 800 may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other terminals via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 120 may be used to store software programs and modules, such as the software programs and modules corresponding to the terminal shown in the above exemplary embodiment, and the processor 180 executes various functional applications and data processing, such as implementing video-based interaction, by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 800, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 130 may include a touch-sensitive surface 131 as well as other input terminals 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding link device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input terminals 132. In particular, other input terminals 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 8, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 800 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal 800, further description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 800. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 800.
The terminal 800, which can assist the user in e-mail, web browsing, and streaming media access, etc., provides the user with wireless or wired broadband internet access via the transmission module 170. Although fig. 8 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal 800 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 800, links various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 800 further includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 800 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs executed by the one or more processors include instructions for implementing the operations performed by the terminal in the above embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A smart card display method, the method comprising:
the terminal abstracts a plurality of data types according to data required by generating the intelligent card to form a data model, the data model comprises a plurality of nodes in a tree structure, at least one node in the plurality of nodes represents one data type, and other nodes in the plurality of nodes are used for determining the structural relationship among the plurality of data types;
the terminal sends terminal side version information of the intelligent card to a server, the server sends layout data and service data when determining that the terminal side version information and the server side version information of the intelligent card are different, the layout data is used for determining the layout of the intelligent card, and the service data refers to data provided on the intelligent card; or the terminal sends terminal side version information of the smart card, layout resolver version information of the terminal and resolution of the terminal to the server, and the server issues the layout data and the service data when determining that the terminal side version information of the smart card is different from the server side version information, the layout resolver version supported by the smart card is not higher than the layout resolver version of the terminal, and the resolution of the smart card supports the resolution of the terminal;
the terminal sequentially fills each item of data in the service data into nodes with mutually matched types in the data model, and then the nodes are assembled according to the structural relationship among the nodes in the data model and the layout data to obtain the intelligent card;
and the terminal displays the intelligent card in an application page.
2. The method according to claim 1, wherein the layout data and service data of the newly added smart card are issued by the server when it is determined that the layout parser version supported by the newly added smart card is not higher than the layout parser version of the terminal and the resolution of the newly added smart card supports the resolution of the terminal.
3. The method according to claim 1, wherein before the terminal fills each item of data in the service data into nodes with mutually matched types in the data model in sequence, the method further comprises:
and converting the layout data and the service data into a specified data format supported by the home terminal.
4. A method according to any of claims 1-3, wherein the layout data comprises at least one control, position information for each control, and an identification of the smart card; the service data comprises at least one item of display data, interactive data and reporting data of each control and the identification of the intelligent card.
5. A smart card display device, the device comprising:
the data model comprises a plurality of nodes in a tree structure, at least one node in the nodes represents one data type, and other nodes in the nodes are used for determining the structural relationship among the data types;
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for sending terminal side version information of the intelligent card to a server, the server is used for issuing layout data and service data when the terminal side version information and the server side version information of the intelligent card are determined to be different, the layout data is used for determining the layout of the intelligent card, and the service data refers to data provided on the intelligent card;
or, the obtaining module is configured to send terminal-side version information of the smart card, layout parser version information of the terminal, and resolution of the terminal to the server, where the server is configured to issue the layout data and the service data when it is determined that the terminal-side version information of the smart card is different from the server-side version information, a layout parser version supported by the smart card is not higher than a layout parser version of the terminal, and the resolution of the smart card supports the resolution of the terminal;
the assembling module is used for sequentially filling each item of data in the service data into nodes with mutually matched types in the data model, and then assembling according to the structural relationship among a plurality of nodes in the data model and the layout data to obtain the intelligent card;
and the display module is used for displaying the smart card in an application page.
6. The apparatus according to claim 5, wherein the layout data and service data of the newly added smart card are issued by the server when it is determined that the layout parser version supported by the newly added smart card is not higher than the layout parser version of the terminal and the resolution of the newly added smart card supports the resolution of the terminal.
7. The apparatus of claim 5, further comprising:
and the data format conversion module is used for converting the layout data and the service data into a specified data format supported by the home terminal.
8. The apparatus of any of claims 5-7, wherein the layout data comprises at least one control, location information for each control, and an identification of the smart card; the service data comprises at least one item of display data, interactive data and reporting data of each control and the identification of the intelligent card.
9. A terminal, characterized in that it comprises a memory, and one or more programs stored in said memory and configured to be executed by one or more processors the instructions comprised by said one or more programs for implementing the operations performed by the display method of a smart card according to any one of claims 1-4.
10. A computer-readable storage medium, in which one or more programs are stored, the one or more programs being configured to be executed by one or more processors to execute instructions included in the one or more programs for implementing the operations performed by the display method of a smart card according to any one of claims 1-4.
CN201610616992.XA 2016-07-29 2016-07-29 Intelligent card display method and device Active CN107666406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610616992.XA CN107666406B (en) 2016-07-29 2016-07-29 Intelligent card display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610616992.XA CN107666406B (en) 2016-07-29 2016-07-29 Intelligent card display method and device

Publications (2)

Publication Number Publication Date
CN107666406A CN107666406A (en) 2018-02-06
CN107666406B true CN107666406B (en) 2021-03-23

Family

ID=61114723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610616992.XA Active CN107666406B (en) 2016-07-29 2016-07-29 Intelligent card display method and device

Country Status (1)

Country Link
CN (1) CN107666406B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391736B (en) * 2017-08-07 2020-11-20 玫瑰视界(北京)网络科技有限公司 Page display method and device
CN110489195B (en) * 2019-08-19 2022-07-19 中国工商银行股份有限公司 Service processing method and device, electronic equipment and computer readable storage medium
CN110647327B (en) * 2019-09-23 2023-09-26 京东科技控股股份有限公司 Method and device for dynamic control of user interface based on card
CN111880813B (en) * 2020-06-16 2024-03-15 福建天泉教育科技有限公司 Method for realizing android card UI (user interface) and storage medium
CN112559222A (en) * 2020-12-23 2021-03-26 百果园技术(新加坡)有限公司 Message display method and device, computer equipment and storage medium
CN113032051A (en) * 2021-05-20 2021-06-25 北京易真学思教育科技有限公司 Data display method and device, electronic equipment and computer storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488479A (en) * 2013-09-04 2014-01-01 用友软件股份有限公司 Dynamic generating device for client end interface and dynamic generating method for client end interface
CN105224556A (en) * 2014-06-13 2016-01-06 腾讯科技(北京)有限公司 Waterfall stream interface display packing and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110061078A1 (en) * 2005-05-10 2011-03-10 Reagan Inventions, Llc System and method for controlling a plurality of electronic devices
US9524273B2 (en) * 2013-03-11 2016-12-20 Oracle International Corporation Method and system for generating a web page layout using nested drop zone widgets having different software functionalities
CN104158836B (en) * 2014-06-23 2018-05-01 浙江大学城市学院 A kind of method by data render mobile application interface
CN105824517B (en) * 2015-01-07 2019-06-11 阿里巴巴集团控股有限公司 A kind of implementation method and device of desktop

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488479A (en) * 2013-09-04 2014-01-01 用友软件股份有限公司 Dynamic generating device for client end interface and dynamic generating method for client end interface
CN105224556A (en) * 2014-06-13 2016-01-06 腾讯科技(北京)有限公司 Waterfall stream interface display packing and device

Also Published As

Publication number Publication date
CN107666406A (en) 2018-02-06

Similar Documents

Publication Publication Date Title
CN107666406B (en) Intelligent card display method and device
CN110795666B (en) Webpage generation method, device, terminal and storage medium
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN109857403B (en) Page updating method and device, page processing method and device
CN110990741B (en) Page display method and device, electronic equipment, server and storage medium
CN108536594B (en) Page testing method and device and storage equipment
CN108039963B (en) Container configuration method and device and storage medium
CN106780684B (en) Animation effect realization method and device
CN110399583B (en) Page display method and device, electronic equipment and storage medium
CN112882772B (en) Configuration method of application interface of mobile terminal, mobile terminal and storage medium
CN111124412B (en) Game page drawing method, device, equipment and storage medium
CN106293738B (en) Expression image updating method and device
CN111078556B (en) Application testing method and device
CN108287706B (en) Data processing method and device
CN113313804B (en) Image rendering method and device, electronic equipment and storage medium
CN113377469A (en) Business interface display method and device for mobile application, terminal and storage medium
CN107025574B (en) Promotion information display method and device
CN112749074B (en) Test case recommending method and device
CN108182090B (en) Flash plug-in loading method and device based on blink kernel
CN106095423B (en) Method, terminal and server for providing browsing service
CN106302101B (en) Message reminding method, terminal and server
CN110300047B (en) Animation playing method and device and storage medium
CN111359210B (en) Data processing method and device, electronic equipment and storage medium
CN105095161B (en) Method and device for displaying rich text information
CN116594616A (en) Component configuration method and device and computer readable storage medium

Legal Events

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