Application page scene switching method, device and equipment

By monitoring the operation requests of the application page and using the preset scene switching plug-in and interface configuration information to obtain the scene switching parameters, the low efficiency and high cost problems caused by frequent operations in the existing technology are solved, and efficient page scene switching is achieved.

CN112835671BActive Publication Date: 2025-09-05DOUYIN VISION CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110203087.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-23
Publication Date
2025-09-05
Estimated Expiration
2041-05-01

AI Technical Summary

Technical Problem

In the existing App development process, frequent front-end applications and server backend operations lead to low development efficiency and high costs.

Method used

By monitoring the operation requests of the application page, using the preset scene switching plug-in and interface configuration information, obtaining the scene switching parameters and sending them to the server, loading the scene result data to achieve page switching, reducing the developer's operation frequency.

Benefits of technology

It improves the efficiency of page scene switching during application development and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112835671B_ABST
    Figure CN112835671B_ABST
Patent Text Reader

Abstract

The disclosed embodiments provide a method, apparatus, and device for switching application page scenes. The method comprises: monitoring an operation request sent by an application page; determining whether the operation request is a scene switching request based on preset scene switching request interface configuration information; if the operation request is a scene switching request, obtaining scene switching parameters corresponding to the scene switching request; obtaining scene result data based on the scene switching parameters; receiving the scene result data sent by a server, and loading the scene result data to switch the application page from the current interface to the target scene interface. The disclosed embodiments can improve the efficiency of application page scene switching during application development and reduce the cost of application development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more particularly to a method, apparatus, and device for switching application page scenes. Background Art

[0002] With the improvement of terminal device hardware performance and the continuous advancement of artificial intelligence technology, the number of applications (Applications, Apps) running on terminal devices is also increasing. Therefore, developers are required to develop different types of apps to meet the diverse needs of users.

[0003] During the App development process, developers often need to switch the App's page scenes during the front-end development, testing, or UI design of the App. For example, taking a shopping app as an example, after the user places an order and pays, a shipped order is generated. During this process, the App's page needs to be switched from the pending payment page to the shipped order page. Currently, in the existing App development process, the operation of switching the App's page scenes usually requires developers to perform real operations to generate real data and complete the switching of the App's page scenes. For example, in the above-mentioned shopping app, in order to switch the App's page from the pending payment page to the shipped order page, the developer needs to perform real order placement and payment operations in the shopping app, and then perform the merchant shipping operations through the server background, so that the shopping app can switch from the pending payment page to the shipped order page.

[0004] However, the inventors found that in the existing App development process, in order to achieve App page scene switching, developers need to frequently operate on the front-end App and server background, resulting in low App development efficiency and high development costs. Summary of the Invention

[0005] The embodiments of the present disclosure provide an application page scene switching method, apparatus, and device, which can solve the problem in the prior art that developers need to frequently operate in the front-end application and the server background, resulting in low application development efficiency and high development costs.

[0006] In a first aspect, an embodiment of the present disclosure provides an application page scene switching method, comprising:

[0007] Monitor the operation requests sent by the application page;

[0008] Determining whether the operation request is a scene switching request according to preset scene switching request interface configuration information;

[0009] If the operation request is a scene switching request, obtaining a scene switching parameter corresponding to the scene switching request;

[0010] Acquire scene result data according to the scene switching parameters;

[0011] The scenario result data sent by the server is received, and the scenario result data is loaded to switch the application page from the current interface to the target scenario interface.

[0012] In a second aspect, an embodiment of the present disclosure provides an application page scene switching device, comprising:

[0013] The monitoring module is used to monitor the operation requests sent by the application page;

[0014] a judgment module, configured to judge whether the operation request is a scene switching request according to preset scene switching request interface configuration information;

[0015] an acquisition module, configured to acquire a scene switching parameter corresponding to the scene switching request if the operation request is a scene switching request;

[0016] A sending module, configured to obtain scene result data according to the scene switching parameters;

[0017] The loading module is used to receive the scenario result data sent by the server and load the scenario result data to switch the application page from the current interface to the target scenario interface.

[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0019] The memory stores computer-executable instructions;

[0020] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the application page scene switching method described in the first aspect and various possible designs of the first aspect.

[0021] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the application page scene switching method described in the first aspect and various possible designs of the first aspect is implemented.

[0022] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the application page scene switching method described in the first aspect and various possible designs of the first aspect.

[0023] The present embodiment provides an application page scene switching method, apparatus, and device. In this method, when a scene switching request is monitored from an application page, scene switching parameters corresponding to the scene switching request are obtained, and the scene switching parameters are sent to a server so that the server returns corresponding scene result data; the scene result data is loaded to switch the application page from the current interface to the target scene interface. The disclosed embodiment does not require developers to frequently operate in the front-end application and the server background, which can improve the efficiency of page scene switching during application development and reduce the cost of application development. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0025] Figure 1 A schematic diagram of a method for switching application page scenes provided by an embodiment of the present disclosure.

[0026] Figure 2 Schematic diagram of the application page scene switching method provided by the embodiment of the present disclosure Figure 1 ;

[0027] Figure 3 Schematic diagram of the application page scene switching method provided by the embodiment of the present disclosure Figure 2 ;

[0028] Figure 4A A schematic diagram of the interface of the main operation window of the scene switching plug-in provided in an embodiment of the present disclosure;

[0029] Figure 4B A schematic diagram of the interface of the setting window of the scene switching plug-in provided in an embodiment of the present disclosure;

[0030] Figure 5 A structural block diagram of the application page scene switching device provided in an embodiment of the present disclosure;

[0031] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0033] Currently, in the existing App page scene switching process, in order to achieve App page scene switching, developers need to frequently operate on the front-end App and server background, resulting in technical problems such as low efficiency and high development cost of App development.

[0034] In order to solve the above technical problems, the embodiment of the present disclosure provides an application page scene switching method. First, when the application is initialized, a preset scene switching plug-in is started and run, wherein the preset scene switching plug-in contains the preset scene switching request interface configuration information configured by the user; then, when the application page sends a scene switching request, the scene switching parameters corresponding to the scene switching request are obtained, and the scene switching parameters are sent to the server so that the server returns the corresponding scene result data; finally, the scene result data is loaded to switch the application page from the current interface to the target scene interface. In this way, developers do not need to frequently operate in the front-end application and the server background, which can improve the efficiency of application page scene switching during application development and reduce the cost of application development.

[0035] refer to Figure 1 , Figure 1 A schematic diagram of a method for switching application page scenes provided by an embodiment of the present disclosure. Figure 1 As shown, the system provided in this embodiment includes a terminal 101 and a server 102. The terminal 101 can be installed on devices such as mobile phones, tablet computers, and personal computers. This embodiment does not impose any particular restrictions on the implementation of the terminal 101, as long as the terminal 101 can interact with the user for input and output. The server 102 can be a single server or a cluster of several servers.

[0036] refer to Figure 2 , Figure 2 Schematic diagram of the application page scene switching method provided by the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied to Figure 1 In the terminal shown, specifically, it may be a plug-in installed on the terminal, and the application page scene switching method includes:

[0037] S201: Monitoring an operation request sent by an application page.

[0038] In the embodiment of the present disclosure, the application page is a page of an application running in the terminal, for example, it may be an application developed, tested or UI designed by a user (eg, a developer).

[0039] The application page can be any page in the application.

[0040] The operation request for the application page may be an operation request sent by the application on the application page when the user triggers the application during the development, testing, or UI design process of the application.

[0041] The operation request can be any type of request, for example, a request sent by an XMLHttpRequest object or a request sent by a fetch object.

[0042] This operation request can be used to request to obtain relevant data and implement corresponding changes to the application page.

[0043] S202: Determine whether the operation request is a scene switching request according to preset scene switching request interface configuration information.

[0044] In an embodiment of the present disclosure, before step S201, the preset scene switching request interface configuration information may be configured by the user, and the preset scene switching request interface configuration information includes relevant matching information, and the relevant matching information can be used to determine whether the monitored operation request is a scene switching request.

[0045] S203: If the operation request is a scene switching request, obtain a scene switching parameter corresponding to the scene switching request.

[0046] In the embodiment of the present disclosure, the scene request parameters carried in the scene switching request may be used to query the pre-stored correspondence between the scene request parameters and the scene switching parameters to determine the scene switching parameters corresponding to the scene switching request.

[0047] S204: Acquire scene result data according to the scene switching parameters.

[0048] Specifically, the scene switching parameters are sent to a server, so that the server obtains scene result data according to the scene switching parameters.

[0049] In the embodiment of the present disclosure, the server queries the pre-stored correspondence between the scene switching parameters and the scene result data according to the scene switching parameters, and determines the scene result data corresponding to the scene switching parameters.

