CN108287743B - Page jump method, terminal and storage medium in application program - Google Patents

Page jump method, terminal and storage medium in application program Download PDF

Info

Publication number
CN108287743B
CN108287743B CN201810025780.3A CN201810025780A CN108287743B CN 108287743 B CN108287743 B CN 108287743B CN 201810025780 A CN201810025780 A CN 201810025780A CN 108287743 B CN108287743 B CN 108287743B
Authority
CN
China
Prior art keywords
page
jump
application program
transaction
recovered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810025780.3A
Other languages
Chinese (zh)
Other versions
CN108287743A (en
Inventor
何思源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Spreadrise Technologies 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 Shanghai Spreadrise Technologies Co Ltd filed Critical Shanghai Spreadrise Technologies Co Ltd
Priority to CN201810025780.3A priority Critical patent/CN108287743B/en
Publication of CN108287743A publication Critical patent/CN108287743A/en
Priority to PCT/CN2018/124008 priority patent/WO2019137217A1/en
Application granted granted Critical
Publication of CN108287743B publication Critical patent/CN108287743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying

Abstract

The invention discloses a page jump method in an application program, which comprises the following steps: when a jump instruction is detected, determining a target page to be switched in an application program according to the jump instruction; judging whether the target page is associated with a transaction to be recovered; if the target page is associated with the transaction to be recovered, recovering the transaction to be recovered to the target page, and jumping to the target page after recovery in the application program. The invention also discloses a terminal and a storage medium. The method and the device can jump to the front of the target page and restore the activity data of the user on the target page to the target page, so that the user friendliness of the application program is improved, and the use experience of the user is improved.

Description

Page jump method, terminal and storage medium in application program
Technical Field
The present invention relates to the field of page jump technologies, and in particular, to a page jump method in an application, a terminal, and a storage medium.
Background
When using a WeChat-like application, there is a situation where the current page is editing information content, is not saved because it has not been completed or for some other reason, and then needs to jump to another page immediately. The problems that arise are: when the current page is returned from the other page, the contents edited in the current page do not exist, so that the contents can be edited again only once. The user can only edit repeatedly after returning to the current page from another page, which causes a certain trouble to the user and influences the use experience of the user.
Disclosure of Invention
The invention mainly aims to provide a page jump method in an application program, and aims to solve the technical problems that when a current page is jumped to another page of the application program and then returns to the current page, edited data which are not stored in the current page before are all emptied, and a user can only edit repeatedly, so that poor user experience is caused.
In order to achieve the above object, the present invention provides a page jump method in an application program, where the page jump method in the application program includes:
when a jump instruction is detected, determining a target page to be switched in an application program according to the jump instruction;
judging whether the target page is associated with a transaction to be recovered;
if the target page is associated with the transaction to be recovered, recovering the transaction to be recovered to the target page, and jumping to the target page after recovery in the application program.
In an optional implementation manner, the page jump method in the application further includes:
when a jump instruction is detected, judging whether a current page in an application program has a transaction to be recovered;
and if the current page has the transaction to be recovered, storing the transaction to be recovered and the current page in a correlation manner.
In an optional implementation manner, the step of determining, when a jump instruction is detected, a target page to be switched in an application according to the jump instruction includes:
when a terminal at the main page of the application program detects a first jump instruction, determining the current page of the last page jump activity of the application program;
and the current page of the last page jump activity is a target page.
In an optional implementation manner, the step of determining, when a jump instruction is detected, a target page to be switched in an application according to the jump instruction includes:
when a terminal at the main page of the application program detects a second jump instruction input by a user based on an original control, judging whether the time length of the last page jump activity of the application program is longer than a first preset time length or not;
if the time length of the last page jumping activity of the application program is longer than a first preset time length, a first page corresponding to the original function of the original control is a target page;
and if the time length of the last page jump activity of the application program is less than a first preset time length, the current page of the last page jump activity is the target page.
In an optional implementation manner, the determining whether a transaction to be recovered exists in a current page in the application program includes:
detecting whether the current page of the application program has edit data input by a user;
and if the current page of the application program has the editing data input by the user, the editing data input by the user is the transaction to be recovered corresponding to the current page, and the transaction to be recovered exists in the current page.
In an optional implementation manner, if there is a to-be-recovered transaction in the current page, the step of storing the to-be-recovered transaction in association with the current page includes:
counting the storage duration of the to-be-recovered transaction stored in association with the current page, and judging whether the storage duration is greater than a second preset duration or not;
and if the storage duration is greater than a second preset duration, clearing the transaction to be recovered.
In an optional implementation manner, the step of determining, when a jump instruction is detected, a target page to be switched in an application according to the jump instruction includes:
and when the terminal in the non-home page of the application program detects a third jump instruction input by the user based on the newly added jump control, the home page is a target page.
In an optional implementation manner, the step of detecting, by the terminal on the application main page, a second jump instruction input by the user based on the original control includes:
judging whether the user inputs two or more second jump instructions within a third preset time length;
if the user inputs two or more second jump instructions within a third preset time length, a first page corresponding to the original function of the original control is a target page;
and if the user only inputs a second jump instruction once within a third preset time length, judging whether the previous page jump activity of the application program is longer than the first preset time length or not.
In order to achieve the above object, the present invention further provides a terminal, including: the page jump system comprises a memory, a processor and a page jump program in an application program stored on the memory and capable of running on the processor, wherein the page jump program in the application program realizes the steps of the page jump method in the application program when being executed by the processor.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where a page jump program in an application program is stored, and the page jump program in the application program, when executed by a processor, implements the steps of the page jump method in the application program.
According to the page jump method in the application program, after the jump instruction is detected by the terminal, the target page corresponding to the jump instruction is determined, and the next page and the address thereof required by the user are preliminarily determined; judging whether a transaction to be recovered associated with the target page exists, such as browsing records or editing data of a user on the target page; if the to-be-recovered transaction associated with the target page exists, the to-be-recovered transaction is recovered to the target page while jumping to the target page, and the target page with the to-be-recovered transaction recovered is output and displayed, so that a user can continue to perform the last transaction on the target page, such as browsing an article, watching a video, and continuously editing characters, pictures and the like from the last position, the user friendliness of an application program is improved, and the use experience of the user is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a page jump method in an application according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of an application page according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a last page jump activity in a second embodiment of a page jump method in an application according to the present invention;
FIG. 5 is a flowchart illustrating a page jump method in an application according to a third embodiment of the present invention;
FIG. 6 is a schematic diagram of page jump according to a third embodiment of the page jump method in the application program of the present invention;
FIG. 7 is a schematic page diagram of a newly added jump control in a fifth embodiment of a page jump method in an application program according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a wearable device (e.g., an AR/VR device with a networking function), and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Please refer to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a touch screen, a camera (including AR/VR devices), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface, bluetooth interface, probe interface, 3G/4G/5G networking communication interface, etc.).
The memory 1005 may be used to store software programs as well as various data. The memory 1005 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1005 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1001 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 1005 and calling data stored in the memory 1005, thereby performing overall monitoring of the mobile terminal. In the present invention, the processor 1001 may call a page jump program in the application program in the memory 1005, and execute the following steps:
when a jump instruction is detected, determining a target page to be switched in an application program according to the jump instruction;
judging whether the target page is associated with a transaction to be recovered;
if the target page is associated with the transaction to be recovered, recovering the transaction to be recovered to the target page, and jumping to the target page after recovery in the application program.
The page jump method in the application program further comprises the following steps:
when a jump instruction is detected, judging whether a current page in an application program has a transaction to be recovered;
and if the current page has the transaction to be recovered, storing the transaction to be recovered and the current page in a correlation manner.
When the jump instruction is detected, the step of determining the target page to be switched in the application program according to the jump instruction comprises the following steps:
when a terminal at the main page of the application program detects a first jump instruction, determining the current page of the last page jump activity of the application program;
and the current page of the last page jump activity is a target page.
When the jump instruction is detected, the step of determining the target page to be switched in the application program according to the jump instruction comprises the following steps:
when a terminal at the main page of the application program detects a second jump instruction input by a user based on an original control, judging whether the time length of the last page jump activity of the application program is longer than a first preset time length or not;
if the time length of the last page jumping activity of the application program is longer than a first preset time length, a first page corresponding to the original function of the original control is a target page;
and if the time length of the last page jump activity of the application program is less than a first preset time length, the current page of the last page jump activity is the target page.
The judging whether the current page in the application program has the transaction to be recovered includes:
detecting whether the current page of the application program has edit data input by a user;
and if the current page of the application program has the editing data input by the user, the editing data input by the user is the transaction to be recovered corresponding to the current page, and the transaction to be recovered exists in the current page.
If the current page has the transaction to be recovered, the step of storing the transaction to be recovered and the current page in a correlation manner comprises the following steps:
counting the storage duration of the to-be-recovered transaction stored in association with the current page, and judging whether the storage duration is greater than a second preset duration or not;
and if the storage duration is greater than a second preset duration, clearing the transaction to be recovered.
When the jump instruction is detected, the step of determining the target page to be switched in the application program according to the jump instruction comprises the following steps:
and when the terminal in the non-home page of the application program detects a third jump instruction input by the user based on the newly added jump control, the home page is a target page.
After the step of detecting a second jump instruction input by the user based on the original control by the terminal at the main page of the application program, the method comprises the following steps:
judging whether the user inputs two or more second jump instructions within a third preset time length;
if the user inputs two or more second jump instructions within a third preset time length, a first page corresponding to the original function of the original control is a target page;
and if the user only inputs a second jump instruction once within a third preset time length, judging whether the previous page jump activity of the application program is longer than the first preset time length or not.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method. The page jump in the embodiments of the present invention refers to page jump inside an application.
Referring to fig. 2, in a first embodiment of a page jump method in an application program of the present invention, the page jump method in the application program includes:
step S10, when a jump instruction is detected, determining a target page to be switched in an application program according to the jump instruction;
the terminal can open a plurality of application programs simultaneously, and the scheme of the invention realizes page jump in the same application program. And the user inputs a jump instruction to control the application program on the terminal to jump the page according to the user requirement. The input mode of the jump instruction may be touch input, gesture recognition input (for example, one stroke from left to right is "next page"), or voice input, terminal gesture or motion input (for example, one stroke from left to right is "next page"), or keyboard or remote controller input, and the input mode of the jump instruction is not limited in this embodiment.
And the target page is a page to be jumped after the terminal receives the jump instruction. When the terminal processor receives the jump instruction, the target page can be determined immediately according to the jump instruction, and the target page is obviously a page in the application program. Different jump instructions correspond to different target pages, the jump instructions comprise class names or page addresses of the target pages, and page jump can be directly carried out according to information such as the class names or the page addresses of the target pages, and the like, which are contained in the jump instructions. For example, in the WeChat app, clicking any clickable control can jump to a corresponding target page, using "×" and "←" in the upper left corner as common return controls, and clicking either "×" or "←" can issue return jump instructions.
Step S11, judging whether the target page is associated with a transaction to be recovered;
the transaction to be recovered refers to data or a transaction which is stored in association with the target page and needs to be recovered to the target page when jumping to the target page. The transaction to be recovered can be cached or stored in a special storage area, is data closely related to a terminal user, and can be browsing record or edited data left on a target page by the user, if the target page is related to the transaction to be recovered, it indicates that the user browses or edits the target page, and when the user browses or edits the target page again, the browsing record or edited data of the target page browsed last time by the user is recovered to the target page, so that a browsing or editing persistent experience can be provided for the user, some data do not need to be manually recovered by the user, and the user friendliness of the application program can be improved.
Users often encounter a situation: when a user edits information on a current page of an application program, the information of other pages of the application program needs to be processed, at the moment, the user faces a dilemma to select, if the user jumps to other pages and returns to the current page, the content (which is not edited and cannot be stored) edited on the current page does not exist, and if the user does not jump to other pages, the current page cannot be continuously edited or other pages have to jump urgently. The embodiment of the invention can solve the problem, so that the user does not need to be difficult to use the application program.
Regarding the storage of the transaction to be recovered, further, in this embodiment of the present invention, the page jump method in the application program further includes:
step S111, when a jump instruction is detected, judging whether a current page in an application program has a transaction to be recovered;
in step S112, if there is a transaction to be recovered in the current page of the application program, the transaction to be recovered is stored in association with the current page.
One jump activity involves two pages, one: the current interface is the current page; the second step is that: and (4) a target page. When the user wants to jump, the user browses, views videos, edits data and other activities on the current page, after the user jumps to the target page, the user may want to return to the current page to continue the activities which are carried out before, and the activity progress of the user on the current page needs to be stored to meet the user requirements. In an implementation mode, the activities performed by the user on the current page can be stored and updated in real time or at regular time, so that the user can be ensured to leave the current page at any time and continue the previous activities when returning to the current page, but the problems of memory resource consumption, large running resource and excessively high power consumption speed exist. Therefore, in order to avoid the problems of memory resource consumption, large running resource consumption, too high power consumption speed and the like caused by the previous embodiment, in another embodiment, when a jump instruction is detected and a jump is about to be performed, the ongoing activity progress (including browsing records and edited data) of the user on the current page is stored. However, the activities performed by the user on the current page are not all required to be stored, that is, not all the activity progress data performed by the user on the current page are to-be-recovered transactions, and when determining whether to-be-recovered transactions exist, the determination standard thereof needs to be determined, or the determination standard of to-be-recovered transactions needs to be determined. The judgment standard of the transaction to be recovered can be set by the participation of a user, and can also be set by an application program or a terminal system in a default mode.
In one embodiment, the step of determining whether there is a transaction to be restored in the current page of the application program in step S111 includes:
step S113, detecting whether the current page of the application program has edit data input by a user;
step S114, if the current page of the application program has the edit data input by the user, the edit data input by the user is the transaction to be restored corresponding to the current page, and the transaction to be restored exists in the current page.
Detecting whether the current page of the application program has edit data input by the user can be to judge whether content exists in the text view of the current page, and also can mark the page needing to be edited by the user and mark the page as a page with a transaction to be recovered. If the text view of the current page has contents, the current page has edit data input by the user, otherwise, the current page has no edit data. And if the current page has the identifier for identifying the transaction to be recovered, the current page has edit data input by the user, otherwise, the current page has no edit data.
If there is edit data input by the user, it is necessary to save the edit data in most cases. For example, when an invoice is made in drip-drop car software in WeChat, relevant information needs to be filled in, as shown in FIG. 3 below, but some information contents are not known to be filled in so far, and a WeChat friend needs to be consulted. At this time, half of the information is edited and cannot be submitted, and if the friend interface is jumped to, the edited information is lost. Such as a label or comment made by the user when reading it, or some page requiring the user to fill in information, such as a questionnaire, insurance policy, etc. If the current page does not have the editing data input by the user, whether other data exists in the current page or not is needed to be checked, and the to-be-recovered transaction exists or can be directly judged.
According to the embodiment, whether the current page of the application program has the editing data input by the user or not is detected, so that when the user inputs the data on the current page or performs other editing activities, the terminal can automatically store the editing data input by the user, so that the user can continue the last data editing activity when accessing the current page again, repeated editing by the user is avoided, the user can leave the current page at any time without worrying about the fact that the edited data can disappear, and good use experience of the user is ensured.
The transaction to be recovered refers to data or a transaction which is stored in association with the target page and needs to be recovered to the target page when jumping to the target page. Before judging whether the target page stores the transaction to be recovered, judging whether the transaction to be recovered exists in the current page, and after determining that the transaction to be recovered exists in the current page, storing the transaction to be recovered and the current page in a correlation mode. If the current page does not have the transaction to be recovered, the transaction does not need to be stored.
In the embodiment, when the jump instruction is detected, whether the current page in the application program has the transaction to be recovered is judged, instead of real-time or timing, so that the memory and the running resources are saved, the power consumption speed is reduced, the running speed is increased, and if the transaction to be recovered exists, the transaction to be recovered and the current page are stored in an associated manner so that when the user returns to the current page again, the transaction to be recovered stored in the associated manner with the current page is recovered to the current page, so that the user can continue the activity performed on the current page last time, and the use experience of the user is further improved.
Step S12, if the target page is associated with a to-be-recovered transaction, recovering the to-be-recovered transaction to the target page, and jumping to the target page recovered in the application program.
When the target page is associated with the to-be-recovered transaction, the corresponding to-be-recovered transaction can be recovered to the target page while jumping to the target page, so that the user can continue the browsing or editing activity on the target page last time. And if the target page is not associated with any transaction to be recovered, directly jumping to the initial state of the target page for the user to start browsing or editing.
In the embodiment, after the terminal detects the jump instruction, the target page corresponding to the jump instruction is determined, and the next page and the address thereof required by the user are preliminarily determined; judging whether a transaction to be recovered associated with the target page exists, such as browsing records or editing data of a user on the target page; if the to-be-recovered transaction associated with the target page exists, the to-be-recovered transaction is recovered to the target page while jumping to the target page, and the target page with the to-be-recovered transaction recovered is output and displayed, so that a user can continue to perform the last transaction on the target page, such as browsing an article, watching a video, and continuously editing characters, pictures and the like from the last position, the user friendliness of an application program is improved, and the use experience of the user is improved.
Further, based on the previous embodiment, in the second embodiment of the page jump method in the application program of the present invention, the step S10 includes:
step S20, when the terminal at the main page of the application program detects the first jump instruction, determining the current page of the last page jump activity of the application program;
and step S21, the current page of the last page jump activity is a target page.
A page jump activity involves two pages: firstly, a current page; and II, a target page.
The first jump instruction refers to a jump instruction having a special jump function or a special target page, and in this embodiment, the first jump instruction refers to a jump from a main page to a current page of a last page jump activity. The last page jump activity in this embodiment refers to an activity of jumping from another page, i.e., a current page of the last page jump activity (as in fig. 4), to the main page.
In the page jump of the existing application program, the current page can also be returned to the main page layer by layer, for example, in the wechat app, the return page can be returned layer by clicking the return page at the upper left corner, or the current interface and the intermediate interface can be directly closed and the return page can be directly returned to the main page, for example, the return page can be returned by clicking the x page at the upper left corner in the wechat app. The problems of the two page jumps are as follows: the user may have to go further layer by layer from the main page to the current page, the user may have a tedious operation, and after the return, the previously edited information does not exist, the user needs to edit again, further the user's dissatisfaction with the application program or the service provided by the application program is deepened, and the user may also give up to continue inputting the edited data in the current page, which causes a loss to the service provider in the application program. This is extremely disadvantageous both for the user and the application service provider.
In order to solve the above problem in the current application page jump, in this embodiment, a function control capable of directly returning to a "current page" from a main page is set, a user inputs a first jump instruction based on the function control, and when the terminal detects the first jump instruction, the current page of the last page jump activity of the application is determined. The first jump instruction is received only when the terminal is located at the home page of the application program, and it can be determined that the target page of the last page jump activity of the application program is the home page.
In one embodiment, the last page jump activity record may be looked up, and the current page in the page jump activity may be determined. In order to determine the current page of the last page jump activity of the application program as soon as possible, in another embodiment, the current page of the last page jump activity and the first jump instruction may be stored in association, and as long as the user clicks the function control to issue the first jump instruction, the current page of the last page jump activity of the application program may be determined immediately, and it is not necessary to search the record of the last page jump activity, so that the jump speed may be increased, unnecessary operations may be reduced, and the operation efficiency may be improved.
In order to solve the above problem in the page jump of the existing application program, in this embodiment, while setting the functional control that directly returns the "current page" from the main page, it is also determined whether the target page (i.e., the current page of the last page jump activity of the application program) is associated with the transaction to be restored, if the target page is associated with the transaction to be restored, the transaction to be restored is restored to the target page, and then the target page in which the transaction to be restored is jumped to, so as to implement the back-and-forth jump between the current interface and the main interface, and the edited information can be temporarily stored.
According to the method and the device, the function control which returns to the current page of the last page jump activity from the main page is arranged on the main page of the application program, when the terminal in the main page of the application program detects a first jump instruction input by a user based on the function control, the current page of the last page jump activity is determined to be the target page, one-key jump of the main page to the current page of the last page jump activity in the application program is realized, one-layer operation between the main page and the current page of the last page jump activity is omitted, the operation program of the user is saved, and the user experience is improved.
Further, based on the above embodiments, in a third embodiment of the page jump method in the application program of the present invention, as shown in fig. 5, (for convenience of identification in the drawing, step S30 is split into step S301, where the terminal at the main page of the application program detects a second jump instruction input by the user based on the original control, step S302 determines whether the current time length of the last page jump activity of the application program is greater than a first preset time length, step S12 is split into step S121, if the target page is associated with a transaction to be restored, the transaction to be restored is restored to the target page, step S122, the target page restored in the application program is jumped to), and step S10 includes:
step S30, when the terminal at the main page of the application program detects a second jump instruction input by the user based on the original control, judging whether the time length of the last page jump activity of the application program is longer than a first preset time length or not;
step S31, if the time length of the last page jump activity of the application program is longer than a first preset time length, the first page corresponding to the original function of the original control is a target page;
in step S32, if the time length of the last page jump activity of the application program is shorter than the first preset time length, the current page of the last page jump activity is the target page.
In this embodiment, it is also possible to return to the current page of the last page jump activity from the main page through a second jump instruction, which is different from the second embodiment: in the embodiment, a function control specially used for returning to the current page of the last page jump activity from the main page is not added, but the original function control is used for realizing different functions.
Taking a mobile phone browser as an example, generally, the mobile phone browser has functions of "→" ← "or" next page "→" and "previous page" pointing to the previous page and the next page, which are common functions of the "→" ← "controls, in this embodiment, the function of returning from a main page to the previous page jump activity to the current page is realized by using the common controls, because a user is familiar with the function controls on an application page, the user is also accustomed to the layout of the function controls, a certain adverse effect is brought to the look and feel of the user by suddenly adding one control, and more memories are occupied by adding one function control. And the problem can be avoided while the function is newly added on the original control.
In order to solve the problem that the newly added function may cause a conflict between the newly added function and the original function, in this embodiment, a current time length and a first preset time length of a last page jump activity of the application program are introduced. The time length of the last page jump activity of the application program is, as the name implies, how long the application program jumps to the main page or the duration of the main page, and the first preset time length refers to a time threshold which can be set by a user or by an application program/terminal system by default.
Judging whether the time length of the last page jump activity of the application program is longer than a first preset time length or not, and only when the time length of the last page jump activity of the application program is shorter than the first preset time length, the current page of the last page jump activity is the target page, the main page can be jumped to the target page, otherwise, the first page corresponding to the original function of the original control is the target page (as shown in fig. 6), wherein the first page is the page corresponding to the original function of the original control, and if the first page is "→" corresponding to the next page. The purpose of this setting is to reduce unnecessary jumps, specifically, firstly, considering the user requirement, the requirement for the user to jump from the current page to the main page and then from the main page to the current page is relatively large in a certain time period, but when this time period is larger, it can be judged that this requirement is smaller, when this time period is large enough, the user may not think to jump from the main page to the current page at all, at this time, the user clicks the original control, which is most likely to be the original function that needs to use the original control, secondly, considering from the memory resource, if the time length of the last page jump activity of the application program is larger than a certain threshold value or returns to the current page of the last page jump activity, it can be sure that the current page of the last page activity needs to be stored all the time, but the user requirement is not so large, thus, always storing the current page wastes memory resources.
In the embodiment, two functions are integrated in an original control, memory resources are saved, whether the current time length of the last page jump activity of an application program is greater than a first preset time length or not is judged, the function of the original control is determined, when the current time length of the last page jump activity of the application program is less than the first preset time length, the original control is in a special period, a new function is realized, the current page of the last page jump activity is a target page, when the current time length of the last page jump activity of the application program is greater than the first preset time length, the original control returns to a normal state, the first page corresponding to the original function of the original control is the target page, and unnecessary page jump and memory resource waste are prevented.
Further, in the step S30, after the step of detecting, by the terminal on the application main page, a second jump instruction input by the user based on the original control includes:
step S33, judging whether the user inputs two or more second jump instructions within a third preset time length;
step S34, if the user inputs two or more second jump instructions within a third preset duration, the first page corresponding to the original function of the original control is a target page;
step S35, if the user only inputs the second jump instruction once within the third preset duration, it is determined whether the previous page jump activity of the application is longer than the first preset duration.
The terminal under the application program main page detects a second jump instruction input by the user based on the original control, because the original control has two functions and respectively points to different target pages, in order to more accurately determine the target page to which the user intends to jump, it is further judged whether to input the second jump instruction twice or more within a third preset time, the third preset time is a very short time period, which may be within 1s, or within 1.5s, or even shorter, the embodiment does not limit, and the preset time period is set by the system. The meaning of this decision step is: whether the user is in a short time or whether the user has continuously clicked on the original control.
If the user inputs two or more second jump instructions within the third preset duration, that is, the user clicks the original control twice within a short time, the user wants to implement the original function of the original control, otherwise, if the user only inputs one second jump instruction within the third preset duration, it is further determined whether the current duration of the last page jump activity of the application is greater than the first preset duration, that is, the determining step in step S30 is executed, and the subsequent steps such as step S31, step S32 and the above detailed description of each embodiment are not repeated.
Although in the above embodiment, the user's intention may be roughly distinguished by determining whether the last page jump activity of the application is longer than the first preset time, the user may jump to the target page corresponding to the original function of the original control within a short time after the last page jump activity of the application. Therefore, in the embodiment, a small operation similar to double-click of the mouse is designed, that is, before the user intention is judged according to the current time of the last page jump activity of the application program, the user intention is roughly judged through the double-click operation, so that the error of user intention identification is reduced, the realization of the original function of the original control is prevented by the newly added function, the adverse effect is caused to the user experience, and the double-function design of the original control is more reasonable.
Further, based on the above embodiments, in a fourth embodiment of the page jump method in the application program of the present invention, after step S112, the method includes:
step S40, counting the storage duration of the to-be-recovered transaction stored in association with the current page, and judging whether the storage duration is greater than a second preset duration;
step S41, if the storage duration is greater than a second preset duration, clearing the to-be-recovered transaction.
In order to save memory resources, stored transactions to be recovered need to be cleared when meeting certain conditions, the stored transactions to be recovered can be manually cleared for a user, and the stored transactions to be recovered can also be automatically cleared by a terminal when meeting certain conditions. In this embodiment, after the transaction to be recovered is stored, the storage duration of the transaction to be recovered is counted, and when the storage duration of the transaction to be recovered is longer than a second preset duration, it indicates that the storage duration of the transaction to be recovered reaches a certain threshold, and the user's demand for the transaction to be recovered is already small enough that the transaction to be recovered does not need to be stored continuously, so that the transaction to be recovered can be cleared, memory resources can be saved, and the operation speed can be increased. The second preset time length may be preset by a user or may be preset by a terminal/application program. If the storage duration is less than a second preset duration, the transaction to be recovered has a larger recovery requirement, and a certain memory resource can be consumed to meet the requirement of a user on recovering the transaction to be recovered at any time.
In this embodiment, the storage duration of the to-be-recovered transaction stored in association with the current page is counted, and when the storage duration of the to-be-recovered transaction is longer than a second preset duration, the to-be-recovered transaction is cleared, and data with a low use possibility is cleared in time, so that memory resources are saved.
Further, based on the above embodiment, in a fifth embodiment of the page jump method in the application program of the present invention, the step S10 includes:
and step S50, when the terminal in the non-home page of the application program detects a third jump instruction input by the user based on the newly added jump control, the home page is the target page.
When the terminal is currently located at a non-home page of an application program (the non-home page is a page which is not a home page as the name implies), jumping from the non-home page to the home page adds a function on an original control, such as an 'x' (close) control in the WeChat app, and stores a to-be-recovered transaction of the current non-home page while returning to the home page. In an embodiment, a new jump control may be added, and the new jump function may store the to-be-restored transaction of the current non-primary page while ensuring that the jump is performed back to the primary page, and is distinguished from the original return control, as shown in fig. 7.
The jump control may be set starting at a second page after the main page, and the first page of the main page may go directly back to the main page, so it may not be set at the first page.
The jump control is arranged on the non-main page, so that direct jump from the non-main page to the main page can be realized, and by combining the previous embodiment, direct and rapid mutual jump between the main page and the non-main page can be realized, meanwhile, the transaction being processed by the interface can be temporarily stored, the page jump function of the terminal/application program is enriched, the user is greatly facilitated, the time is saved, the repeated editing process is reduced, and the user experience is improved.
In addition, an embodiment of the present invention further provides a storage medium, where a page jump program in an application program is stored on the storage medium, and the page jump program in the application program, when executed by a processor, implements the steps described in the foregoing embodiments, and specific contents have been described in detail above, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or a part contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk) as described above, and includes a plurality of instructions for enabling a terminal device (which may be a fixed terminal, such as an internet-of-things smart device, including smart homes such as a smart air conditioner, a smart lamp, a smart power supply, and a smart router, or may be a mobile terminal, including a smart phone, a wearable networking AR/VR device, a smart sound box, and a network device such as an autonomous vehicle) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A page jump method in an application program is characterized by comprising the following steps:
when a jump instruction is detected, determining a target page to be switched in an application program according to the jump instruction;
judging whether the target page is associated with a transaction to be recovered;
if the target page is associated with the transaction to be recovered, recovering the transaction to be recovered to the target page, and jumping to the target page after recovery in an application program;
when the jump instruction is detected, the step of determining the target page to be switched in the application program according to the jump instruction comprises the following steps:
when a terminal at a main page of an application program detects a second jump instruction input by a user based on an original control, judging whether the time length of the last page jump activity of the application program is longer than a first preset time length or not, wherein the last page jump activity refers to the activity of jumping from other pages to the main page when a third jump instruction input by the user based on a newly added jump control is detected, and the other pages are the current pages of the last page jump activity;
if the time length of the last page jumping activity of the application program is longer than a first preset time length, a first page corresponding to the original function of the original control is a target page; or the like, or, alternatively,
if the time length of the last page jumping activity of the application program is less than a first preset time length, the current page of the last page jumping activity is a target page; or the like, or, alternatively,
and when the terminal in the non-home page of the application program detects a third jump instruction input by the user based on the newly added jump control, the home page is a target page.
2. The page jump method in an application program according to claim 1, wherein the page jump method in an application program further comprises:
when a jump instruction is detected, judging whether a current page in an application program has a transaction to be recovered;
and if the current page has the transaction to be recovered, storing the transaction to be recovered and the current page in a correlation manner.
3. The page jump method in the application program according to claim 1, wherein the step of determining a target page to be switched in the application program according to the jump instruction when the jump instruction is detected comprises:
when a terminal at the main page of the application program detects a first jump instruction, determining the current page of the last page jump activity of the application program;
and the current page of the last page jump activity is a target page.
4. The method of page jump in an application as claimed in claim 2, wherein said determining whether there is a transaction to be restored for a current page in the application comprises:
detecting whether the current page of the application program has edit data input by a user;
and if the current page of the application program has the editing data input by the user, the editing data input by the user is the transaction to be recovered corresponding to the current page, and the transaction to be recovered exists in the current page.
5. The page jump method in an application program according to claim 2, wherein, if there is a transaction to be restored in the current page, the step of storing the transaction to be restored in association with the current page comprises:
counting the storage duration of the to-be-recovered transaction stored in association with the current page, and judging whether the storage duration is greater than a second preset duration or not;
and if the storage duration is greater than a second preset duration, clearing the transaction to be recovered.
6. The method for page jump in an application program according to claim 1, wherein the step of detecting a second jump instruction input by a user based on an original control by the terminal at the main page of the application program comprises the following steps:
judging whether the user inputs two or more second jump instructions within a third preset time length;
if the user inputs two or more second jump instructions within a third preset time length, a first page corresponding to the original function of the original control is a target page;
and if the user only inputs a second jump instruction once within a third preset time length, judging whether the previous page jump activity of the application program is longer than the first preset time length or not.
7. A terminal, characterized in that the terminal comprises: memory, a processor and a page jump program in an application program stored on the memory and executable on the processor, the page jump program in the application program implementing the steps of the page jump method in the application program according to any one of claims 1 to 6 when executed by the processor.
8. A storage medium, wherein a page jump program in an application program is stored on the storage medium, and the page jump program in the application program when executed by a processor implements the steps of the page jump method in the application program according to any one of claims 1 to 6.
CN201810025780.3A 2018-01-11 2018-01-11 Page jump method, terminal and storage medium in application program Active CN108287743B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810025780.3A CN108287743B (en) 2018-01-11 2018-01-11 Page jump method, terminal and storage medium in application program
PCT/CN2018/124008 WO2019137217A1 (en) 2018-01-11 2018-12-26 Method for page jumping in application program, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810025780.3A CN108287743B (en) 2018-01-11 2018-01-11 Page jump method, terminal and storage medium in application program

