CN111881392A - Page display method and device - Google Patents

Page display method and device Download PDF

Info

Publication number
CN111881392A
CN111881392A CN202010651531.2A CN202010651531A CN111881392A CN 111881392 A CN111881392 A CN 111881392A CN 202010651531 A CN202010651531 A CN 202010651531A CN 111881392 A CN111881392 A CN 111881392A
Authority
CN
China
Prior art keywords
page
page template
template
response message
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010651531.2A
Other languages
Chinese (zh)
Inventor
马亮亮
万兵
吴广豪
胡玮
曾抗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010651531.2A priority Critical patent/CN111881392A/en
Publication of CN111881392A publication Critical patent/CN111881392A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/206Software aspects at ATMs
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/211Software architecture within ATMs or in relation to the ATM network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for displaying a page, and relates to the technical field of computers. The method comprises the following steps: responding to a preset trigger condition, a terminal initiates a data acquisition request to a server and receives a response message which is returned by the server and corresponds to the data acquisition request; the terminal queries a corresponding page template according to a response code carried by the response message, and then queries configuration information of page elements contained in the page template according to a pre-configured script; and the terminal assembles the page according to the page template, the configuration information of the page elements contained in the page template and the content required by the page assembly carried by the response message, and displays the assembled page. Through the steps, the dynamic generation and display of the page can be realized, the page programming efficiency and the flexibility of the page programming process are improved, and the defects of poor program maintainability, difficult upgrading and the like caused by hard coding are avoided.

Description