[0050] Specifically, the scene switching parameter may be mock URL (Uniform Resource Locator) address information, and the server loads and obtains the corresponding scene result data according to the mock URL address information.

[0051] S205: Receive the scenario result data sent by the server, and load the scenario result data to switch the application page from the current interface to the target scenario interface.

[0052] In the disclosed embodiments, loading the scenario result data may be performed on the current application page to cause the current application page to switch from the current interface to the target scenario interface. For example, the application page is a shopping app, and loading the scenario result data causes the page to switch from a pending payment page to a shipped order page.

[0053] From the above description, it can be seen that when this embodiment monitors the application page sending a scene switching request, it obtains the scene switching parameters corresponding to the scene switching request and sends the scene switching parameters to the server so that the server returns the corresponding scene result data; finally, the scene result data is loaded to switch the application page from the current interface to the target scene interface. The disclosed embodiment does not require developers to frequently operate in the front-end application and server background, which can improve the efficiency of application development and reduce application development costs.

[0054] refer to Figure 3 , Figure 3 Schematic diagram of the application page scene switching method provided by the embodiment of the present disclosure Figure 2 This embodiment mainly describes in detail the specific process of steps S202 to S203, including:

[0055] S301: When the application is initialized, a preset scene switching plug-in is started and run, wherein the preset scene switching plug-in includes preset scene switching request interface configuration information configured by the user.

[0056] In the embodiment of the present disclosure, application initialization refers to the application Figure 1 The scene switching plug-in can be a plug-in of various forms, such as a DOM (Document Object Model) plug-in.

[0057] The user can set the scene switching request interface configuration information through the scene switching plug-in operation page. Specifically, the user can configure the scene switching request type, multiple scene switching requests corresponding to each scene switching request type, and multiple scene request parameters corresponding to each scene switching request.

[0058] In the embodiment of the present disclosure, the scene switching request interface configuration information may be scene switching request API (Application Programming Interface) configuration information.

[0059] In the embodiment of the present disclosure, the scene switching request interface configuration information includes all scene switching request types, multiple scene switching requests corresponding to each scene switching request type, and multiple scene request parameters corresponding to each scene switching request.

[0060] S302: Monitor the operation request sent by the application page.

[0061] In the embodiment of the present disclosure, step S302 is consistent with the content of the above-mentioned step S201. For the specific description related to the content of step S302, please refer to the description of step S201, which will not be repeated here.

[0062] S303: Identify the request parameters included in the operation request.

[0063] In the embodiment of the present disclosure, the operation request is a data message, the data message includes a data field, and the data field includes request parameters.

[0064] This request parameter is used to indicate the data result that needs to be returned.

[0065] S304: If the scene switching request interface configuration information includes a scene switching request consistent with the operation request, and the request parameters in the scene switching request are consistent with the request parameters in the operation request, then determine that the operation request is a scene switching request.

[0066] In the embodiment of the present disclosure, by querying the scene switching request interface configuration information, traversing multiple scene switching requests corresponding to the type of each scene switching request and multiple scene request parameters corresponding to each scene switching request, when a scene switching request with the same name and path as the operation request and the same information as the request parameters corresponding to the operation request is queried, and the request parameters in the scene switching request are consistent with the request parameters in the operation request, it is determined that the operation request is a scene switching request.

[0067] S305: Query a local storage unit according to the scene request parameter to obtain a scene switching parameter corresponding to the scene request parameter.

[0068] The local storage unit includes pre-stored correspondences between scene switching requests, scene request parameters and scene switching parameters.

[0069] In the embodiment of the present disclosure, the local storage unit (Local Storage) can be Figure 1 The internal storage unit on the terminal shown may be an external storage unit outside the independent terminal, and the present disclosure does not impose any limitation on this.

[0070] The corresponding relationship between each scene switching request, scene request parameter and scene switching parameter may be stored in the form of a database.

[0071] S306: Acquire scene result data according to the scene switching parameters.

[0072] S307: Receive the scenario result data sent by the server, and load the scenario result data to switch the application page from the current interface to the target scenario interface.

[0073] In the embodiment of the present disclosure, the contents of steps S306 to S307 are consistent with the contents of the above-mentioned steps S204 to S205. For specific descriptions related to the contents of steps S306 to S307, please refer to the descriptions of steps S204 to S205, which will not be repeated here.

