CN113535039B - Method and device for updating page, electronic equipment and computer readable storage medium - Google Patents

Method and device for updating page, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113535039B
CN113535039B CN202110750453.6A CN202110750453A CN113535039B CN 113535039 B CN113535039 B CN 113535039B CN 202110750453 A CN202110750453 A CN 202110750453A CN 113535039 B CN113535039 B CN 113535039B
Authority
CN
China
Prior art keywords
module
page
rule
display
linkage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110750453.6A
Other languages
Chinese (zh)
Other versions
CN113535039A (en
Inventor
屈占祥
陈蒙蒙
徐佳宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202110750453.6A priority Critical patent/CN113535039B/en
Publication of CN113535039A publication Critical patent/CN113535039A/en
Application granted granted Critical
Publication of CN113535039B publication Critical patent/CN113535039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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

Abstract

The application discloses a method and a device for updating a page, electronic equipment and a computer-readable storage medium, and belongs to the technical field of computers. The method comprises the following steps: the method comprises the steps of detecting user operation aiming at a first module, and determining an event corresponding to the first module based on the user operation, wherein the first module is located in a first page. And inquiring the linkage rule of the first module based on the event to obtain a second module corresponding to the event and a module response corresponding to the second module. And controlling the second module to execute the module reaction so that the first page is updated to be the second page. According to the method and the device, the module corresponding to the event is determined by inquiring the module linkage rule, and the control module executes the corresponding module reaction, so that linkage occurs between different modules, the updating of the page is realized, and the mode for updating the page is flexible.

Description

Method and device for updating page, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for updating a page, an electronic device, and a computer-readable storage medium.
Background
In electronic devices, content is presented via a page, which is made up of a number of modules. For different modules with linkage relationship, if an operation for one of the modules is detected, other modules with linkage relationship with the module also need to be changed correspondingly, so as to update the page. The change of the module is, for example, displaying, hiding, etc.
In the related art, linkage relationships between different modules are edited by codes. The electronic equipment realizes linkage between different modules by executing the codes so as to realize updating of the page. However, the manner provided by the related art is relatively solid and inflexible.
Disclosure of Invention
The embodiment of the application provides a method and a device for updating a page, electronic equipment and a computer readable storage medium, so as to solve the problems that the related technology is relatively solidified and is not flexible enough. The technical scheme is as follows:
in one aspect, a method for updating a page is provided, and the method includes:
detecting a user operation aiming at a first module, and determining an event corresponding to the first module based on the user operation, wherein the first module is positioned in a first page;
inquiring a first module linkage rule based on the event to obtain a second module corresponding to the event and a module reaction corresponding to the second module;
and controlling the second module to execute the module reaction, so that the first page is updated to be a second page.
In an exemplary embodiment, before the detecting the user operation for the first module, the method further comprises:
displaying the first page, the first page including the first module.
In an exemplary embodiment, the displaying the first page includes:
detecting a first display operation, wherein the first display operation is used for indicating that the first page is displayed based on a displayed third page;
and displaying the first page based on the third page according to the indication of the first display operation.
In an exemplary embodiment, the displaying the first page based on the third page includes:
and responding to that the third page meets a first condition, and displaying the first page according to a page display rule corresponding to the first module linkage rule, wherein the first condition comprises a corresponding non-linkage version, and the non-linkage version is a version without using the module linkage rule.
In an exemplary embodiment, said displaying said first page based on said third page comprises:
determining a rule difference between the page display rule for displaying the third page and the page display rule corresponding to the first module linkage rule in response to the third page meeting a second condition;
and differentially updating the third page based on the rule to obtain an updated third page, and displaying the updated third page as the first page, wherein the second condition comprises a corresponding linkage version, the page display rule for displaying the third page is different from the page display rule corresponding to the first module linkage rule, and the linkage version is the version using the module linkage rule.
In an exemplary embodiment, the displaying the first page based on the third page includes:
and responding to that the third page meets a third condition, and displaying the third page as the first page, wherein the third condition comprises a corresponding linkage version, a page display rule for displaying the third page is the same as a page display rule corresponding to the first module linkage rule, and the linkage version is a version using the module linkage rule.
In an exemplary embodiment, the displaying the first page includes:
detecting a second display operation, wherein the second display operation is used for indicating that the first page is displayed according to the page display rule corresponding to the first module linkage rule;
and displaying the first page according to the page display rule corresponding to the first module linkage rule according to the indication of the second display operation.
In an exemplary embodiment, after the detecting the user operation with respect to the first module, the method further comprises:
obtaining operation data corresponding to the event based on the user operation;
after the controlling the second module to perform the module reaction, the method further comprises:
and updating the display state of the second module based on the operation data corresponding to the event.
In an exemplary embodiment, before querying the first module linkage rule based on the event, the method further comprises:
and updating a second module linkage rule to obtain the first module linkage rule, wherein the second module linkage rule is a rule used before the first module linkage rule.
In one aspect, an apparatus for updating a page is provided, the apparatus comprising:
the detection module is used for detecting user operation aiming at a first module, and determining an event corresponding to the first module based on the user operation, wherein the first module is positioned in a first page;
the query module is used for querying the linkage rule of the first module based on the event to obtain a second module corresponding to the event and a module response corresponding to the second module;
and the control module is used for controlling the second module to execute the module reaction so as to update the first page to be a second page.
In an exemplary embodiment, the apparatus further comprises: and the display module is used for displaying the first page, and the first page comprises the first module.
In an exemplary embodiment, the display module is configured to detect a first display operation, where the first display operation is used to instruct to display the first page based on a displayed third page; and displaying the first page based on the third page according to the indication of the first display operation.
In an exemplary embodiment, the display module is configured to, in response to that the third page meets a first condition, display the first page according to a page display rule corresponding to the first module linkage rule, where the first condition includes a corresponding non-linkage version, and the non-linkage version is a version in which the module linkage rule is not used.
In an exemplary embodiment, the display module is configured to determine, in response to that the third page satisfies a second condition, a rule difference between the page display rule for displaying the third page and the page display rule corresponding to the first module linkage rule; and differentially updating the third page based on the rule to obtain an updated third page, and displaying the updated third page as the first page, wherein the second condition comprises a corresponding linkage version, the page display rule for displaying the third page is different from the page display rule corresponding to the first module linkage rule, and the linkage version is the version using the module linkage rule.
In an exemplary embodiment, the display module is configured to, in response to that the third page meets a third condition, display the third page as the first page, where the third condition includes a corresponding linkage version, and a page display rule for displaying the third page is the same as a page display rule corresponding to the first module linkage rule, and the linkage version is a version using a module linkage rule.
In an exemplary embodiment, the display module is configured to detect a second display operation, where the second display operation is used to instruct to display the first page according to a page display rule corresponding to the first module linkage rule; and displaying the first page according to the page display rule corresponding to the first module linkage rule according to the indication of the second display operation.
In an exemplary embodiment, the detection module is further configured to obtain operation data corresponding to the event based on the user operation; the control module is further configured to update the display state of the second module based on the operation data corresponding to the event.
In an exemplary embodiment, the query module is further configured to update a second module linkage rule to obtain the first module linkage rule, where the second module linkage rule is a rule used before the first module linkage rule.
In one aspect, an electronic device is provided that includes a memory and a processor; the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to enable the electronic device to implement the method for updating pages provided by any one of the exemplary embodiments of the present application.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to enable a computer to implement a method for updating a page provided in any one of the exemplary embodiments of the present application.
In another aspect, there is provided a computer program or computer program product comprising: computer instructions which, when executed by a computer, cause the computer to implement a method of updating a page as provided by any one of the exemplary embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the module corresponding to the event is determined by inquiring the module linkage rule, and the control module executes the corresponding module reaction, so that linkage occurs between different modules, the updating of the page is realized, and the mode of updating the page is flexible.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a flowchart of a method for updating a page provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a page provided by an embodiment of the present application;
FIG. 4 is a flow chart of an execution module linkage rule provided by an embodiment of the present application;
FIG. 5 is a flowchart of displaying a first page provided by an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an apparatus for updating a page provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a method for updating a page, which can be applied to the implementation environment shown in fig. 1. In fig. 1, at least one electronic device 11 and a server 12 are included, and the electronic device 11 may be communicatively connected to the server 12 to obtain the module linkage rule from the server 12, so as to update the page based on the module linkage rule.
The electronic device 11 may be any electronic product that can perform human-Computer interaction with a user through one or more modes such as a keyboard, a touch pad, a touch screen, a remote controller, voice interaction, or handwriting equipment, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a pocket PC (pocket PC), a tablet Computer, a smart car, a smart television, a smart sound box, and the like.
The server 12 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.
It should be understood by those skilled in the art that the above-mentioned electronic device 11 and server 12 are only examples, and other existing or future electronic devices or servers may be suitable for the present application and are included within the scope of the present application and are incorporated herein by reference.
Based on the implementation environment shown in fig. 1, referring to fig. 2, an embodiment of the present application provides a method for updating a page, which can be applied to the electronic device shown in fig. 1. As shown in fig. 2, the method includes the following steps.
And 201, detecting a user operation aiming at the first module, and determining an event corresponding to the first module based on the user operation.
The first module is located in the first page, and the number of the modules included in the first page is at least one. In response to detecting a user operation for the first module, the first module may generate a corresponding event based on the user operation. In some implementations, the electronic device creates a page global event listener to detect user operations directed to the first module through the page global event listener. Illustratively, after detecting the user operation for the first module, the corresponding relation between the user operation and the event is inquired, so that the event corresponding to the first module is determined based on the user operation. Taking the example that the user operation includes clicking on the first module, the event occurring on the first module is clicked (click). It can be understood that the event "clicked" is merely an example, and is not used to limit the event corresponding to the first module, and the event corresponding to the first module may be set according to an actual requirement.
Illustratively, a module includes at least one element. The user operations for the first module include: operations for any element comprised by the first module. Correspondingly, the events corresponding to the first module comprise: the first module includes an event corresponding to an element. In this case, the event corresponding to the first module may be represented by the module identifier of the first module, the element identifier of the element, and the event identifier.
For example, referring to 301 in FIG. 3, 301 shows an exemplary UGC (User Generated Content) page. In this page, an overall scoring module, an input module, and a recommendation module are included. The total scoring module comprises a plurality of scoring items, the input module comprises an input box, an image uploading box and a video uploading box, and the recommendation module comprises a plurality of recommendation options. In response to the detected user action: if an input box in the input module is selected, the event is as follows: out-of-focus (blu) occurs in an input box in the input module, and the event is expressed as: the module identification of the input module _ element identification of the input box _ out of focus.
In an exemplary embodiment, after detecting the user operation for the first module, the method further comprises: and obtaining operation data corresponding to the event based on user operation. In the page shown in 301, the total scoring module includes 5 star scores, and the number of the selected star scores is used to indicate the score, for example, if 3 star scores of the 5 star scores are selected, the score is 3. Thus, in response to the detected user action: if 3 star-shaped scoring items in the overall scoring module are selected, the events are as follows: the star-shaped scoring item in the overall scoring module is selected, and the operation data corresponding to the event is as follows: and 3 minutes.
Based on the above description, when an event corresponding to the first module is expressed as an event, the event is defined by table 1 as follows.
TABLE 1
Name of field Type (B)
Name (name) string
Data (data) string,json
The event comprises an eventname and eventdata, and the eventdata is an optional item. eventname is used to indicate an event name, such as selected, out of focus, etc. in the above example. The eventdata is used for indicating operation data corresponding to the event.
Illustratively, eventdata belongs to extendparam (extended information), which is other information required for a linkage process between different modules. The event identification used above to represent the event also belongs to extendplacam.
And 202, inquiring the linkage rule of the first module based on the event to obtain a second module corresponding to the event and a module response corresponding to the second module.
Referring to fig. 4, the first module linkage rule includes a rule issued by the server to the electronic device. The electronic equipment can determine whether to execute the first module linkage rule according to actual conditions. In response to the execution, the first module linkage rule may then be registered, and a linkage processing center in the electronic device queries the first module linkage rule based on the event. In response to not executing, the linkage processing center in the electronic device may query other default rules based on the event, and the default rules are not limited in this embodiment.
The first module linkage rule comprises a corresponding relation between an event and a reaction list, the reaction list comprises at least one group of reactions, and the group of reactions comprises at least one module and a module reaction corresponding to each module. After the event corresponding to the first module is determined, a reaction list corresponding to the event can be determined by inquiring the linkage rule of the first module, at least one group of reactions included in the reaction list is obtained, at least one module included in the at least one group of reactions is used as a second module, and the module reaction corresponding to each module in the at least one group of reactions is used as the module reaction corresponding to the second module.
Illustratively, the first module linkage rule is expressed as events, the types of the events are map < eventname, list < action > >, the eventname is used for indicating an event name, and the list < action > is used for indicating a reaction list. The list < action > includes at least one action, which is defined by table 2 below.
TABLE 2
Name of field Type (B)
Type (type) int
Module (modules) list<string>
Wherein a transaction includes a transaction type and a transaction modules. The reactivationmodules are used for indicating at least one module, and the reactivationtype is used for indicating the module reaction corresponding to each module.
For example, in this embodiment, a schema name (template name) is configured for the first module linkage rule, where the schema name is used to indicate a module, and the same module may be located in one or more templates. For a first module linkage rule, the first module linkage rule only works on modules in the configured schema name, but not works on modules in other schema names which are not configured. Of course, in response to that a first module linkage rule is a globally valid rule, that is, a rule is valid for each module in each template, the schema name may not be configured for the first module linkage rule.
In some embodiments, the module reaction includes, but is not limited to, show (show), hide (hide), and change with data (change), and the like, and the present embodiment does not limit the module reaction. Based on the module reaction corresponding to the second module, the first module and the second module can form a dependency or mutual exclusion relationship. The dependency relationship means that the module corresponding to the second module is made to react to display based on the user operation on the first module, and the first module and the second module can be displayed together. The mutual exclusion relationship means that the module corresponding to the second module is hidden based on the user operation aiming at the first module, and the first module and the second module are not displayed together.
In some embodiments, the change with data is a module reaction depending on data, and the embodiment does not limit the data depending on. In the case where the number of objects used as elements in the second module is large, a partial object may be selected from the respective objects based on data corresponding to the respective objects, and the selected partial object may be used as an element in the second module. Accordingly, in response to the update of the data corresponding to any object, the selected part of the objects may be updated. Therefore, the elements in the second module are changed along with the data, and the method is flexible.
For example, the data corresponding to the object is a composite score of the object, and selecting a part of the objects from the objects based on the data corresponding to the objects includes: and sequencing the objects according to the sequence of the comprehensive scores from high to low to obtain an object sequence. And then, taking the former reference number of objects in the object sequence as the selected partial objects. Taking the second module including the recommendation module as an example, see 301, the recommendation module may include 3 recommendation options for recommending 3 objects. And when the number of the objects is more than 4, sequencing the objects according to the sequence of the comprehensive scores from top to bottom to obtain an object sequence, and taking the first 3 objects in the object sequence as 3 recommendation options in a recommendation module respectively.
In an exemplary embodiment, before querying the first module linkage rule based on the event corresponding to the first module, the method further includes: and updating the second module linkage rule to obtain the first module linkage rule, wherein the second module linkage rule is a rule used before the first module linkage rule. In the related art, linkage relationships between different modules are often realized through codes. Therefore, when the linkage relationship between different modules needs to be updated, the codes need to be edited again in a manner provided by the related art. For the electronic device, the re-edited code needs to be acquired from the server for version updating, and then a new linkage relationship can be realized. In the embodiment, the linkage process between different modules is realized by using the module linkage rules, so that when the linkage process between different modules needs to be updated, the module linkage rules are updated without editing codes again and updating versions, and thus, the linkage process between different modules can be dynamically configured.
Illustratively, updating the second module linkage rule to obtain the first module linkage rule comprises: and obtaining a first module linkage rule, and replacing the second module linkage rule with the first module linkage rule. Or, updating the second module linkage rule to obtain the first module linkage rule, including: and obtaining a reference module linkage rule, and deleting or adding the reference module linkage rule from the second module linkage rule to obtain a first module linkage rule.
And 203, controlling the second module to execute module reaction so that the first page is updated to the second page.
Since the second module and the corresponding module reaction of the second module are determined in 202, the second module can be controlled to perform the corresponding module reaction. For example, in the case where the module reaction is display, a second module not shown is displayed. For another example, when the module response is hidden, the second module that has been displayed is hidden. For the electronic equipment, after an event occurs in a first module due to user operation, a second module is controlled to execute corresponding module reaction based on the event occurring in the first module, so that linkage between the first module and the second module is realized, and a first page is updated to a second page. Wherein the first module, also called upstream module, is indicated by upmodulekey. The second module, also called downstream module, is indicated by a downmodulekey.
As shown at 302 in fig. 3, 302 illustrates one exemplary scenario in which the second module is displayed. At 302, a first module in the first page is an overall scoring module, and after the overall scoring module is selected, a second module is further displayed, thereby causing the first page to be updated to a second page. The second module is a detail grading module, and the detail grading module is used for grading different details such as taste, environment, service and the like for the user.
In an exemplary embodiment, for the case that the operation data corresponding to the event is obtained based on the user operation explained in 201, after controlling the second module to perform the module reaction, the method further includes: and updating the display state of the second module based on the operation data corresponding to the event. Taking the first module as an overall scoring module as an example, in response to that a star-shaped scoring item in the overall scoring module is selected for an event, and the operation data corresponding to the event is 3 points, referring to 303 in fig. 3, in the case that the second module is a detail scoring module, the display state of the detail scoring module may be updated according to the operation data, so that the scores for different details such as taste, environment, service, and the like in the detail scoring module are displayed as 3 points same as the operation data, thereby implementing the update of the display state.
The process of updating the first page to the second page is explained above. In an exemplary embodiment, prior to detecting the user operation with respect to the first module, the method further comprises: a first page is displayed, the first page including a first module. The page displayed by the electronic device is updated from the first page to the second page based on the user operation on the first module, so that the electronic device needs to display the first page including the first module. In an exemplary embodiment, the first page is displayed, including the following two ways.
The first method is as follows: and detecting a first display operation, wherein the first display operation is used for indicating that the first page is displayed based on the displayed third page. And displaying the first page based on the third page according to the indication of the first display operation.
The third page that has been displayed is, for example, a draft page in the draft box. Illustratively, in response to the displayed third page including the user upload content, the user upload content included in the third page is displayed in the first page after the first page is displayed based on the third page. The content uploaded by the user includes but is not limited to at least one of text, pictures and videos, and the content uploaded by the user is not limited in the embodiment of the application.
In an exemplary embodiment, the first page is displayed based on the third page in the first mode, which includes the following three cases.
The first condition is as follows: displaying the first page based on the third page, including: and responding to the third page meeting the first condition, and displaying the first page according to the page display rule corresponding to the first module linkage rule. The first condition comprises a corresponding non-linkage version, and the non-linkage version is a version without using a module linkage rule.
Referring to fig. 5, in the case that the third page corresponds to the non-linked version that does not use the module linkage rule, the third page is ignored, and the first page is directly displayed according to the page display rule corresponding to the first module linkage rule. The page display rule indicates at least one module and a module reaction corresponding to each module, and the module reaction corresponding to each module is, for example, display. During the process of displaying the first page (also called initialization of the first page), at least one module indicated by the page display rule is controlled to execute corresponding module reaction, so that the module needing to be displayed can be normally displayed.
And representing the page display rule corresponding to the first module linkage rule as initial, wherein the type of the initial is list < action >. Wherein, the list < action > refers to the above description for table 1, and is not repeated here.
In the embodiment of the application, a field eventconfig at the same level as the module list is added in the contentmodules page issuing interface, and the eventconfig includes the first module linkage rules eventualations and the page display rules initiations corresponding to the first module linkage rules. As is clear from the above description, the eventconfig can be represented as table 3 below.
TABLE 3
Name of field Type (B)
initialactions list<reaction>
eventactions map<eventname,list<reaction>>
Case two: displaying the first page based on the third page, including: and determining a rule difference between a page display rule for displaying the third page and a page display rule corresponding to the first module linkage rule in response to the third page meeting the second condition. And differentially updating the third page based on the rule to obtain an updated third page, and displaying the updated third page as the first page, wherein the second condition comprises a corresponding linkage version, the page display rule for displaying the third page is different from the page display rule corresponding to the first module linkage rule, and the linkage version is the version using the module linkage rule.
Under the condition that the third page corresponds to the linkage version, the third page does not need to be ignored, and the first page can be obtained by updating on the basis of the third page. Illustratively, the rule difference between the page display rule for displaying the third page and the page display rule corresponding to the first module linkage rule includes, but is not limited to, at least one of the following: the indicated modules are different, and the corresponding modules of the modules react differently. Correspondingly, in response to the rule difference including that the indicated modules are different, updating the third page based on the rule to obtain an updated third page, including: and adding or deleting the modules included in the third page, so that the updated modules included in the third page are the same as the modules indicated by the page display rules corresponding to the first module linkage rules. In response to the rule difference including that the module responses corresponding to the modules are different, updating a third page based on the rule, including: and replacing the module reaction corresponding to the module included in the third page, so that the updated module reaction corresponding to the module included in the third page is the same as the module reaction indicated by the page display rule corresponding to the first module linkage rule.
Case three: displaying the first page based on the third page, including: and in response to the third page satisfying a third condition, displaying the third page as the first page. The third condition comprises a corresponding linkage version, the page display rule for displaying the third page is the same as the page display rule corresponding to the first module linkage rule, and the linkage version is the version using the module linkage rule.
And under the condition that the third page corresponds to the linkage version and the page display rule for displaying the third page is the same as the page display rule corresponding to the linkage rule of the first module, directly displaying the third page as the first page.
The second method comprises the following steps: and detecting second display operation, wherein the second display operation is used for indicating that the first page is displayed according to the page display rule corresponding to the first module linkage rule. And displaying the first page according to the page display rule corresponding to the first module linkage rule according to the indication of the second display operation.
And displaying the first page according to the page display rule corresponding to the first module linkage rule, referring to the description of the first case, which is not repeated herein.
For example, the present embodiment can be distinguished by different page buttons for the first display operation in the first mode and the second display operation in the second mode. For example, in a case where it is detected that the page button is selected, it is considered that the first display operation is detected. And in the case of detecting that the page button II is selected, the second display operation is considered to be detected. In some embodiments, the first page button and the second page button correspond to different text identifiers, so that a user can distinguish the first page button from the second page button. For example, the first page button corresponds to a "loading draft", the second page button corresponds to a "new evaluation", and the embodiment does not limit the text identifier corresponding to the page button, as long as the function of facilitating the user to distinguish is achieved.
In summary, in the embodiment of the application, the module corresponding to the event is determined by querying the module linkage rule, and the control module executes the corresponding module reaction, so that linkage occurs between different modules, and the updating of the page is realized, and the mode of updating the page is flexible. And the module linkage rule can be dynamically configured under the condition of not updating the version, so that the flexibility of updating the page is further enhanced.
An embodiment of the present application provides an apparatus, see fig. 6, including:
the detection module 601 is configured to detect a user operation for a first module, and determine an event corresponding to the first module based on the user operation, where the first module is located in a first page;
the query module 602 is configured to query the first module linkage rule based on an event to obtain a second module corresponding to the event and a module response corresponding to the second module;
the control module 603 is configured to control the second module to execute the module reaction, so that the first page is updated to the second page.
In an exemplary embodiment, the apparatus further comprises: the display module is used for displaying a first page, and the first page comprises a first module.
In an exemplary embodiment, the display module is configured to detect a first display operation, where the first display operation is used to instruct to display a first page based on a displayed third page; and displaying the first page based on the third page according to the indication of the first display operation.
In an exemplary embodiment, the display module is configured to, in response to that the third page satisfies a first condition, display the first page according to a page display rule corresponding to the first module linkage rule, where the first condition includes that an un-linkage version is corresponding, and the un-linkage version is a version in which the module linkage rule is not used.
In an exemplary embodiment, the display module is configured to determine, in response to the third page satisfying the second condition, a rule difference between a page display rule for displaying the third page and a page display rule corresponding to the first module linkage rule; and updating the third page based on the rule difference to obtain an updated third page, and displaying the updated third page as the first page, wherein the second condition comprises a corresponding linkage version, the page display rule for displaying the third page is different from the page display rule corresponding to the first module linkage rule, and the linkage version is the version using the module linkage rule.
In an exemplary embodiment, the display module is configured to display a third page as the first page in response to the third page satisfying a third condition, where the third condition includes a corresponding linkage version, and a page display rule for displaying the third page is the same as a page display rule corresponding to the first module linkage rule, and the linkage version is a version using the module linkage rule.
In an exemplary embodiment, the display module is configured to detect a second display operation, where the second display operation is used to instruct to display the first page according to the page display rule corresponding to the first module linkage rule; and displaying the first page according to the page display rule corresponding to the first module linkage rule according to the indication of the second display operation.
In an exemplary embodiment, the detecting module 601 is further configured to obtain operation data corresponding to an event based on a user operation; the control module 603 is further configured to update the display state of the second module based on the operation data corresponding to the event.
In the exemplary embodiment, query module 602 is further configured to update a second module linkage rule to obtain a first module linkage rule, where the second module linkage rule is a rule used before the first module linkage rule.
To sum up, in the embodiment of the present application, the module corresponding to the event is determined by querying the module linkage rule, and the control module executes the corresponding module reaction, so that the different modules are linked, and the update of the page is realized. And the module linkage rule can be dynamically configured under the condition of not updating the version, so that the flexibility of updating the page is further enhanced.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 7, a schematic structural diagram of an electronic device 700 provided in an embodiment of the present application is shown. The electronic device 700 may be a portable mobile electronic device such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer or a desktop computer. Electronic device 700 may also be referred to by other names as user equipment, portable electronic device, laptop electronic device, desktop electronic device, and so on.
In general, the electronic device 700 includes: a processor 701 and a memory 702.
The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 701 may be implemented in at least one hardware form selected from the group consisting of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and rendering content that the display screen 705 needs to display. In some embodiments, the processor 701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. Memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one instruction for execution by processor 701 to implement a method of updating pages as provided by method embodiments herein.
In some embodiments, the electronic device 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of the group consisting of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, a positioning component 708, and a power source 709.
The peripheral interface 703 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 701 and the memory 702. In some embodiments, processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 704 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 704 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 704 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or Wi-Fi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 704 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to capture touch signals on or over the surface of the display screen 705. The touch signal may be input to the processor 701 as a control signal for processing. At this point, the display 705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 705 may be one, disposed on the front panel of the electronic device 700; in other embodiments, the number of the display screens 705 may be at least two, and the at least two display screens are respectively disposed on different surfaces of the electronic device 700 or are in a folding design; in other embodiments, the display 705 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display 705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 706 is used to capture images or video. Optionally, camera assembly 706 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of an electronic apparatus, and a rear camera is disposed on a rear surface of the electronic apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 706 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing or inputting the electric signals to the radio frequency circuit 704 to realize voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations of the electronic device 700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The loudspeaker can be a traditional film loudspeaker and can also be a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 707 may also include a headphone jack.
The positioning component 708 is operable to locate a current geographic Location of the electronic device 700 to implement a navigation or LBS (Location Based Service). The Positioning component 708 can be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 709 is used to supply power to various components in the electronic device 700. The power source 709 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When power source 709 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 700 also includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 715, and proximity sensor 716.
The acceleration sensor 711 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the electronic device 700. For example, the acceleration sensor 711 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 701 may control the display screen 705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the electronic device 700, and the gyro sensor 712 may cooperate with the acceleration sensor 711 to acquire a 3D motion of the user with respect to the electronic device 700. From the data collected by the gyro sensor 712, the processor 701 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 713 may be disposed on a side bezel of electronic device 700 and/or underlying display screen 705. When the pressure sensor 713 is disposed on a side frame of the electronic device 700, a user holding signal of the electronic device 700 may be detected, and the processor 701 may perform left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at a lower layer of the display screen 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 705. The operability control comprises at least one of a group consisting of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 714 is used for collecting a fingerprint of a user, and the processor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 714 may be disposed on the front, back, or side of the electronic device 700. When a physical button or vendor Logo is provided on the electronic device 700, the fingerprint sensor 714 may be integrated with the physical button or vendor Logo.
The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, processor 701 may control the display brightness of display screen 705 based on the ambient light intensity collected by optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display 707 is turned down. In another embodiment, processor 701 may also dynamically adjust the shooting parameters of camera assembly 706 based on the ambient light intensity collected by optical sensor 715.
A proximity sensor 716, also referred to as a distance sensor, is typically disposed on the front panel of the electronic device 700. The proximity sensor 716 is used to capture the distance between the user and the front of the electronic device 700. In one embodiment, the processor 701 controls the display screen 705 to switch from the bright screen state to the dark screen state when the proximity sensor 716 detects that the distance between the user and the front surface of the electronic device 700 is gradually decreased; when the proximity sensor 716 detects that the distance between the user and the front surface of the electronic device 700 is gradually increased, the processor 701 controls the display screen 705 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 7 does not constitute a limitation of the electronic device 700 and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
The embodiment of the application provides electronic equipment, which comprises a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to cause the electronic device to implement a method of updating a page provided by any of the exemplary embodiments of the present application.
The embodiment of the application provides a computer-readable storage medium, and at least one instruction is stored in the computer-readable storage medium, and the instruction is loaded and executed by a processor, so that a computer realizes the method for updating the page provided by any one of the exemplary embodiments of the application.
An embodiment of the present application provides a computer program or a computer program product, where the computer program or the computer program product includes: computer instructions which, when executed by a computer, cause the computer to implement a method of updating a page as provided in any of the exemplary embodiments of this application.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method of updating a page, the method comprising:
detecting user operation aiming at a first module, and determining an event corresponding to the first module based on the user operation, wherein the first module is positioned in a first page;
inquiring a first module linkage rule based on the event to obtain a second module corresponding to the event and a module reaction corresponding to the second module;
and controlling the second module to execute the module reaction, so that the first page is updated to be a second page.
2. The method of claim 1, wherein prior to the detecting the user action with respect to the first module, the method further comprises:
displaying the first page, the first page including the first module.
3. The method of claim 2, wherein the displaying the first page comprises:
detecting a first display operation, wherein the first display operation is used for indicating that the first page is displayed based on the displayed third page;
and displaying the first page based on the third page according to the indication of the first display operation.
4. The method of claim 3, wherein displaying the first page based on the third page comprises:
and responding to the non-linkage version which does not use the module linkage rule and corresponds to the third page, ignoring the third page, and displaying the first page according to the page display rule corresponding to the first module linkage rule.
5. The method of claim 3, wherein displaying the first page based on the third page comprises:
responding to the linkage version of the corresponding usage module linkage rule of the third page, and the page display rule for displaying the third page is different from the page display rule corresponding to the first module linkage rule, and determining the rule difference between the page display rule for displaying the third page and the page display rule corresponding to the first module linkage rule;
and differentially updating the third page based on the rule to obtain an updated third page, and displaying the updated third page as the first page.
6. The method of claim 3, wherein displaying the first page based on the third page comprises:
and responding to the linkage version of the corresponding usage module linkage rule of the third page, and the page display rule for displaying the third page is the same as the page display rule corresponding to the first module linkage rule, and displaying the third page as the first page.
7. The method of claim 2, wherein the displaying the first page comprises:
detecting a second display operation, wherein the second display operation is used for indicating that the first page is displayed according to the page display rule corresponding to the first module linkage rule;
and displaying the first page according to the page display rule corresponding to the first module linkage rule according to the indication of the second display operation.
8. The method of any of claims 1-7, wherein after detecting the user action on the first module, the method further comprises:
obtaining operation data corresponding to the event based on the user operation;
after the controlling the second module to perform the module reaction, the method further comprises:
and updating the display state of the second module based on the operation data corresponding to the event.
9. The method of any of claims 1-7, wherein prior to querying the first module linkage rule based on the event, the method further comprises:
updating a second module linkage rule to obtain the first module linkage rule, wherein the second module linkage rule is a rule used before the first module linkage rule.
10. An apparatus for updating a page, the apparatus comprising:
the detection module is used for detecting user operation aiming at a first module, and determining an event corresponding to the first module based on the user operation, wherein the first module is positioned in a first page;
the query module is used for querying the linkage rule of the first module based on the event to obtain a second module corresponding to the event and a module response corresponding to the second module;
and the control module is used for controlling the second module to execute the module reaction so that the first page is updated to be the second page.
11. An electronic device, comprising a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to cause the electronic device to implement the method of updating pages of any of claims 1-9.
12. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to cause a computer to implement a method of updating pages as claimed in any one of claims 1 to 9.
CN202110750453.6A 2021-07-02 2021-07-02 Method and device for updating page, electronic equipment and computer readable storage medium Active CN113535039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110750453.6A CN113535039B (en) 2021-07-02 2021-07-02 Method and device for updating page, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110750453.6A CN113535039B (en) 2021-07-02 2021-07-02 Method and device for updating page, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113535039A CN113535039A (en) 2021-10-22
CN113535039B true CN113535039B (en) 2022-06-03

Family

ID=78126557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110750453.6A Active CN113535039B (en) 2021-07-02 2021-07-02 Method and device for updating page, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113535039B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942814B (en) * 2022-06-01 2023-07-11 咪咕视讯科技有限公司 Page component focusing method, system, terminal equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597614A (en) * 2017-09-28 2019-04-09 华为技术有限公司 A kind of business page method for customizing and system
CN112506494A (en) * 2020-11-02 2021-03-16 福建亿能达信息技术股份有限公司 Method, device, equipment and medium for realizing extensible dynamic component based on VUE (virtual user Equipment)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8079037B2 (en) * 2005-10-11 2011-12-13 Knoa Software, Inc. Generic, multi-instance method and GUI detection system for tracking and monitoring computer applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597614A (en) * 2017-09-28 2019-04-09 华为技术有限公司 A kind of business page method for customizing and system
CN112506494A (en) * 2020-11-02 2021-03-16 福建亿能达信息技术股份有限公司 Method, device, equipment and medium for realizing extensible dynamic component based on VUE (virtual user Equipment)

Also Published As

Publication number Publication date
CN113535039A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN112162671B (en) Live broadcast data processing method and device, electronic equipment and storage medium
CN107885533B (en) Method and device for managing component codes
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN109862412B (en) Method and device for video co-shooting and storage medium
WO2022134632A1 (en) Work processing method and apparatus
CN110769313B (en) Video processing method and device and storage medium
CN110058935B (en) Log level adjusting method, device and system and readable storage medium
CN111949680A (en) Data processing method and device, computer equipment and storage medium
CN110705614A (en) Model training method and device, electronic equipment and storage medium
CN109783176B (en) Page switching method and device
CN111192072A (en) User grouping method and device and storage medium
CN110677713A (en) Video image processing method and device and storage medium
CN113535039B (en) Method and device for updating page, electronic equipment and computer readable storage medium
CN110990728B (en) Method, device, equipment and storage medium for managing interest point information
CN111666076A (en) Layer adding method, device, terminal and storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium
CN112417263B (en) Data recommendation method, device and storage medium
CN110569064B (en) Interface identifier generation method, device, equipment and storage medium
CN111294320B (en) Data conversion method and device
CN112132472A (en) Resource management method and device, electronic equipment and computer readable storage medium
CN111158791A (en) Configuration file updating method, device and system and storage medium
CN112990421A (en) Method, device and storage medium for optimizing operation process of deep learning network
CN112135256A (en) Method, device and equipment for determining movement track and readable storage medium
CN113590669B (en) Method and device for generating cost report forms and computer storage medium
CN113407741B (en) Material management method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant