CN112068837A - Method for page turning and data retention of terminal - Google Patents
Method for page turning and data retention of terminal Download PDFInfo
- Publication number
- CN112068837A CN112068837A CN202010945907.0A CN202010945907A CN112068837A CN 112068837 A CN112068837 A CN 112068837A CN 202010945907 A CN202010945907 A CN 202010945907A CN 112068837 A CN112068837 A CN 112068837A
- Authority
- CN
- China
- Prior art keywords
- page
- data
- main body
- father
- terminal
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
- G06F9/45529—Embedded in an application, e.g. JavaScript in a Web browser
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention particularly relates to a method for page turning and data holding of a terminal. The method for page turning and data holding of the terminal comprises the steps of firstly establishing a father page and three child pages of a head part, a main body and a bottom part, and introducing the three child pages into the father page; then, encapsulating a global data acquisition and assignment method in a parent page, and increasing the starting and canceling of a page switching loading waiting effect; and finally, encapsulating a parent page data obtaining and assigning method in the main body sub page, and encapsulating a page switching waiting loading effect starting and canceling method in the parent page. The method for transferring the terminal page and maintaining the data is simple to implement, safe and reliable, can meet and be applied to various requirements for realizing the service function terminal by using the browser kernel, has no performance limitation, is convenient for various service transformation and expansion, can realize high-efficiency local service data reading and writing, and improves the page conversion efficiency and the page transition friendliness, thereby reducing the cost of system development and improving the user experience.
Description
Technical Field
The invention relates to the technical field of self-service terminal system application, in particular to a method for transferring terminal pages and keeping data.
Background
In order to relieve the problem of overlarge traffic of a traditional business hall, make up for the defects of the prior business hours, avoid the trouble of transacting business in the business hall for customers, enable the customers to feel easy, convenient and close-fitting service, and design a self-service terminal by taking 24-hour self-service as a system design concept.
As an extension and supplement to the business hall service, the business hall self-service terminal plays an increasingly important role in various fields. In the financial industry, a user can perform account inquiry, self-service account transfer, bill printing, compensation and self-service loss reporting business transaction at a self-service terminal; in the communication industry, a user can perform self-service handling of the start-stop handling of basic services such as mobile phone stop (re) machine, telephone bill inquiry printing, payment, invoice printing, incoming call display, GPRS and the like by inputting a telephone number through a terminal; it can also buy mobile phone card and password charging receipt. Through value-added development, other value-added services such as commodity purchase can be realized through matched equipment.
The self-service terminal is applied to public places such as telecom business halls, charging agencies, stations, docks, airports, superstores and the like due to the characteristics of saving personnel expenses, reducing business cost, continuously working for 24 hours, running without errors, working in a non-contact mode and the like. Particularly, with the rapid development of the banking and telecommunication industries, the rapid construction of business outlets, the continuous improvement of the service and informatization construction levels of main industries, the demand of self-service terminals is rapidly increased.
With the application of self-service terminals getting deeper and deeper, the self-service terminals in various industries in various regions are gradually changed from the previous intranet deployment to the internet deployment. Generally, internet deployment provides a uniform data access self-service terminal platform, and logic flow control of business functions needs to be controlled on a self-service tax terminal, however, webpage skipping and session data retention cannot be placed on the server as in intranet deployment, and thus a method for terminal page skipping and data retention is urgently needed to solve the problem.
The invention provides a method for transferring a terminal page and maintaining data, which aims at the problems of webpage skipping and data maintaining of a self-service terminal under Internet deployment.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient method for page turning and data retention of a terminal.
The invention is realized by the following technical scheme:
a method for page turning and data holding of a terminal is characterized in that: the method comprises the following steps:
establishing a father page, a head part, a main body and three child pages at the bottom, introducing the three child pages into the father page, wherein the father page is used as a container, and all the child pages realize mutual data access and control through the father page;
secondly, defining a global object in the father page, and packaging a global data acquisition and assignment method, so that data can be conveniently added in the object, appointed data can be conveniently acquired, and the starting and canceling of a page switching loading waiting effect are increased;
thirdly, encapsulating the obtaining and assigning method of the father page data in all the main body sub-pages, and encapsulating the opening and canceling method of the page switching waiting loading effect in the father page;
step four, service implementation
The public data can be obtained from each main body sub-page, and data can be added and/or changed in the public data, the loading waiting is started before the page is jumped, and the loading waiting is cancelled at the next page after the page is switched, so that the page switching is in smooth transition.
The head subpage is responsible for displaying a LOGO of the system, the bottom subpage is responsible for displaying system notifications, and the main subpage is responsible for displaying service-related content.
In the first step, page switching is realized by main body sub-page jumping, and the head sub-page and the bottom sub-page are kept unchanged.
In the first step, three child pages are introduced into a parent page using iframe.
And in the second step, JavaScript is added in the parent page to define a global object.
In the second step, the global Object is stored in json (javascript Object notification) format.
And in the third step, a public JS (JavaScript) file is quoted in all the main body sub-pages, a method for acquiring and assigning data of a parent page is encapsulated in the JS file, and a method for starting and canceling the page switching waiting loading effect in the parent page is encapsulated.
In the fourth step, the data is stored in the parent page container, so that the data is not lost after the switching of the main body sub page, and the public data and the data added and/or changed in the main body sub page before can be acquired on the switched main body sub page.
The invention has the beneficial effects that: the method for transferring the terminal page and maintaining the data is simple to implement, safe and reliable, can meet and be applied to various requirements for realizing the service function terminal by using the browser kernel, has no performance limitation, is convenient for various service transformation and expansion, can realize high-efficiency local service data reading and writing, and improves the page conversion efficiency and the page transition friendliness, thereby reducing the cost of system development and improving the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a method for page turning and data retention of a terminal according to the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the embodiment of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for page turning and data holding of the terminal comprises the following steps:
establishing a father page, a head part, a main body and three child pages at the bottom, introducing the three child pages into the father page, wherein the father page is used as a container, and all the child pages realize mutual data access and control through the father page;
secondly, defining a global object in the father page, and packaging a global data acquisition and assignment method, so that data can be conveniently added in the object, appointed data can be conveniently acquired, and the starting and canceling of a page switching loading waiting effect are increased;
thirdly, encapsulating the obtaining and assigning method of the father page data in all the main body sub-pages, and encapsulating the opening and canceling method of the page switching waiting loading effect in the father page;
step four, service implementation
The public data can be obtained from each main body sub-page, and data can be added and/or changed in the public data, the loading waiting is started before the page is jumped, and the loading waiting is cancelled at the next page after the page is switched, so that the page switching is in smooth transition.
The head subpage is responsible for displaying a LOGO of the system, the bottom subpage is responsible for displaying system notifications, and the main subpage is responsible for displaying service-related content.
In the first step, page switching is realized by main body sub-page jumping, and the head sub-page and the bottom sub-page are kept unchanged.
In the first step, three child pages are introduced into a parent page using iframe.
Under the same domain, the parent page can obtain the content of the child iframe, and then the child iframe can also operate the content of the parent page. In iframe, the retrieval can be done through several APIs mounted on the window.
The method comprises the steps that (1) a parent acquires a window object of a previous level, and if the window object of the previous level is also an iframe, the window object of the iframe is obtained;
top obtains the window object of the top container, namely the document of the opened page;
self returns a reference to self window.
And in the second step, JavaScript is added in the parent page to define a global object.
In the second step, the global Object is stored in json (javascript Object notification) format.
And in the third step, a public JS (JavaScript) file is quoted in all the main body sub-pages, a method for acquiring and assigning data of a parent page is encapsulated in the JS file, and a method for starting and canceling the page switching waiting loading effect in the parent page is encapsulated.
In the fourth step, the data is stored in the parent page container, so that the data is not lost after the switching of the main body sub page, and the public data and the data added and/or changed in the main body sub page before can be acquired on the switched main body sub page.
Compared with the prior art, the method for page turning and data keeping of the terminal has the following characteristics:
first, practicality
The method for realizing the service function terminal by using the browser kernel can meet the requirements of various terminals using the browser kernel to realize the service function, and is simple to implement, safe and reliable based on the existing mature products;
second, flexibility
The method can be applied to various service terminals, has no performance limitation, and is convenient for various service reconstruction and expansion;
third, high efficiency
The method can realize high-efficiency local service data reading and writing, improve the page conversion efficiency and the page transition friendliness, reduce the system development cost and improve the user experience.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.
Claims (8)
1. A method for page turning and data holding of a terminal is characterized by comprising the following steps:
establishing a father page, a head part, a main body and three child pages at the bottom, introducing the three child pages into the father page, wherein the father page is used as a container, and all the child pages realize mutual data access and control through the father page;
secondly, defining a global object in the father page, and packaging a global data acquisition and assignment method, so that data can be conveniently added in the object, appointed data can be conveniently acquired, and the starting and canceling of a page switching loading waiting effect are increased;
thirdly, encapsulating the obtaining and assigning method of the father page data in all the main body sub-pages, and encapsulating the opening and canceling method of the page switching waiting loading effect in the father page;
step four, service implementation
The public data can be obtained from each main body sub-page, and data can be added and/or changed in the public data, the loading waiting is started before the page is jumped, and the loading waiting is cancelled at the next page after the page is switched, so that the page switching is in smooth transition.
2. The method of claim 1, wherein the method comprises: the head subpage is responsible for displaying a LOGO of the system, the bottom subpage is responsible for displaying system notifications, and the main subpage is responsible for displaying service-related content.
3. The method for terminal paging and data retention according to claim 1 or 2, characterized in that: in the first step, page switching is realized by main body sub-page jumping, and the head sub-page and the bottom sub-page are kept unchanged.
4. The method of claim 3, wherein the method comprises: in the first step, three child pages are introduced into a parent page using iframe.
5. The method of claim 4, wherein the method comprises: and in the second step, JavaScript is added in the parent page to define a global object.
6. The method of claim 5, wherein the method comprises: in the second step, the global object is stored using the JSON format.
7. The method of claim 6, wherein the method comprises: and in the third step, a public JS file is quoted in all the main body sub-pages, a method for acquiring and assigning the data of the father page is encapsulated in the JS file, and a method for starting and canceling the page switching waiting loading effect in the father page is encapsulated.
8. The method of claim 7, wherein the method comprises: in the fourth step, the data is stored in the parent page container, so that the data is not lost after the switching of the main body sub page, and the public data and the data added and/or changed in the main body sub page before can be acquired on the switched main body sub page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010945907.0A CN112068837B (en) | 2020-09-10 | 2020-09-10 | Terminal page transferring and data holding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010945907.0A CN112068837B (en) | 2020-09-10 | 2020-09-10 | Terminal page transferring and data holding method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112068837A true CN112068837A (en) | 2020-12-11 |
CN112068837B CN112068837B (en) | 2023-07-18 |
Family
ID=73663446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010945907.0A Active CN112068837B (en) | 2020-09-10 | 2020-09-10 | Terminal page transferring and data holding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112068837B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130275878A1 (en) * | 2010-12-13 | 2013-10-17 | Tencent Technology (Shenzhen) Company Limited | Method, device, server, and mobile terminal for browsing web pages |
US20150370912A1 (en) * | 2013-03-04 | 2015-12-24 | Uc Mobile Limited | Method and system for displaying customized webpage on double webview |
CN106293352A (en) * | 2015-05-21 | 2017-01-04 | 华为软件技术有限公司 | Page makeup method, terminal and server |
CN108459888A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | multi-page switching method, device, terminal device and storage medium |
US20190220304A1 (en) * | 2016-11-25 | 2019-07-18 | Tencent Technology (Shenzhen) Company Limited | Method and device for processing application program page, and storage medium |
-
2020
- 2020-09-10 CN CN202010945907.0A patent/CN112068837B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130275878A1 (en) * | 2010-12-13 | 2013-10-17 | Tencent Technology (Shenzhen) Company Limited | Method, device, server, and mobile terminal for browsing web pages |
US20150370912A1 (en) * | 2013-03-04 | 2015-12-24 | Uc Mobile Limited | Method and system for displaying customized webpage on double webview |
CN106293352A (en) * | 2015-05-21 | 2017-01-04 | 华为软件技术有限公司 | Page makeup method, terminal and server |
US20190220304A1 (en) * | 2016-11-25 | 2019-07-18 | Tencent Technology (Shenzhen) Company Limited | Method and device for processing application program page, and storage medium |
CN108459888A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | multi-page switching method, device, terminal device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112068837B (en) | 2023-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101917524B (en) | Authentification information interacting method triggered by call center and orienting mobile Internet cellphone terminals | |
CN102004949A (en) | Product warranty information registration system as well as mobile communication terminal and registration server thereof | |
CN108416683A (en) | Declaration form confirmation method, device, equipment and the storage medium of mobile terminal | |
CN103198417A (en) | Mobile internet banner and background issuing method and interaction method thereof | |
CN108335083A (en) | A kind of interconnection networking mobile communication business operation open platform and implementation method | |
CN102333164B (en) | Incoming call screen display method of call system based on B/S (Browser/Server) framework | |
Saidi et al. | Towards a faultless mobile commerce implementation in Malawi | |
CN103226777A (en) | Interactive platform for paid advertisements | |
CN106355459A (en) | Calling take-out order processing method and system | |
Dong et al. | Mobile money and mobile technologies: A structural estimation | |
CN112068837A (en) | Method for page turning and data retention of terminal | |
Liu et al. | The digital divide and COVID-19: impact on the socioeconomic development in Asia and the Pacific | |
Anderson | Mobile phone lifeline for world’s poor | |
CN107798575A (en) | Purchase system is preengage by a kind of supermarket | |
CN107277788A (en) | Short message display processing method and device | |
KR20000023911A (en) | Opening method for insurance with mobile phone | |
Dhawan et al. | Connecting the unconnected | |
CN105657205A (en) | Business communication session method and server | |
CN102461216A (en) | A method, a telecommunication system and a network node for sponsoring a communication service | |
Soliman | The economic function of network economy: A case study of North America | |
CN108898382A (en) | A kind of network payment system based on NFC | |
Falch et al. | International roaming: is there a need for EU‐regulation beyond 2010? | |
CN104008491A (en) | Information processing system and method | |
Shin | The political economy analysis of the mobile phone subsidy | |
Zhavoronkova et al. | World mobile services market: economic aspect |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |