CN112835671A - Application page scene switching method, device and equipment - Google Patents

Application page scene switching method, device and equipment Download PDF

Info

Publication number
CN112835671A
CN112835671A CN202110203087.2A CN202110203087A CN112835671A CN 112835671 A CN112835671 A CN 112835671A CN 202110203087 A CN202110203087 A CN 202110203087A CN 112835671 A CN112835671 A CN 112835671A
Authority
CN
China
Prior art keywords
request
scene switching
scene
page
application page
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
CN202110203087.2A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110203087.2A priority Critical patent/CN112835671A/en
Publication of CN112835671A publication Critical patent/CN112835671A/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/451Execution arrangements for user interfaces
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure provides an application page scene switching method, device and equipment, wherein the method comprises the following steps: monitoring an operation request sent by an application page; judging whether the operation request is a scene switching request or not according to preset scene switching request interface configuration information; if the operation request is a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request; acquiring scene result data according to the scene switching parameters; and receiving scene result data sent by the server, and loading the scene result data to switch the application page from the current interface to the target scene interface. The method and the device can improve the efficiency of switching the application page scenes in the application development process and reduce the cost of application development.

Description

Application page scene switching method, device and equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method, a device and equipment for switching application page scenes.
Background
With the improvement of the hardware performance of the terminal device and the continuous progress of the artificial intelligence technology, more and more applications (apps) are running on the terminal device. Therefore, developers are required to develop different types of apps to meet the diverse needs of users.
In the development process of the App, developers often need to switch the page scene of the App in the processes of front-end development, testing, UI design and the like of the App. For example, taking a shopping APP as an example, after a user places an order and pays, a shipped order is generated, and in the process, the page of the APP needs to be operated is switched from a page to be paid to a page of the shipped order. At present, in the existing App development process, a developer is usually required to perform real operation to generate real data to complete switching of the page scene of the App. For example, in the shopping App, in order to switch the page of the App from the page to be paid to the shipped order page, a developer needs to perform real ordering and payment operations on the shopping App, and then perform a merchant shipping operation through the server background, so that the switching from the page to be paid to the shipped order page can be realized on the shopping App.
However, the inventor finds that in the existing App development process, in order to implement App page scene switching, developers need to frequently operate in the front-end App and the server background, which causes the App development efficiency to be low and the development cost to be high.
Disclosure of Invention
The embodiment of the disclosure provides an application page scene switching method, device and equipment, and can solve the problems of low application development efficiency and high development cost caused by the fact that developers need to frequently operate in a front-end application and a server background in the prior art.
In a first aspect, an embodiment of the present disclosure provides an application page scene switching method, including:
monitoring an operation request sent by an application page;
judging whether the operation request is a scene switching request or not according to preset scene switching request interface configuration information;
if the operation request is a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request;
acquiring scene result data according to the scene switching parameters;
and receiving the scene result data sent by the server, and loading the scene result data to switch the application page from the current interface to the target scene interface.
In a second aspect, an embodiment of the present disclosure provides an application page scene switching apparatus, including:
the monitoring module is used for monitoring an operation request sent by an application page;
the judging module is used for judging whether the operation request is a scene switching request according to preset scene switching request interface configuration information;
an obtaining module, configured to obtain a scene switching parameter corresponding to the scene switching request if the operation request is the scene switching request;
the sending module is used for obtaining scene result data according to the scene switching parameters;
and the loading module is used for receiving the scene result data sent by the server and loading the scene result data so as to switch the application page from the current interface to the target scene interface.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform the application page scene switching method as described above in the first aspect and various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer-executable instruction is stored, and when a processor executes the computer-executable instruction, the method for switching application page scenes according to the first aspect and various possible designs of the first aspect is implemented.
In a fifth aspect, the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the application page scene switching method according to the first aspect and various possible designs of the first aspect is implemented.
In the method, when it is monitored that the application page sends a scene switching request, a scene switching parameter corresponding to the scene switching request is obtained, and the scene switching parameter is sent to the server, so that the server returns corresponding scene result data; the scene result data is loaded to enable the application page to be switched to the target scene interface from the current interface, and developers do not need to frequently operate in the front-end application and the server background, so that the efficiency of switching the page scene in the application development process can be improved, and the cost of application development is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a scene schematic diagram of an application page scene switching method provided by an embodiment of the present disclosure'
Fig. 2 is a first flowchart of a method for switching application page scenes according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a method for switching application page scenes according to an embodiment of the present disclosure;
fig. 4A is an interface schematic diagram of a main operation window of a scene switching plug-in provided in the embodiment of the present disclosure;
fig. 4B is an interface diagram of a setting window of a scene change plugin according to an embodiment of the present disclosure;
fig. 5 is a block diagram illustrating a structure of an application page scene switching device according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
At present, in the switching process of an App page scene, in order to realize the switching of the App page scene, developers need to frequently operate on a front-end App and a server background, so that the technical problems of low efficiency and high development cost of App development are caused.
In order to solve the above technical problem, an embodiment of the present disclosure provides an application page scene switching method, which includes, first, when an application is initialized, starting and running a preset scene switching plugin, where the preset scene switching plugin includes preset scene switching request interface configuration information configured by a user; then, when monitoring that an application page sends a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request, and sending the scene switching parameter to a server so as to enable the server to return corresponding scene result data; and finally, loading the scene result data to switch the application page from the current interface to the target scene interface. Therefore, developers do not need to frequently operate in the front-end application and the server background, the efficiency of switching application page scenes in the application development process can be improved, and the cost of application development is reduced.
Referring to fig. 1, fig. 1 is a scene schematic diagram of an application page scene switching method according to an embodiment of the present disclosure. As shown in fig. 1, the system provided by the present embodiment includes a terminal 101 and a server 102. The terminal 101 may be installed on a mobile phone, a tablet computer, a personal computer, and the like. The implementation manner of the terminal 101 is not particularly limited in this embodiment, as long as the terminal 101 can perform input and output interaction with the user. Server 102 may be a server or a cluster of several servers.
Referring to fig. 2, fig. 2 is a first flowchart illustrating a method for switching application page scenes according to an embodiment of the present disclosure. The method of this embodiment may be applied to the terminal shown in fig. 1, specifically, the method may be a plug-in installed on the terminal, and the method for switching application page scenes includes:
s201: and monitoring an operation request sent by the application page.
In the embodiment of the present disclosure, the application page is a page of a certain application running in the terminal, and may be, for example, a certain application developed, tested, or UI designed by a user (e.g., a developer).
The application page may be any page in the application.
The operation request for the application page may be an operation request which is triggered by the user and sent by the application page during development, testing or UI design of the application.
The operation request may be any type of request. For example, the request may be a request sent by an XMLHttpRequest object, or a request sent by a fetch object.
The operation request can be used for requesting to acquire related data and realizing corresponding change of the application page.
S202: and judging whether the operation request is a scene switching request or not according to preset scene switching request interface configuration information.
In this embodiment of the present disclosure, before step S201, the preset interface configuration information of the scene switching request may be configured by the user, where the preset interface configuration information of the scene switching request includes related matching information, and it may be determined whether the monitored operation request is the scene switching request according to the related matching information.
S203: and if the operation request is a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request.
In the embodiment of the present disclosure, the scene request parameter carried in the scene switching request may be used to query the correspondence between the pre-stored scene request parameter and the scene switching parameter, and determine the scene switching parameter corresponding to the scene switching request.
S204: and acquiring scene result data according to the scene switching parameters.
Specifically, the scene switching parameter is sent to a server, so that the server obtains scene result data according to the scene switching parameter.
In the embodiment of the present disclosure, the server queries, according to the scene switching parameter, a correspondence between a pre-stored scene switching parameter and scene result data, and determines the scene result data corresponding to the scene switching parameter.
Specifically, the scene switching parameter may be mock URL (Uniform Resource Locator) address information, and the server loads the mock URL address information to obtain corresponding scene result data.
S205: and receiving the scene result data sent by the server, and loading the scene result data to switch the application page from the current interface to the target scene interface.
In the embodiment of the present disclosure, loading the scene result data may be loading on the current application page, so that the current application page is switched from the current interface to the target scene interface. For example, the application page is a shopping App of some type, and the page is switched from a to-be-paid page to a shipped order page by loading scene result data.
As can be seen from the above description, in this embodiment, when it is monitored that the application page sends the scene switching request, the scene switching parameter corresponding to the scene switching request is obtained, and the scene switching parameter is sent to the server, so that the server returns the corresponding scene result data; and finally, loading the scene result data to switch the application page from the current interface to the target scene interface, wherein the embodiment of the disclosure does not require developers to frequently operate in the front-end application and the server background, thereby improving the efficiency of application development and reducing the cost of application development.
Referring to fig. 3, fig. 3 is a schematic flowchart of a second method for switching application page scenes according to an embodiment of the present disclosure. In this embodiment, the specific processes of the steps S202 to S203 are mainly described in detail, and the specific processes include:
s301: when the application is initialized, starting and operating a preset scene switching plug-in, wherein the preset scene switching plug-in comprises preset scene switching request interface configuration information configured by a user.
In the embodiment of the present disclosure, the application initialization refers to that the application is first run on the terminal shown in fig. 1. The scene cut plug-in may be various forms of plug-ins, such as a DOM (Document Object Model) plug-in.
And setting the configuration information of the scene switching request interface by the user through the operation page of the scene switching plug-in. Specifically, the user may configure the type of the scene switching request, a plurality of scene switching requests corresponding to each type of the scene switching request, and a plurality of scene request parameters corresponding to each scene switching request.
In this embodiment of the present disclosure, the configuration information of the scene switching request Interface may be configuration information of a scene switching request API (Application Programming Interface).
In the embodiment of the present disclosure, the configuration information of the scene switching request interface includes types of all scene switching requests, a plurality of scene switching requests corresponding to the type of each scene switching request, and a plurality of scene request parameters corresponding to each scene switching request.
S302: and monitoring an operation request sent by the application page.
In the embodiment of the present disclosure, the content of step S302 is the same as the content of step S201, and for the specific description related to the content of step S302, please refer to the description of step S201, which is not repeated herein.
S303: request parameters included in the operation request are identified.
In this disclosure, the operation request is a data packet, where the data packet includes a data field, and the data field includes a request parameter.
The request parameter is used for indicating the data result needing to be returned.
S304: and if the scene switching request interface configuration information contains a scene switching request consistent with the operation request and the request parameter in the scene switching request is consistent with the request parameter in the operation request, determining that the operation request is the scene switching request.
In the embodiment of the present disclosure, a plurality of scene switching requests corresponding to the type of each scene switching request and a plurality of scene request parameters corresponding to each scene switching request are traversed by querying scene switching request interface configuration information, and when a scene switching request having 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, the operation request is determined to be a scene switching request.
S305: and inquiring 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 comprises pre-stored scene switching requests and corresponding relations between scene request parameters and scene switching parameters.
In the embodiment of the present disclosure, the Local Storage unit (Local Storage) may be an internal Storage unit on the terminal shown in fig. 1, and may be an external Storage unit outside the independent terminal, which does not limit the present disclosure in any way.
The scene switching request, the scene request parameter, and the scene switching parameter may be stored in a database.
S306: and acquiring scene result data according to the scene switching parameters.
S307: and receiving the scene result data sent by the server, and loading the scene result data to switch the application page from the current interface to the target scene interface.
In the embodiment of the present disclosure, the contents of steps S306 to S307 are the same as the contents of steps S204 to S205, and for the specific description related to the contents of steps S306 to S307, please refer to the description of steps S204 to S205, which is not repeated herein.
As can be seen from the above description, the preset scene switching request interface configuration information is configured in the scene switching plug-in by the user, and the multiple scene switching requests corresponding to the types 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 are matched with the request parameters included in the operation request, so that whether the operation request is a scene switching request or not can be accurately determined; meanwhile, the user can flexibly configure the configuration information of the scene switching request interface so as to meet the requirements of different scene switching of the user.
In an embodiment of the present disclosure, before the step S302 of monitoring the operation request sent by the application page, the method further includes:
s308: acquiring all operation requests sent by an application page;
s309: displaying each operation request corresponding to the application page on a main operation page of the scene switching plug-in;
s310: and configuring interface information for each operation request according to the main operation page by a user to obtain preset scene switching request interface configuration information corresponding to the application page.
As shown in fig. 4A, fig. 4A is an interface schematic diagram of a main operation window of a scene switching plug-in provided in the embodiment of the present disclosure.
Specifically, the process that the user configures interface information for each operation request on the main operation page to obtain the preset scene switching request interface configuration information corresponding to the application page is as follows:
in response to a first operation (as shown in an area "1" in fig. 4A) of the user in the main operation window, selecting a target page for setting the configuration information of the scene switching request interface;
in response to a second operation of the user in the main operation window (as shown in an area "2" in fig. 4A), selecting a scene cut request type of the scene cut request list of the target page,
selecting a scene switching request of each type of scene switching requests in response to a third operation (shown as an area '3' in fig. 4A) of the user in the main operation window;
and responding to a fourth operation (shown as an area '4' in the figure 4A) of the user in the main operation window, and setting scene switching parameters corresponding to each scene switching request.
In one embodiment of the present disclosure, in the region "1", the user may select the target page including all pages, the current page and the previous page, and click the corresponding target page to enter the request list of the corresponding target page.
As can be seen from the above description, the interface configuration can be performed on all operation requests sent by the application page through the scene switching plug-in main operation page, so as to obtain the preset scene switching request interface configuration information corresponding to the application page, and the user can conveniently and quickly set the application page through the scene switching plug-in main operation page, thereby improving the user setting efficiency.
In one embodiment of the present disclosure, further comprising:
opening a setting window of the scene switching plug-in;
deleting a plurality of scene switching parameters contained in each scene switching request in response to a fifth operation of the user in the setting window;
and in response to a sixth operation of the user in the setting window, deleting all the settings in the scene switching plug-in.
As shown in fig. 4B, fig. 4B is an interface schematic diagram of a setting window of a scene change plugin according to an embodiment of the present disclosure. Clicking a setting button of a main operation window by a user, popping up a setting window, clicking a fifth operation of resetting expected settings by the user, and deleting a plurality of scene switching parameters contained in each scene switching request; and clicking a sixth operation of clearing the cache to delete all the settings in the scene switching plug-in.
In this embodiment, a user may clear, according to a requirement, scene switching request interface configuration information that has been configured by a user of a current application page; all the plug-in settings (including the current application page, the previous application page or all the application pages) can be cleared, the user can conveniently reset the interface information of each set operation request, and the use experience of the user on the scene switching plug-in is improved.
In one embodiment of the present disclosure, the application page is a single-page application SPA page, and the method further includes:
and when the application page jumps to the next page, storing each operation request of the application page into a previous page request list of a main operation window of the scene switching plug-in.
In this embodiment, for the SPA application, the preset scene switching request interface configuration information of each page is shared, so that it is only necessary to store each operation request of the current application page in the previous page request list, and thus, a user can still perform scene switching request interface configuration on the application page before the page is skipped, which is convenient for the user to operate.
In another embodiment of the present disclosure, the application page is a multi-page application MPA page, the method further comprising:
and when the application page jumps, acquiring all the stored operation requests of each application page from a local storage, and displaying all the operation requests of each application page in a previous page request list of a main operation window of the scene switching plug-in.
In this embodiment, for an MPA application, since the configuration information of the scene switching request interface between pages is not shared after the jump, all operation requests of all pages of the application need to be stored in the local storage, and after the jump is completed, all operation requests of each page of the application need to be displayed in the previous page request list, so that a user can still perform the scene switching request interface configuration on the application page before the jump after the page is jumped, thereby facilitating the user operation.
Corresponding to the application page scene switching method in the foregoing embodiment, fig. 5 is a block diagram of an application page scene switching device provided in the embodiment of the present disclosure. For ease of illustration, only portions that are relevant to embodiments of the present disclosure are shown. Referring to fig. 5, the apparatus includes: the device comprises a monitoring module 501, a judging module 502, an obtaining module 503, a sending module 504 and a loading module 505.
A monitoring module 501, configured to monitor an operation request sent by an application page;
a determining module 502, configured to determine whether the operation request is a scene switching request according to preset scene switching request interface configuration information;
an obtaining module 503, configured to obtain a scene switching parameter corresponding to the scene switching request if the operation request is the scene switching request;
a sending module 504, configured to obtain scene result data according to the scene switching parameter;
and a loading module 505, configured to receive the scene result data sent by the server, and load the scene result data to switch an application page from a current interface to a target scene interface.
As can be seen from the above description, in this embodiment, when it is monitored that the application page sends the scene switching request, the scene switching parameter corresponding to the scene switching request is obtained, and the scene switching parameter is sent to the server, so that the server returns the corresponding scene result data; and finally, loading the scene result data to switch the application page from the current interface to the target scene interface, wherein the embodiment of the disclosure does not require developers to frequently operate in the front-end application and the server background, thereby improving the efficiency of application development and reducing the cost of application development.
According to one or more embodiments of the present disclosure, the apparatus further comprises: an initialization module 506, configured to start and run a preset scene switching plug-in when an application is initialized; the preset scene switching plug-in includes preset scene switching request interface configuration information configured by a user.
According to one or more embodiments of the present disclosure, the scene switching request interface configuration information includes types of all scene switching requests, a plurality of scene switching requests corresponding to the type of each scene switching request, and a plurality of scene request parameters corresponding to each scene switching request; the determining module 502 is specifically configured to identify a request parameter included in the operation request; and if the scene switching request interface configuration information contains a scene switching request consistent with the operation request and the request parameter in the scene switching request is consistent with the request parameter in the operation request, determining that the operation request is the scene switching request.
According to one or more embodiments of the present disclosure, the obtaining module 503 is specifically configured to query a local storage unit according to the scene request parameter, and obtain a scene switching parameter corresponding to the scene request parameter; the local storage unit comprises pre-stored scene switching requests and corresponding relations between scene request parameters and scene switching parameters.
According to one or more embodiments of the present disclosure, the apparatus further comprises: a configuration module 507, configured to obtain all operation requests sent by an application page; displaying each operation request corresponding to the application page on a main operation page of the scene switching plug-in; and configuring interface information for each operation request according to the main operation page by a user to obtain preset scene switching request interface configuration information corresponding to the application page.
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 further configured to store each operation request of the application page in a previous page request list of a main operation window of the scene switching plugin when the application page jumps to a next page.
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 further configured to obtain all the operation requests of each stored application page from a local storage when the application page jumps, and display all the operation requests of each application page in a previous page request list of a main operation window of the scene switching plug-in.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
In order to realize the above embodiments, the embodiments of the present disclosure further provide an electronic device.
Referring to fig. 6, a schematic structural diagram of an electronic device 600 suitable for implementing the embodiment of the present disclosure is shown, where the electronic device 600 may be a terminal device or a server. Among them, the terminal Device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a car terminal (e.g., car navigation terminal), etc., and a fixed terminal such as a Digital TV, a desktop computer, etc. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can 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 electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, 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 a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In a first aspect, according to one or more embodiments of the present disclosure, there is provided an application page scene switching method, including:
monitoring an operation request sent by an application page;
judging whether the operation request is a scene switching request or not according to preset scene switching request interface configuration information;
if the operation request is a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request;
acquiring scene result data according to the scene switching parameters;
and receiving the scene result data sent by the server, and loading the scene result data to switch the application page from the current interface to the target scene interface.
According to one or more embodiments of the present disclosure, before the monitoring the operation request sent by the application page, the method further includes: when the application is initialized, starting and running a preset scene switching plug-in; the preset scene switching plug-in includes preset scene switching request interface configuration information configured by a user.
According to one or more embodiments of the present disclosure, the scene switching request interface configuration information includes types of all scene switching requests, a plurality of scene switching requests corresponding to the type of each scene switching request, and a plurality of scene request parameters corresponding to each scene switching request;
correspondingly, the determining whether the operation request is a scene switching request according to the preset configuration information of the scene switching request interface includes:
identifying a request parameter contained in the operation request;
and if the scene switching request interface configuration information contains a scene switching request consistent with the operation request and the request parameter in the scene switching request is consistent with the request parameter in the operation request, determining that the operation request is the scene switching request.
According to one or more embodiments of the present disclosure, if the operation request is a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request includes:
inquiring a local storage unit according to the scene request parameter, and acquiring a scene switching parameter corresponding to the scene request parameter;
the local storage unit comprises pre-stored scene switching requests and corresponding relations between scene request parameters and scene switching parameters.
According to one or more embodiments of the present disclosure, before the monitoring the operation request sent by the application page, the method further includes:
acquiring all operation requests sent by an application page;
displaying each operation request corresponding to the application page on a main operation page of the scene switching plug-in;
and configuring interface information for each operation request according to the main operation page by a user to obtain preset scene switching request interface configuration information corresponding to the application page.
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:
and when the application page jumps to the next page, storing each operation request of the application page into a previous page request list of a main operation window of the scene switching plug-in.
According to one or more embodiments of the present disclosure, the application page is a multi-page application MPA page, the method further comprising:
and when the application page jumps, all operation requests sent by each application page are stored in a previous page request list of a main operation window of the scene switching plug-in.
In a second aspect, according to one or more embodiments of the present disclosure, there is provided an application page scene switching apparatus including:
the monitoring module is used for monitoring an operation request sent by an application page;
the judging module is used for judging whether the operation request is a scene switching request according to preset scene switching request interface configuration information;
an obtaining module, configured to obtain a scene switching parameter corresponding to the scene switching request if the operation request is the scene switching request;
the sending module is used for obtaining scene result data according to the scene switching parameters;
and the loading module is used for receiving the scene result data sent by the server and loading the scene result data so as to switch the application page from the current interface to the target scene interface.
According to one or more embodiments of the present disclosure, the apparatus further comprises: the initialization module is used for starting and running a preset scene switching plug-in when the application is initialized; the preset scene switching plug-in includes preset scene switching request interface configuration information configured by a user.
According to one or more embodiments of the present disclosure, the scene switching request interface configuration information includes types of all scene switching requests, a plurality of scene switching requests corresponding to the type of each scene switching request, and a plurality of scene request parameters corresponding to each scene switching request; the determining module 502 is specifically configured to identify a request parameter included in the operation request; and if the scene switching request interface configuration information contains a scene switching request consistent with the operation request and the request parameter in the scene switching request is consistent with the request parameter in the operation request, determining that the operation request is the scene switching request.
According to one or more embodiments of the present disclosure, the obtaining module is specifically configured to query a local storage unit according to the scene request parameter, and obtain a scene switching parameter corresponding to the scene request parameter; the local storage unit comprises pre-stored scene switching requests and corresponding relations between scene request parameters and scene switching parameters.
According to one or more embodiments of the present disclosure, the apparatus further comprises: the configuration module is used for acquiring all operation requests sent by the application page; displaying each operation request corresponding to the application page on a main operation page of the scene switching plug-in; and configuring interface information for each operation request according to the main operation page by a user to obtain preset scene switching request interface configuration information corresponding to the application page.
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 further configured to, when the application page jumps to a next page, store each operation request of the application page in a previous page request list of a main operation window of the scene switching plugin.
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 further configured to obtain all the operation requests of each stored application page from a local storage when the application page jumps, and display all the operation requests of each application page in a previous page request list of a main operation window of the scene switching plug-in.
In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the application page scene switching method as described above in the first aspect and various possible designs of the first aspect.
In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for switching application page scenes according to the first aspect and various possible designs of the first aspect is implemented.
In a fifth aspect, the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the application page scene switching method according to the first aspect and various possible designs of the first aspect is implemented.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to 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 disclosed as example forms of implementing the claims.

Claims (11)

1. An application page scene switching method, the method comprising:
monitoring an operation request sent by an application page;
judging whether the operation request is a scene switching request or not according to preset scene switching request interface configuration information;
if the operation request is a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request;
acquiring scene result data according to the scene switching parameters;
and receiving the scene result data sent by the server, and loading the scene result data to switch the application page from the current interface to the target scene interface.
2. The method of claim 1, wherein the listening for the operation request sent by the application page further comprises:
when the application is initialized, starting and running a preset scene switching plug-in; the preset scene switching plug-in includes preset scene switching request interface configuration information configured by a user.
3. The method according to claim 2, wherein the scene switching request interface configuration information includes types of all scene switching requests and a plurality of scene switching requests corresponding to each type of scene switching request, wherein each scene switching request includes a plurality of corresponding scene request parameters;
correspondingly, the determining whether the operation request is a scene switching request according to the preset configuration information of the scene switching request interface includes:
identifying a request parameter contained in the operation request;
and if the scene switching request interface configuration information contains a scene switching request consistent with the operation request and the request parameter in the scene switching request is consistent with the request parameter in the operation request, determining that the operation request is the scene switching request.
4. The method according to claim 3, wherein, if the operation request is a scene switching request, acquiring a scene switching parameter corresponding to the scene switching request includes:
inquiring a local storage unit according to the scene request parameter, and acquiring a scene switching parameter corresponding to the scene request parameter;
the local storage unit comprises pre-stored scene switching requests and corresponding relations between scene request parameters and scene switching parameters.
5. The method of claim 2, wherein the listening for the operation request sent by the application page further comprises:
acquiring all operation requests sent by an application page;
displaying each operation request corresponding to the application page on a main operation page of the scene switching plug-in;
and configuring interface information for each operation request according to the main operation page by a user to obtain preset scene switching request interface configuration information corresponding to the application page.
6. The method of claim 5, the application page being a single-page application SPA page, the method further comprising:
and when the application page jumps to the next page, storing each operation request of the application page into a previous page request list of a main operation window of the scene switching plug-in.
7. The method of claim 5, the application page being a multi-page application (MPA) page, the method further comprising:
and when the application page jumps, acquiring all the stored operation requests of each application page from a local storage, and displaying all the operation requests of each application page in a previous page request list of a main operation window of the scene switching plug-in.
8. An application page scene switching apparatus comprising:
the monitoring module is used for monitoring an operation request sent by an application page;
the judging module is used for judging whether the operation request is a scene switching request according to preset scene switching request interface configuration information;
an obtaining module, configured to obtain a scene switching parameter corresponding to the scene switching request if the operation request is the scene switching request;
the sending module is used for obtaining scene result data according to the scene switching parameters;
and the loading module is used for receiving the scene result data sent by the server and loading the scene result data so as to switch the application page from the current interface to the target scene interface.
9. An electronic device, comprising:
at least one processor and memory;
the memory stores computer-executable instructions;
the processor executing the memory-stored computer-executable instructions causes the at least one processor to perform the application page scene switching method of any of claims 1 to 7.
10. A computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the application page scene switching method of any one of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the application page scene switching method of any one of claims 1 to 7.
CN202110203087.2A 2021-02-23 2021-02-23 Application page scene switching method, device and equipment Pending CN112835671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110203087.2A CN112835671A (en) 2021-02-23 2021-02-23 Application page scene switching method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110203087.2A CN112835671A (en) 2021-02-23 2021-02-23 Application page scene switching method, device and equipment