Publications (2)

Publication Number Publication Date
CN108287743A CN108287743A (en) 2018-07-17
CN108287743B true CN108287743B (en) 2020-10-02

Family

ID=62835056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810025780.3A Active CN108287743B (en) 2018-01-11 2018-01-11 Page jump method, terminal and storage medium in application program

Country Status (2)

Country Link
CN (1) CN108287743B (en)
WO (1) WO2019137217A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287743B (en) * 2018-01-11 2020-10-02 上海展扬通信技术有限公司 Page jump method, terminal and storage medium in application program
CN109634776A (en) * 2018-10-16 2019-04-16 平安普惠企业管理有限公司 Application recovery method, apparatus, equipment and storage medium
CN110618848A (en) * 2018-12-25 2019-12-27 北京时光荏苒科技有限公司 Page display method, device, equipment and storage medium
CN109871209A (en) * 2018-12-30 2019-06-11 贝壳技术有限公司 Original list state recovery method and device
CN112905256B (en) * 2019-12-03 2024-02-09 北京奇艺世纪科技有限公司 Data processing method, device, electronic equipment and storage medium
CN111881400B (en) * 2020-07-31 2024-02-23 中国农业银行股份有限公司 Webpage jump path determining method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708360A (en) * 2016-11-14 2017-05-24 乐视控股(北京)有限公司 Application interface switching method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8453047B2 (en) * 2008-05-27 2013-05-28 Appfolio, Inc. Systems and methods for automatic submission of forms on a web page
CN104035669A (en) * 2013-03-04 2014-09-10 联想(北京)有限公司 Electronic-equipment-based interface switching method and device
CN105183364A (en) * 2015-10-30 2015-12-23 小米科技有限责任公司 Application switching method, application switching device and application switching equipment
CN106126376A (en) * 2016-06-23 2016-11-16 杭州迪普科技有限公司 Data reconstruction method and device
CN108287743B (en) * 2018-01-11 2020-10-02 上海展扬通信技术有限公司 Page jump method, terminal and storage medium in application program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708360A (en) * 2016-11-14 2017-05-24 乐视控股(北京)有限公司 Application interface switching method and device and electronic equipment