[0074] From the above description, it can be seen that by configuring the preset scene switching request interface configuration information in the scene switching plug-in by the user, and using the multiple scene switching requests corresponding to the type of each scene switching request set by the user in the scene switching request interface configuration information, and the multiple scene request parameters corresponding to each scene switching request, and matching them with the request parameters contained in the operation request, it is possible to accurately judge whether the operation request is a scene switching request; at the same time, the user can flexibly configure the scene switching request interface configuration information to meet the user's different scene switching needs.

[0075] In one embodiment of the present disclosure, before step S302 of monitoring the operation request sent by the application page, the method further includes:

[0076] S308: Obtain all operation requests sent by the application page;

[0077] S309: Displaying each operation request corresponding to the application page on the main operation page of the scene switching plug-in;

[0078] S310: According to the configuration of interface information for each operation request by the user on the main operation page, preset scene switching request interface configuration information corresponding to the application page is obtained.

[0079] like Figure 4A As shown, Figure 4A This is a schematic diagram of the interface of the main operation window of the scene switching plug-in provided in an embodiment of the present disclosure.

[0080] Specifically, the user configures the interface information for each operation request on the main operation page, and obtains the preset scene switching request interface configuration information corresponding to the application page in the following process:

[0081] In response to the user's first operation in the main operation window (such as Figure 4A (As shown in area "1"), select the target page for setting the scene switching request interface configuration information;

[0082] In response to the user's second operation in the main operation window (such as Figure 4A (as shown in area "2"), select the scene switching request type in the scene switching request list of the target page,

[0083] In response to the user's third operation in the main operation window (such as Figure 4A (as shown in area "3"), select a scene switching request in each type of scene switching request;

[0084] In response to the user's fourth operation in the main operation window (such as Figure 4A (as shown in area "4" in the middle), set the scene switching parameters corresponding to each scene switching request.

[0085] In one embodiment of the present disclosure, in area "1", the user can select target pages including all pages, the current page and the previous page. The user clicks on the corresponding target page to enter the request list of the corresponding target page.

[0086] From the above description, it can be seen that the scene switching plug-in main operation page can be used to configure the interface of all operation requests sent by the application page to obtain the preset scene switching request interface configuration information corresponding to the application page. The scene switching plug-in main operation page can facilitate users to quickly set up the application page and improve user setting efficiency.

[0087] In one embodiment of the present disclosure, it further includes:

[0088] Open the setting window of the scene switching plug-in;

[0089] In response to a fifth operation of the user in the setting window, deleting a plurality of scene switching parameters included in each scene switching request;

[0090] In response to a sixth operation of the user in the setting window, all settings in the scene switching plug-in are deleted.

[0091] like Figure 4B As shown, Figure 4BThis is a schematic diagram of the settings window for the scene switching plug-in provided in an embodiment of the present disclosure. When a user clicks the "Settings" button in the main operation window, the settings window pops up. The user clicks the fifth action, "Reset Desired Settings," to delete the multiple scene switching parameters included in each scene switching request. Clicking the sixth action, "Clear Cache," deletes all settings in the scene switching plug-in.

[0092] In this embodiment, the user can clear the scene switching request interface configuration information that the user has configured on the current application page as needed; or clear all plug-in settings (including the current application page, the previous application page or all application pages), so that the user can reset the interface information of each operation request that has been set, thereby improving the user's experience of using the scene switching plug-in.

[0093] In one embodiment of the present disclosure, the application page is a single-page application (SPA) page, and the method further includes:

[0094] When the application page jumps to the next page, each operation request of the application page is saved in the previous page request list of the main operation window of the scene switching plug-in.

[0095] In this embodiment, for SPA applications, the preset scene switching request interface configuration information of each page is shared, so it is only necessary to save each operation request of the current application page to the previous page request list. In this way, after the page jumps, the user can still configure the scene switching request interface for the application page before the jump, which is convenient for user operation.

[0096] In another embodiment of the present disclosure, the application page is a multi-page application MPA page, and the method further includes:

[0097] When the application page jumps, all operation requests of each application page saved are obtained from the local storage, and all operation requests of each application page are displayed in the previous page request list of the main operation window of the scene switching plug-in.

[0098] In this embodiment, for MPA applications, since the scene switching request interface configuration information between pages is not shared after the jump, all operation requests of all pages of the application need to be saved in local storage. When the jump is completed, all operation requests of each page of the application can be displayed in the previous page request list. In this way, the user can still configure the scene switching request interface for the application page before the jump after the page jumps, which is convenient for user operation.

