CN115827115A - H5 page jump method, device, equipment and storage medium of WeChat applet - Google Patents

H5 page jump method, device, equipment and storage medium of WeChat applet Download PDF

Info

Publication number
CN115827115A
CN115827115A CN202211438365.3A CN202211438365A CN115827115A CN 115827115 A CN115827115 A CN 115827115A CN 202211438365 A CN202211438365 A CN 202211438365A CN 115827115 A CN115827115 A CN 115827115A
Authority
CN
China
Prior art keywords
page
jump
target
address
step number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211438365.3A
Other languages
Chinese (zh)
Inventor
张大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202211438365.3A priority Critical patent/CN115827115A/en
Publication of CN115827115A publication Critical patent/CN115827115A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to a WeChat applet technology, and discloses an H5 page jump method of a WeChat applet, which comprises the following steps: starting an H5 page in the WeChat applet, acquiring routing information of the H5 page, and generating a step number array according to the routing information; taking an upper page of the H5 page as a target page, acquiring a jump object of the target page, and judging whether the jump object of the target page is a lower page or not; when the jump object of the target page is a lower-level page, performing lower-level jump on the target page by using the step number array; and when the jump object of the target page is not the lower-level page, calculating the backspacing step length of the jump object by using the step number array, and performing specified jump on the target page according to the backspacing step length. In addition, the invention also relates to a block chain technology and a step number array. The invention also provides an H5 page jumping device of the WeChat applet, electronic equipment and a storage medium. The invention can improve the efficiency of page jump of the WeChat applet.

Description

