CN115543475A - Page jump method, device and equipment - Google Patents

Page jump method, device and equipment Download PDF

Info

Publication number
CN115543475A
CN115543475A CN202211059114.4A CN202211059114A CN115543475A CN 115543475 A CN115543475 A CN 115543475A CN 202211059114 A CN202211059114 A CN 202211059114A CN 115543475 A CN115543475 A CN 115543475A
Authority
CN
China
Prior art keywords
identification code
jump
code
application program
image
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
CN202211059114.4A
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202211059114.4A priority Critical patent/CN115543475A/en
Publication of CN115543475A publication Critical patent/CN115543475A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a page jump method, a device and equipment, wherein the method comprises the following steps: the method comprises the steps that the electronic equipment obtains a first image through a first application program, wherein the first image comprises an identification code; acquiring a jump address corresponding to the identification code; and displaying the target object page corresponding to the identification code in a second application program according to the jump address, wherein the second application program is different from the first application program. The electronic equipment acquires the jump address through the identification code in the first image in the first application program, and then can directly jump to the second application program and display the target object page corresponding to the identification code, so that the quick jump of the target object page is realized, the operation path of a user is shortened, the operation mode is simpler, and the time of the user is saved.

Description

Page jump method, device and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page jump method, apparatus, and device.
Background
With the continuous development of intelligent technologies such as image recognition and the internet of things, various identification codes such as bar codes or two-dimensional codes are widely applied to daily life of users. In some scenarios, a user often needs to view a specific object, such as a commodity, logistics information, or a medicine, according to an identification code.
In the related art, a user usually searches and opens a certain Application program (App) in an electronic device, invokes a code scanning function inside the App, scans an identification code, and opens a corresponding object page. The operation mode is complicated, the operation path is long, and a large amount of time is consumed by a user.
Disclosure of Invention
Various aspects of the present application provide a page jump method, device and apparatus, so as to improve and shorten an operation path of a user, make a page jump operation simpler, and save time of the user.
In a first aspect, an embodiment of the present application provides a page jump method, including:
acquiring a first image through a first application program, wherein the first image comprises an identification code;
acquiring a jump address corresponding to the identification code;
displaying a target object page corresponding to the identification code in a second application program according to the jump address; the second application is different from the first application.
In a possible implementation manner, the obtaining a jump address corresponding to the identification code includes:
performing identification processing on the identification code to acquire code information of the identification code;
and acquiring the jump address corresponding to the identification code according to the code information.
In a possible implementation manner, the obtaining, according to the code information, a jump address corresponding to the identification code includes:
sending the code information to a first service end; the first service end is in communication connection with a second service end; the second service end is used for splicing the code information to obtain the jump address and sending the jump address to the first service end; the first server is used for sending the code information to the second server and receiving the jump address;
and receiving the jump address returned by the first service end.
In a possible embodiment, the jump address comprises code information of the identification code.
In a possible embodiment, the jump address further comprises at least one of: the image processing method comprises the following steps of obtaining the image address of the identification code, and obtaining the code type of the identification code, the source channel of the identification code, the image address of the identification code and the extension parameter of the identification code.
In a possible implementation manner, the displaying, in the second application, the target object page corresponding to the identification code according to the jump address includes:
determining a second application program in a plurality of application programs in the electronic equipment according to the jump address;
starting the second application program, and acquiring a target object page corresponding to the identification code;
and displaying the target object page in the second application program.
In one possible embodiment, the launching the second application includes:
determining a first initialization process according to a source channel corresponding to the jump address;
and starting the first initialization process to realize the starting of the second application program.
In a possible implementation manner, the starting the first initialization process to implement starting the second application includes:
determining a second initialization process according to the first initialization process;
starting the first initialization process and suspending the execution of the second initialization process.
In one possible embodiment, the acquiring, by the first application, the first image includes:
acquiring a real-time preview image of the first application program, and taking the real-time preview image as the first image; or,
and reading a local image through the first application program, and taking the local image as the first image.
In one possible embodiment, the jump address is a universal link ULK.
In a second aspect, an embodiment of the present application provides a page jump apparatus, including:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first image through a first application program, and the first image comprises an identification code;
the second acquisition module is used for acquiring the jump address corresponding to the identification code;
the display module is used for displaying the target object page corresponding to the identification code in a second application program according to the jump address; the second application is different from the first application.
In a possible implementation manner, the second obtaining module is specifically configured to:
performing identification processing on the identification code to acquire code information of the identification code;
and acquiring the jump address corresponding to the identification code according to the code information.
In a possible implementation manner, the second obtaining module is specifically configured to:
sending the code information to a first service end; the first service end is in communication connection with a second service end; the second service end is used for splicing according to the code information to obtain the jump address and sending the jump address to the first service end; the first server is used for sending the code information to the second server and receiving the jump address;
and receiving the jump address returned by the first service end.
In a possible embodiment, the jump address comprises code information of the identification code.
In a possible embodiment, the jump address further comprises at least one of: the image processing method comprises the steps of obtaining the image address of the identification code, obtaining the code type of the identification code, the source channel of the identification code, the image address of the identification code and the extension parameter of the identification code.
In a possible implementation manner, the display module is specifically configured to:
determining a second application program in a plurality of application programs in the electronic equipment according to the jump address;
starting the second application program, and acquiring a target object page corresponding to the identification code;
and displaying the target object page in the second application program.
In a possible implementation, the display module is specifically configured to:
determining a first initialization process according to a source channel corresponding to the jump address;
and starting the first initialization process to realize the starting of the second application program.
In a possible implementation, the display module is specifically configured to:
determining a second initialization process according to the first initialization process;
starting the first initialization process and suspending the execution of the second initialization process.
In a possible implementation manner, the first obtaining module is specifically configured to:
acquiring a real-time preview image of the first application program, and taking the real-time preview image as the first image; or,
and reading a local image through the first application program, and taking the local image as the first image.
In one possible embodiment, the jump address is a universal link ULK.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor;
the memory stores computer execution instructions;
the processor executes computer-executable instructions stored in the memory, so that the processor executes the page jump method of any one of the first aspects.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the page jump method according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the page jump method shown in any one of the first aspect.
In the embodiment of the application, the electronic equipment acquires a first image through a first application program, wherein the first image comprises an identification code; acquiring a jump address corresponding to the identification code; and displaying the target object page corresponding to the identification code in a second application program according to the jump address, wherein the second application program is different from the first application program. The electronic equipment acquires the jump address through the identification code in the first image in the first application program, and then can directly jump to the second application program and display the target object page corresponding to the identification code, so that the quick jump of the target object page is realized, the operation path of a user is shortened, the operation mode is simpler, and the time of the user is saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of an application scenario provided in an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a technical principle of identification code scanning and identification in the related art;
FIG. 3 is a diagram illustrating a display process of a merchandise result page in the related art;
fig. 4 is a flowchart illustrating a page jump method according to an exemplary embodiment of the present application;
fig. 5 is a schematic flowchart of another page jump method according to an exemplary embodiment of the present application;
FIG. 6 is an interaction diagram illustrating jump address generation according to an exemplary embodiment of the present application;
fig. 7 is a schematic flowchart of another page jump method according to an exemplary embodiment of the present application;
FIG. 8 is an interaction diagram of page jump according to an exemplary embodiment of the present application;
FIG. 9 is a technical link diagram of page jump according to an exemplary embodiment of the present application;
FIG. 10 is a schematic structural diagram of a page turning device according to an exemplary embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic diagram of an application scenario provided in an exemplary embodiment of the present application. As shown in fig. 1, includes an electronic device 101. The electronic device 101 may be a mobile phone, a computer, or the like. The electronic device 101 may be provided with at least one camera.
In the embodiment of the application, as shown in fig. 1, the electronic device may start a first application program (a system camera in fig. 1) based on a touch instruction of a user, acquire a first image including an identification code, then may automatically jump to a second application program, and display a target object page corresponding to the identification code, thereby implementing quick jump of the page.
Specifically, in daily life, various kinds of identification codes are various. Based on the form, the identification code can be divided into bar code, two-dimensional code, and the like; the identification code may be classified into a PRODUCT code (PRODUCT), a logistics code or an EXPRESS order code (EXPRESS), a MEDICINE code (MEDICINE), a traceability code (transaction), a Quick Response code (QR), a hand-wash internal triple code (GEN 3), and the like, based on actual use. Of course, the identification code may also be used in other applications or in other forms of construction, and the embodiment of the present application is not limited thereto.
Taking the example that the user scans the commodity code in the e-commerce APP, fig. 2 shows a technical principle schematic diagram of identification code scanning identification in the related art. As shown in fig. 2, the technical link of the identification code scanning identification is divided into four parts, namely input, decoding, code presentation and code processing. The method comprises the following specific steps:
the electronic equipment starts the e-commerce APP based on the user touch instruction, and starts a code scanning function, such as a 'scanning' function, inside the e-commerce APP based on the user touch instruction. In the "scan" function of the e-commerce APP, the input source may refer to image frames of a lens page, and may also be an image selected by a user in an album. In the decoding process, the electronic device transcodes the input source to generate image frame data (imageBufferRef), then transmits the image frame data to a decoding Software Kit (SDK) to obtain a decoding result, and then performs secondary processing on the decoding result, such as calculating and storing a code frame.
And in the code display process, the electronic equipment displays the anchor points according to the decoding result and the code frame. The following three cases may be included at this time: when the code is not identified, displaying without anchor points; when the single code is identified, displaying the anchor point in the single code state and jumping after a specified time; and when the multi-code is recognized, displaying the anchor point in a multi-code state and waiting for a user to click. The specific condition of skipping in the display process can be that a single-code time arrives or a multi-code user clicks, namely: in the single code state, directly skipping after the designated time (preset time threshold); and in the multi-code state, skipping after detecting that the user clicks.
In the code processing process, the electronic equipment determines the code type for a single code to be processed, and performs different operations according to the different code types. For example, when the identification code is a logistics code, the electronic device may jump to a logistics page or a commodity result page; when the identification code is a commodity code, the electronic equipment can skip to a commodity result page; when the identification code is a drug code, the electronic device can jump to a health-related page. Of course, the identification code may be of other types, and the electronic device may perform other jump operations correspondingly, and may be flexibly set based on the actual situation, which is only exemplarily illustrated in fig. 2 and is not shown one by one.
Taking the example that the e-commerce APP displays the commodity result page based on the commodity code, fig. 3 shows a schematic diagram of a display process of a commodity result page of the related art. As shown in fig. 3, the electronic device first needs to obtain basic parameters such as the code content (barcode), the code type (barcode type), the pattern source (pssource), and the background occupancy bitmap (image) according to the product code, and generates a route according to the parameters, where the route is used to open a specific product result page, and the route may be specifically represented as "xxxxx:// h5.M. Xxx. And then, after the electronic equipment starts the e-commerce APP, calling the generated route of the service end by taking the barcode, the pssource and other basic parameters as transmission parameters to obtain a commodity result, and finally displaying a commodity result page.
It can be seen that, in the related art, when a user needs to scan a specific identification code, the user generally needs to search and open a specific application program in the electronic device, then call a code scanning function in the application program, scan the identification code, and open a corresponding detail page. The page jump method has the disadvantages of long operation path of the user, tedious operation and more time consumption of the user.
In the embodiment of the application, the electronic equipment acquires a first image through a first application program, wherein the first image comprises an identification code; acquiring a jump address corresponding to the identification code; and displaying the target object page corresponding to the identification code in the second application program according to the jump address. The electronic equipment acquires the jump address through the identification code in the first image in the first application program, and then can directly jump to the second application program and display the target object page corresponding to the identification code, so that the quick jump of the target object page is realized, the operation path of a user is shortened, the operation mode is simpler, and the time of the user is saved.
Hereinafter, the technical means shown in the present application will be described in detail by specific examples. It should be noted that the following embodiments may exist alone or in combination with each other, and description of the same or similar contents is not repeated in different embodiments.
Fig. 4 is a flowchart illustrating a page jump method according to an exemplary embodiment of the present application. Referring to fig. 4, the method may include:
s401, acquiring a first image through a first application program, wherein the first image comprises an identification code.
The execution main body of the embodiment of the application can be electronic equipment, and can also be a page jumping device arranged in the electronic equipment. The page jump device can be realized by software, and also can be realized by the combination of software and hardware. For ease of understanding, the following description will be given taking an execution subject as an electronic device as an example.
In this embodiment of the application, the first application may refer to any application installed in the electronic device, specifically, a camera application such as a system camera may be used, and may also be an instant messaging application, and the specific type of the first application is not limited in this embodiment of the application. The operating system of the electronic device may be an Android (Android) system or an IOS operating system, which is not limited in this embodiment of the present application. The first image may refer to an image including an identification code, and specifically may refer to a preview image of the first application program, an image currently captured by the first application program, or a local image read by the first application program, or the like. The identification code may refer to a graphic code to be identified or scanned, and may be a bar code or a two-dimensional code, etc.
In this step, when the identification code needs to be scanned and page skipping is performed, the electronic device may obtain the first image through the first application program, and subsequently may directly skip to the second application program on the basis of the first application program, and display the target object page corresponding to the identification code, thereby implementing page skipping quickly. Therefore, the user does not need to perform the operations of autonomously judging the second application program, searching and opening the second application program and scanning code skipping, the operation path of the user can be simplified, and the operation of the user is simpler.
In one possible embodiment, acquiring the first image by the first application may include:
acquiring a real-time preview image of a first application program, and taking the real-time preview image as a first image; or reading the local image through the first application program, and taking the local image as the first image.
In this embodiment, the real-time preview image may refer to an image frame that is acquired by the electronic device in real time in a view frame after the first application program is started. The electronic equipment can take the real-time preview image as the first image, so that the speed of acquiring the first image can be increased, meanwhile, a user does not need to touch a shooting key, and the operation of the user can be simplified.
In addition, the electronic device may also read the local image by the first application program, and use the local image as the first image. Specifically, the electronic device may determine one or more local images as the first image in the local album based on an input instruction of the user, which may improve flexibility of acquiring the first image.
S402, acquiring the jump address corresponding to the identification code.
In this embodiment, the jump address may refer to an address capable of directly jumping to a target object page corresponding to the identification code. The specific type of the jump address may be a jump link, for example, the jump address may be a Uniform Resource Locator (URL), and the like, which is not limited in this embodiment of the application.
S403, displaying a target object page corresponding to the identification code in the second application program according to the jump address; the second application is different from the first application.
In this embodiment of the application, the second application program may be used to display the target object page. The second application program may correspond to the identification code, that is, different types of identification codes correspond to different second application programs, one type of identification code corresponds to one type of second application program, and the electronic device may determine the second application program corresponding to the identification code based on the type of the identification code; the second application may also be a default application, i.e. different types of identification codes may be opened by the same second application. The embodiment of the present application does not limit the specific determination manner and the corresponding manner of the second application.
The target object page may refer to a specific object detail page corresponding to the identification code. Due to different types of the identification codes, the target object page can be a logistics result page, a commodity result page or a health page and the like. In this step, after the electronic device obtains the jump address corresponding to the identification code, the second application program may be started, and the target object page is displayed in the second application program, so as to implement quick jump of the page.
In the embodiment of the application, the electronic equipment acquires a first image through a first application program, wherein the first image comprises an identification code; acquiring a jump address corresponding to the identification code; and displaying the target object page corresponding to the identification code in a second application program according to the jump address, wherein the second application program is different from the first application program. The electronic equipment acquires the jump address through the identification code in the first image in the first application program, and then can directly jump to the second application program and display the target object page corresponding to the identification code, so that the quick jump of the target object page is realized, the operation path of a user is shortened, the operation mode is simpler, and the time of the user is saved.
The above step S402 of the page jump method is further described in detail below with reference to fig. 5 on the basis of the embodiment shown in fig. 4.
Fig. 5 is a flowchart illustrating another page jump method according to an exemplary embodiment of the present application. Referring to fig. 5, the method may include:
s501, identification processing is carried out on the identification code to obtain code information of the identification code.
In this embodiment, the code information may refer to code content extracted based on the identification code. For example, when the identification code is a bar code, the code information may be a string of numbers; when the identification code is a two-dimensional code, the code information may be a string of text.
And S502, acquiring a jump address corresponding to the identification code according to the code information.
In the embodiment of the application, after the code information is determined, the electronic device can send the code information to a server (server), and the server performs address splicing based on the code information to obtain the jump address. And then the server can send the jump address to the electronic equipment, and the electronic equipment receives the jump address returned by the server, so that the jump address can be quickly and accurately acquired.
In one possible implementation, S502 may include the following steps (1) to (2):
(1) Sending code information to the first service end; the first service end is in communication connection with the second service end; the second server is used for obtaining a jump address according to code information splicing and sending the jump address to the first server; the first server is used for sending the code information to the second server and receiving the jump address.
(2) And receiving the jump address returned by the first server.
In this embodiment, the service end may include a first service end and a second service end. The first service end can be a customs service end, can be used for exchanging data with a specific service end, and can ensure data security. The second server may refer to a specific service server, and may perform address concatenation based on the code information to obtain a final jump address. The following describes a specific generation process of the jump address with reference to fig. 6.
Fig. 6 is an interaction diagram of generating a jump address according to an exemplary embodiment of the present application. As shown in fig. 6, the electronic device acquires a first image including an identification code and transmits code information (codeContent) of the first image to the first service. The first service end receives the code information and sends the code information to the second service end, the second service end receives the code information and generates a jump address based on the code information, then the jump address is sent to the first service end, and the first service end sends the jump address to the electronic equipment.
In addition, when the electronic device sends the code information to the first service terminal, the electronic device can also carry a source channel of the identification code. Taking the operating system of the electronic device as an IOS system as an example, the source channel may be "applet". After the first service end receives the code information and the source channel, the source of the code information can be determined, the code information can be sent to the second service end subsequently, and the second service end carries out address splicing based on the preset configuration corresponding to the source channel to obtain the jump address. Therefore, the second server can set different preset configurations aiming at different source channels, and the flexibility of address splicing configuration can be improved.
It should be noted that the electronic device may also directly communicate with the second server for specific service processing, without forwarding through the first server. Namely: the electronic equipment can directly send the code information to the second server, the second server generates the jump address based on the code information and returns the jump address to the electronic equipment, and the electronic equipment receives the jump address and conducts page jump. Therefore, the links for information transmission can be reduced, and the computing resources are saved.
In a possible embodiment, the jump address comprises code information identifying a code.
In a possible embodiment, the jump address further comprises at least one of: the code type of the identification code, the source channel of the identification code, the image address of the identification code and the extension parameter of the identification code.
In the embodiment of the application, when address splicing is performed by the second server, the code information of the identification code can be added to the jump address. In addition, the jump address may further include at least one of a code type (codeType) of the identification code, a source channel (pssource) of the identification code, an image address (imageUrl) of the identification code, and an extended parameter (extra) of the identification code. The code type may refer to a specific category of the identification code, for example, the identification code is specifically a commodity code, a logistics code, a medicine code, or the like; the source channel of the identification code may refer to a specific source of the identification code, such as a first application program of an android operating system or a first application program of an IOS operating system. The image address of the identification code may refer to a storage address of a background image corresponding to the identification code. The extension parameter of the identification code can be used to add other fields, which is a function reservation field. Illustratively, table 1 shows a parameter design of a jump address of an exemplary embodiment of the present application.
TABLE 1
Parameter(s) Whether or not it can be empty Type (B) Description of the preferred embodiment
codeContent Whether or not string Code information
codeType Is that string Code type
pssource Is that string Source channel
imageUrl Is that string Image address
extra Is that string Extended parameters
As shown in table 1, the code information in the jump address is not empty, i.e. the jump information includes the code information to ensure normal jump of the page. The type of code information is a string (string). In the jump address, the code type, the source channel, the image address and the extension parameter are optional parameters, which can be null, and the types are all character strings. The code type can be judged and confirmed by the second server side based on the code content. The source channel may be carried when the electronic device sends the code information to the first service. The image address may be a memory address of the first image including the identification code by default. The extension parameters can be used for subsequent function extension, and can include parameter contents of subsequent extension. Therefore, through the parameter configuration, the flexibility of the jump address splicing is higher, the expandability is stronger, and the method can be flexibly applied to more scenes.
In the related art, the code compatibility of the internal code scanning identification function of the application program is not high, the code information, the source channel and other contents in the external jump address cannot be identified, the reference can be only carried out in a Native mode, and the internal parameter analysis of the URL is not supported. The external jump address can only enter a service domain identified by scanning the code of the application program, namely, the external jump address can only realize the function of scanning the code of the calling application program, and cannot enter a service domain acquired and displayed by a specific page, so that direct and rapid jump of the page cannot be directly realized.
In the embodiment of the application, the electronic device can support the analysis of the code information, the source channel and other contents in the jump address, and the user can quickly jump to a target object page in the second application program based on the jump address in the first application program, so that the operation of the user is simplified, the quick jump of the page is realized, and the time of the user is saved. Illustratively, the jump address may be: "xxx:// h5.M.xx.com/tusou/image _ editor/index. HtmlcodeContent =6928471320837&pssource =apple \ u camera", and the like. That is, the jump address may include parameters such as code information, and URL parameter analysis of the jump address can be realized.
In one possible embodiment, the jump address is a universal link, ULK.
In this embodiment of the application, a Universal Link (ULK) may refer to a Link for performing page jump, and the Universal Link may be a hypertext Transfer Protocol (HTTP) Link.
In one implementation, the IOS system typically employs a link hierarchy (URL Scheme) to implement various types of jump links. The URL Scheme has high customization degree and can flexibly realize a plurality of jumps. In an IOS system, however, this approach can only be used to implement jumps via links in the format scheme:// example. And the IOS system also adds a "open or not open xxx" prompt to the jump in this manner. In a scene with a large skip interaction demand, the skip mode has complicated steps and is complicated in user operation.
In the embodiment of the application, the electronic equipment adopts the universal link ULK as the jump address, namely, the ULK is adopted as the calling end for type selection, and direct, smooth and seamless jump can be provided. Com/t, and the user does not need to open the link in the browser and click other buttons, so that one-key direct and seamless link are realized, and the page jumping speed and the simplicity degree are improved. The universal link ULK can be applied to an IOS system and an android operating system, and can be flexibly configured based on actual requirements.
Illustratively, the splicing manner of the jump address ULK in the electronic device may be as follows: https:// ace.xx.cn? smburl = xxx. Xx in the domain name ace.xx.cn can be flexibly set based on a second application program, and specifically can be Taobao (tb) and the like. The content included in the field smburl may refer to an internal protocol link of the second application for accessing a specific target object page in the second application, such as a tabby open protocol link (tbopen) or the like.
Specifically, when the jump address is spliced, after receiving code information sent by the electronic device, the second server may first determine each basic parameter, such as a code type, a source channel, and the like; then, each basic parameter is added into a corresponding field to obtain a Deep Link (Deep Link), such as tbopen protocol Link; and then coding the deep link and adding a URL part of hypertext HTML5 (H5) to obtain a final jump address. It should be noted that the code information sent by the electronic device to the first service end may not include the H5Url part, the second service end performs address splicing based on the preset configuration, the H5Url part is added to obtain a complete jump address, and the subsequent electronic device may read the H5Url part through route resolution and perform page jump. Therefore, dynamic configuration of the ULK link can be realized, the expandability is high, excessive protocol modification is not needed on the electronic equipment side, the configuration efficiency can be improved, and the application range is wide. Taking the second application as an example of panning, the final form of the jump address may be:
https:// ace.tb.c/tsmburl = (tbopen://... CodeContent = xxx & codeType = xxx & h5Url = taobao:// \ 8230; codeContent = xxx & codeType = xxx encoding) code
It should be noted that the splicing manner and the specific form of the jump address may also be other manners, the above example is only used for illustration, and the embodiment of the present application does not limit this.
The above step S403 of the page jump method is further described in detail below with reference to fig. 7 on the basis of the embodiment shown in fig. 4.
Fig. 7 is a flowchart illustrating another page jump method according to an exemplary embodiment of the present application. Referring to fig. 7, the method may include:
s701, determining a second application program in the plurality of application programs in the electronic equipment according to the jump address.
In the embodiment of the application, after the jump address is determined, the electronic device may determine a second application program from the installed plurality of application programs. The second application program may be determined based on a domain name in the jump address, or may be determined based on a field of a code type included in the jump address, which is not limited in this embodiment of the present application.
And S702, starting the second application program, and acquiring a target object page corresponding to the identification code.
In the embodiment of the application, after the second application program is determined, the electronic device may start the second application program and obtain the target object page.
In one possible implementation, S702 may include the following steps (3) to (4):
(3) And determining a first initialization process according to the source channel corresponding to the jump address.
(4) And starting the first initialization process to realize the starting of the second application program.
In this embodiment of the present application, the first initialization process may refer to an initialization process related to page display of the target object. The electronic device may determine the first initialization process based on a source channel corresponding to the jump address, for example, the source channel of the IOS system is "applet-camera", and the like. After the first initialization process is determined, the electronic device may start the first initialization process to ensure the start of the second application program, and further ensure the normal display of the target object page.
In one possible embodiment, step (4) may specifically include the following steps (5) to (6):
(5) And determining a second initialization process according to the first initialization process.
(6) And starting the first initialization process and suspending the execution of the second initialization process.
In this embodiment of the application, the second initialization process may refer to an unnecessary or unrelated initialization process when the target object page is exposed, for example, an initialization process such as a code processing type. When the second application program is started, the electronic equipment can preferentially start the first initialization process related to the target object page display, and suspend or shield the second initialization process unrelated to the target object page display. Therefore, unnecessary time consumption can be reduced, the starting speed of the second application program is increased, and the quick jump of the page is realized.
It should be understood that, the sequence numbers in the embodiments of the present application are only used for distinguishing and not as a limitation to the sequence between the steps, and the sequence between the steps may be flexibly adjusted based on actual requirements, which is not limited in the embodiments of the present application.
And S703, displaying the target object page in the second application program.
In the embodiment of the application, the electronic device can adopt the preset quick configuration to realize the quick jump of the page. Specifically, each configuration parameter in the process of jumping to the target object page can be searched and determined, the configuration parameter is adjusted to a default value with the highest speed, the rapid pulling of the network and other configurations is realized, and the rapid jumping of the page is further realized. Illustratively, table 2 shows default values of the fast configuration parameters of the exemplary embodiments of the present application.
TABLE 2
Parameter(s) Description of the invention
host_switch_list Domain name replacement whitelist
enableUnionScanResult Opening a scanning uniform result page
tbpsNewScanGoodJumpUrl Using the latest version of the on-screen results page
As shown in table 2, host _ switch _ list may be a list of domain name replacements, which can dynamically replace the domain name of a route. In the embodiment of the application, the host _ switch _ list can be set as a default value, and the domain name does not need to be replaced. The enableinunison ScanResult and tbpsNewScanGoodJumpUrl can be used for displaying the unified result page and the on-screen result page, can be directly set as default values, namely the unified result page is displayed by default to display more objects, and the latest on-screen result page (front end page) is displayed, so that the display content can be enriched, and the user experience can be improved. Of course, the above parameters are only a few examples, and other parameters may also be configured quickly based on actual requirements, and for a special source channel such as an IOS system, the architecture optimization may also be performed globally from a technical link, which is not limited in the embodiment of the present application. Therefore, when the target object page is obtained and displayed, the whole technical link can be quickly completed by adopting the faster configuration parameters, and the quick jump of the page is realized.
On the basis of any one of the above embodiments, fig. 8 shows an interaction diagram of page jump according to an exemplary embodiment of the present application. As shown in fig. 8, the electronic device obtains a first image through a first application, where the first image includes an identification code. The electronic equipment determines code information based on the identification code and sends the code information to the first server. And the first service end forwards the code information to a second service end, the second service end carries out ULK splicing after receiving the code information to obtain a jump address, and then the second service end sends the jump address to the first service end. And the first service end forwards the jump information to the electronic equipment, and the electronic equipment receives the jump address, starts a second application program according to the jump address and displays a target object page corresponding to the identification code. Therefore, the electronic equipment can realize the quick jump of the page on the basis of the first application program, simplify the operation of the user, shorten the operation path of the user and further save the time of the user.
On the basis of any of the above embodiments, fig. 9 shows a technical link diagram of page jump according to an exemplary embodiment of the present application. As shown in fig. 9, the electronic device obtains the first image including the identification code through the first application, and then the electronic device obtains the code information and sends the code information to the first service terminal, such as a customs service terminal. The first service end receives the code information and forwards the code information to the second service end. And the second server carries out address splicing to obtain a jump address, and the jump address is sent to the electronic equipment through the first server. And the electronic equipment performs route analysis according to the jump address and acquires various parameters, such as code content, code type, source channel and the like, included in the jump address. For example, taking the second application as panning, the routing module in hand panning can read H5Url and jump based on various parameters of H5 Url. And the electronic equipment starts the second application program based on the jump address and displays the target object page. Specifically, the electronic device may execute different skip operations according to different code types, for example, when the identification code is a logistics code, the electronic device may skip to a logistics page, and may also skip to a commodity result page; when the identification code is a commodity code, the electronic equipment can skip to a commodity result page; when the identification code is a medicine code, the electronic device can start the health-related APP and display a target object page. Of course, the identification code may be of other types, the electronic device may correspondingly perform other jump operations to display other target object pages, and may specifically be flexibly set based on actual situations, which is only exemplarily illustrated in fig. 9 and is not shown one by one.
Fig. 10 is a schematic structural diagram of a page jump apparatus provided in an exemplary embodiment of the present application, please refer to fig. 9, the page jump apparatus includes:
a first obtaining module 11, configured to obtain a first image through a first application, where the first image includes an identification code;
a second obtaining module 12, configured to obtain a jump address corresponding to the identification code;
the display module 13 is configured to display, in the second application program, the target object page corresponding to the identification code according to the jump address; the second application is different from the first application.
The page jump device provided in the embodiment of the present application can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In a possible implementation, the second obtaining module 12 is specifically configured to:
carrying out identification processing on the identification code to obtain code information of the identification code;
and acquiring the jump address corresponding to the identification code according to the code information.
In a possible implementation, the second obtaining module 12 is specifically configured to:
sending code information to a first service end; the first service end is in communication connection with the second service end; the second server is used for obtaining a jump address according to code information splicing and sending the jump address to the first server; the first server is used for sending code information to the second server and receiving the jump address;
and receiving the jump address returned by the first server.
In a possible embodiment, the jump address comprises code information identifying a code.
In a possible embodiment, the jump address further comprises at least one of: the code type of the identification code, the source channel of the identification code, the image address of the identification code and the extension parameter of the identification code.
In a possible embodiment, the display module 13 is specifically configured to:
determining a second application program in a plurality of application programs in the electronic equipment according to the jump address;
starting a second application program, and acquiring a target object page corresponding to the identification code;
and displaying the target object page in the second application program.
In a possible embodiment, the display module 13 is specifically configured to:
determining a first initialization process according to a source channel corresponding to the jump address;
and starting the first initialization process to realize the starting of the second application program.
In a possible embodiment, the display module 13 is specifically configured to:
determining a second initialization process according to the first initialization process;
starting the first initialization process and suspending execution of the second initialization process.
In a possible implementation manner, the first obtaining module 11 is specifically configured to:
acquiring a real-time preview image of a first application program, and taking the real-time preview image as a first image; or,
and reading the local image through the first application program, and taking the local image as a first image.
In one possible embodiment, the jump address is a universal link, ULK.
The page jump device provided in the embodiment of the present application can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
The page jump apparatus shown in the embodiment of fig. 10 may be an apparatus in a server, or may be an apparatus in a terminal device (e.g., a mobile phone, a computer).
An exemplary embodiment of the present application provides a schematic structural diagram of an electronic device, please refer to fig. 11, where the electronic device 20 may include a processor 21 and a memory 22. The processor 21, the memory 22, and the various parts are illustratively interconnected by a bus 23.
The memory 22 stores computer-executable instructions;
processor 21 executes computer-executable instructions stored by memory 22 to cause processor 21 to perform the page jump method as shown in the above-described method embodiments.
The electronic device shown in the embodiment of fig. 11 may be a server, and may also be a terminal device (e.g., a mobile phone, a computer).
Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the page jump method of the above-described method embodiment is implemented.
Accordingly, the present application may further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the page jump method shown in the foregoing method embodiment may be implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors, input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises that element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (14)

