CN111881392A - Page display method and device - Google Patents
Page display method and device Download PDFInfo
- 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
- response message
- template
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F19/00—Complete 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/20—Automatic teller machines [ATMs]
- G07F19/206—Software aspects at ATMs
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F19/00—Complete 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/20—Automatic teller machines [ATMs]
- G07F19/211—Software architecture within ATMs or in relation to the ATM network
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/541—Client-server
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/545—Gui
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 pages, and relates to the technical field of computers. The method includes: in response to a preset trigger condition, a terminal initiates a data acquisition request to a server, and receives a response message corresponding to the data acquisition request returned by the server; The response code queries the corresponding page template, and then queries the configuration information of the page elements included in the page template according to the preconfigured script; the terminal according to the page template and the page elements included in the page template. The configuration information and the content required for page assembly carried in the response message assemble the page, and display the assembled page. Through the above steps, the dynamic generation and display of the page can be realized, the efficiency of page preparation and the flexibility of the page preparation process can be improved, and defects such as poor program maintainability and difficulty in upgrading caused by hard coding can be avoided.
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种展示页面的方法和装置。The present invention relates to the field of computer technology, and in particular, to a method and apparatus for displaying pages.
背景技术Background technique
目前,银行ATM设备上的交易页面上集成了很多个人金融服务,比如存取款、查询、转账、查余额、交水电费等等。在现有技术中,在针对银行ATM机上的交易页面进行开发时,主要采用硬编码的方式来开发交易页面。At present, many personal financial services are integrated on the transaction page of bank ATM equipment, such as deposit and withdrawal, inquiry, transfer, balance inquiry, payment of utility bills and so on. In the prior art, when developing a transaction page on a bank ATM machine, the transaction page is mainly developed in a hard-coded manner.
在实现本发明的过程中,发明人发现现有技术中至少存在以下问题:在交易页面实际开发过程中,每个分支行对于同样的交易流程可能有不同的分支和显示逻辑,如果采用硬编码方式则需要针对不同的分支和显示逻辑分别进行页面开发,引入了大量重复开发的工作,不啻于对人力和工作量的极大浪费,而且代码也会变得臃肿而难以维护;另外,采用硬编码方式进行交易页面开发导致程序可维护性较差,不易升级。In the process of implementing the present invention, the inventor found that there are at least the following problems in the prior art: in the actual development process of the transaction page, each branch line may have different branches and display logic for the same transaction process. The method requires separate page development for different branches and display logic, introducing a lot of repetitive development work, which is equivalent to a great waste of manpower and workload, and the code will become bloated and difficult to maintain; The coding method for transaction page development leads to poor program maintainability and is not easy to upgrade.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明提供一种展示页面的方法和装置,能够实现页面的动态生成、展示,提升页面编制效率以及页面编制过程的灵活性,避免硬编码带来的程序可维护性较差、不易升级等缺陷。In view of this, the present invention provides a method and device for displaying a page, which can realize the dynamic generation and display of the page, improve the page compilation efficiency and the flexibility of the page compilation process, and avoid the poor program maintainability caused by hard coding, Not easy to upgrade and other defects.
为实现上述目的,根据本发明的一个方面,提供了一种展示页面的方法。To achieve the above object, according to an aspect of the present invention, a method for displaying a page is provided.
本发明的展示页面的方法包括:响应于预设的触发条件,终端向服务端发起数据获取请求,并接收所述服务端返回的对应于所述数据获取请求的响应报文;其中,所述响应报文包括:响应码、页面组装所需内容;终端根据所述响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息;终端根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面,并将组装得到的页面进行展示。The method for displaying a page of the present invention includes: in response to a preset trigger condition, a terminal initiates a data acquisition request to a server, and receives a response message corresponding to the data acquisition request returned by the server; wherein, the The response message includes: the response code and the content required for page assembly; the terminal queries the corresponding page template according to the response code carried in the response message, and then queries the page template according to the preconfigured script. Configuration information of page elements; the terminal assembles the page according to the page template, the configuration information of the page elements included in the page template, and the content required for page assembly carried in the response message, and displays the assembled page.
可选地,所述终端根据所述响应报文携带的响应码查询出与之对应的页面模板包括:所述终端根据所述响应报文携带的响应码查询第一配置文件,以从所述第一配置文件中获取与所述响应码对应的页面模板标识;所述终端根据与所述响应码对应的页面模板标识查询页面模板存储模块,以获取与所述页面模板标识对应的页面模板。Optionally, the terminal querying the corresponding page template according to the response code carried in the response packet includes: the terminal querying the first configuration file according to the response code carried in the response packet, so as to obtain the corresponding page template from the The page template identifier corresponding to the response code is obtained in the first configuration file; the terminal 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.
可选地,所述根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息包括:根据预先配置的脚本查询第二配置文件,以从所述第二配置文件中查询出所述页面模板所包含的页面元素的配置信息。Optionally, the querying the configuration information of the page elements included in the page template according to the preconfigured script includes: querying the second configuration file according to the preconfigured script, so as to query the second configuration file for the configuration information. The configuration information of the page elements included in the page template.
可选地,所述根据预先配置的脚本查询第二配置文件包括:先根据预先配置的脚本对调用频次高的第二配置文件进行查询,以从所述调用频次高的第二配置文件中查询出所述页面模板所包含的页面元素的配置信息;若在调用频次高的第二配置文件中查询不出所述页面模板所包含的页面元素的配置信息,则根据预先配置的脚本对调用频次低的第二配置文件进行查询,以从所述调用频次低的第二配置文件中查询出所述页面模板所包含的页面元素的配置信息,并对所述配置文件的调用频次进行更新。Optionally, the querying the second configuration file according to the preconfigured script includes: first querying the second configuration file with a high calling frequency according to the preconfigured script, so as to query the second configuration file with a high calling frequency. The configuration information of the page elements contained in the page template is obtained; if the configuration information of the page elements contained in the page template cannot be queried in the second configuration file with a high calling frequency, the calling frequency is calculated according to the preconfigured script. The low second configuration file is queried, so as to query the configuration information of the page elements included in the page template from the second configuration file with the low calling frequency, and the calling frequency of the configuration file is updated.
可选地,所述方法还包括:对于每种类型的页面模板,通过可视化界面配置所述页面模板所包含的页面元素的配置信息。Optionally, the method further includes: for each type of page template, configuring configuration information of page elements included in the page template through a visual interface.
可选地,所述终端包括ATM机,所述页面模板包括以下至少一种类型:交易选择页面模板、要素输入页面模板、信息确认页面模板、交易结果页面模板。Optionally, the terminal includes an ATM machine, and 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.
为实现上述目的,根据本发明的另一个方面,提供了一种展示页面的装置。To achieve the above object, according to another aspect of the present invention, a device for displaying pages is provided.
本发明的展示页面的装置包括:数据获取模块,用于响应于预设的触发条件,向服务端发起数据获取请求,并接收所述服务端返回的对应于所述数据获取请求的响应报文;其中,所述响应报文包括:响应码、页面组装所需内容;查询模块,用于根据所述响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息;组装模块,用于根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面,并将组装得到的页面进行展示。The device for displaying a page of the present invention includes: a data acquisition module, configured to initiate a data acquisition request to a server in response to a preset trigger condition, and receive a response message corresponding to the data acquisition request returned by the server ; wherein, the response message includes: a response code and content required for page assembly; a query module is used to query the corresponding page template according to the response code carried by the response message, and then, according to a preconfigured script The configuration information of the page elements included in the page template is queried; the assembly module is configured to assemble the required content according to the page template, the configuration information of the page elements included in the page template, and the page carried in the response message Assemble pages and display the assembled pages.
可选地,所述查询模块根据所述响应报文携带的响应码查询出与之对应的页面模板包括:所述查询模块根据所述响应报文携带的响应码查询第一配置文件,以从所述第一配置文件中获取与所述响应码对应的页面模板标识;所述查询模块根据与所述响应码对应的页面模板标识查询页面模板存储模块,以获取与所述页面模板标识对应的页面模板。Optionally, the querying module querying the corresponding page template according to the response code carried in the response message includes: the querying module querying the first configuration file according to the response code carried in the response message, so as to retrieve the corresponding page template from the response code. The page template identifier corresponding to the response code is obtained from the first configuration file; the query module queries the page template storage module according to the page template identifier corresponding to the response code to obtain the page template identifier corresponding to the page template identifier. page template.
为实现上述目的,根据本发明的再一个方面,提供了一种电子设备。To achieve the above object, according to yet another aspect of the present invention, an electronic device is provided.
本发明的电子设备,包括:一个或多个处理器;以及,存储装置,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明的展示页面的方法。The electronic device of the present invention includes: one or more processors; and a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, all the programs are executed. The one or more processors described above implement the method for displaying pages of the present invention.
为实现上述目的,根据本发明的又一个方面,提供了一种计算机可读介质。To achieve the above object, according to yet another aspect of the present invention, a computer-readable medium is provided.
本发明的计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现本发明的展示页面的方法。The computer-readable medium of the present invention has a computer program stored thereon, and when the program is executed by a processor, the method for displaying a page of the present invention is implemented.
上述发明中的一个实施例具有如下优点或有益效果:通过响应于预设的触发条件,终端向服务端发起数据获取请求,并接收所述服务端返回的对应于所述数据获取请求的响应报文,终端根据所述响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息,终端根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面,并将所述页面进行展示这些步骤,能够实现页面的动态生成、展示,提升页面编制效率以及页面编制过程的灵活性,避免硬编码带来的程序可维护性较差、不易升级等缺陷。An embodiment of the above invention has the following advantages or beneficial effects: by responding to a preset trigger condition, the terminal initiates a data acquisition request to the server, and receives a response report corresponding to the data acquisition request returned by the server. text, the terminal queries the corresponding page template according to the response code carried in the response packet, and then queries the configuration information of the page elements contained in the page template according to the pre-configured script, and the terminal according to the page template , the configuration information of the page elements contained in the page template, and the content required for page assembly carried by the response message to assemble the page, and display the page. These steps can realize the dynamic generation and display of the page, and improve the page compilation. Efficiency and flexibility of the page compilation process, to avoid defects such as poor program maintainability and difficult upgrades caused by hard coding.
上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.
附图说明Description of drawings
附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:
图1是根据本发明第一实施例的展示页面的方法的主要流程示意图;FIG. 1 is a schematic flow chart of a method for displaying a page according to a first embodiment of the present invention;
图2是根据本发明第二实施例的展示页面的方法的主要流程示意图;FIG. 2 is a schematic flowchart of a main flow of a method for displaying a page according to a second embodiment of the present invention;
图3是根据本发明第三实施例的展示页面的装置的主要模块示意图;3 is a schematic diagram of main modules of an apparatus for displaying pages according to a third embodiment of the present invention;
图4是本发明实施例可以应用于其中的示例性系统架构图;4 is an exemplary system architecture diagram to which an embodiment of the present invention may be applied;
图5是适于用来实现本发明实施例的电子设备的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. 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 from the following description for clarity and conciseness.
需要指出的是,在不影响本发明实施的情况下,本发明中的各个实施例以及实施例中的各个技术特征可以相互组合。It should be noted that, without affecting the implementation of the present invention, various embodiments of the present invention and various technical features of the embodiments may be combined with each other.
在详细介绍本发明的实施例之前,首先对本发明实施例涉及的部分技术术语进行说明。Before introducing the embodiments of the present invention in detail, some technical terms involved in the embodiments of the present invention are first described.
ATM机:自动柜员机,是指银行在不同地点设置的一种小型机器,让客户可以通过该机器进行提款、存款、转账等银行服务。ATM machine: Automated teller machine refers to a small machine set up by banks in different locations, allowing customers to perform banking services such as withdrawal, deposit, and transfer through the machine.
脚本:脚本是一种纯文本保存的程序,是批处理文件的延伸,一个脚本通常是解释运行而非编译。Script: A script is a program saved in plain text, an extension of a batch file. A script is usually interpreted rather than compiled.
图1是根据本发明第一实施例的展示页面的方法的主要流程示意图。如图1所示,本发明实施例的展示页面的方法包括:FIG. 1 is a schematic flowchart of a main flow of a method for displaying a page according to a first embodiment of the present invention. As shown in FIG. 1 , a method for displaying a page according to an embodiment of the present invention includes:
步骤S101:响应于预设的触发条件,终端向服务端发起数据获取请求,并接收所述服务端返回的对应于所述数据获取请求的响应报文。Step S101: In response to a preset trigger condition, a terminal initiates a data acquisition request to a server, and receives a response message corresponding to the data acquisition request returned by the server.
示例性地,所述预设的触发条件可以为检测到用户的某种触发操作,比如用户在当前展示页面上点击某个页面控件,或者用户在当前展示页面上滚动屏幕的操作等等。示例性地,所述预设的触发条件还可以为检测到当前时间满足定时向服务端发起数据获取请求的时间要求。需要指出的是,本发明并不限于以上两种触发条件。在具体实施时,本领域技术人员可根据不同应用场景的使用需求,设置相应的触发条件。Exemplarily, the preset trigger condition may be detection of a certain trigger operation of the user, such as the user clicking a certain page control on the currently displayed page, or the user's operation of scrolling the screen on the currently displayed page, and so on. Exemplarily, the preset trigger condition may also be detecting that the current time meets the time requirement for periodically sending a data acquisition request to the server. It should be noted that the present invention is not limited to the above two triggering conditions. During specific implementation, those skilled in the art can set corresponding trigger conditions according to the usage requirements of different application scenarios.
示例性地,所述终端可以为ATM机、智能手机、平板电脑、膝上型便携计算机和台式计算机等等电子设备,所述服务端为给所述终端提供服务支持的服务器,例如为ATM机提供存取款、查询、转账、查余额、和/或交水电费等金融类服务支持的服务器。Exemplarily, the terminal may be an electronic device such as an ATM machine, a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like, and the service end is a server that provides service support for the terminal, such as an ATM machine. A server that provides financial services such as deposit and withdrawal, inquiry, transfer, balance inquiry, and/or payment of utility bills.
在满足预设的触发条件的情况下,终端向服务端发起数据获取请求。在不同的应用场景下,所述数据获取请求的含义可能不同。例如,在水电费查询场景下,所述数据获取请求可以为待缴水电费查询请求;在账户余额查询场景下,所述数据获取请求可以为账户余额查询请求。在接收到终端的数据获取请求后,服务端返回与所述数据获取请求对应的响应报文。When the preset trigger condition is satisfied, 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 utility bill query scenario, the data acquisition request may be a to-be-paid utility bill query request; in an account balance query scenario, the data acquisition request may be an account balance query request. After receiving the data acquisition request from the terminal, the server returns a response message corresponding to the data acquisition request.
步骤S102:终端根据所述响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息。Step S102: The terminal queries the corresponding page template according to the response code carried in the response message, and then queries the configuration information of page elements included in the page template according to a preconfigured script.
其中,所述响应报文包括:响应码、页面组装所需内容。其中,所述响应码可理解为服务端返回的响应报文的类型标识码,终端可根据该响应码决定下一步应该采取的操作。示例性地,所述响应码可包括:代表响应报文为“结束交互”类型的响应码、代表响应报文为“拒绝交互”类型的响应码、代表响应报文为“继续交互”类型的响应码。需要指出的是,以上“结束交互”、“拒绝交互”、以及“继续交互”类型的响应码仅为示例性说明。在具体实施时,本领域技术人员可根据使用需求设置不同类型的响应码。所述页面组装所需内容,可理解为在动态组装页面时需要从服务端获取的页面数据。Wherein, the response message includes: response code and content required for page assembly. The response code can be understood as the type identification code of the response message returned by the server, and the terminal can decide the next action according to the response code. Exemplarily, the response codes may include: a response code representing the response message of the "end interaction" type, a response code representing the response message of the "reject interaction" type, and a response message representing the response message of the "continue interaction" type. response code. It should be pointed out that the above response codes of "end interaction", "reject interaction", and "continue interaction" are only exemplary descriptions. During specific implementation, those skilled in the art can set different types of response codes according to usage requirements. The content required for page assembly can be understood as page data that needs to be acquired from the server when the page is dynamically assembled.
在本发明实施例中,对于不同的响应码,可预先配置不同的页面模板。在步骤S102中,终端可先对响应报文进行解析,以解析出其所携带的响应码。然后,终端根据响应报文携带的响应码查询出与之对应的页面模板,进而确定出该页面模板所包含的页面元素。示例性地,所述页面模板所包含的页面元素可包括页面上设置的按钮、输入框、页面标题等一个或多个元素的组合。接下来,终端可调用预先配置的脚本,并通过所述脚本查询出该页面模板所包含的页面元素的配置信息。In this embodiment of the present invention, different page templates may be preconfigured for different response codes. In step S102, the terminal may first parse the response message to obtain the response code carried by it. Then, the terminal queries the corresponding page template according to the response code carried in the response message, and then determines the page elements included in the page template. Exemplarily, the page elements included in the page template may include a combination of one or more elements such as buttons, input boxes, and page titles set on the page. Next, the terminal may call a preconfigured 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 configuration information of the page elements included in the page template is queried by adopting a preconfigured script, which has the advantages of runtime loading, convenient program update, and helps to improve the flexibility of configuration information query, thereby helping To improve the flexibility of dynamically generated pages.
步骤S103:终端根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面,并将组装得到的页面进行展示。Step S103: The terminal assembles the page according to the page template, the configuration information of the page elements included in the page template, and the content required for page assembly carried in the response message, and displays the assembled page.
在该步骤中,终端可根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容动态生成页面,并将动态生成的页面展示给用户。In this step, the terminal can 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 for page assembly carried in the response message, and display the dynamically generated page to the user .
在本发明实施例中,通过分别配置页面模板、以及页面模板所包含的页面元素的配置信息,有助于提高后续生成页面时的灵活性;进一步,终端根据服务端返回的对应于数据获取请求的响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息,并根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面等步骤,能够实现页面的动态生成、展示,提升页面编制效率以及页面编制过程的灵活性,避免硬编码带来的程序可维护性较差、不易升级等缺陷。In the embodiment of the present invention, by separately configuring the page template and the configuration information of the page elements included in the page template, it is helpful to improve the flexibility in the subsequent generation of the page; further, the terminal returns the corresponding data acquisition request according to the server. The corresponding page template is queried from the response code carried in the response message, and then the configuration information of the page elements contained in the page template is queried according to the preconfigured script, and The configuration information of the page elements contained in the page, as well as the steps of assembling the page with the content required for page assembly carried in the response message, can realize the dynamic generation and display of the page, improve the page compilation efficiency and the flexibility of the page compilation process, and avoid hard-coded tapes. The program comes with defects such as poor maintainability and not easy to upgrade.
图2是根据本发明第二实施例的展示页面的方法的主要流程示意图。在本发明实施例中,终端为ATM机,且该ATM机包括主程序模块、动态页面展示逻辑控制模块;服务端为设置在银行一侧的服务器;终端向服务端发送的数据获取请求具体称为“交易请求”。如图2所示,本发明实施例的展示页面的方法包括:FIG. 2 is a schematic flow chart of a method for displaying a page according to a second embodiment of the present invention. In the embodiment of the present invention, the terminal is an ATM machine, and the ATM machine includes a main program module and a dynamic page display logic control module; the server is a server set on the bank side; the data acquisition request sent by the terminal to the server is specifically called for "Transaction Request". As shown in FIG. 2 , the method for displaying a page according to the embodiment of the present invention includes:
步骤S201:响应于用户的触发操作,ATM机的主程序模块向服务端发送交易请求。Step S201: In response to the user's triggering operation, the main program module of the ATM machine sends a transaction request to the server.
示例性地,所述用户的触发操作可以为用户在当前展示页面上点击某个页面控件,或者用户在当前展示页面上滚动屏幕的操作等等。需要指出的是,本发明并不限于以上两种类型的触发操作。在具体实施时,本领域技术人员可根据不同应用场景的使用需求,对相应类型的触发操作进行响应。Exemplarily, the triggering operation of the user may be that the user clicks a certain page control on the currently displayed page, or the user scrolls the screen on the currently displayed page, and so on. It should be noted that the present invention is not limited to the above two types of trigger operations. During specific implementation, those skilled in the art can respond to corresponding types of trigger operations according to the usage requirements of different application scenarios.
在检测到指定类型的触发操作情况下,ATM机的主程序模块向服务端发起交易请求。在不同的应用场景下,所述交易请求的含义可能不同。例如,在用户通过ATM机查询水电费的场景下,所述交易请求可以为待缴水电费查询请求;在用户通过ATM机查询账户余额的场景下,所述交易请求可以为账户余额查询请求。在接收到ATM机的交易请求后,服务端返回与所述交易请求对应的响应报文。When a trigger operation of a specified type is detected, the main program module of the ATM initiates a transaction request to the server. In different application scenarios, the meaning of the transaction request may be different. For example, in the scenario where the user inquires about utility bills through an ATM, the transaction request may be an inquiry request for to-be-paid utility bills; in a scenario in which the user inquires about the account balance via an ATM, the transaction request may be an account balance inquiry request. After receiving the transaction request from the ATM, the server returns a response message corresponding to the transaction request.
步骤S202:ATM机的主程序模块将服务端返回的对应于所述交易请求的响应报文发送至ATM机上的动态页面展示逻辑控制模块。Step S202: the main program module of the ATM machine sends the response message corresponding to the transaction request returned by the server to the dynamic page display logic control module on the ATM machine.
其中,所述响应报文包括:响应码、页面组装所需内容。其中,所述响应码可理解为服务端返回的响应报文的类型标识码,终端可根据该响应码决定下一步应该采取的操作。示例性地,所述响应码可包括:代表响应报文为“结束交互”类型的响应码、代表响应报文为“拒绝交互”类型的响应码、代表响应报文为“继续交互”类型的响应码。需要指出的是,以上“结束交互”、“拒绝交互”、以及“继续交互”类型的响应码仅为示例性说明。在具体实施时,本领域技术人员可根据使用需求设置不同类型的响应码。所述页面组装所需内容,可理解为在动态组装页面时需要从服务端获取的页面数据。Wherein, the response message includes: response code and content required for page assembly. The response code can be understood as the type identification code of the response message returned by the server, and the terminal can decide the next action according to the response code. Exemplarily, the response codes may include: a response code representing the response message of the "end interaction" type, a response code representing the response message of the "reject interaction" type, and a response message representing the response message of the "continue interaction" type. response code. It should be pointed out that the above response codes of "end interaction", "reject interaction", and "continue interaction" are only exemplary descriptions. During specific implementation, those skilled in the art can set different types of response codes according to usage requirements. The content required for page assembly can be understood as page data that needs to be acquired from the server when the page is dynamically assembled.
进一步,在步骤S202之前,本发明实施例的方法还可包括以下步骤:查询动态页面展示主逻辑控制模块的开关标识,并确认所述开关标识的当前取值为第一取值。其中,所述开关标识的当前取值为第一取值表明所述动态页面展示主逻辑控制模块为开启状态,即当前交易类型或者说页面类型支持动态生成页面逻辑;所述开关标识的当前取值为第二取值表明所述动态页面展示主逻辑控制模块为关闭状态,即当前交易类型或者说页面类型不支持动态生成页面逻辑。在本发明实施例中,通过设置动态页面展示主逻辑控制模块的开关标识,便于选择性地调用动态页面展示主逻辑控制模块,进而有助于提高动态生成页面的灵活性。Further, before step S202, the method of the embodiment of the present invention may further include the following steps: query the dynamic page to display the switch identifier of the main logic control module, and confirm that the current value of the switch identifier is the first value. Wherein, the current value of the switch identifier is the first value, indicating 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 A value of the second value 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 dynamic generation of page logic. In the embodiment of the present invention, by setting the switch identifier of the dynamic page display main logic control module, it is convenient to selectively call the dynamic page display main logic control module, thereby helping to improve the flexibility of dynamically generating pages.
步骤S203:动态页面展示逻辑控制模块对所述响应报文进行解析,并根据解析出的响应码查询第一配置文件,以从所述第一配置文件中获取与所述响应码对应的页面模板标识。Step S203: The dynamic page display logic control module parses the response message, and queries a first configuration file according to the parsed response code, so as to obtain a page template corresponding to the response code from the first configuration file logo.
示例性地,第一配置文件可包含预先配置的、与不同响应码相对应的页面模板标识。在该步骤中,动态页面展示逻辑控制模块对服务端返回的响应报文进行解析,以解析出所述响应报文携带的响应码以及页面组装所需内容。然后,根据解析出的响应码查询第一配置文件,以获取与所述响应码对应的页面模板标识。Exemplarily, the first configuration file may contain pre-configured page template identifiers corresponding to different response codes. In this step, the dynamic page display logic control module parses the response message returned by the server to parse out the response code carried in the response message and the content required for page assembly. Then, query the first configuration file according to the parsed response code 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 step: loading the first configuration file into the memory.
步骤S204:动态页面展示逻辑控制模块获取与所述页面模板标识对应的页面模板,然后调用配置脚本查询第二配置文件,以得到所述页面模板所包含的页面元素的配置信息。Step S204: The dynamic page display logic control module obtains the page template corresponding to the page template identifier, and then invokes a configuration script to query the second configuration file to obtain configuration information of page elements included in the page template.
在本发明实施例中,对于不同的响应码,可预先配置不同的页面模板。示例性地,所述页面模板包括以下至少一种类型:交易选择页面模板、要素输入页面模板、信息确认页面模板、交易结果页面模板。In this embodiment of the present invention, different page templates may be preconfigured for different response codes. Exemplarily, 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 presentation logic control module may query a page template storage module (such as a database or other types of storage modules) according to the page template identifier to obtain a page template corresponding to the page template identifier. Next, the dynamic page presentation logic control module may call a preconfigured script, and query the second configuration file through the script to obtain configuration information of page elements included in the page template. Wherein, the second configuration file may include: configuration information of page elements.
在一个可选实施方式中,所述动态页面展示逻辑控制模块调用配置脚本查询第二配置文件,以得到所述页面模板所包含的页面元素的配置信息包括:根据预先配置的脚本对存储的所有第二配置文件依次进行查询,以查询出所述页面模板所包含的页面元素的配置信息。In an optional implementation manner, the dynamic page presentation logic control module invokes a configuration script to query the second configuration file, so as to obtain the configuration information of the page elements included in the page template, which includes: according to a preconfigured script, all stored The second configuration file is queried in sequence to find out the configuration information of the page elements included in the page template.
在另一个可选实施方式中,所述动态页面展示逻辑控制模块调用配置脚本查询第二配置文件,以得到所述页面模板所包含的页面元素的配置信息包括:动态页面展示逻辑控制模块先根据预先配置的脚本对调用频次高的第二配置文件进行查询,以从所述调用频次高的第二配置文件中查询出所述页面模板所包含的页面元素的配置信息;若在调用频次高的第二配置文件中查询不出所述页面模板所包含的页面元素的配置信息,则动态页面展示逻辑控制模块根据预先配置的脚本对调用频次低的第二配置文件进行查询,以从所述调用频次低的第二配置文件中查询出所述页面模板所包含的页面元素的配置信息,并对所述配置文件的调用频次进行更新。具体实施时,可将调用频次大于预设阈值的第二配置文件作为调用频次高的文件,将调用频次小于或等于预设阈值的第二配置文件作为调用频次低的文件。通过该可选实施方式,有助于提高页面元素配置信息的查询效率,进而有助于提高动态页面生成的处理效率。In another optional embodiment, the dynamic page display logic control module invokes a configuration script to query the second configuration file, so as to obtain the configuration information of the page elements included in the page template, comprising: the dynamic page display logic control module first according to The preconfigured script queries the second configuration file with high calling frequency to query the configuration information of page elements included 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 queried in the second configuration file, the dynamic page display logic control module queries the second configuration file with a low calling frequency according to the preconfigured script, so as to retrieve the configuration information from the calling The configuration information of the page elements included in the page template is queried from the second configuration file with low frequency, and the calling frequency of the configuration file is updated. In specific implementation, the second configuration file whose calling frequency is greater than the preset threshold can be regarded as the file with high calling frequency, and the second configuration file whose calling frequency is less than or equal to the preset threshold can be regarded as the file with low calling frequency. This optional implementation helps to improve the query efficiency of page element configuration information, and further helps to improve the processing efficiency of dynamic page generation.
进一步,本发明实施例的方法还可包括以下步骤:对于每种类型的页面模板,通过可视化界面配置所述页面模板所包含的页面元素的配置信息。通过借助可视化界面配置页面模板所包含的页面元素的配置信息,不仅降低了配置难度,提高了配置体验,而且便于对页面元素的配置信息进行管理。Further, the method of the embodiment of the present invention may further include the following steps: for each type of page template, configure configuration information of page elements included in the page template through a visual interface. By configuring the configuration information of the page elements included 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.
步骤S205:动态页面展示逻辑控制模块根据所述页面模板、页面元素的配置信息、以及响应报文携带的页面组装所需内容组装交易页面,并将所述交易页面展示给用户。Step S205: The dynamic page display logic control module assembles a transaction page according to the page template, configuration information of page elements, and content required for page assembly carried in the response message, and displays the transaction page to the user.
示例性地,在该步骤中,可将响应报文携带的页面组装所需内容填充在页面模板中,并根据页面元素的配置信息设置页面模板所包含的页面元素的展示效果,进而动态生成交易页面,并将所述交易页面展示给用户。Exemplarily, in this step, the content required for page assembly carried by the response message can be filled in the page template, and the display effect of the page elements included in the page template can be set according to the configuration information of the page elements, thereby dynamically generating transactions. page, and display the transaction page to the user.
在本发明实施例中,通过以上步骤能够实现ATM机上交易页面的动态生成、展示,提升ATM机上交易页面的编制效率,使得同样的业务流程在不同分行实现时具备可微调的业务逻辑;与此同时,通过以上步骤能够提高ATM机上交易页面编制过程的灵活性,避免硬编码带来的程序可维护性较差、不易升级等缺陷。In the embodiment of the present invention, through the above steps, the dynamic generation and display of the transaction page on the ATM machine can be realized, the compilation efficiency of the transaction page on the ATM machine can be improved, and the same business process can have fine-tuning business logic when implemented in different branches; At the same time, the above steps can improve the flexibility of the preparation process of the transaction page on the ATM machine, and avoid defects such as poor program maintainability and difficulty in upgrading caused by hard coding.
图3是根据本发明第三实施例的展示页面的装置的主要模块示意图。本发明实施例的展示页面的装置300可设置在终端。示例性地,所述终端可以为ATM机、智能手机、平板电脑、膝上型便携计算机和台式计算机等等电子设备,所述服务端为给所述终端提供服务支持的服务器,例如为ATM机提供存取款、查询、转账、查余额、和/或交水电费等金融类服务支持的服务器。如图3所示,本发明实施例的展示页面的装置300包括:数据获取模块301、查询模块302、组装模块303。FIG. 3 is a schematic diagram of main modules of an apparatus for displaying pages according to a third embodiment of the present invention. The
数据获取模块301,用于响应于预设的触发条件,向服务端发起数据获取请求,并接收所述服务端返回的对应于所述数据获取请求的响应报文。The
示例性地,所述预设的触发条件可以为检测到用户的某种触发操作,比如用户在当前展示页面上点击某个页面控件,或者用户在当前展示页面上滚动屏幕的操作等等。示例性地,所述预设的触发条件还可以为检测到当前时间满足定时向服务端发起数据获取请求的时间要求。需要指出的是,本发明并不限于以上两种触发条件。在具体实施时,本领域技术人员可根据不同应用场景的使用需求,设置相应的触发条件。Exemplarily, the preset trigger condition may be detection of a certain trigger operation of the user, such as the user clicking a certain page control on the currently displayed page, or the user's operation of scrolling the screen on the currently displayed page, and so on. Exemplarily, the preset trigger condition may also be detecting that the current time meets the time requirement for periodically sending a data acquisition request to the server. It should be noted that the present invention is not limited to the above two triggering conditions. During specific implementation, those skilled in the art can set corresponding trigger conditions according to the usage requirements of different application scenarios.
在满足预设的触发条件的情况下,数据获取模块301向服务端发起数据获取请求。在不同的应用场景下,所述数据获取请求的含义可能不同。例如,在水电费查询场景下,所述数据获取请求可以为待缴水电费查询请求;在账户余额查询场景下,所述数据获取请求可以为账户余额查询请求。在接收到终端的数据获取请求后,服务端返回与所述数据获取请求对应的响应报文。When the preset trigger condition is satisfied, the
查询模块302,用于根据所述响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息。The
其中,所述响应报文包括:响应码、页面组装所需内容。其中,所述响应码可理解为服务端返回的响应报文的类型标识码,终端可根据该响应码决定下一步应该采取的操作。示例性地,所述响应码可包括:代表响应报文为“结束交互”类型的响应码、代表响应报文为“拒绝交互”类型的响应码、代表响应报文为“继续交互”类型的响应码。需要指出的是,以上“结束交互”、“拒绝交互”、以及“继续交互”类型的响应码仅为示例性说明。在具体实施时,本领域技术人员可根据使用需求设置不同类型的响应码。所述页面组装所需内容,可理解为在动态组装页面时需要从服务端获取的页面数据。Wherein, the response message includes: response code and content required for page assembly. The response code can be understood as the type identification code of the response message returned by the server, and the terminal can decide the next action according to the response code. Exemplarily, the response codes may include: a response code representing the response message of the "end interaction" type, a response code representing the response message of the "reject interaction" type, and a response message representing the response message of the "continue interaction" type. response code. It should be pointed out that the above response codes of "end interaction", "reject interaction", and "continue interaction" are only exemplary descriptions. During specific implementation, those skilled in the art can set different types of response codes according to usage requirements. The content required for page assembly can be understood as page data that needs to be acquired from the server when the page is dynamically assembled.
在本发明实施例中,对于不同的响应码,可预先配置不同的页面模板。查询模块302可先对响应报文进行解析,以解析出其所携带的响应码。然后,查询模块302根据响应报文携带的响应码查询出与之对应的页面模板,进而确定出该页面模板所包含的页面元素。示例性地,所述页面模板所包含的页面元素可包括页面上设置的按钮、输入框、页面标题等一个或多个元素的组合。In this embodiment of the present invention, different page templates may be preconfigured for different response codes. The
进一步,在一个可选示例中,查询模块302根据所述响应报文携带的响应码查询出与之对应的页面模板包括:查询模块302根据所述响应报文携带的响应码查询第一配置文件,以从所述第一配置文件中获取与所述响应码对应的页面模板标识;查询模块302根据与所述响应码对应的页面模板标识查询页面模板存储模块,以获取与所述页面模板标识对应的页面模板。Further, in an optional example, the
接下来,查询模块302可调用预先配置的脚本,并通过所述脚本查询出该页面模板所包含的页面元素的配置信息。Next, the
在本发明实施例中,查询模块302通过采取预先配置的脚本查询出该页面模板所包含的页面元素的配置信息,具有运行时加载、程序更新方便等优点,有助于提高配置信息查询的灵活性,进而有助于提高动态生成页面的灵活性。In the embodiment of the present invention, the
组装模块303,用于根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面,并将组装得到的页面进行展示。The
组装模块303可根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容动态生成页面,并将动态生成的页面展示给用户。The
在本发明实施例中,通过分别配置页面模板、以及页面模板所包含的页面元素的配置信息,有助于提高后续生成页面时的灵活性;进一步,通过查询模块根据服务端返回的对应于数据获取请求的响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息,并通过组装模块根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面,能够实现页面的动态生成、展示,提升页面编制效率以及页面编制过程的灵活性,避免硬编码带来的程序可维护性较差、不易升级等缺陷。In the embodiment of the present invention, by separately configuring the page template and the configuration information of the page elements included in the page template, it is helpful to improve the flexibility in the subsequent generation of the page; further, the query module is used according to the corresponding data returned by the server Obtain the response code carried in the response message of the request to query the corresponding page template, and then query the configuration information of the page elements contained in the page template according to the pre-configured script, and use the assembly module according to the page template. , the configuration information of the page elements contained in the page template, and the content required for page assembly carried by the response message to assemble the page, which can realize the dynamic generation and display of the page, improve the efficiency of page compilation and the flexibility of the page compilation process, avoid Hard coding brings defects such as poor program maintainability and difficulty in upgrading.
图4示出了可以应用本发明实施例的展示页面的方法或展示页面的装置的示例性系统架构400。FIG. 4 shows an
如图4所示,系统架构400可以包括终端设备401、402、403,网络404和服务器405。网络404用以在终端设备401、402、403和服务器405之间提供通信链路的介质。网络404可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 4 , the
用户可以使用终端设备401、402、403通过网络704与服务器405交互,以接收或发送消息等。终端设备401、402、403上可以安装有各种通讯客户端应用,例如金融服务类应用、购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the
终端设备401、402、403可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于ATM机、智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The
服务器405可以是提供各种服务的服务器,例如对用户利用终端设备401、402、403所浏览的金融服务类应用或网站提供支持的后台管理服务器。后台管理服务器可以对交易请求进行处理,并将处理结果(例如交易请求对应的响应报文)反馈给终端设备,终端设备根据响应报文动态生成交易页面并展示给用户。The
需要说明的是,本发明实施例所提供的展示页面的方法一般由终端设备执行,相应地,展示页面的装置一般设置于终端设备中。It should be noted that, the method for displaying a page provided by the embodiment of the present invention is generally performed by a terminal device, and accordingly, a device for displaying a page is generally set in the terminal device.
应该理解,图4中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 4 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.
下面参考图5,其示出了适于用来实现本发明实施例的电子设备的计算机系统500的结构示意图。图5示出的计算机系统仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring next to FIG. 5 , it shows a schematic structural diagram of a
如图5所示,计算机系统500包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有系统500操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, a
以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an
特别地,根据本发明公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本发明的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs in accordance with the disclosed embodiments of the present invention. For example, embodiments disclosed herein include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber 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 that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks 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 is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本发明实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括数据获取模块、查询模块和组装模块。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,数据获取模块还可以被描述为“发起数据获取请求,并接收所述服务端返回的对应于所述数据获取请求的响应报文的模块”。The modules involved in the embodiments of the present invention may be implemented in a software manner, and may also be implemented in a hardware manner. The described modules can also be set in the processor, for example, it can be described as: a processor includes a data acquisition module, a query module and an assembly module. Among them, the names of these modules do not constitute a limitation of the module itself under certain circumstances. For example, the data acquisition module can also be described as "initiating a data acquisition request, and receiving the data returned by the server corresponding to the data. A module that gets the response message of a request".
作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备包括:响应于预设的触发条件,终端向服务端发起数据获取请求,并接收所述服务端返回的对应于所述数据获取请求的响应报文;其中,所述响应报文包括:响应码、页面组装所需内容;终端根据所述响应报文携带的响应码查询出与之对应的页面模板,然后,根据预先配置的脚本查询出所述页面模板所包含的页面元素的配置信息;终端根据所述页面模板、所述页面模板所包含的页面元素的配置信息、以及响应报文携带的页面组装所需内容组装页面,并将组装得到的页面进行展示。As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device includes: in response to a preset trigger condition, the terminal initiates a data acquisition request to the server, and Receive a response message corresponding to the data acquisition request returned by the server; wherein, the response message includes: a response code and content required for page assembly; the corresponding page template, and then query the configuration information of the page elements included in the page template according to the preconfigured script; the terminal according to the page template, the configuration information of the page elements included in the page template, and The content required for page assembly carried in the response message assembles the page, and displays the assembled page.
根据本发明实施例的技术方案,能够实现页面的动态生成、展示,提升页面编制效率以及页面编制过程的灵活性,避免硬编码带来的程序可维护性较差、不易升级等缺陷。According to the technical solutions of the embodiments of the present invention, the dynamic generation and display of pages can be realized, the efficiency of page compilation and the flexibility of the page compilation process can be improved, and defects such as poor program maintainability and difficulty in upgrading caused by hard coding are avoided.
上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (10)
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 (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112947926A (en) * | 2021-03-31 | 2021-06-11 | 中国建设银行股份有限公司 | Page development method, display method, device, electronic equipment and medium |
| 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 |
| CN113760263A (en) * | 2021-02-10 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Page display method and device |
| CN114116745A (en) * | 2021-11-19 | 2022-03-01 | 展讯通信(天津)有限公司 | A method, device, device and medium for identifying and displaying interface changes |
| CN114518881A (en) * | 2022-02-16 | 2022-05-20 | 中国农业银行股份有限公司 | Page generation method, system and storage medium |
| 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)
| 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 |
-
2020
- 2020-07-08 CN CN202010651531.2A patent/CN111881392A/en active Pending
Patent Citations (4)
| 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 (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113760263A (en) * | 2021-02-10 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Page display method and device |
| 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 |
| CN112947926A (en) * | 2021-03-31 | 2021-06-11 | 中国建设银行股份有限公司 | Page development method, display method, device, electronic equipment and medium |
| CN114116745A (en) * | 2021-11-19 | 2022-03-01 | 展讯通信(天津)有限公司 | A method, device, device and medium for identifying and displaying interface changes |
| CN114518881A (en) * | 2022-02-16 | 2022-05-20 | 中国农业银行股份有限公司 | Page generation method, system and storage medium |
| 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 | |
| CN110472207A (en) | List generation method and device | |
| CN112288577B (en) | Transaction processing method, device, electronic equipment and medium for distributed service | |
| CN111861437A (en) | A payment processing method and device | |
| CN111857888A (en) | Transaction processing method and device | |
| CN110796543B (en) | Custom information acquisition method and device based on relational network and electronic equipment | |
| CN111881329A (en) | An account balance management method and system | |
| CN110134427A (en) | A method and device for generating code files | |
| CN113076153A (en) | Interface calling method and device | |
| CN115134208A (en) | Message conversion method, device, electronic device and storage medium | |
| CN112256370B (en) | Information display method, device and electronic equipment | |
| CN110321242A (en) | Data processing method and device | |
| WO2023050989A1 (en) | Article display method and apparatus | |
| CN113761405B (en) | A task order processing method and system | |
| CN116561013B (en) | Test methods, devices, electronic equipment and media based on the target service framework | |
| CN112732547B (en) | Service testing method and device, storage medium and electronic equipment | |
| CN112559646A (en) | Report downloading method and device | |
| CN113779122A (en) | Method and apparatus for exporting data | |
| CN118467299A (en) | Process management method and device | |
| CN113448960A (en) | Method and device for importing form file | |
| CN114721609A (en) | Method and device for printing file, electronic equipment and computer readable medium | |
| CN114896244A (en) | Method, apparatus, apparatus, and computer-readable medium for configuring database tables | |
| CN113110898A (en) | Transaction task execution method and device | |
| CN114356487A (en) | Method and device for loading task bullet layer | |
| CN113778847A (en) | Test report generation 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. |
|
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201103 |