H5 page jump method, device, equipment and storage medium of WeChat applet
Technical Field
The invention relates to the technical field of WeChat applets, in particular to a method and a device for skipping an H5 page of a WeChat applet, electronic equipment and a computer-readable storage medium.
Background
The WeChat applet is a program which can be used without downloading and installation based on the WeChat application program, the WeChat applet is more and more frequently appeared in daily life of people by means of the characteristics of huge user groups of WeChat and installation-free, but in order to improve user experience, a page jump method of the WeChat applet needs to be designed so as to facilitate user interaction.
The existing WeChat applet page jump method is mostly based on the default page jump method of the system. For example, a page jump method based on the navigationStyle custom head navigation bar. In practical application, a header navigation bar is embedded in a large number of H5 page-based WeChat applets during H5 development, which may cause the situation that the applet navigation bar and the H5 navigation bar appear simultaneously on the WeChat applet page, and when a user clicks the applet navigation bar, the WeChat applet may be directly quitted, which may cause the efficiency of page jump of the WeChat applet to be low.
Disclosure of Invention
The invention provides a method and a device for H5 page jump of a WeChat applet and a computer readable storage medium, and mainly aims to solve the problem of low efficiency in page jump of the WeChat applet.
In order to achieve the above object, the H5 page jump method of the WeChat applet provided by the present invention includes:
starting an H5 page in a WeChat applet, acquiring routing information of the H5 page, and generating a step number array according to the routing information;
taking an upper page of the H5 page as a target page, acquiring a jump object of the target page, and judging whether the jump object of the target page is a lower page;
when the skip object of the target page is the next-level page, updating the step number array, performing next-level skip on the target page, taking the skipped next-level page as the target page, and returning to the step of acquiring the skip object of the target page;
when the jumping object of the target page is not the lower-level page, judging whether the jumping object of the target page is a designated page;
when the jumping object of the target page is the designated page, calculating the backspacing step length of the jumping object by using the step number array, and performing designated jumping on the target page according to the backspacing step length;
and when the jump object of the target page is not the designated page, acquiring a backspacing instruction of a user, and jumping step by step according to the backspacing instruction.
Optionally, the generating a step number array according to the routing information includes:
selecting page information in the routing information one by one as target page information, taking a routing address corresponding to the target page information as a target address, and converting the target address into target address characters;
adding a page index to the target address character, generating step number elements according to the target address character and the page index, and collecting all the step number elements into a step number array.
Optionally, transforming the destination address into destination address characters comprises:
dividing the target address into a plurality of address data according to a preset address spacer;
and carrying out binary conversion on the address data one by one to obtain standard address data, and sequencing the standard address data according to the arrangement sequence of the address data to obtain target address characters.
Optionally, the obtaining a jump object of the target page includes:
performing event monitoring on the target page to obtain a page event;
and extracting a jump event from the page event, and extracting a jump object from the jump event.
Optionally, the updating the step number array includes:
acquiring a page address of the target page, and converting the page address into page address characters;
judging whether the page address character exists in the step number array or not;
and when the page address characters exist in the step number array, taking the page index corresponding to the page address characters in the step number array as a target index, deleting all elements positioned behind the target index in the step number array, and finishing the updating of the step number array.
And when the page address characters do not exist in the step number array, adding corresponding page indexes to the page address characters, and adding the page address characters and the corresponding page indexes to the tail of the step number array to finish the updating of the step number array.
Optionally, the performing lower-level jumping on the target page includes:
acquiring a jump address corresponding to the jump object;
and performing subordinate skipping on the target page according to the skipping address by using a hyperlink mode.
Optionally, the calculating a back-off step size of the jump object by using the step number array includes:
acquiring a page address of the target page, and converting the page address into page address characters;
acquiring a jump address of the jump object, and converting the jump address into jump address characters;
taking a page index corresponding to the page address character in the step number array as a first page index, and taking a page index corresponding to the jump address character in the step number array as a second page index;
and taking the difference value between the first page index and the second page index as the backspacing step length of the jump object.
In order to solve the above problem, the present invention further provides an H5 page jump apparatus of a wechat applet, the apparatus comprising:
the step number array module is used for starting an H5 page in the WeChat applet, acquiring the routing information of the H5 page and generating a step number array according to the routing information;
a lower judgment module, configured to take an upper page of the H5 page as a target page, obtain a jump object of the target page, and judge whether the jump object of the target page is a lower page;
a lower-level skip module, configured to update the step number array when a skip object of the target page is the lower-level page, perform lower-level skip on the target page, use the skipped lower-level page as the target page, and return to the step of obtaining the skip object of the target page;
the appointed judging module is used for judging whether the jumping object of the target page is an appointed page or not when the jumping object of the target page is not the lower-level page;
the specified skipping module is used for calculating the backspacing step length of the skipping object by using the step number array when the skipping object of the target page is the specified page, and performing specified skipping on the target page according to the backspacing step length;
and the step-by-step jump module is used for acquiring a backspacing instruction of a user when the jump object of the target page is not the appointed page, and jumping step by step according to the backspacing instruction.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the above-described H5 page jump method of the wechat applet.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the above H5 page jump method of the wechat applet.
According to the method and the device, the navigation style is configured before the H5 page in the WeChat applet is started, a standard navigation style is obtained, a head navigation column of the H5 page can be hidden, so that the clarity of the jump logic of the WeChat applet is guaranteed, the routing information of the H5 page is obtained, a step number array is generated according to the routing information, the address information of the H5 page can be converted into the step number array, index jump is performed when the page is jumped conveniently, the jump object of the target page is obtained by taking an upper page of the H5 page as a target page, whether the jump object of the target page is a next page is judged, page jump can be performed in a classified mode, so that the jump efficiency is improved, the step number array can be maintained globally, the step number array can store routing information of all pages in the H5 page, the jump object after jump is taken as the next page, the next jump object of the target page is returned to obtain the next jump object of the target page, step number array can be calculated according to the step size of the user experience of the next step back step of the jump conveniently, and the user can accurately calculate the step size of the next page. Therefore, the H5 page jump method, the device, the electronic equipment and the computer readable storage medium of the WeChat applet, which are provided by the invention, can improve the page jump efficiency of the WeChat applet.
Drawings
Fig. 1 is a schematic flowchart of an H5 page jump method of a wechat applet according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating the step array updating process according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of calculating the backoff step according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of an H5 page jump apparatus of the WeChat applet according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the H5 page jump method of the wechat applet according to an embodiment of 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.
The embodiment of the application provides an H5 page jump method of a WeChat applet. The execution subject of the H5 page jump method of the wechat applet includes but is not limited to at least one of the electronic devices that can be configured to execute the method provided by the embodiment of the present application, such as a server, a terminal, and the like. In other words, the H5 page jump method of the wechat applet may be performed by software or hardware installed in a terminal device or a server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Fig. 1 is a schematic flow chart of an H5 page jump method of a wechat applet according to an embodiment of the present invention. In this embodiment, the H5 page jump method of the wechat applet includes:
s1, starting an H5 page in a WeChat applet, acquiring routing information of the H5 page, and generating a step number array according to the routing information.
In the embodiment of the invention, the Wechat applet is one of small programs, is English name Wechat Mini Program, is an application which can be used without downloading and installation depending on WeChat, and can be used for building an on-line medical center or an on-line financial center.
In detail, the H5 page refers to a page of HTML5, HTML5 is a language description way for constructing Web content, and HTML5 is a next generation standard of the internet, is a language way for constructing and presenting internet content, and is considered as one of core technologies of the internet.
In detail, a large number of WeChat applets are currently on the market that are based on H5 page migration.
In the embodiment of the present invention, before starting the H5 page in the WeChat program, the method includes:
configuring the navigation style of the WeChat applet to obtain a standard navigation style;
and hiding a head navigation bar of the H5 page by using the standard navigation style.
In detail, the navigation style refers to a navigationStyle in the WeChat applet app.
In detail, the configuring the navigation style of the WeChat applet to obtain the standard navigation style means configuring the navigationStyle as custom.
In detail, the routing information refers to a set of page information obtained by processing after receiving an address requested by a user.
In the embodiment of the present invention, the getAllUrlParams function or clipboard interface component may be used to obtain the routing information in the H5 page.
In detail, the step number array may be stored in a data storage medium such as a block chain, a database, and the like.
In this embodiment of the present invention, the generating the step number array according to the routing information includes:
selecting page information in the routing information one by one as target page information, taking a routing address corresponding to the target page information as a target address, and converting the target address into target address characters;
adding a page index to the target address character, generating step number elements according to the target address character and the page index, and collecting all the step number elements into a step number array.
In detail, the target address character is a character for expressing the target address, which is conveniently stored as an array.
In detail, the page index refers to a subscript corresponding to the target address character in the step number array, and subsequent designated page skipping can be facilitated by adding the page index.
Specifically, the converting the destination address into destination address characters includes:
dividing the target address into a plurality of address data according to a preset address spacer;
and carrying out binary conversion on the address data one by one to obtain standard address data, and sequencing the standard address data according to the arrangement sequence of the address data to obtain target address characters.
In detail, the address spacer includes characters of ". Or": etc.
In detail, the address spacer may be retrieved from the target address by using a regular expression, and the target address may be divided into a plurality of address data according to the address spacer.
In this embodiment of the present invention, the address data is subjected to the binary conversion one by one, for example, 192 is converted into hexadecimal C0.
In detail, by converting the target address into target address characters, the byte length of the target address can be shortened, thereby shortening the storage resources occupied by the step number array and improving the use efficiency of the step number array.
In the embodiment of the invention, the navigation style is configured before the H5 page in the WeChat applet is started to obtain the standard navigation style, the head navigation bar carried by the H5 page can be hidden, so that the definition of the jump logic of the WeChat applet is ensured, the routing information of the H5 page is obtained, the step number array is generated according to the routing information, the address information of the H5 page can be converted into the step number array, and the index jump is conveniently carried out when the page jumps.
S2, taking an upper page of the H5 page as a target page, and acquiring a jump object of the target page.
In the embodiment of the present invention, the upper page is a page located at the uppermost layer of the wechat applet and used for being displayed by a display, that is, a page currently operated by a user.
In detail, the jump object refers to information of a page needing to jump corresponding to a user instruction.
In detail, the obtaining of the jump object of the target page includes:
performing event monitoring on the target page to obtain a page event;
and extracting a jump event from the page event, and extracting a jump object from the jump event.
In detail, an event trigger of H5, such as addEventListener, may be used to perform event monitoring on the target page, so as to obtain a page event.
In detail, the jump event includes a trigger event of a hyperlink and a trigger event of a form link.
In detail, the lower page is a lower page of the target page, when the target page is a main page, a first-level page is a lower page of the main page, and when the target page is a first-level page, a second-level page is a lower page of the first-level page.
In the embodiment of the invention, the jump object of the target page is obtained by taking the upper page of the H5 page as the target page.
And S3, judging whether the jumping object of the target page is a lower-level page or not.
In the embodiment of the present invention, the determining whether the jump object of the target page is a lower-level page refers to determining whether the jump object is an embedded link in the target page.
In the embodiment of the invention, page skipping can be classified and executed by judging whether the skipping object of the target page is a lower-level page or not, so that skipping efficiency is improved
And S4, when the jump object of the target page is the next-level page, updating the step number array, performing next-level jump on the target page, taking the skipped next-level page as the target page, and returning to the step of acquiring the jump object of the target page.
In the embodiment of the present invention, referring to fig. 2, the updating the step number array includes:
s21, acquiring a page address of the target page, and converting the page address into page address characters;
s22, judging whether the page address characters exist in the step number array or not;
s23, when the page address characters exist in the step number array, taking the page indexes corresponding to the page address characters in the step number array as target indexes, deleting all elements behind the target indexes in the step number array, and finishing updating the step number array.
S24, when the page address characters do not exist in the step array, adding corresponding page indexes to the page address characters, and adding the page address characters and the corresponding page indexes to the tail of the step array to finish the updating of the step array.
In detail, the step of converting the page address into the page address character is consistent with the method of converting the target address into the target address character in the step S1, and is not repeated here.
In this embodiment of the present invention, the performing lower-level skip on the target page includes:
acquiring a jump address corresponding to the jump object;
and performing subordinate skipping on the target page according to the skipping address by using a hyperlink mode.
In detail, the hyperlink may be in a location.
In the embodiment of the invention, when the jump target of the target page is the lower-level page, the step number array is updated, the lower-level jump of the target page is performed, the step number array can be maintained globally, so that the step number array can store all page routing information in the H5 page, and the user can conveniently perform the next jump by taking the lower-level page after the jump as the target page and returning to the step of acquiring the jump target of the target page.
And S5, when the jumping object of the target page is not the lower-level page, judging whether the jumping object of the target page is a designated page.
In the embodiment of the present invention, the designated page is a specific page that is located before the target page in the H5 page and has a page level greater than one level.
In detail, whether the jump object of the target page is a designated page can be determined by determining whether the jump object is a higher-level page of the target page.
And S6, when the jump object of the target page is the designated page, calculating the backspacing step length of the jump object by using the step number array, and performing designated jump on the target page according to the backspacing step length.
In the embodiment of the present invention, referring to fig. 3, the calculating a back-off step size of the jump object by using the step number array includes:
s31, acquiring a page address of the target page, and converting the page address into page address characters;
s32, acquiring a jump address of the jump object, and converting the jump address into jump address characters;
s33, taking a page index corresponding to the page address character in the step number array as a first page index, and taking a page index corresponding to the jump address character in the step number array as a second page index;
s34, taking the difference value between the first page index and the second page index as the backspacing step length of the jump object.
In detail, it is able to perform specified jump on the target page according to the backoff step using a history.
In the embodiment of the invention, the step number array is used for calculating the backspacing step length of the jump object, and the target page is subjected to appointed jump according to the backspacing step length, so that the user can conveniently and accurately jump between pages, the step of gradual jump of the user is omitted, and the interaction experience of the user is improved.
And S7, when the jump object of the target page is not the designated page, acquiring a backspacing instruction of a user, and jumping step by step according to the backspacing instruction.
In the embodiment of the present invention, when the jump object of the target page is not the designated page, it means that the jump object is a higher-level page of the target page.
In the embodiment of the present invention, the rollback instruction refers to a return button of the wechat applet, and the rollback instruction of the user may be obtained by using a navigationStyle component.
In detail, the method for performing step-by-step jump according to the rollback instruction is the same as the method for performing lower-level jump on the target page in the step S4, and is not described herein again.
In the embodiment of the invention, the navigation style is configured before the H5 page in the WeChat applet is started to obtain a standard navigation style, a head navigation bar carried by the H5 page can be hidden, so that the clarity of the jump logic of the WeChat applet is ensured, the routing information of the H5 page is obtained, a step number array is generated according to the routing information, the address information of the H5 page can be converted into the step number array, so that the index jump is convenient for page jump, the jump target of the target page is obtained by taking an upper page of the H5 page as a target page, whether the jump target of the target page is a lower page is judged, page jump can be classified and executed, so that the jump efficiency is improved, the step number array is updated when the jump target page is the lower page, the lower jump of the target page is carried out, the step number array can be globally maintained, so that the step number array can store all page routing information in the H5 page, the jump target page after the jump is taken as the lower page, the lower jump target page is returned, the step jump target page is obtained, the step number array can be calculated according to the step number of the step number array, the step back of the user can be accurately calculated by the step number of the step jump between the step jump of the step of the user, and the user can be conveniently carried out. Therefore, the H5 page jump method of the WeChat applet, provided by the invention, can improve the page jump efficiency of the WeChat applet.
Fig. 4 is a functional block diagram of an H5 page jump apparatus of a wechat applet according to an embodiment of the present invention.
The H5 page jump apparatus 100 of the wechat applet of the present invention may be installed in an electronic device. According to the realized functions, the H5 page jump device 100 of the wechat applet may include a step number array module 101, a lower judgment module 102, a lower jump module 103, a designated judgment module 104, a designated jump module 105, and a step-by-step jump module 106. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the step number array module 101 is configured to start an H5 page in a WeChat applet, obtain routing information of the H5 page, and generate a step number array according to the routing information;
the lower determining module 102 is configured to take an upper page of the H5 page as a target page, obtain a jump object of the target page, and determine whether the jump object of the target page is a lower page;
the lower-level skip module 103 is configured to update the step number array when a skip object of the target page is the lower-level page, perform lower-level skip on the target page, use the skipped lower-level page as the target page, and return to the step of obtaining the skip object of the target page;
the designation judging module 104 is configured to, when the jump object of the target page is not the lower-level page, judge whether the jump object of the target page is a designated page;
the specified skip module 105 is configured to, when a skip object of the target page is the specified page, calculate a back-off step size of the skip object by using the step number array, and perform specified skip on the target page according to the back-off step size;
the step-by-step jump module 106 is configured to, when the jump object of the target page is not the designated page, obtain a back-off instruction of the user, and jump step by step according to the back-off instruction.
In detail, when the modules in the H5 page jump apparatus 100 of the wechat applet in the embodiment of the present invention are used, the same technical means as the H5 page jump method of the wechat applet described in fig. 1 to fig. 3 are adopted, and the same technical effect can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device implementing an H5 page jump method of a wechat applet according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as an H5 page jump program of a wechat applet, stored in the memory 11 and operable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., an H5 page jump program for executing a wechat applet, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of an H5 page jump program of a wechat applet, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Only electronic devices having components are shown, and those skilled in the art will appreciate that the structures shown in the figures do not constitute limitations on the electronic devices, and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The H5 page jump program of the wechat applet stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, which when executed in the processor 10, may implement:
starting an H5 page in a WeChat applet, acquiring routing information of the H5 page, and generating a step number array according to the routing information;
taking an upper page of the H5 page as a target page, acquiring a jump object of the target page, and judging whether the jump object of the target page is a lower page;
when the jump object of the target page is the lower-level page, updating the step number array, performing lower-level jump on the target page, taking the lower-level page after the jump as the target page, and returning to the step of acquiring the jump object of the target page;
when the jumping object of the target page is not the lower-level page, judging whether the jumping object of the target page is a designated page;
when the jumping object of the target page is the designated page, calculating the backspacing step length of the jumping object by using the step number array, and performing designated jumping on the target page according to the backspacing step length;
and when the jump object of the target page is not the designated page, acquiring a backspacing instruction of a user, and jumping step by step according to the backspacing instruction.
Specifically, the specific implementation method of the instruction by the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
starting an H5 page in a WeChat applet, acquiring routing information of the H5 page, and generating a step number array according to the routing information;
taking an upper page of the H5 page as a target page, acquiring a jump object of the target page, and judging whether the jump object of the target page is a lower page;
when the jump object of the target page is the lower-level page, updating the step number array, performing lower-level jump on the target page, taking the lower-level page after the jump as the target page, and returning to the step of acquiring the jump object of the target page;
when the jumping object of the target page is not the lower-level page, judging whether the jumping object of the target page is a designated page;
when the jumping object of the target page is the designated page, calculating the backspacing step length of the jumping object by using the step number array, and performing designated jumping on the target page according to the backspacing step length;
and when the jump object of the target page is not the designated page, acquiring a backspacing instruction of a user, and jumping step by step according to the backspacing instruction.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method for H5 page jump of a WeChat applet, the method comprising:
starting an H5 page in a WeChat applet, acquiring routing information of the H5 page, and generating a step number array according to the routing information;
taking an upper page of the H5 page as a target page, acquiring a jump object of the target page, and judging whether the jump object of the target page is a lower page;
when the jump object of the target page is the lower-level page, updating the step number array, performing lower-level jump on the target page, taking the lower-level page after the jump as the target page, and returning to the step of acquiring the jump object of the target page;
when the jumping object of the target page is not the lower-level page, judging whether the jumping object of the target page is a designated page;
when the jumping object of the target page is the designated page, calculating the backspacing step length of the jumping object by using the step number array, and performing designated jumping on the target page according to the backspacing step length;
and when the jump object of the target page is not the designated page, acquiring a backspacing instruction of a user, and jumping step by step according to the backspacing instruction.
2. The H5 page jump method of a wechat applet as claimed in claim 1, wherein the generating a step array according to the routing information comprises:
selecting page information in the routing information one by one as target page information, taking a routing address corresponding to the target page information as a target address, and converting the target address into target address characters;
adding a page index to the target address characters, generating step number elements according to the target address characters and the page index, and collecting all the step number elements into a step number array.
3. The H5 page jump method of a wechat applet as claimed in claim 2, wherein converting the target address into target address characters comprises:
dividing the target address into a plurality of address data according to a preset address spacer;
and carrying out binary conversion on the address data one by one to obtain standard address data, and sequencing the standard address data according to the arrangement sequence of the address data to obtain target address characters.
4. The H5 page jump method of the wechat applet according to claim 1, wherein the acquiring the jump object of the target page comprises:
performing event monitoring on the target page to obtain a page event;
and extracting a jump event from the page event, and extracting a jump object from the jump event.
5. The H5 page jump method of a wechat applet as claimed in claim 1, wherein the updating the step number array comprises:
acquiring a page address of the target page, and converting the page address into page address characters;
judging whether the page address character exists in the step number array or not;
when the page address characters exist in the step number array, taking the page indexes corresponding to the page address characters in the step number array as target indexes, deleting all elements behind the target indexes in the step number array, and finishing the updating of the step number array;
and when the page address characters do not exist in the step number array, adding corresponding page indexes to the page address characters, and adding the page address characters and the corresponding page indexes at the tail of the step number array to finish the updating of the step number array.
6. The H5 page jump method of the wechat applet according to claim 1, wherein the performing the lower jump to the target page comprises:
acquiring a jump address corresponding to the jump object;
and performing subordinate skipping on the target page according to the skipping address by using a hyperlink mode.
7. The H5 page jump method of the wechat applet as claimed in claim 1, wherein the calculating the back-off step size of the jump object using the step number array comprises:
acquiring a page address of the target page, and converting the page address into page address characters;
acquiring a jump address of the jump object, and converting the jump address into jump address characters;
taking a page index corresponding to the page address character in the step number array as a first page index, and taking a page index corresponding to the jump address character in the step number array as a second page index;
and taking the difference value between the first page index and the second page index as the backspacing step length of the jump object.
8. An H5 page jump apparatus of a wechat applet, the apparatus comprising:
the step number array module is used for starting an H5 page in the WeChat applet, acquiring the routing information of the H5 page and generating a step number array according to the routing information;
a lower judgment module, configured to take an upper page of the H5 page as a target page, obtain a jump object of the target page, and judge whether the jump object of the target page is a lower page;
a lower-level skip module, configured to update the step number array when a skip object of the target page is the lower-level page, perform lower-level skip on the target page, use the skipped lower-level page as the target page, and return to the step of obtaining the skip object of the target page;
the appointed judging module is used for judging whether the jumping object of the target page is an appointed page or not when the jumping object of the target page is not the lower-level page;
the specified skipping module is used for calculating the backspacing step length of the skipping object by using the step number array when the skipping object of the target page is the specified page, and performing specified skipping on the target page according to the backspacing step length;
and the step-by-step jump module is used for acquiring a backspacing instruction of a user when the jump object of the target page is not the appointed page, and jumping step by step according to the backspacing instruction.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the H5 page jump method of the wechat applet as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the H5 page jump method of a wechat applet according to one of the claims 1 to 7.
CN202211438365.3A 2022-11-16 2022-11-16 H5 page jump method, device, equipment and storage medium of WeChat applet Pending CN115827115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211438365.3A CN115827115A (en) 2022-11-16 2022-11-16 H5 page jump method, device, equipment and storage medium of WeChat applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211438365.3A CN115827115A (en) 2022-11-16 2022-11-16 H5 page jump method, device, equipment and storage medium of WeChat applet