Page display method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for displaying a page.
Background
Currently, many personal financial services such as depositing and withdrawing, querying, transferring, checking balances, paying for water, etc. are integrated on transaction pages on bank ATM devices. In the prior art, when the transaction page on the bank ATM is developed, the transaction page is mainly developed in a hard coding mode.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: in the actual development process of a transaction page, each branch line may have different branches and display logics for the same transaction flow, if a hard coding mode is adopted, page development needs to be respectively carried out on different branches and display logics, a large amount of repeated development work is introduced, the waste of manpower and workload is not less than the maximum waste, and codes are also bloated and difficult to maintain; in addition, the development of the transaction page by adopting a hard coding mode leads to poor program maintainability and difficult upgrading.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for displaying a page, which can implement dynamic generation and display of a page, improve page programming efficiency and flexibility of a page programming process, and avoid the defects of poor program maintainability, difficult upgrading, and the like caused by hard coding.
To achieve the above object, according to one aspect of the present invention, there is provided a method of presenting a page.
The method for displaying the page comprises the following steps: responding to a preset trigger condition, a terminal initiates a data acquisition request to a server and receives a response message which is returned by the server and corresponds to the data acquisition request; wherein the response packet includes: the response code and the page are assembled to obtain the required content; the terminal queries a corresponding page template according to a response code carried by the response message, and then queries configuration information of page elements contained in the page template according to a pre-configured script; and the terminal assembles the page according to the page template, the configuration information of the page elements contained in the page template and the content required by the page assembly carried by the response message, and displays the assembled page.
Optionally, the querying, by the terminal, a page template corresponding to the response code carried in the response packet includes: the terminal inquires a first configuration file according to a response code carried by the response message so as to acquire a page template identifier corresponding to the response code from the first configuration file; and the terminal queries a page template storage module according to the page template identification corresponding to the response code so as to obtain the page template corresponding to the page template identification.
Optionally, the querying out the configuration information of the page element included in the page template according to the pre-configured script includes: and querying a second configuration file according to a pre-configured script so as to query the configuration information of the page elements contained in the page template from the second configuration file.
Optionally, the querying the second configuration file according to the preconfigured script includes: firstly, inquiring a second configuration file with high calling frequency according to a pre-configured script so as to inquire the configuration information of the page elements contained in the page template from the second configuration file with high calling frequency; if the configuration information of the page elements contained in the page template cannot be inquired in the second configuration file with high calling frequency, inquiring the second configuration file with low calling frequency according to a pre-configured script so as to inquire the configuration information of the page elements contained in the page template from the second configuration file with low calling frequency and update the calling frequency of the configuration file.
Optionally, the method further comprises: and configuring the configuration information of the page elements contained in the page template through a visual interface for each type of page template.
Optionally, the terminal comprises an ATM machine, and the page template comprises at least one of the following types: a transaction selection page template, an element input page template, an information confirmation page template and a transaction result page template.
To achieve the above object, according to another aspect of the present invention, there is provided an apparatus for displaying a page.
The device for displaying the page comprises: the data acquisition module is used for responding to a preset trigger condition, initiating a data acquisition request to a server and receiving a response message which is returned by the server and corresponds to the data acquisition request; wherein the response packet includes: the response code and the page are assembled to obtain the required content; the query module is used for querying a corresponding page template according to the response code carried by the response message and then querying the configuration information of the page elements contained in the page template according to a pre-configured script; and the assembling module is used for assembling the page according to the page template, the configuration information of the page elements contained in the page template and the content required by page assembly carried by the response message, and displaying the assembled page.
Optionally, the querying module querying a corresponding page template according to a response code carried by the response packet includes: the query module queries a first configuration file according to a response code carried by the response message so as to acquire a page template identifier corresponding to the response code from the first configuration file; and the query module queries a page template storage module according to the page template identifier corresponding to the response code so as to obtain the page template corresponding to the page template identifier.
To achieve the above object, according to still another aspect of the present invention, there is provided an electronic apparatus.
The electronic device of the present invention includes: one or more processors; and storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of presenting pages of the present invention.
To achieve the above object, according to still another aspect of the present invention, there is provided a computer-readable medium.
The computer-readable medium of the invention has stored thereon a computer program which, when being executed by a processor, carries out the method of presenting pages of the invention.
One embodiment of the above invention has the following advantages or benefits: the method comprises the steps that a terminal initiates a data acquisition request to a server and receives a response message which is returned by the server and corresponds to the data acquisition request in response to a preset trigger condition, the terminal inquires a page template corresponding to the response message according to a response code carried by the response message, then inquires configuration information of page elements contained in the page template according to a preset script, and the terminal assembles a page according to the page template, the configuration information of the page elements contained in the page template and the content required by page assembly carried by the response message and displays the page.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic main flow chart of a method for displaying a page according to a first embodiment of the invention;
FIG. 2 is a schematic main flow chart of a method for displaying a page according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of the main modules of an apparatus for displaying pages according to a third embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 5 is a schematic block diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and technical features of the embodiments of the present invention may be combined with each other without affecting the implementation of the present invention.
Before describing embodiments of the present invention in detail, some technical terms related to the embodiments of the present invention will be described.
An ATM machine: an automatic teller machine is a small machine which is arranged at different places of a bank and enables a customer to carry out bank services such as money withdrawal, deposit, account transfer and the like through the machine.
Script: a script is a plain text saving program, is an extension of batch files, and a script is usually an interpretive run rather than a compilation.
Fig. 1 is a main flow diagram of a method for displaying a page according to a first embodiment of the present invention. As shown in fig. 1, the method for displaying a page according to the embodiment of the present invention includes:
step S101: responding to a preset trigger condition, the terminal initiates a data acquisition request to the server and receives a response message corresponding to the data acquisition request returned by the server.
For example, the preset trigger condition may be that some trigger operation of the user is detected, such as the user clicking some page control on the currently presented page, or the user scrolling the screen on the currently presented page, and so on. For example, the preset trigger condition may also be that the detected current time meets a time requirement for initiating a data acquisition request to the server at a fixed time. It is to be noted that the present invention is not limited to the above two trigger conditions. In specific implementation, a person skilled in the art can set corresponding trigger conditions according to the use requirements of different application scenarios.
Illustratively, the terminal may be an electronic device such as an ATM, a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like, and the server is a server providing service support for the terminal, for example, a server providing financial service support such as depositing and withdrawing, inquiring, transferring, checking balance, and/or paying electricity for the ATM.
And under the condition of meeting a preset trigger condition, the terminal initiates a data acquisition request to the server. In different application scenarios, the meaning of the data acquisition request may be different. For example, in a hydropower charge query scenario, the data acquisition request may be a hydropower charge query request to be paid; in the context of account balance inquiry, the data acquisition request may be an account balance inquiry request. After receiving a data acquisition request of the terminal, the server returns a response message corresponding to the data acquisition request.
Step S102: and the terminal queries a corresponding page template according to the response code carried by the response message, and then queries the configuration information of the page elements contained in the page template according to a pre-configured script.
Wherein the response packet includes: and the response code and the page assemble the required content. The response code can be understood as a type identification code of a response message returned by the server, and the terminal can determine the operation to be taken next according to the response code. Illustratively, the response code may include: response codes representing that the response message is of an 'interaction ending' type, response codes representing that the response message is of a 'interaction refusing' type, and response codes representing that the response message is of a 'interaction continuing' type. It should be noted that the above "end interaction", "reject interaction", and "continue interaction" type response codes are merely exemplary illustrations. In the specific implementation, those skilled in the art can set different types of response codes according to the use requirement. The content required by page assembly can be understood as page data required to be acquired from a server when a page is dynamically assembled.
In the embodiment of the invention, different page templates can be configured in advance for different response codes. In step S102, the terminal may analyze the response packet to analyze the response code carried by the response packet. Then, the terminal queries the corresponding page template according to the response code carried by the response message, and further determines the page elements contained in the page template. Illustratively, the page elements included in the page template may include one or more of buttons, input boxes, page titles, and the like arranged on the page. And then, the terminal can call a pre-configured script and inquire out the configuration information of the page elements contained in the page template through the script.
In the embodiment of the invention, the configuration information of the page elements contained in the page template is inquired by adopting the pre-configured script, so that the method and the device have the advantages of convenient loading in running and program updating, are favorable for improving the flexibility of inquiring the configuration information, and are further favorable for improving the flexibility of dynamically generating the page.
Step S103: and the terminal assembles the page according to the page template, the configuration information of the page elements contained in the page template and the content required by the page assembly carried by the response message, and displays the assembled page.
In this step, the terminal may dynamically generate a page according to the page template, the configuration information of the page elements included in the page template, and the content required by page assembly carried in the response message, and display the dynamically generated page to the user.
In the embodiment of the invention, the flexibility in the subsequent generation of the page is improved by respectively configuring the page template and the configuration information of the page elements contained in the page template; furthermore, the terminal queries a page template corresponding to the response message returned by the server according to a response code carried by the response message corresponding to the data acquisition request, then queries configuration information of page elements contained in the page template according to a pre-configured script, and assembles a page according to the page template, the configuration information of the page elements contained in the page template, content required by page assembly carried by the response message, and the like, so that dynamic generation and display of the page can be realized, page compilation efficiency and flexibility of a page compilation process are improved, and the defects of poor program maintainability, difficulty in upgrading and the like caused by hard coding are avoided.
Fig. 2 is a main flow diagram of a method for displaying a page according to a second embodiment of the invention. In the embodiment of the invention, the terminal is an ATM, and the ATM comprises a main program module and a dynamic page display logic control module; the server is a server arranged at one side of the bank; the data acquisition request sent by the terminal to the server is specifically referred to as a "transaction request". As shown in fig. 2, the method for displaying a page according to the embodiment of the present invention includes:
step S201: and responding to the triggering operation of the user, and sending a transaction request to the server by a main program module of the ATM.
For example, the user's trigger operation may be a user clicking a certain page control on the currently displayed page, or a user scrolling a screen on the currently displayed page, or the like. It is noted that the present invention is not limited to the above two types of trigger operations. In specific implementation, a person skilled in the art can respond to the corresponding type of trigger operation according to the use requirements of different application scenarios.
And under the condition that the trigger operation of the specified type is detected, a main program module of the ATM initiates a transaction request to the server. The meaning of the transaction request may be different in different application scenarios. For example, in a scenario where a user inquires about the electricity fee through an ATM, the transaction request may be a request for inquiring about the electricity fee to be paid; in the scenario that the user inquires the account balance through the ATM machine, the transaction request may be an account balance inquiry request. After receiving a transaction request of the ATM, the service end returns a response message corresponding to the transaction request.
Step S202: and the main program module of the ATM sends a response message which is returned by the server and corresponds to the transaction request to a dynamic page display logic control module on the ATM.
Wherein the response packet includes: and the response code and the page assemble the required content. The response code can be understood as a type identification code of a response message returned by the server, and the terminal can determine the operation to be taken next according to the response code. Illustratively, the response code may include: response codes representing that the response message is of an 'interaction ending' type, response codes representing that the response message is of a 'interaction refusing' type, and response codes representing that the response message is of a 'interaction continuing' type. It should be noted that the above "end interaction", "reject interaction", and "continue interaction" type response codes are merely exemplary illustrations. In the specific implementation, those skilled in the art can set different types of response codes according to the use requirement. The content required by page assembly can be understood as page data required to be acquired from a server when a page is dynamically assembled.
Further, before step S202, the method of the embodiment of the present invention may further include the following steps: and inquiring a switch identifier of the dynamic page display main logic control module, and confirming that the current value of the switch identifier is a first value. The current value of the switch identifier is a first value, which indicates that the dynamic page display main logic control module is in an open state, that is, the current transaction type or page type supports dynamic generation of page logic; the current value of the switch identifier is the second value, which indicates that the dynamic page display main logic control module is in a closed state, that is, the current transaction type or page type does not support the dynamic page generation logic. In the embodiment of the invention, the switch identifier of the dynamic page display main logic control module is set, so that the dynamic page display main logic control module can be selectively called conveniently, and the flexibility of dynamically generating the page can be improved.
Step S203: and the dynamic page display logic control module analyzes the response message and queries a first configuration file according to the analyzed response code so as to acquire a page template identifier corresponding to the response code from the first configuration file.
Illustratively, the first configuration file may contain preconfigured page template identifications corresponding to different response codes. In this step, the dynamic page display logic control module analyzes the response message returned by the server to analyze the response code carried by the response message and the content required by page assembly. And then, inquiring the first configuration file according to the analyzed response code so as to obtain the page template identifier corresponding to the response code.
Further, before the step of querying the first configuration file according to the parsed response code, the method of the embodiment of the present invention may further include the following steps: and loading the first configuration file into a memory.
Step S204: and the dynamic page display logic control module acquires a page template corresponding to the page template identifier, and then calls a configuration script to query a second configuration file so as to obtain the configuration information of the page elements contained in the page template.
In the embodiment of the invention, different page templates can be configured in advance for different response codes. Illustratively, the page template includes at least one of the following types: a transaction selection page template, an element input page template, an information confirmation page template and a transaction result page template.
In this step, the dynamic page display logic control module may query a page template storage module (such as a database or other type of storage module) according to the page template identifier, so as to obtain a page template corresponding to the page template identifier. And then, the dynamic page display logic control module can call a pre-configured script and query a second configuration file through the script to acquire the configuration information of the page elements contained in the page template. Wherein the second configuration file may include: configuration information of the page elements.
In an optional embodiment, the step of the dynamic page presentation logic control module invoking a configuration script to query the second configuration file to obtain the configuration information of the page elements included in the page template includes: and sequentially inquiring all the stored second configuration files according to a pre-configured script so as to inquire the configuration information of the page elements contained in the page template.
In another optional embodiment, the step of the dynamic page presentation logic control module invoking a configuration script to query the second configuration file to obtain the configuration information of the page elements included in the page template includes: the dynamic page display logic control module firstly queries a second configuration file with high calling frequency according to a pre-configured script so as to query the configuration information of the page elements contained in the page template from the second configuration file with high calling frequency; if the configuration information of the page elements contained in the page template cannot be inquired in the second configuration file with high calling frequency, the dynamic page display logic control module inquires the second configuration file with low calling frequency according to a pre-configured script so as to inquire the configuration information of the page elements contained in the page template from the second configuration file with low calling frequency and update the calling frequency of the configuration file. In specific implementation, the second configuration file with the calling frequency greater than the preset threshold value can be used as a file with high calling frequency, and the second configuration file with the calling frequency less than or equal to the preset threshold value can be used as a file with low calling frequency. Through the optional implementation mode, the query efficiency of the page element configuration information is improved, and the processing efficiency of dynamic page generation is improved.
Further, the method of the embodiment of the present invention may further include the steps of: and configuring the configuration information of the page elements contained in the page template through a visual interface for each type of page template. By configuring the configuration information of the page elements contained in the page template by means of the visual interface, the configuration difficulty is reduced, the configuration experience is improved, and the management of the configuration information of the page elements is facilitated.
Step S205: and the dynamic page display logic control module assembles a transaction page according to the page template, the configuration information of the page elements and the content required by page assembly carried by the response message, and displays the transaction page to the user.
Illustratively, in this step, content required for page assembly carried by the response message may be filled in the page template, and the display effect of the page elements included in the page template is set according to the configuration information of the page elements, so as to dynamically generate a transaction page, and display the transaction page to the user.
In the embodiment of the invention, the dynamic generation and display of the transaction page on the ATM can be realized through the steps, the compiling efficiency of the transaction page on the ATM is improved, and the same service flow has a trimmable service logic when different branches are realized; meanwhile, the flexibility of the transaction page compiling process on the ATM can be improved through the steps, and the defects of poor program maintainability, difficulty in upgrading and the like caused by hard coding are avoided.
Fig. 3 is a schematic diagram of main blocks of an apparatus for displaying a page according to a third embodiment of the present invention. The apparatus 300 for displaying a page according to the embodiment of the present invention may be disposed in a terminal. Illustratively, the terminal may be an electronic device such as an ATM, a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like, and the server is a server providing service support for the terminal, for example, a server providing financial service support such as depositing and withdrawing, inquiring, transferring, checking balance, and/or paying electricity for the ATM. As shown in fig. 3, an apparatus 300 for displaying a page according to an embodiment of the present invention includes: a data acquisition module 301, a query module 302 and an assembly module 303.
The data obtaining module 301 is configured to initiate a data obtaining request to a server in response to a preset trigger condition, and receive a response message corresponding to the data obtaining request and returned by the server.
For example, the preset trigger condition may be that some trigger operation of the user is detected, such as the user clicking some page control on the currently presented page, or the user scrolling the screen on the currently presented page, and so on. For example, the preset trigger condition may also be that the detected current time meets a time requirement for initiating a data acquisition request to the server at a fixed time. It is to be noted that the present invention is not limited to the above two trigger conditions. In specific implementation, a person skilled in the art can set corresponding trigger conditions according to the use requirements of different application scenarios.
Under the condition that a preset trigger condition is met, the data acquisition module 301 initiates a data acquisition request to the server. In different application scenarios, the meaning of the data acquisition request may be different. For example, in a hydropower charge query scenario, the data acquisition request may be a hydropower charge query request to be paid; in the context of account balance inquiry, the data acquisition request may be an account balance inquiry request. After receiving a data acquisition request of the terminal, the server returns a response message corresponding to the data acquisition request.
The query module 302 is configured to query a page template corresponding to the response code carried in the response packet according to the response code, and then query configuration information of page elements included in the page template according to a pre-configured script.
Wherein the response packet includes: and the response code and the page assemble the required content. The response code can be understood as a type identification code of a response message returned by the server, and the terminal can determine the operation to be taken next according to the response code. Illustratively, the response code may include: response codes representing that the response message is of an 'interaction ending' type, response codes representing that the response message is of a 'interaction refusing' type, and response codes representing that the response message is of a 'interaction continuing' type. It should be noted that the above "end interaction", "reject interaction", and "continue interaction" type response codes are merely exemplary illustrations. In the specific implementation, those skilled in the art can set different types of response codes according to the use requirement. The content required by page assembly can be understood as page data required to be acquired from a server when a page is dynamically assembled.
In the embodiment of the invention, different page templates can be configured in advance for different response codes. The query module 302 may first parse the response packet to parse the response code carried by the response packet. Then, the query module 302 queries the page template corresponding to the response code carried in the response message, and further determines the page elements included in the page template. Illustratively, the page elements included in the page template may include one or more of buttons, input boxes, page titles, and the like arranged on the page.
Further, in an optional example, the querying module 302 queries the page template corresponding to the response message according to the response code carried in the response message includes: the query module 302 queries a first configuration file according to a response code carried in the response message to obtain a page template identifier corresponding to the response code from the first configuration file; the query module 302 queries the page template storage module according to the page template identifier corresponding to the response code to obtain the page template corresponding to the page template identifier.
Next, the query module 302 may call a pre-configured script, and query the configuration information of the page elements included in the page template through the script.
In the embodiment of the present invention, the query module 302 queries the configuration information of the page element included in the page template by using the pre-configured script, which has the advantages of convenient runtime loading and program updating, and is helpful for improving the flexibility of configuration information query, and further is helpful for improving the flexibility of dynamically generating a page.
And the assembling module 303 is configured to assemble a page according to the page template, the configuration information of the page elements included in the page template, and the content required by page assembly carried in the response message, and display the assembled page.
The assembling module 303 may dynamically generate a page according to the page template, the configuration information of the page elements included in the page template, and the content required by the page assembly carried in the response message, and display the dynamically generated page to the user.
In the embodiment of the invention, the flexibility in the subsequent generation of the page is improved by respectively configuring the page template and the configuration information of the page elements contained in the page template; furthermore, the query module queries a corresponding page template according to a response code carried by a response message corresponding to the data acquisition request returned by the server, then queries configuration information of page elements contained in the page template according to a pre-configured script, and assembles a page according to the page template, the configuration information of the page elements contained in the page template, and content required by page assembly carried by the response message through the assembly module, so that dynamic generation and display of the page can be realized, page compilation efficiency and flexibility of a page compilation process are improved, and defects of poor program maintainability, difficulty in upgrading and the like caused by hard coding are avoided.
Fig. 4 shows an exemplary system architecture 400 of a method of presenting pages or an apparatus for presenting pages to which embodiments of the invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 401, 402, 403 to interact with the server 405 via the network 704 to receive or send messages or the like. The terminal devices 401, 402, and 403 may have various communication client applications installed thereon, such as a financial service application, a shopping application, a web browser application, a search application, an instant messenger, a mailbox client, social platform software, and the like.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to ATM machines, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, such as a background management server that supports financial services applications or websites browsed by users using the terminal devices 401, 402, 403. The background management server can process the transaction request and feed back a processing result (for example, a response message corresponding to the transaction request) to the terminal device, and the terminal device dynamically generates a transaction page according to the response message and displays the transaction page to the user.
It should be noted that the method for displaying a page provided by the embodiment of the present invention is generally executed by a terminal device, and accordingly, the apparatus for displaying a page is generally disposed in the terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The computer system illustrated in FIG. 5 is only an example and should not impose any limitations on the scope of use or functionality of embodiments of the invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a data acquisition module, a query module, and an assembly module. The names of these modules do not form a limitation on the modules themselves under certain circumstances, for example, a data acquisition module may also be described as a "module that initiates a data acquisition request and receives a response message corresponding to the data acquisition request returned by the server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: responding to a preset trigger condition, a terminal initiates a data acquisition request to a server and receives a response message which is returned by the server and corresponds to the data acquisition request; wherein the response packet includes: the response code and the page are assembled to obtain the required content; the terminal queries a corresponding page template according to a response code carried by the response message, and then queries configuration information of page elements contained in the page template according to a pre-configured script; and the terminal assembles the page according to the page template, the configuration information of the page elements contained in the page template and the content required by the page assembly carried by the response message, and displays the assembled page.
According to the technical scheme of the embodiment of the invention, the dynamic generation and display of the page can be realized, the page programming efficiency and the flexibility of the page programming process are improved, and the defects of poor program maintainability, difficult upgrading and the like caused by hard coding are avoided.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of presenting a page, the method comprising:
responding to a preset trigger condition, a terminal initiates a data acquisition request to a server and receives a response message which is returned by the server and corresponds to the data acquisition request; wherein the response packet includes: the response code and the page are assembled to obtain the required content;
the terminal queries a corresponding page template according to a response code carried by the response message, and then queries configuration information of page elements contained in the page template according to a pre-configured script;
and the terminal assembles the page according to the page template, the configuration information of the page elements contained in the page template and the content required by the page assembly carried by the response message, and displays the assembled page.
2. The method of claim 1, wherein the step of the terminal querying the corresponding page template according to the response code carried in the response message comprises:
the terminal inquires a first configuration file according to a response code carried by the response message so as to acquire a page template identifier corresponding to the response code from the first configuration file; and the terminal queries a page template storage module according to the page template identification corresponding to the response code so as to obtain the page template corresponding to the page template identification.
3. The method according to claim 1, wherein the querying out the configuration information of the page elements included in the page template according to the pre-configured script comprises:
and querying a second configuration file according to a pre-configured script so as to query the configuration information of the page elements contained in the page template from the second configuration file.
4. The method of claim 3, wherein querying the second configuration file according to the preconfigured script comprises:
firstly, inquiring a second configuration file with high calling frequency according to a pre-configured script so as to inquire the configuration information of the page elements contained in the page template from the second configuration file with high calling frequency; if the configuration information of the page elements contained in the page template cannot be inquired in the second configuration file with high calling frequency, inquiring the second configuration file with low calling frequency according to a pre-configured script so as to inquire the configuration information of the page elements contained in the page template from the second configuration file with low calling frequency and update the calling frequency of the configuration file.
5. The method of claim 4, further comprising:
and configuring the configuration information of the page elements contained in the page template through a visual interface for each type of page template.
6. The method of any of claims 1 to 5, wherein the terminal comprises an ATM machine and the page template comprises at least one of the following types: a transaction selection page template, an element input page template, an information confirmation page template and a transaction result page template.
7. An apparatus for displaying pages, the apparatus comprising:
the data acquisition module is used for responding to a preset trigger condition, initiating a data acquisition request to a server and receiving a response message which is returned by the server and corresponds to the data acquisition request; wherein the response packet includes: the response code and the page are assembled to obtain the required content;
the query module is used for querying a corresponding page template according to the response code carried by the response message and then querying the configuration information of the page elements contained in the page template according to a pre-configured script;
and the assembling module is used for assembling the page according to the page template, the configuration information of the page elements contained in the page template and the content required by page assembly carried by the response message, and displaying the assembled page.
8. The apparatus according to claim 7, wherein the querying module queries the page template corresponding to the response code carried in the response packet according to the response code includes:
the query module queries a first configuration file according to a response code carried by the response message so as to acquire a page template identifier corresponding to the response code from the first configuration file; and the query module queries a page template storage module according to the page template identifier corresponding to the response code so as to obtain the page template corresponding to the page template identifier.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202010651531.2A 2020-07-08 2020-07-08 Page display method and device Pending CN111881392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010651531.2A CN111881392A (en) 2020-07-08 2020-07-08 Page display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010651531.2A CN111881392A (en) 2020-07-08 2020-07-08 Page display method and device