Publications (1)

Publication Number Publication Date
CN112835671A true CN112835671A (en) 2021-05-25

Family

ID=75933008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110203087.2A Pending CN112835671A (en) 2021-02-23 2021-02-23 Application page scene switching method, device and equipment

Country Status (1)

Country Link
CN (1) CN112835671A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003471A (en) * 2022-01-04 2022-02-01 深圳市明源云科技有限公司 Page loading analysis method and device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792188A (en) * 2016-12-06 2017-05-31 腾讯数码(天津)有限公司 A kind of data processing method of live page, device and system
CN107577537A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN108427635A (en) * 2018-01-03 2018-08-21 深圳壹账通智能科技有限公司 Quickly method, server and the computer readable storage medium of test web page
CN110928626A (en) * 2019-11-21 2020-03-27 北京金山安全软件有限公司 Interface switching method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792188A (en) * 2016-12-06 2017-05-31 腾讯数码(天津)有限公司 A kind of data processing method of live page, device and system
WO2018103484A1 (en) * 2016-12-06 2018-06-14 腾讯科技(深圳)有限公司 Data processing method, apparatus and system for live broadcast page
CN107577537A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN108427635A (en) * 2018-01-03 2018-08-21 深圳壹账通智能科技有限公司 Quickly method, server and the computer readable storage medium of test web page
CN110928626A (en) * 2019-11-21 2020-03-27 北京金山安全软件有限公司 Interface switching method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003471A (en) * 2022-01-04 2022-02-01 深圳市明源云科技有限公司 Page loading analysis method and device and readable storage medium

Similar Documents

Publication Publication Date Title
CN109976620B (en) Method, device, equipment and storage medium for determining list item display attribute information
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
CN111367516B (en) Application interface generation method and device and electronic equipment
CN110619100B (en) Method and apparatus for acquiring data
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN113434241A (en) Page skipping method and device
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN109902726B (en) Resume information processing method and device
CN110825481A (en) Method and device for displaying page information corresponding to page tag and electronic equipment
CN114417782A (en) Display method and device and electronic equipment
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN111723309A (en) Method and device for searching web page
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN112835671A (en) Application page scene switching method, device and equipment
CN110069186B (en) Method and equipment for displaying operation interface of application
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN111813407B (en) Game development method, game running device and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN113779461A (en) Data loading method and device and electronic equipment
CN112333462A (en) Live broadcast room page jumping method, returning device and electronic equipment
CN111381813A (en) Front-end page debugging method and device, computer equipment and storage medium
CN111104626B (en) Information storage method and device
CN111581331B (en) Method, device, electronic equipment and computer readable medium for processing text

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