Publications (1)

Publication Number Publication Date
CN115827115A true CN115827115A (en) 2023-03-21

Family

ID=85528617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211438365.3A Pending CN115827115A (en) 2022-11-16 2022-11-16 H5 page jump method, device, equipment and storage medium of WeChat applet

Country Status (1)

Country Link
CN (1) CN115827115A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116233217A (en) * 2023-05-08 2023-06-06 成都赛力斯科技有限公司 Page jump method and device based on route, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116233217A (en) * 2023-05-08 2023-06-06 成都赛力斯科技有限公司 Page jump method and device based on route, electronic equipment and storage medium
CN116233217B (en) * 2023-05-08 2023-07-21 成都赛力斯科技有限公司 Page jump method and device based on route, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113806434B (en) Big data processing method, device, equipment and medium
CN112506486A (en) Search system establishing method and device, electronic equipment and readable storage medium
CN113327136A (en) Attribution analysis method and device, electronic equipment and storage medium
CN114398194A (en) Data collection method and device, electronic equipment and readable storage medium
CN112650909A (en) Product display method and device, electronic equipment and storage medium
CN115600644A (en) Multitasking method and device, electronic equipment and storage medium
CN115827115A (en) H5 page jump method, device, equipment and storage medium of WeChat applet
CN114185776A (en) Big data point burying method, device, equipment and medium for application program
CN112486490B (en) Front-end code packaging method and device, electronic equipment and storage medium
CN112256472A (en) Distributed data calling method and device, electronic equipment and storage medium
CN114816371B (en) Message processing method, device, equipment and medium
CN115080899A (en) Interactive sub-web page starting method, device, equipment and storage medium
CN115186188A (en) Product recommendation method, device and equipment based on behavior analysis and storage medium
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN114721952A (en) Method, device, equipment and storage medium for synchronously deploying multiple sets of test environments
CN114138243A (en) Function calling method, device, equipment and storage medium based on development platform
CN114518993A (en) System performance monitoring method, device, equipment and medium based on business characteristics
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN111859452A (en) Page information checking method, device and equipment and computer readable storage medium
CN111680204A (en) Data acquisition method, data acquisition device and computer readable storage medium
CN113657076B (en) Page operation record table generation method and device, electronic equipment and storage medium
CN115268980A (en) Method, device, equipment and storage medium for judging optimization of act component
CN114416575A (en) Method, device and equipment for generating Mock data and storage medium
CN114356379A (en) Backup-based service upgrading method, device, equipment and storage medium
CN115934576A (en) Test case generation method, device, equipment and medium in transaction scene

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