Publications (1)

Publication Number Publication Date
CN111881392A true CN111881392A (en) 2020-11-03

Family

ID=73150434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010651531.2A Pending CN111881392A (en) 2020-07-08 2020-07-08 Page display method and device

Country Status (1)

Country Link
CN (1) CN111881392A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010159A (en) * 2021-03-23 2021-06-22 中国建设银行股份有限公司 Script-based task processing method and device
CN113139013A (en) * 2021-03-25 2021-07-20 北京思特奇信息技术股份有限公司 Method and system for dynamically configuring view display
CN115550232A (en) * 2022-09-19 2022-12-30 中国银行股份有限公司 Test method and device for simulating report sending
CN117251661A (en) * 2023-11-16 2023-12-19 建信金融科技有限责任公司 Webpage file generation method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130191435A1 (en) * 2012-01-19 2013-07-25 Microsoft Corporation Client-Side Minimal Download and Simulated Page Navigation Features
CN107291940A (en) * 2017-07-07 2017-10-24 腾讯科技(深圳)有限公司 Content of pages management method, device and associated server
CN109343851A (en) * 2018-09-26 2019-02-15 中国平安人寿保险股份有限公司 Page generation method, device, computer equipment and storage medium
CN110555185A (en) * 2019-09-09 2019-12-10 中国工商银行股份有限公司 Page customization method and system based on PC client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130191435A1 (en) * 2012-01-19 2013-07-25 Microsoft Corporation Client-Side Minimal Download and Simulated Page Navigation Features
CN107291940A (en) * 2017-07-07 2017-10-24 腾讯科技(深圳)有限公司 Content of pages management method, device and associated server
CN109343851A (en) * 2018-09-26 2019-02-15 中国平安人寿保险股份有限公司 Page generation method, device, computer equipment and storage medium
CN110555185A (en) * 2019-09-09 2019-12-10 中国工商银行股份有限公司 Page customization method and system based on PC client

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010159A (en) * 2021-03-23 2021-06-22 中国建设银行股份有限公司 Script-based task processing method and device
CN113139013A (en) * 2021-03-25 2021-07-20 北京思特奇信息技术股份有限公司 Method and system for dynamically configuring view display
CN113139013B (en) * 2021-03-25 2024-03-19 北京思特奇信息技术股份有限公司 Method and system for displaying dynamic configuration view
CN115550232A (en) * 2022-09-19 2022-12-30 中国银行股份有限公司 Test method and device for simulating report sending
CN117251661A (en) * 2023-11-16 2023-12-19 建信金融科技有限责任公司 Webpage file generation method, device, computer equipment and storage medium
CN117251661B (en) * 2023-11-16 2024-02-27 建信金融科技有限责任公司 Webpage file generation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111881392A (en) Page display method and device
CN107844324B (en) Client page jump processing method and device
CN112527649A (en) Test case generation method and device
CN110706093A (en) Accounting processing method and device
CN110795147A (en) Interface protocol file management method and device
CN111831461A (en) Method and device for processing business process
CN111881329A (en) Account balance management method and system
CN111444077A (en) Method and device for generating flow node test data
CN113010405A (en) Application program testing method and device
CN111984234A (en) Method and device for processing work order
CN112947919A (en) Method and device for constructing service model and processing service request
CN114500481A (en) Service request processing method, system and device
CN110807535A (en) Construction method and construction device of unified reservation platform and unified reservation platform system
CN112115738A (en) Image identification method and device applied to browser end
CN109901934A (en) The method and apparatus for generating interface help document
CN113312900A (en) Data verification method and device
CN113741888A (en) Service processing method and device
CN113779122A (en) Method and apparatus for exporting data
CN113486032A (en) Date switching method and device, electronic equipment and computer readable medium
CN112925521A (en) Interface generation method and device
CN109840073B (en) Method and device for realizing business process
CN112947918A (en) Data display method and device
CN113448960A (en) Method and device for importing form file
CN112884427A (en) Process management method and device supporting multiple service sources
CN112131095A (en) Pressure testing method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221010

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.