US 12,406,020 B2
Information presentation method and apparatus, electronic device, and storage medium
Fuxing Hu, Shenzhen (CN); Guanghua He, Shenzhen (CN); and Shijie Zou, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed on Dec. 12, 2022, as Appl. No. 18/079,191.
Application 18/079,191 is a continuation of application No. PCT/CN2021/107228, filed on Jul. 20, 2021.
Claims priority of application No. 202011013676.6 (CN), filed on Sep. 24, 2020.
Prior Publication US 2023/0115491 A1, Apr. 13, 2023
Int. Cl. G06F 16/957 (2019.01); G06F 16/958 (2019.01)
CPC G06F 16/9577 (2019.01) [G06F 16/957 (2019.01); G06F 16/9574 (2019.01); G06F 16/958 (2019.01)] 17 Claims
OG exemplary drawing
 
1. An information presentation method, performed by an electronic device, comprising:
receiving an information presentation request, the information presentation request carrying a resource identifier of an object to be presented and a page identifier during information presentation;
displaying an information presentation page corresponding to the page identifier;
obtaining a resource dataset of the object to be presented according to the resource identifier, the resource dataset comprising at least two data nodes and having a tree structure;
flattening the resource dataset with the tree structure to obtain a sequential list and attribute information of each data node in the resource dataset, the attribute information of a data node comprising: a reference relationship attribute indicating a parent data node, a hierarchical attribute indicting a hierarchical indentation of the data node during rendering, and a hidden status attribute indicating an expanding or collapsing status of the data node during presentation;
identifying data nodes to be presented from the at least two data nodes based on the sequential list, the attribute information of the at least two data nodes, page scrolling information and page size information of the information presentation page;
presenting node information list corresponding to the data nodes in the information presentation page, wherein the data nodes being presented are indented based on the corresponding hierarchical attributes, and data nodes belonging to different levels in the tree structure have different indentations, and wherein the node information list comprises at least one of a node information collapsing control or a node information expanding control; and
in response to detecting an operation corresponding to a target node triggered for the node information collapsing control or the node information expanding control:
calculating a node quantity corresponding to the information presentation page after the operation of node information collapsing or node information expanding is performed;
determining a selected data node based on the target node and the node quantity; and
updating the node information list of the information presentation page according to the selected data node.