[0099] Corresponding to the application page scene switching method of the above embodiment, Figure 5This is a structural block diagram of the application page scene switching device provided by the embodiment of the present disclosure. For the sake of convenience, only the parts related to the embodiment of the present disclosure are shown. Figure 5 The device includes: a monitoring module 501, a judgment module 502, an acquisition module 503, a sending module 504 and a loading module 505.

[0100] Monitoring module 501, used to monitor the operation request sent by the application page;

[0101] The judgment module 502 is used to judge whether the operation request is a scene switching request according to the preset scene switching request interface configuration information;

[0102] The acquisition module 503 is configured to acquire a scene switching parameter corresponding to the scene switching request if the operation request is a scene switching request;

[0103] A sending module 504 is configured to obtain scene result data according to the scene switching parameters;

[0104] The loading module 505 is configured to receive the scenario result data sent by the server, and load the scenario result data to switch the application page from the current interface to the target scenario interface.

[0105] From the above description, it can be seen that when this embodiment monitors the application page sending a scene switching request, it obtains the scene switching parameters corresponding to the scene switching request and sends the scene switching parameters to the server so that the server returns the corresponding scene result data; finally, the scene result data is loaded to switch the application page from the current interface to the target scene interface. The disclosed embodiment does not require developers to frequently operate in the front-end application and server background, which can improve the efficiency of application development and reduce application development costs.

[0106] According to one or more embodiments of the present disclosure, the device further includes: an initialization module 506, configured to start and run a preset scene switching plug-in when the application is initialized; wherein the preset scene switching plug-in includes preset scene switching request interface configuration information configured by the user.

[0107] According to one or more embodiments of the present disclosure, the scene switching request interface configuration information includes the types of all scene switching requests, multiple scene switching requests corresponding to each scene switching request type, and multiple scene request parameters corresponding to each scene switching request; the judgment module 502 is specifically used to identify the request parameters included in the operation request; if the scene switching request interface configuration information includes a scene switching request consistent with the operation request, and the request parameters in the scene switching request are consistent with the request parameters in the operation request, then the operation request is determined to be a scene switching request.

[0108] According to one or more embodiments of the present disclosure, the acquisition module 503 is specifically used to query the local storage unit according to the scene request parameters to obtain the scene switching parameters corresponding to the scene request parameters; wherein the local storage unit includes pre-stored correspondences between each scene switching request, scene request parameter and scene switching parameter.

[0109] According to one or more embodiments of the present disclosure, the device also includes: a configuration module 507, which is used to obtain all operation requests sent by the application page; display each operation request corresponding to the application page on the main operation page of the scene switching plug-in; and obtain the preset scene switching request interface configuration information corresponding to the application page based on the user's configuration of the interface information for each operation request on the main operation page.

[0110] According to one or more embodiments of the present disclosure, the application page is a single-page application SPA page, and the configuration module 507 is also used to save each operation request of the application page to the previous page request list of the main operation window of the scene switching plug-in when the application page jumps to the next page.

[0111] According to one or more embodiments of the present disclosure, the application page is a multi-page application MPA page, and the configuration module 507 is also used to obtain all operation requests saved in each page of the application from the local storage when the application page jumps, and display all operation requests in the previous page request list of the main operation window of the scene switching plug-in.

[0112] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0113] In order to implement the above embodiment, the embodiment of the present disclosure further provides an electronic device.

[0114] refer to Figure 6 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing an embodiment of the present disclosure. The electronic device 600 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0115] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0116] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0117] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0118] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0119] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0120] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0121] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0122] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0124] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0125] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0126] In a first aspect, according to one or more embodiments of the present disclosure, a method for switching application page scenes is provided, comprising:

[0127] Monitor the operation requests sent by the application page;

[0128] Determining whether the operation request is a scene switching request according to preset scene switching request interface configuration information;

[0129] If the operation request is a scene switching request, obtaining a scene switching parameter corresponding to the scene switching request;

[0130] Acquire scene result data according to the scene switching parameters;

[0131] The scenario result data sent by the server is received, and the scenario result data is loaded to switch the application page from the current interface to the target scenario interface.

[0132] According to one or more embodiments of the present disclosure, before monitoring the operation request sent by the application page, it also includes: starting and running a preset scene switching plug-in when the application is initialized; wherein the preset scene switching plug-in contains the preset scene switching request interface configuration information configured by the user.