1. A page jump method is characterized by comprising the following steps:
acquiring a first image through a first application program, wherein the first image comprises an identification code;
acquiring a jump address corresponding to the identification code;
displaying a target object page corresponding to the identification code in a second application program according to the jump address; the second application is different from the first application.
2. The method of claim 1, wherein the obtaining the jump address corresponding to the identification code comprises:
performing identification processing on the identification code to acquire code information of the identification code;
and acquiring the jump address corresponding to the identification code according to the code information.
3. The method of claim 2, wherein the obtaining the jump address corresponding to the identification code according to the code information comprises:
sending the code information to a first service end; the first service end is in communication connection with a second service end; the second service end is used for splicing according to the code information to obtain the jump address and sending the jump address to the first service end; the first server is used for sending the code information to the second server and receiving the jump address;
and receiving the jump address returned by the first service end.
4. A method according to any one of claims 1 to 3, characterized in that said jump-to-address comprises code information of said identification code.
5. The method of claim 4, wherein the jump address further comprises at least one of: the image processing method comprises the steps of obtaining the image address of the identification code, obtaining the code type of the identification code, the source channel of the identification code, the image address of the identification code and the extension parameter of the identification code.
6. The method according to any one of claims 1 to 5, wherein the displaying the target object page corresponding to the identification code in the second application program according to the jump address comprises:
determining a second application program in a plurality of application programs in the electronic equipment according to the jump address;
starting the second application program, and acquiring a target object page corresponding to the identification code;
and displaying the target object page in the second application program.
7. The method of claim 6, wherein the launching the second application comprises:
determining a first initialization process according to a source channel corresponding to the jump address;
and starting the first initialization process to realize the starting of the second application program.
8. The method according to claim 7, wherein the starting the first initialization procedure to achieve the starting of the second application program comprises:
determining a second initialization process according to the first initialization process;
starting the first initialization process and suspending the execution of the second initialization process.
9. The method of any of claims 1 to 8, wherein said acquiring, by the first application, the first image comprises:
acquiring a real-time preview image of the first application program, and taking the real-time preview image as the first image; or,
and reading a local image through the first application program, and taking the local image as the first image.
10. Method according to any of claims 1 to 9, characterized in that the jump address is a universal link, ULK.
11. A page jump apparatus, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first image through a first application program, and the first image comprises an identification code;
the second acquisition module is used for acquiring the jump address corresponding to the identification code;
the display module is used for displaying the target object page corresponding to the identification code in a second application program according to the jump address; the second application is different from the first application.
12. An electronic device, comprising: a memory and a processor;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored by the memory causes the processor to perform the page jump method of any of claims 1 to 10.
13. A computer-readable storage medium having stored thereon computer-executable instructions for implementing the page jump method of any one of claims 1 to 10 when executed by a processor.
14. A computer program product comprising a computer program which, when executed by a processor, implements the page jump method of any one of claims 1 to 10.
CN202211059114.4A 2022-08-31 2022-08-31 Page jump method, device and equipment Pending CN115543475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211059114.4A CN115543475A (en) 2022-08-31 2022-08-31 Page jump method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211059114.4A CN115543475A (en) 2022-08-31 2022-08-31 Page jump method, device and equipment

