Method, apparatus, electronic device, and storage medium for data processing
Patent Information
- Application Number
- CN202510571039.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2026-10-30
AI Technical Summary
[0047]本发明实施例中,在接收页面显示指令或,可以根据页面标识查询对应的楼层注册映射表和共建楼层映射表,楼层注册映射表可以表示对页面楼层化的初始映射关系,共建楼层映射表表示在需要对页面共建时建立的映射关系;然后可以根据共建楼层映射表中共建楼层标识和共建楼层映射表更新楼层注册映射表,以使页面楼层化满足共建需求,进而可以获取页面标识关联的页面数据源,以结合更新的楼层注册映射表生成对应的页面数据,并对页面数据进行渲染,得到显示页面。如此本发明实施例中,在页面楼层化显示时,可以根据共建需求建立共建楼层映射表,在页面渲染时通过共建楼层映射表对楼层注册映射表进行更新,使页面渲染时可以根据共建楼层映射表进行渲染,从而使显示页面满足共建需求,进而避免了对楼层化显示方案进一步开发和代码编写,降低页面显示成本,提高页面显示的处理效率。
Smart Images

Figure CN123011224A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] In client-side scenarios where page display is required, layered rendering is a common approach. Numerous layered rendering solutions based on different technology stacks have emerged, with the Taro technology stack being one example. While the Taro technology stack can achieve layered page display, current solutions are generally simple layered rendering methods. When there are shared page requirements, further development and coding of the layered rendering solution are usually necessary, increasing page display costs and reducing processing efficiency. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a data processing method, apparatus, electronic device, and storage medium, which can solve the problem that when there is a need for page co-construction, it is necessary to develop a floor-based display scheme according to the requirements, which leads to increased page display costs and reduced page display processing efficiency.
[0004] To achieve the above objectives, according to one aspect of the present invention, a data processing method is provided.
[0005] A data processing method according to an embodiment of the present invention includes: receiving a page display instruction, obtaining a corresponding page identifier, and querying the corresponding floor registration mapping table and co-construction floor mapping table;
[0006] Obtain the co-constructed floor identifier from the co-constructed floor mapping table, and update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table;
[0007] Obtain the page data source associated with the page identifier, and generate the corresponding page data by combining it with the updated floor registration mapping table;
[0008] The preset rendering component is invoked to render the page data and obtain the display page.
[0009] In one embodiment, obtaining the co-constructed floor identifier from the co-constructed floor mapping table, and updating the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table, includes:
[0010] Obtain the co-construction floor identifier from the co-construction floor mapping table, and determine the co-construction type corresponding to the co-construction floor identifier based on the co-construction floor mapping table;
[0011] In response to the co-construction type being a first type, the mapping relationship corresponding to the co-construction floor identifier in the floor registration mapping table is queried, and the mapping relationship is replaced based on the co-construction floor mapping table; in response to the co-construction type being a second type, the co-construction identifier associated with the co-construction floor identifier is obtained, and the floor registration mapping table is updated according to the co-construction identifier and the co-construction floor mapping table.
[0012] In yet another embodiment, updating the floor registration mapping table based on the co-construction identifier and the co-construction floor mapping table includes:
[0013] Based on the co-construction identifier, obtain the corresponding location information, determine the corresponding floor identifier and floor location information in the floor registration mapping table, and update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
[0014] In yet another embodiment, updating the floor registration mapping table based on the co-construction identifier and the co-construction floor mapping table includes:
[0015] Based on the co-construction identifier, the corresponding component information is determined, and the corresponding floor identifier and component identifier in the floor registration mapping table are determined, so as to update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
[0016] In yet another embodiment, before invoking a preset rendering component to render the page data, the method further includes:
[0017] Based on the page identifier, obtain the co-construction processing event, query the co-construction component identifier and event processing method corresponding to the co-construction processing event, and update the processing program corresponding to the page identifier based on the event processing method according to the co-construction floor identifier.
[0018] Invoking a preset rendering component to render the page data includes:
[0019] The preset rendering component is invoked to render the page data and the processing program.
[0020] In yet another embodiment, after rendering the page data to obtain the displayed page, the method further includes:
[0021] Receive user operation data on the displayed page;
[0022] In response to the operation data triggering the co-construction processing event, the corresponding event handling method is invoked to execute the co-construction processing event.
[0023] To achieve the above objectives, according to another aspect of the present invention, a data processing apparatus is provided.
[0024] An embodiment of the present invention provides a data processing apparatus comprising: a receiving unit, configured to receive a page display instruction, obtain a corresponding page identifier, and query a corresponding floor registration mapping table and a co-construction floor mapping table;
[0025] The update unit is used to obtain the co-constructed floor identifier from the co-constructed floor mapping table, and update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table;
[0026] The generation unit is used to obtain the page data source associated with the page identifier, so as to generate the corresponding page data in combination with the updated floor registration mapping table;
[0027] The rendering unit is used to call a preset rendering component to render the page data and obtain the display page.
[0028] In one embodiment, the updating unit is specifically used for:
[0029] Obtain the co-construction floor identifier from the co-construction floor mapping table, and determine the co-construction type corresponding to the co-construction floor identifier based on the co-construction floor mapping table;
[0030] In response to the co-construction type being a first type, the mapping relationship corresponding to the co-construction floor identifier in the floor registration mapping table is queried, and the mapping relationship is replaced based on the co-construction floor mapping table; in response to the co-construction type being a second type, the co-construction identifier associated with the co-construction floor identifier is obtained, and the floor registration mapping table is updated according to the co-construction identifier and the co-construction floor mapping table.
[0031] In yet another embodiment, the updating unit is specifically used for:
[0032] Based on the co-construction identifier, obtain the corresponding location information, determine the corresponding floor identifier and floor location information in the floor registration mapping table, and update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
[0033] In yet another embodiment, the updating unit is specifically used for:
[0034] Based on the co-construction identifier, the corresponding component information is determined, and the corresponding floor identifier and component identifier in the floor registration mapping table are determined, so as to update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
[0035] In another embodiment, the updating unit is further configured to obtain a co-construction processing event based on the page identifier, query the co-construction component identifier and event processing method corresponding to the co-construction processing event, and update the processing program corresponding to the page identifier based on the event processing method based on the co-construction floor identifier;
[0036] The rendering unit is also used to call a preset rendering component to render the page data and the processing program.
[0037] In yet another embodiment, the receiving unit is further configured to receive user operation data on the display page;
[0038] The device further includes:
[0039] The processing unit is configured to respond to the co-construction processing event triggered by the operation data by calling the corresponding event handling method to execute the co-construction processing event.
[0040] To achieve the above objectives, according to another aspect of the present invention, an electronic device is provided.
[0041] An electronic device according to an embodiment of the present invention includes: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided in the embodiment of the present invention.
[0042] To achieve the above objectives, according to another aspect of the present invention, a computer-readable medium is provided.
[0043] An embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the data processing method provided in the embodiment of the present invention.
[0044] To achieve the above objectives, according to another aspect of the present invention, a computer program product is provided.
[0045] A computer program product according to an embodiment of the present invention includes a computer program that, when executed by a processor, implements the data processing method provided in the embodiment of the present invention.
[0046] One embodiment of the above invention has the following advantages or beneficial effects:
[0047] In this embodiment of the invention, upon receiving a page display instruction, the corresponding floor registration mapping table and co-construction floor mapping table can be queried based on the page identifier. The floor registration mapping table represents the initial mapping relationship for page flooring, and the co-construction floor mapping table represents the mapping relationship established when page co-construction is required. Then, the floor registration mapping table can be updated based on the co-construction floor identifier and the co-construction floor mapping table to ensure that page flooring meets co-construction requirements. Furthermore, the page data source associated with the page identifier can be obtained, and the corresponding page data can be generated by combining it with the updated floor registration mapping table. The page data is then rendered to obtain the displayed page. Thus, in this embodiment of the invention, when displaying a page in a floored manner, a co-construction floor mapping table can be established based on co-construction requirements. During page rendering, the floor registration mapping table is updated using the co-construction floor mapping table, allowing the page to be rendered based on the co-construction floor mapping table, thereby ensuring that the displayed page meets co-construction requirements. This avoids further development and code writing for the floored display scheme, reduces page display costs, and improves page display processing efficiency.
[0048] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0049] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0050] Figure 1 This is a schematic diagram of an architecture of a data processing system according to an embodiment of the present invention;
[0051] Figure 2 This is a schematic diagram of a main flow of a data processing method according to an embodiment of the present invention;
[0052] Figure 3 This is a schematic diagram of another main flow of a data processing method according to an embodiment of the present invention;
[0053] Figure 4 This is a schematic diagram of another main flow of a data processing method according to an embodiment of the present invention;
[0054] Figure 5 This is a schematic diagram of the main units of a data processing apparatus according to an embodiment of the present invention;
[0055] Figure 6 This is yet another exemplary system architecture diagram to which embodiments of the present invention can be applied;
[0056] Figure 7 This is a schematic diagram of the structure of a computer system suitable for implementing embodiments of the present invention. Detailed Implementation
[0057] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0058] It should be noted that, unless otherwise specified, the embodiments and features described in this invention can be combined with each other. The acquisition, transmission, storage, use, and processing of data in this application comply with relevant national laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.
[0059] This invention provides a data processing system that can be used for processing page display data, specifically for displaying page layered collaborative construction.
[0060] To meet the personalized display needs of different business operations, co-creation technology is a commonly used technique for layered page display. Layering allows for improvements to built-in layers, externally co-created layers, layer segmentation configurations, dynamic layers, built-in layer co-creation overlay, inter-layer communication, and layer visibility. Co-creation technology enables co-creation of layers, as well as any UI (User Interface Designer) (including those within and outside layers), and also allows for co-creation of configurations, method communication, and parameter passing.
[0061] Figure 1 The diagram shown is an architectural schematic of a data processing system according to an embodiment of the present invention. Figure 1As shown, the data processing system can include a service / platform side and business-side applications. The service / platform side can be used to configure the data source for page rendering, specifically including configuring the required floors, the division method between floors (usually the division style between each floor follows the previous floor), styles, etc. The business-side applications can include component-side, floor / co-construction SDK (Software Development Kit)-side, and business-side applications. On the component-side, various components can be pre-configured to meet the page rendering requirements, such as floor information registration and rendering; the floor / co-construction SDK-side can draw floors and events based on preset registration and co-construction information to facilitate page rendering and can handle various events triggered by the page; the business-side can be used for personalized floor co-construction registration and configuration. The service / platform side can connect to the component-side and floor / co-construction SDK-side through a data distribution port for data source distribution.
[0062] It should be noted that, for the service / platform side, the required floors and information for each floor can be configured through the platform configuration page. Simultaneously, a collaborative construction approach can be used on the server side to access the business's collaborative construction interface, thereby configuring personalized business data and distributing it along with the platform configuration to the floor / collaborative construction SDK side to achieve the transfer of business collaborative construction data. In this embodiment of the invention, the component side and the floor / collaborative construction SDK side in the business application can be set on different clients or servers from the business side. The data processing system can also include a configuration SDK, and the floor SDK can read the floor information configured on the service / platform side through the configuration SDK.
[0063] This invention provides a data processing method that can be executed by a business-side application in a data processing system, such as... Figure 2 As shown, the method includes the following steps.
[0064] S201: Receive the page display instruction, obtain the corresponding page identifier, and query the corresponding floor registration mapping table and co-construction floor mapping table.
[0065] The page display instruction refers to the command to render and display a page. It can be automatically triggered based on preset conditions or sent by other systems. The page display instruction can include a page identifier to indicate which page is to be displayed. In this step, the corresponding floor registration mapping table and co-construction floor mapping table can be queried based on the page identifier.
[0066] The floor registration mapping table can include a table showing the correspondence between floor identifiers and floor UIs, used to determine the corresponding floor UI for each floor. This table is typically pre-configured and stored, and can be queried using the page identifier. The co-construction floor mapping table can include a table showing the correspondence between co-construction floor identifiers and their corresponding floor UIs. This indicates that floors corresponding to the co-construction floor identifiers on the page are co-constructed. This table can be configured and stored on the business side, and can be queried using the page identifier to meet the personalized needs of the business side during page rendering.
[0067] It should be noted that, in this embodiment of the invention, non-floor co-construction can also be implemented. Typically, a unique identifier is also set for these non-floor co-construction configurations and storage, which are then loaded and rendered during page rendering. In this step, after receiving the page display instruction, the page can be drawn by the floor / co-construction SDK. That is, in this step, the corresponding floor registration mapping table and co-construction floor mapping table can be queried based on the page identifier. The floor registration mapping table can be queried by the floor SDK, and the co-construction floor mapping table can be queried by the co-construction SDK.
[0068] S202: Obtain the co-constructed floor identifier from the co-constructed floor mapping table, and update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table.
[0069] The co-constructed floor mapping table represents the co-constructed content of a page, and its content is configured according to personalized business needs, typically not involving the overall page. The floor registration mapping table, on the other hand, is a table showing the relationship between each floor and its UI within the overall page. Therefore, in this step, the floor registration mapping table can be updated based on the co-constructed floor mapping table to obtain the complete mapping relationship between floor identifiers and their corresponding UI elements. The co-constructed floor mapping table includes co-constructed floor identifiers to indicate the floors being co-constructed, which are the floor identifiers in the floor registration mapping table that need to be updated. Therefore, the corresponding floor identifiers in the floor registration mapping table are determined based on the co-constructed floor identifiers, and then the mapping relationship between the co-constructed floor identifiers and their corresponding floor identifiers in the floor registration mapping table is established based on the co-constructed floor mapping table.
[0070] Specifically, the business side can collaborate on page creation in two ways: collaborating on one or more floors of a page as a whole, or collaborating on a portion of one or more floors. When collaborating on an entire floor, it means that the entire mapping relationship for that floor has been changed, so the configuration content in the collaborative floor mapping table can be directly used to replace the corresponding content in the floor registration mapping table. When collaborating on a portion of a floor, the identifier of the collaborating portion can be determined based on the collaborative floor mapping table, thus allowing the floor registration mapping table to be updated.
[0071] Therefore, in this embodiment of the invention, the co-construction floor mapping table can be classified into a first type and a second type. The first type represents co-construction of the entire floor, and the second type represents co-construction of a portion of six floors. This step can be specifically executed as follows: obtain the co-construction floor identifier from the co-construction floor mapping table; determine the co-construction type corresponding to the co-construction floor identifier based on the co-construction floor mapping table; in response to the co-construction type being the first type, query the mapping relationship corresponding to the co-construction floor identifier in the floor registration mapping table, and replace the mapping relationship based on the co-construction floor mapping table; in response to the co-construction type being the second type, obtain the co-construction identifier associated with the co-construction floor identifier, and update the floor registration mapping table according to the co-construction identifier and the co-construction floor mapping table. In the second type, the co-construction floor mapping table can record the co-construction floor identifier and the co-construction identifier associated with that floor, to update the corresponding relationship of the corresponding floors in the floor registration mapping table. The type of the co-construction floor mapping table can be pre-marked.
[0072] The co-construction identifier can be set according to requirements. On one hand, it can be a location identifier, i.e., location information, indicating the location within the co-constructed floor. This allows the corresponding location information to be obtained based on the co-construction identifier, determining the corresponding floor identifier and location information in the floor registration mapping table, and updating the mapping relationship corresponding to the floor identifier based on the co-construction floor mapping table. On the other hand, it can be a component identifier, i.e., component information, indicating the components within the co-constructed floor. This allows the corresponding component information to be determined based on the co-construction identifier, determining the corresponding floor identifier and component identifier in the floor registration mapping table, and updating the mapping relationship corresponding to the floor identifier based on the co-construction floor mapping table.
[0073] It should be noted that the floor registration mapping table in this embodiment of the invention can include replacement, deletion, addition, etc., which can be performed according to the specific content of the co-construction floor mapping table. Since this embodiment of the invention can also handle non-floor co-construction, if the co-construction content does not belong to any floor, a unique co-construction identifier can be set, and the location information corresponding to the co-construction identifier can be configured to configure the specific co-construction content in the co-construction floor mapping table. Then, the corresponding identifier in the floor registration mapping table is determined based on the location information and updated. In this embodiment of the invention, the co-construction floor mapping table can also simultaneously include a first type and a second type of mapping table. In this case, the type of mapping relationship for each co-construction floor in the co-construction floor mapping table can be determined, and then the corresponding update method can be performed on that co-construction floor.
[0074] S203: Obtain the page data source associated with the page identifier, and generate the corresponding page data by combining it with the updated floor registration mapping table.
[0075] The page data source is usually configured by the server and can include page data configured by the platform and personalized business data (co-construction data) configured by the server. The page data source is combined with the updated floor registration mapping table to generate corresponding page data, that is, page data that meets the co-construction requirements, and then the page that meets the business requirements can be rendered.
[0076] In this embodiment of the invention, a mid (intermediate identifier) can also be set in the page data source to correspond to the floor identifier, thereby determining the data source corresponding to each floor and realizing the rendering of the corresponding floor through the data sent.
[0077] It should be noted that the page data source can include various data such as floor segmentation. The server can read the configuration data corresponding to the page identifier, including the data of each floor, including the floor segmentation style, etc. When the floor SDK obtains each floor and its segmentation method, it can perform floor segmentation processing according to the floor segmentation style, including but not limited to determining whether the floor can be displayed realistically, whether the floor has been manually hidden, whether the floor is in a collapsed state, etc., then loading the lower segmentation style of the current floor, setting the upper segmentation style of the next floor of the current floor, and thus achieving the correct display of the style between the two floors.
[0078] S204: Call the preset rendering component to render the page data and obtain the display page.
[0079] Once the page data is determined, it can be rendered using a preset rendering component to obtain the displayed page.
[0080] In this embodiment of the invention, page co-construction also includes co-constructing processing events within the page, such as event tracking. Specifically, the co-constructed processing events and their corresponding event handling methods are pre-configured and can be obtained through page identifiers. Therefore, after receiving a page display instruction, the co-constructed processing events can be obtained based on the page identifiers, and the co-constructed component identifiers and event handling methods corresponding to the co-constructed processing events can be queried. The event handling methods can then be updated to the processing program corresponding to the page identifier based on the co-constructed floor identifier. Furthermore, during rendering, a preset rendering component can be called to render the page data and processing program.
[0081] Based on this, users can interact with the displayed page. After receiving the user's interaction data, it can determine whether a co-creation processing event is triggered. If a co-creation processing event is triggered, the corresponding event handling method can be called to execute the co-creation processing event.
[0082] In this embodiment of the invention, when displaying pages in a layered manner, a shared layer mapping table can be established according to the shared construction requirements. During page rendering, the layer registration mapping table is updated through the shared layer mapping table, so that the page can be rendered based on the shared layer mapping table. This ensures that the displayed page meets the shared construction requirements, thereby avoiding further development and code writing for the layered display scheme, reducing page display costs, and improving page display processing efficiency.
[0083] The following is combined with Figure 1 The system architecture shown illustrates the data processing methods in this embodiment of the invention, such as... Figure 3 As shown, the method includes the following steps.
[0084] S301: Receive the page display instruction, obtain the corresponding page identifier, and query the corresponding floor registration mapping table and co-construction floor mapping table.
[0085] S302: Obtain the co-construction floor identifier from the co-construction floor mapping table, and determine the co-construction type corresponding to the co-construction floor identifier based on the co-construction floor mapping table.
[0086] S303: In response to the co-construction type being Type 1, query the mapping relationship corresponding to the co-construction floor identifier in the floor registration mapping table, and replace the mapping relationship based on the co-construction floor mapping table.
[0087] S304: In response to the co-construction type being type 2, obtain the co-construction identifier associated with the co-construction floor identifier, and update the floor registration mapping table based on the co-construction identifier and the co-construction floor mapping table.
[0088] S305: Obtain the page data source associated with the page identifier, and generate the corresponding page data by combining it with the updated floor registration mapping table.
[0089] S306: Call the preset rendering component to render the page data and obtain the display page.
[0090] It should be noted that the data processing principle in the embodiments of the present invention is the same as... Figure 2 The data processing principles in the illustrated embodiments are the same and will not be repeated here.
[0091] The following is combined with Figure 1 The system architecture shown illustrates the data processing methods in this embodiment of the invention, such as... Figure 4 As shown, the method includes the following steps.
[0092] S401: Receive the page display instruction, obtain the corresponding page identifier, and query the corresponding floor registration mapping table and co-construction floor mapping table.
[0093] S402: Obtain the co-constructed floor identifier from the co-constructed floor mapping table, and update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table.
[0094] S403: Obtain the page data source associated with the page identifier, and generate the corresponding page data by combining it with the updated floor registration mapping table.
[0095] S404: Obtain the co-construction processing event based on the page identifier, query the co-construction component identifier and event handling method corresponding to the co-construction processing event, and update the handler corresponding to the page identifier based on the event handling method based on the co-construction floor identifier.
[0096] S405: Call the preset rendering component to render the page data and the processing program to obtain the display page.
[0097] It should be noted that the data processing principle in the embodiments of the present invention is the same as... Figure 2 The data processing principles in the illustrated embodiments are the same and will not be repeated here.
[0098] To address the problems existing in the prior art, embodiments of the present invention provide a data processing apparatus 500, such as... Figure 5 As shown, the device 500 includes: a receiving unit 501, used to receive a page display instruction, obtain the corresponding page identifier, and query the corresponding floor registration mapping table and co-construction floor mapping table;
[0099] Update unit 502 is used to obtain the co-constructed floor identifier in the co-constructed floor mapping table, so as to update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table;
[0100] The generation unit 503 is used to obtain the page data source associated with the page identifier, so as to generate corresponding page data in combination with the updated floor registration mapping table;
[0101] The rendering unit 504 is used to call a preset rendering component to render the page data and obtain the display page.
[0102] It should be understood that the manner in which the embodiments of the present invention are implemented is different from the implementation method. Figure 2 The methods used in the illustrated embodiments are the same and will not be repeated here.
[0103] In one embodiment, the update unit 502 is specifically used for:
[0104] Obtain the co-construction floor identifier from the co-construction floor mapping table, and determine the co-construction type corresponding to the co-construction floor identifier based on the co-construction floor mapping table;
[0105] In response to the co-construction type being a first type, the mapping relationship corresponding to the co-construction floor identifier in the floor registration mapping table is queried, and the mapping relationship is replaced based on the co-construction floor mapping table; in response to the co-construction type being a second type, the co-construction identifier associated with the co-construction floor identifier is obtained, and the floor registration mapping table is updated according to the co-construction identifier and the co-construction floor mapping table.
[0106] In yet another embodiment, the update unit 502 is specifically used for:
[0107] Based on the co-construction identifier, obtain the corresponding location information, determine the corresponding floor identifier and floor location information in the floor registration mapping table, and update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
[0108] In yet another embodiment, the update unit 502 is specifically used for:
[0109] Based on the co-construction identifier, the corresponding component information is determined, and the corresponding floor identifier and component identifier in the floor registration mapping table are determined, so as to update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
[0110] In another embodiment, the update unit 502 is further configured to obtain a co-construction processing event based on the page identifier, query the co-construction component identifier and event processing method corresponding to the co-construction processing event, and update the processing program corresponding to the page identifier based on the event processing method based on the co-construction floor identifier;
[0111] The rendering unit 504 is also used to call a preset rendering component to render the page data and the processing program.
[0112] In yet another embodiment, the receiving unit 501 is further configured to receive user operation data on the display page;
[0113] The device 500 further includes:
[0114] The processing unit is configured to respond to the co-construction processing event triggered by the operation data by calling the corresponding event handling method to execute the co-construction processing event.
[0115] It should be understood that the manner in which the embodiments of the present invention are implemented is different from the implementation method. Figure 2 , 3 The same method is used in the embodiments shown in 4, and will not be described again here.
[0116] In this embodiment of the invention, when displaying pages in a layered manner, a shared layer mapping table can be established according to the shared construction requirements. During page rendering, the layer registration mapping table is updated through the shared layer mapping table, so that the page can be rendered based on the shared layer mapping table. This ensures that the displayed page meets the shared construction requirements, thereby avoiding further development and code writing for the layered display scheme, reducing page display costs, and improving page display processing efficiency.
[0117] According to embodiments of the present invention, an electronic device and a readable storage medium are also provided.
[0118] An electronic device according to an embodiment of the present invention includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the data processing method provided in the embodiment of the present invention.
[0119] Figure 6 An exemplary system architecture 600 is shown, in which a data processing method or data processing apparatus to which embodiments of the present invention can be applied is illustrated.
[0120] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, and 603, a network 604, and a server 605. Network 604 serves as the medium for providing communication links between terminal devices 601, 602, and 603 and server 605. Network 604 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0121] Users can use terminal devices 601, 602, and 603 to interact with server 605 via network 604 to receive or send messages, etc. Various client applications can be installed on terminal devices 601, 602, and 603.
[0122] Terminal devices 601, 602, and 603 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0123] Server 605 can be a server that provides various services. The server can analyze and process data such as received product information query requests, and feed back the processing results (such as product information - just an example) to the terminal device.
[0124] It should be noted that the data processing method provided in the embodiments of the present invention is generally executed by server 605, and correspondingly, the data processing device is generally disposed in server 605.
[0125] It should be understood that Figure 6 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0126] The following is for reference. Figure 7 It shows a schematic diagram of the structure of a computer system 700 suitable for implementing embodiments of the present invention. Figure 7 The computer system shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.
[0127] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 702 or programs loaded from storage section 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the system 700. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0128] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0129] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit (CPU) 701, it performs the functions defined above in the system of this invention.
[0130] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a unit, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0132] The units described in the embodiments of the present invention can be implemented in software or hardware. The described units can also be located in a processor; for example, a processor can be described as including a receiving unit, an updating unit, a generating unit, and a rendering unit. The names of these units do not necessarily limit the specific unit; for example, a receiving unit can also be described as "a unit that performs the functions of a receiving unit."
[0133] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs that, when executed by the device, cause the device to perform the data processing method provided by the present invention.
[0134] In another aspect, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the data processing method provided in the embodiments of the present invention.
[0135] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A data processing method, characterized in that, include: Receive page display instructions, obtain the corresponding page identifier, and query the corresponding floor registration mapping table and co-construction floor mapping table; Obtain the co-constructed floor identifier from the co-constructed floor mapping table, and update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table; Obtain the page data source associated with the page identifier, and generate the corresponding page data by combining it with the updated floor registration mapping table; The preset rendering component is invoked to render the page data and obtain the display page.
2. The method according to claim 1, characterized in that, Obtain the co-constructed floor identifier from the co-constructed floor mapping table, and update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table, including: Obtain the co-construction floor identifier from the co-construction floor mapping table, and determine the co-construction type corresponding to the co-construction floor identifier based on the co-construction floor mapping table; In response to the co-construction type being a first type, the mapping relationship corresponding to the co-construction floor identifier in the floor registration mapping table is queried, and the mapping relationship is replaced based on the co-construction floor mapping table; in response to the co-construction type being a second type, the co-construction identifier associated with the co-construction floor identifier is obtained, and the floor registration mapping table is updated according to the co-construction identifier and the co-construction floor mapping table.
3. The method according to claim 2, characterized in that, Update the floor registration mapping table according to the co-construction identifier and the co-construction floor mapping table, including: Based on the co-construction identifier, obtain the corresponding location information, determine the corresponding floor identifier and floor location information in the floor registration mapping table, and update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
4. The method according to claim 2, characterized in that, Update the floor registration mapping table according to the co-construction identifier and the co-construction floor mapping table, including: Based on the co-construction identifier, the corresponding component information is determined, and the corresponding floor identifier and component identifier in the floor registration mapping table are determined, so as to update the mapping relationship corresponding to the floor identifier according to the co-construction floor mapping table.
5. The method according to claim 1, characterized in that, Before invoking the preset rendering component to render the page data, the method further includes: Based on the page identifier, obtain the co-construction processing event, query the co-construction component identifier and event processing method corresponding to the co-construction processing event, and update the processing program corresponding to the page identifier based on the event processing method according to the co-construction floor identifier. Invoking a preset rendering component to render the page data includes: The preset rendering component is invoked to render the page data and the processing program.
6. The method according to claim 1, characterized in that, After rendering the page data to obtain the displayed page, the process also includes: Receive user operation data on the displayed page; In response to the operation data triggering the co-construction processing event, the corresponding event handling method is invoked to execute the co-construction processing event.
7. A data processing apparatus, characterized in that, include: The receiving unit is used to receive page display instructions, obtain the corresponding page identifier, and query the corresponding floor registration mapping table and co-construction floor mapping table. The update unit is used to obtain the co-constructed floor identifier from the co-constructed floor mapping table, and update the floor registration mapping table based on the co-constructed floor identifier and the co-constructed floor mapping table; The generation unit is used to obtain the page data source associated with the page identifier, so as to generate the corresponding page data in combination with the updated floor registration mapping table; The rendering unit is used to call a preset rendering component to render the page data and obtain the display page.
8. The apparatus according to claim 7, characterized in that, The update unit is specifically used for: Obtain the co-construction floor identifier from the co-construction floor mapping table, and determine the co-construction type corresponding to the co-construction floor identifier based on the co-construction floor mapping table; In response to the co-construction type being a first type, the mapping relationship corresponding to the co-construction floor identifier in the floor registration mapping table is queried, and the mapping relationship is replaced based on the co-construction floor mapping table; in response to the co-construction type being a second type, the co-construction identifier associated with the co-construction floor identifier is obtained, and the floor registration mapping table is updated according to the co-construction identifier and the co-construction floor mapping table.
9. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.