[0133] According to one or more embodiments of the present disclosure, the scene switching request interface configuration information includes all scene switching request types, multiple scene switching requests corresponding to each scene switching request type, and multiple scene request parameters corresponding to each scene switching request;

[0134] Accordingly, judging whether the operation request is a scene switching request according to the preset scene switching request interface configuration information includes:

[0135] Identifying request parameters included in the operation request;

[0136] If the scene switching request interface configuration information includes a scene switching request that is consistent with the operation request, and the request parameters in the scene switching request are consistent with the request parameters in the operation request, then the operation request is determined to be a scene switching request.

[0137] According to one or more embodiments of the present disclosure, if the operation request is a scene switching request, obtaining a scene switching parameter corresponding to the scene switching request includes:

[0138] Querying a local storage unit according to the scene request parameters to obtain scene switching parameters corresponding to the scene request parameters;

[0139] The local storage unit includes pre-stored correspondences between scene switching requests, scene request parameters and scene switching parameters.

[0140] According to one or more embodiments of the present disclosure, before monitoring the operation request sent by the application page, the method further includes:

[0141] Get all operation requests sent by the application page;

[0142] Displaying each operation request corresponding to the application page on the main operation page of the scene switching plug-in;

[0143] According to the configuration of the interface information of each operation request by the user on the main operation page, the preset scene switching request interface configuration information corresponding to the application page is obtained.

[0144] According to one or more embodiments of the present disclosure, the application page is a single-page application (SPA) page, and the method further includes:

[0145] When the application page jumps to the next page, each operation request of the application page is saved in the previous page request list of the main operation window of the scene switching plug-in.

[0146] According to one or more embodiments of the present disclosure, the application page is a multi-page application MPA page, and the method further includes:

[0147] When the application page jumps, all operation requests sent by each page of the application are saved in the previous page request list of the main operation window of the scene switching plug-in.

[0148] In a second aspect, according to one or more embodiments of the present disclosure, a device for switching application page scenes is provided, comprising:

[0149] The monitoring module is used to monitor the operation requests sent by the application page;

[0150] a judgment module, configured to judge whether the operation request is a scene switching request according to preset scene switching request interface configuration information;

[0151] an acquisition module, configured to acquire a scene switching parameter corresponding to the scene switching request if the operation request is a scene switching request;

[0152] A sending module, configured to obtain scene result data according to the scene switching parameters;

[0153] The loading module is used to receive the scenario result data sent by the server and load the scenario result data to switch the application page from the current interface to the target scenario interface.

[0154] According to one or more embodiments of the present disclosure, the device further includes: an initialization module, configured to start and run a preset scene switching plug-in when the application is initialized; wherein the preset scene switching plug-in includes preset scene switching request interface configuration information configured by the user.

[0155] According to one or more embodiments of the present disclosure, the scene switching request interface configuration information includes the types of all scene switching requests, multiple scene switching requests corresponding to each scene switching request type, and multiple scene request parameters corresponding to each scene switching request; the judgment module 502 is specifically used to identify the request parameters included in the operation request; if the scene switching request interface configuration information includes a scene switching request consistent with the operation request, and the request parameters in the scene switching request are consistent with the request parameters in the operation request, then the operation request is determined to be a scene switching request.

[0156] According to one or more embodiments of the present disclosure, the acquisition module is specifically used to query the local storage unit according to the scene request parameters to obtain the scene switching parameters corresponding to the scene request parameters; wherein the local storage unit includes the pre-stored correspondence between each scene switching request, scene request parameter and scene switching parameter.

[0157] According to one or more embodiments of the present disclosure, the device also includes: a configuration module for obtaining all operation requests sent by the application page; displaying each operation request corresponding to the application page on the main operation page of the scene switching plug-in; and obtaining the preset scene switching request interface configuration information corresponding to the application page based on the user's configuration of the interface information for each operation request on the main operation page.

[0158] According to one or more embodiments of the present disclosure, the application page is a single-page application SPA page, and the configuration module is also used to save each operation request of the application page to the previous page request list of the main operation window of the scene switching plug-in when the application page jumps to the next page.

[0159] According to one or more embodiments of the present disclosure, the application page is a multi-page application MPA page, and the configuration module 507 is also used to obtain all operation requests saved in each page of the application from the local storage when the application page jumps, and display all operation requests in the previous page request list of the main operation window of the scene switching plug-in.