Publications (1)

Publication Number Publication Date
CN115543475A true CN115543475A (en) 2022-12-30

Family

ID=84725309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211059114.4A Pending CN115543475A (en) 2022-08-31 2022-08-31 Page jump method, device and equipment

Country Status (1)

Country Link
CN (1) CN115543475A (en)

Similar Documents

Publication Publication Date Title
CN109062563B (en) Method and device for generating page
CN105843800B (en) A kind of language message methods of exhibiting and device based on DOI
CN105335132B (en) Method, device and system for customizing application program function
CN111666518B (en) DOI display method and device
CN105989083B (en) Method and device for switching access environment
CN109672608B (en) Method for transmitting messages according to time
CN110727417B (en) Data processing method and device
JP2014010723A (en) Retrieval device, retrieval method and program
US11670067B2 (en) Information processing apparatus and non-transitory computer readable medium
CN112153422B (en) Video fusion method and device
CN110968314B (en) Page generation method and device
CN106681767B (en) Light application adding method and device
CN115600980A (en) Method and device for sending message, electronic equipment and storage medium
CN113360106B (en) Webpage printing method and device
CN113420531A (en) Code text conversion method and device and storage medium
CN111414168B (en) Web application development method and device based on mind map and electronic equipment
CN112114804A (en) Application program generation method, device and system
CN109558186A (en) A kind of page display method and device
CN111309319A (en) Inheritable office data dynamic page configuration method and device
CN115543475A (en) Page jump method, device and equipment
CN115695543A (en) Microscopic image sharing method and microscope system
CN105808543B (en) Information display method and device
CN114528510A (en) Webpage data processing method and device, electronic equipment and medium
CN110096392B (en) Method and device for outputting information
CN114691104A (en) Language conversion method and device, electronic equipment and storage medium

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