Also Published As

Publication number Publication date
CN108287743A (en) 2018-07-17
WO2019137217A1 (en) 2019-07-18

Similar Documents

Publication Publication Date Title
CN108287743B (en) Page jump method, terminal and storage medium in application program
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
US20180260081A1 (en) Task switching or task launching based on a ranked list of tasks
US20090164602A1 (en) Apparatus and methods for retrieving/ downloading content on a communication device
US20130191769A1 (en) Apparatus and method for providing a clipboard function in a mobile terminal
KR20140039209A (en) Web browser with quick site access user interface
US20140045163A1 (en) Interactive response system and question generation method for interactive response system
CN112988006B (en) Display method, display device, electronic equipment and storage medium
US20180181295A1 (en) Method for displaying information, and terminal equipment
CN104142774A (en) Page content processing method and page content processing device
US9959010B1 (en) Method for displaying information, and terminal equipment
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN113849092A (en) Content sharing method and device and electronic equipment
CN101777067B (en) System for recognizing and managing web page contents for mobile communication equipment terminals
CN107943598A (en) One kind applies switching method, electronic equipment and readable storage medium storing program for executing
CN114327726A (en) Display control method, display control device, electronic equipment and storage medium
CN113436297A (en) Picture processing method and electronic equipment
CN112765508A (en) Information display method and device and electronic equipment
CN112578966B (en) Application program switching method and device and electronic equipment
CN111858395B (en) Data management method and device
CN112612400B (en) Text content processing method and electronic equipment
KR102100379B1 (en) Method for managing web history and device using the same
CN117130512A (en) Display method, display device, electronic equipment and storage medium
CN115982017A (en) Page detection method and device, electronic equipment and storage medium
CN113296676A (en) Input method, input device and electronic equipment

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

Effective date of registration: 20221215

Address after: 201203 1st floor, building 1, Lane 36, Xuelin Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203

Patentee after: SHANGHAI TRANSSION INFORMATION TECHNOLOGY Ltd.

Address before: Room 922 / 926, block a, No. 1, Lane 399, shengxia Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203

Patentee before: SHANGHAI SPREADRISE COMMUNICATION TECHNOLOGY Ltd.

TR01 Transfer of patent right