[0160] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0161] The memory stores computer-executable instructions;

[0162] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the application page scene switching method described in the first aspect and various possible designs of the first aspect.

[0163] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the application page scene switching method described in the first aspect and various possible designs of the first aspect is implemented.

[0164] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the application page scene switching method described in the first aspect and various possible designs of the first aspect.

[0165] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0166] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0167] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for switching application page scenes, the method comprising: When the application is initialized, a preset scene switching plug-in is started and run; wherein the preset scene switching plug-in includes preset scene switching request interface configuration information configured by the user; The scene switching request interface configuration information includes multiple scene switching request types, multiple scene switching requests corresponding to each scene switching request type, and multiple scene request parameters corresponding to each scene switching request; The scene switching plug-in provides a setting window for modifying the scene request parameters of the scene switching request; The scene switching plug-in monitors the operation request sent by the application page during the application development and testing phase; Determining whether the operation request is a scene switching request according to preset scene switching request interface configuration information; If the operation request is a scene switching request, the scene switching plug-in obtains a scene switching parameter corresponding to the scene switching request; wherein the scene switching parameter includes a page URL address; Acquire scene result data according to the scene switching parameters; The scenario result data sent by the server is received, and the scenario result data is loaded to switch the application page from the current interface to the target scenario interface.

2. The method according to claim 1, wherein The scene switching request interface configuration information includes all scene switching request types and multiple scene switching requests corresponding to each scene switching request type, wherein each scene switching request includes multiple corresponding scene request parameters; Accordingly, judging whether the operation request is a scene switching request according to the preset scene switching request interface configuration information includes: Identifying request parameters included in the operation request; If the scene switching request interface configuration information includes a scene switching request that is consistent with the operation request, and the request parameters in the scene switching request are consistent with the request parameters in the operation request, then the operation request is determined to be a scene switching request.

3. The method according to claim 2, wherein: If the operation request is a scene switching request, obtaining a scene switching parameter corresponding to the scene switching request includes: Querying a local storage unit according to the scene request parameters to obtain scene switching parameters corresponding to the scene request parameters; The local storage unit includes pre-stored correspondences between scene switching requests, scene request parameters and scene switching parameters.

4. The method according to claim 1, before monitoring the operation request sent by the application page, further comprising: Get all operation requests sent by the application page; Displaying each operation request corresponding to the application page on the main operation page of the scene switching plug-in; According to the configuration of the interface information of each operation request by the user on the main operation page, the preset scene switching request interface configuration information corresponding to the application page is obtained.

5. The method according to claim 4, wherein the application page is a single-page application (SPA) page, and the method further comprises: When the application page jumps to the next page, each operation request of the application page is saved in the previous page request list of the main operation window of the scene switching plug-in.

6. The method according to claim 4, wherein the application page is a multi-page application MPA page, the method further comprising: When the application page jumps, all operation requests of each application page saved are obtained from the local storage, and all operation requests of each application page are displayed in the previous page request list of the main operation window of the scene switching plug-in.

7. An application page scene switching device, comprising: An initialization module, configured to start and run a preset scene switching plug-in when the application is initialized; wherein the preset scene switching plug-in includes preset scene switching request interface configuration information configured by the user; The scene switching request interface configuration information includes multiple scene switching request types, multiple scene switching requests corresponding to each scene switching request type, and multiple scene request parameters corresponding to each scene switching request; The scene switching plug-in provides a setting window for modifying the scene request parameters of the scene switching request; A monitoring module, configured to monitor, by the scene switching plug-in, operation requests sent by the application page during the application development and testing phase; a judgment module, configured to judge whether the operation request is a scene switching request according to preset scene switching request interface configuration information; an acquisition module, configured to, if the operation request is a scene switching request, obtain, by the scene switching plug-in, a scene switching parameter corresponding to the scene switching request; wherein the scene switching parameter includes a page URL address; A sending module, configured to obtain scene result data according to the scene switching parameters; The loading module is used to receive the scenario result data sent by the server and load the scenario result data to switch the application page from the current interface to the target scenario interface.

8. An electronic device comprising: at least one processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the application page scene switching method according to any one of claims 1 to 6.

9. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the application page scene switching method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for switching application page scenes according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Data processing method, apparatus and system of live broadcast page

    CN106792188A

  • Method for quickly testing web page, server and computer readable storage medium

    CN108427635A

  • Page switching method and device, electronic device and storage medium

    CN109669755A