CN114647477A - Method, device, equipment and medium for determining target display page - Google Patents

Method, device, equipment and medium for determining target display page Download PDF

Info

Publication number
CN114647477A
CN114647477A CN202210409837.6A CN202210409837A CN114647477A CN 114647477 A CN114647477 A CN 114647477A CN 202210409837 A CN202210409837 A CN 202210409837A CN 114647477 A CN114647477 A CN 114647477A
Authority
CN
China
Prior art keywords
data
component
rendered
determining
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210409837.6A
Other languages
Chinese (zh)
Inventor
蒋金淼
吴炜琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202210409837.6A priority Critical patent/CN114647477A/en
Publication of CN114647477A publication Critical patent/CN114647477A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for determining a target display page, wherein the method comprises the following steps: determining data to be rendered corresponding to business requirements, and determining an acquisition state corresponding to the data to be rendered; determining a target rendering mode corresponding to the data to be rendered according to the acquisition state, rendering the data to be rendered based on the target rendering mode, and generating at least one component to be configured; and determining the target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page. The problem that the personalized requirements of the user cannot be met due to the fact that the configuration components in the page are not updated flexibly is solved, the components in the page are updated flexibly according to the business requirements, and the personalized requirements of the user are met.

Description

Method, device, equipment and medium for determining target display page
Technical Field
The embodiment of the invention relates to the technical field of page processing, in particular to a method, a device, equipment and a medium for determining a target display page.
Background
Currently, with the widespread application of applets, services developed based on applets are more and more common, and therefore, it is very important to optimize the configuration of the applets to improve the use experience of customers.
The native bottom-configuration components provided by the applet authority are typically fixed configurations and can only be configured according to the business needs of a single customer. When the business requirements of the clients need to be changed or new clients need to be expanded, the development and the change of the bottom configuration component of the applet need to be carried out again. In the process, the replacement of the configuration component at the bottom of the applet needs a more complicated process, the efficiency is lower, and different business requirements of customers cannot be flexibly adapted.
In order to solve the above problem, an improvement in a configuration method of a bottom configuration component of an applet is required.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for determining a target display page, which are used for flexibly updating components in the page according to business requirements and meeting the effect of individual requirements of a user.
In a first aspect, an embodiment of the present invention provides a method for determining a target display page, including:
determining data to be rendered corresponding to business requirements, and determining an acquisition state corresponding to the data to be rendered; the acquisition state comprises a first acquisition state and a non-first acquisition state;
determining a target rendering mode corresponding to the data to be rendered according to the acquisition state, rendering the data to be rendered based on the target rendering mode, and generating at least one component to be configured;
and determining the target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a target display page, where the apparatus includes:
the system comprises an acquisition state determining module, a rendering module and a display module, wherein the acquisition state determining module is used for determining data to be rendered corresponding to business requirements and determining an acquisition state corresponding to the data to be rendered; the acquisition state comprises a first acquisition state and a non-first acquisition state;
the to-be-configured component generating module is used for determining a target rendering mode corresponding to the to-be-rendered data according to the acquisition state, rendering the to-be-rendered data based on the target rendering mode and generating at least one to-be-configured component;
and the target display page determining module is used for determining the target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain the target display page.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for determining a target display page according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for determining a target display page according to any one of the embodiments of the present invention.
According to the technical scheme, the data to be rendered corresponding to the service requirement is determined, the obtaining state corresponding to the data to be rendered is determined, the data identification of the data to be rendered is detected according to the preset detection field, whether the obtaining state of the data to be rendered is the first obtaining state or not can be determined, and then the corresponding target rendering mode is determined according to the obtaining state. Determining a target rendering mode corresponding to the data to be rendered according to the obtaining state, rendering the data to be rendered based on the target rendering mode, generating at least one component to be configured, if the obtaining state is a first obtaining state, obtaining corresponding data to be rendered from a target database storing the data to be rendered, and if the obtaining state is not the first obtaining state, directly obtaining a corresponding component to be configured from a target component library storing the component to be configured, wherein the target component library comprises the component to be configured generated based on the obtained data to be rendered. Determining the target display position of each component to be configured on the page to be updated, displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page, displaying the component to be configured matched with the service requirement on the target display page, and updating the configuration component in the target display page to obtain the target display page. The problem that the personalized requirements of the user cannot be met due to the fact that the configuration components in the page cannot be updated flexibly is solved, and the effects that the components in the page can be updated flexibly according to business requirements and the personalized requirements of the user are met are achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart illustrating a method for determining a target display page according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a method for determining a target display page according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for determining a target display page according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a method for determining a target display page according to an embodiment of the present invention, where the method is applicable to a situation where a configuration group price corresponding to a business requirement is generated to update a display page, and the method may be implemented by a device for determining a target display page, where the device may be implemented in a form of software and/or hardware, and the hardware may be an electronic device, such as a mobile terminal or a PC.
As shown in fig. 1, the method includes:
in practical applications, a merchant may display information related to a product on a page of a service platform, taking the service platform as an applet as an example, the merchant may provide rich information to a user or provide corresponding services to the user through the applet. Generally, a navigation bar is arranged at the bottom of the applet and used for guiding a user to obtain corresponding services through the applet, but due to different business requirements of various merchants, functional requirements of the applet are not identical, such as order display, commodity display, order payment and the like. In order to flexibly adapt to business requirements of various merchants, components in a navigation bar area in an applet page are changed or updated, corresponding data to be rendered can be acquired according to the business requirements of various merchants, and further, the components of the navigation bar are updated and the like based on the acquired data to be rendered.
S110, data to be rendered corresponding to business requirements are determined, and an obtaining state corresponding to the data to be rendered is determined.
Wherein, the data to be rendered can be understood as data for generating components corresponding to business requirements. The acquisition state includes a first acquisition state and a non-first acquisition state.
Specifically, in order to meet personalized requirements of different merchants, component configuration matched with business requirements can be displayed in a page of a service platform according to the business requirements of each merchant, so that a user can obtain corresponding services according to components in the page. And determining corresponding data to be rendered according to the service requirement, wherein if the service requirement is menu information of a display merchant, including picture and text information, the data to be rendered is picture data, text data and the like corresponding to the service. Meanwhile, in order to avoid creating the same component for multiple times based on the same data to be rendered, after the data to be rendered is obtained, the obtaining state corresponding to the data to be rendered is determined, and the processing method corresponding to the data to be rendered is determined according to the obtaining state of the data to be rendered.
Optionally, before determining the data to be rendered corresponding to the service requirement and determining the acquisition state corresponding to the data to be rendered, the method further includes: when the page to be updated is updated, hiding the original configuration component of the target display position so as to make the target display position be empty.
The page to be updated may be understood as a default display page corresponding to the service platform, for example, the page to be updated may be a default display page of the applet, and the page to be updated includes a content display area and a navigation bar area. The target display position may be understood as a display position corresponding to the configuration component, may be a display area corresponding to the display content, and may also be a display position corresponding to the configuration component in the navigation bar area. The original configuration component is the default configuration component when opened in the page to be updated.
Specifically, taking updating the configuration component in the navigation bar area as an example, updating the page to be updated mainly aims at updating the configuration component in the navigation bar area of the page to be updated, and it should be noted that the navigation bar area of the page to be updated includes an original configuration component, that is, a default component provided by the service platform, but because business requirements of various merchants are different, the original configuration component cannot meet personalized requirements of all merchants, and therefore, operations such as updating or replacing the original configuration component are required to be performed, so that the configuration component in the navigation bar area is matched with the business requirements of the merchants. In order to update the configuration component in the page to be updated, before the data to be rendered is acquired, the original configuration component at the target display position of the page to be updated needs to be hidden, so that the area corresponding to the target display position is empty, and the configuration component corresponding to the business requirement is introduced at the target display position.
Optionally, the determining the obtaining state corresponding to the data to be rendered includes: detecting a data identifier carried by the data to be rendered based on a preset detection field; if the data identification is not matched with the preset detection field, determining that the acquisition state is the first acquisition; and if the data identification is matched with the preset detection field, determining that the acquisition state is a non-initial acquisition state.
The preset detection field may be understood as a field for detecting a data identifier of the data to be rendered, and the preset detection field may be a keyword field or identification information corresponding to the data identifier. The data identifier may be understood as identifying information corresponding to data to be rendered, and the data to be rendered and the data identifier are matched one to one.
Specifically, in order to determine the acquisition state of the data to be rendered, after the data to be rendered corresponding to the service requirement is acquired, the data to be rendered is preliminarily detected. During detection, the data identifier of the data to be rendered can be detected through the preset detection field, and the acquisition state corresponding to the data to be rendered can be determined according to whether the preset detection field is matched with the data identifier. Based on the detection result, if the preset detection field matches the data identifier, it indicates that the data to be rendered has been acquired before, that is, the acquisition state corresponding to the data to be rendered is a non-initial acquisition state. If the preset detection field is not matched with the data identifier, it indicates that the data to be rendered has not been acquired before, that is, the acquisition state corresponding to the data to be rendered is the first acquisition state.
It should be noted that the preset detection field may be updated according to the data to be rendered, for example, when the current data to be rendered is obtained for the first time, a data identifier corresponding to the data to be rendered may be set, and the data identifier is added to an information table or a database corresponding to the preset detection field, so that when the data to be rendered is detected again, and when the data to be rendered is determined based on the preset detection field in the database, the obtaining state of the data to be rendered may be identified as non-first-time obtaining.
For example, in an information table or a database storing the preset detection fields, including the preset detection fields A, B, C, D, E and F, and if the data identifier of the data to be rendered is D, it may be determined that the data to be rendered matches the preset detection fields, and it may be determined that the acquisition status of the rendering data is the non-first-time acquisition status.
S120, determining a target rendering mode corresponding to the data to be rendered according to the acquired state, rendering the data to be rendered based on the target rendering mode, and generating at least one component to be configured.
And if the acquisition state is the first acquisition state, the target rendering mode is the rendering mode corresponding to the first acquisition state. The component to be configured may be understood as a component generated based on data to be rendered.
Specifically, in order to improve the efficiency of updating the components in the page to be updated, different rendering modes may be adopted according to the acquisition state of the data to be rendered, so as to obtain the components to be configured corresponding to the data to be rendered.
Optionally, if the obtaining state is a first obtaining state, obtaining first data to be rendered corresponding to the data identifier from a target database based on a preset data transmission channel, and generating a first component to be configured based on the first data to be rendered; and if the acquisition state is a non-initial acquisition state, acquiring a second component to be configured corresponding to the data identifier from a target component library.
The preset data transmission channel may be understood as a data transmission channel for transmitting data to be rendered, and is used for connecting the page to be updated and the target database. The target database may be understood as a database for storing rendering data to be corresponding to the business demand, and the first data to be rendered may be understood as the already acquired data to be rendered. That is to say, when the data to be rendered appears for the first time, the data to be rendered corresponding to the service requirement may be acquired from the target database, and after the data to be rendered is acquired, the data to be rendered is stored in the target database as the first data to be rendered. The first component to be configured may be understood as a component to be configured generated based on the first data to be rendered. The target component library may be understood as a database for storing components to be configured, and after a first component to be configured is generated based on first data to be rendered, the first component to be configured is stored in the target component library, so that when an acquisition state of the data to be rendered is a non-first acquisition state, a corresponding component to be configured is directly acquired from the target component. It should be noted that the data to be rendered includes first rendering data and second rendering data, and the component to be configured includes a first component to be configured and a second component to be configured.
Specifically, a corresponding target rendering mode is determined according to an acquisition state of data to be rendered, various rendering data may be included in the target database, if the acquisition state is a first acquisition state, first data to be rendered corresponding to the service requirement is acquired from the target database storing the data to be rendered, and a corresponding first component to be configured is generated based on the first data to be rendered, it can be understood that the first component to be configured matches the service requirement. When the obtaining state is a non-first obtaining state, the data to be rendered does not appear for the first time, that is, a second component to be configured corresponding to the data to be rendered exists in the target component library, and at this time, the corresponding second component to be configured can be directly obtained from the target component library according to the data identifier to be rendered.
The method has the advantage that when the acquisition state of the data to be rendered is the non-primary acquisition state, the efficiency of updating the page to be updated can be improved by directly acquiring the second component to be configured matched with the rendering data.
Optionally, in order to ensure that the second configuration component in the target component library can be supplemented in time so as to meet personalized requirements of more merchants, the first component to be configured is added to the target component library, and the target component library is updated, so that when the acquisition state is a non-initial acquisition state, the component to be configured corresponding to the data identifier of the data to be rendered is directly acquired from the target component library.
Specifically, after generating a first component to be configured based on first data to be rendered, the first component to be configured is added to the target component library to serve as a second component to be configured in the target component library, and data identifiers corresponding to the second components to be configured are stored at the same time.
S130, determining the target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page.
Specifically, after the components to be configured corresponding to the service requirements are obtained, the page to be updated is updated based on each component to be configured. It can be understood that, before the data to be rendered corresponding to the service requirement is acquired, the original configuration component at the target display position is hidden in advance, that is, the target display position of the page to be updated at the current time is empty, so that the acquired component to be configured, which is matched with the service requirement, can be introduced into the target display position to update the configuration component in the page to be updated, and the display page after the configuration component is updated is taken as the target display page.
Optionally, the determining a target display position of each component to be configured on the page to be updated, and displaying a corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page includes: determining an arrangement sequence corresponding to each component to be configured, and determining a target display position of each component to be configured according to the arrangement sequence; and filling each component to be configured to a corresponding target display position, and performing visual rendering on the component to be configured at the target display position based on a target rendering plug-in to obtain a target display page.
The arrangement sequence can be understood as the display sequence of each component to be configured in the page to be updated. The target rendering plug-in may be understood as a plug-in for performing visual rendering on each component to be configured, and the target rendering plug-in may be a plug-in corresponding to one conversion function of a section of code.
Specifically, when each component to be configured in the page to be updated is updated, the display sequence of each component to be configured in the page to be updated is determined according to the service requirement, the display sequence of each component to be configured is determined according to the display sequence, and the target display position corresponding to each component to be configured is determined. After the target display position of each component to be configured is determined, each component to be configured is led to the corresponding position, and then visual rendering is carried out on each component to be configured based on the target rendering plug-in unit, so that a target actualization page is obtained.
According to the technical scheme, the data to be rendered corresponding to the service requirement is determined, the obtaining state corresponding to the data to be rendered is determined, the data identification of the data to be rendered is detected according to the preset detection field, whether the obtaining state of the data to be rendered is the first obtaining state or not can be determined, and then the corresponding target rendering mode is determined according to the obtaining state. Determining a target rendering mode corresponding to the data to be rendered according to the obtaining state, rendering the data to be rendered based on the target rendering mode, generating at least one component to be configured, if the obtaining state is a first obtaining state, obtaining corresponding data to be rendered from a target database storing the data to be rendered, and if the obtaining state is not the first obtaining state, directly obtaining a corresponding component to be configured from a target component library storing the component to be configured, wherein the target component library comprises the component to be configured generated based on the obtained data to be rendered. Determining the target display position of each component to be configured on the page to be updated, displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page, displaying the component to be configured matched with the service requirement on the target display page, and updating the configuration component in the target display page to obtain the target display page. The problem that the personalized requirements of the user cannot be met due to the fact that the configuration components in the page cannot be updated flexibly is solved, and the effects that the components in the page can be updated flexibly according to business requirements and the personalized requirements of the user are met are achieved.
Example two
In a specific example, as shown in fig. 2, taking a service platform as an applet as an example, a display page of the applet is a page to be updated, and when displaying product information on the display page based on the applet, each merchant generally needs to display according to business requirements, but because contents in the applet page are relatively fixed, for example, a configuration component in a navigation bar area in the applet page is generally a default component. When merchants need to perform personalized display, the configuration component of the navigation bar may be limited, so that the related information of products cannot be sufficiently displayed, and when the configuration component in the page to be updated is updated according to the personalized service requirements of each merchant, the configuration component is generally updated by the server background again, so that the personalized service requirements of each merchant cannot be flexibly met.
It should be noted that, before the page to be updated is updated, the bottom Tab of the page to be updated is first hidden, that is, the original configuration component of the navigation bar of the page to be updated is hidden, so that the target display position number of the display configuration component is empty, and the component to be configured corresponding to the service requirement is introduced into the target display position.
When a page to be updated is updated, corresponding Tab data (namely, data to be rendered) is acquired according to business requirements of different merchants, and whether the last request data exists is determined according to data identification of the data to be rendered, namely, an acquisition state of the data to be rendered is determined, wherein the acquisition state comprises a first acquisition state and a non-first acquisition state. When the obtaining state is a first obtaining state, an interface (namely, a preset data transmission channel) can be called to obtain first data to be rendered corresponding to the service requirement from a target database, a corresponding first component to be configured is generated based on the first data to be rendered, and the first component to be configured is stored in a vuex library (namely, a target component library), so that when the obtaining state of the data to be rendered is a non-first obtaining state, a second component to be configured corresponding to the service requirement is directly obtained from the vuex library (namely, the target component library). And if the acquisition state is a non-initial acquisition state, directly acquiring the corresponding component to be configured from the target component library. The second component to be configured is a component to be configured stored in the target component library, and the component to be configured in the target component library is a component to be configured (i.e., the first component to be configured) generated based on the acquired data to be rendered. It should be noted that, in this embodiment, the first and second rendering data are only used for distinguishing rendering data in different obtaining states from components to be configured, and there is no practical meaning.
After the components to be configured corresponding to the service requirements are obtained, determining target display positions corresponding to the components to be configured, introducing the components to be configured into the target display positions according to a preset arrangement rule, and performing visual rendering on the components to be configured based on the target rendering plug-in to obtain a target display page.
According to the technical scheme, the data to be rendered corresponding to the service requirement is determined, the obtaining state corresponding to the data to be rendered is determined, the data identification of the data to be rendered is detected according to the preset detection field, whether the obtaining state of the data to be rendered is the first obtaining state or not can be determined, and then the corresponding target rendering mode is determined according to the obtaining state. Determining a target rendering mode corresponding to the data to be rendered according to the acquisition state, rendering the data to be rendered based on the target rendering mode, generating at least one component to be configured, if the acquisition state is a first acquisition state, acquiring corresponding data to be rendered from a target database storing the data to be rendered, and if the acquisition state is not the first acquisition state, directly acquiring a corresponding component to be configured from a target component library storing the component to be configured, wherein the target component library comprises the component to be configured generated based on the acquired data to be rendered. Determining the target display position of each component to be configured on the page to be updated, displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page, displaying the component to be configured matched with the service requirement on the target display page, and updating the configuration component in the target display page to obtain the target display page. The problem that the personalized requirements of the user cannot be met due to the fact that the configuration components in the page are not updated flexibly is solved, the components in the page are updated flexibly according to the business requirements, and the personalized requirements of the user are met.
EXAMPLE III
Fig. 3 is a device for determining a target display page according to a third embodiment of the present invention, where the device includes: an acquisition state determining module 210, a component to be configured generating module 220 and a target display page determining module 230.
The acquisition state determining module 210 is configured to determine to-be-rendered data corresponding to a service requirement, and determine an acquisition state corresponding to the to-be-rendered data; the acquisition state comprises a first acquisition state and a non-first acquisition state;
a to-be-configured component generating module 220, configured to determine a target rendering manner corresponding to the to-be-rendered data according to the obtaining state, and render the to-be-rendered data based on the target rendering manner to generate at least one to-be-configured component;
the target display page determining module 230 is configured to determine a target display position of each component to be configured on the page to be updated, and display a corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page.
According to the technical scheme, the data to be rendered corresponding to the service requirement is determined, the obtaining state corresponding to the data to be rendered is determined, the data identification of the data to be rendered is detected according to the preset detection field, whether the obtaining state of the data to be rendered is the first obtaining state or not can be determined, and then the corresponding target rendering mode is determined according to the obtaining state. Determining a target rendering mode corresponding to the data to be rendered according to the obtaining state, rendering the data to be rendered based on the target rendering mode, generating at least one component to be configured, if the obtaining state is a first obtaining state, obtaining corresponding data to be rendered from a target database storing the data to be rendered, and if the obtaining state is not the first obtaining state, directly obtaining a corresponding component to be configured from a target component library storing the component to be configured, wherein the target component library comprises the component to be configured generated based on the obtained data to be rendered. Determining the target display position of each component to be configured on the page to be updated, displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page, displaying the component to be configured matched with the service requirement on the target display page, and updating the configuration component in the target display page to obtain the target display page. The problem that the personalized requirements of the user cannot be met due to the fact that the configuration components in the page are not updated flexibly is solved, the components in the page are updated flexibly according to the business requirements, and the personalized requirements of the user are met.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the apparatus for determining a target display page further includes:
the component hiding module is used for hiding the original configuration component of the target display position when the page to be updated is updated so as to make the target display position be empty; and the original configuration component is a default configuration component when the page to be updated is opened.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the acquisition state determining module includes:
the field detection submodule is used for detecting the data identification carried by the data to be rendered based on a preset detection field;
a first obtaining state determining sub-module, configured to determine that the obtaining state is a first obtaining state if the data identifier does not match the preset detection field;
and the second acquisition state determining submodule is used for determining that the acquisition state is a non-first-time acquisition state if the data identification is matched with the preset detection field.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the module for generating the component to be configured includes:
the first to-be-configured component generation submodule is used for acquiring first to-be-rendered data corresponding to the service requirement from a target database based on a preset data transmission channel if the acquisition state is a first acquisition state, and generating a first to-be-configured component based on the first to-be-rendered data;
the second component to be configured generation submodule is used for acquiring a second component to be configured corresponding to the data identifier from the target component library if the acquisition state is a non-first acquisition state;
the data to be rendered comprises first rendering data and second data to be rendered, and the components to be configured comprise first components to be configured and second components to be configured.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the module for generating the component to be configured is further configured to:
and adding the first component to be configured into the target component library, and updating the target component library so as to directly obtain the component to be configured corresponding to the data identifier of the data to be rendered from the target component library when the obtaining state is a non-first obtaining state.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the target display page determining module includes:
the target display position determining submodule is used for determining the arrangement sequence corresponding to each component to be configured and determining the target display position of each component to be configured according to the arrangement sequence;
and the target display page determining submodule is used for filling each component to be configured to the corresponding target display position, and performing visual rendering on the component to be configured at the target display position based on the target rendering plug-in to obtain the target display page.
The device for determining the target display page provided by the embodiment of the invention can execute the method for determining the target display page provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by executing programs stored in the system memory 402, for example, to implement a method for determining a target display page provided by an embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of determining a target display page, the method including: determining data to be rendered corresponding to business requirements, and determining an acquisition state corresponding to the data to be rendered; the acquisition state comprises a first acquisition state and a non-first acquisition state; determining a target rendering mode corresponding to the data to be rendered according to the acquisition state, rendering the data to be rendered based on the target rendering mode, and generating at least one component to be configured; and determining the target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for determining a target display page, comprising:
determining data to be rendered corresponding to business requirements, and determining an acquisition state corresponding to the data to be rendered; the acquisition state comprises a first acquisition state and a non-first acquisition state;
determining a target rendering mode corresponding to the data to be rendered according to the acquisition state, rendering the data to be rendered based on the target rendering mode, and generating at least one component to be configured;
and determining the target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page.
2. The method of claim 1, prior to determining data to be rendered corresponding to business requirements and determining an acquisition status corresponding to the data to be rendered, further comprising:
hiding an original configuration component of the target display position when the page to be updated is updated so as to make the target display position be empty; and the original configuration component is a default configuration component when the page to be updated is opened.
3. The method of claim 1, wherein the determining an acquisition status corresponding to the data to be rendered comprises:
detecting a data identifier carried by the data to be rendered based on a preset detection field;
if the data identification is not matched with the preset detection field, determining that the acquisition state is the first acquisition;
and if the data identification is matched with the preset detection field, determining that the acquisition state is a non-initial acquisition state.
4. The method according to claim 1, wherein the determining a target rendering manner corresponding to the data to be rendered according to the obtaining state, and rendering the data to be rendered based on the target rendering manner to generate at least one component to be configured comprises:
if the obtaining state is a first obtaining state, obtaining first data to be rendered corresponding to the data identifier from a target database based on a preset data transmission channel, and generating a first component to be configured based on the first data to be rendered;
if the acquisition state is a non-initial acquisition state, acquiring a second component to be configured corresponding to the data identifier from a target component library;
the data to be rendered comprises first rendering data and second data to be rendered, and the components to be configured comprise first components to be configured and second components to be configured.
5. The method of claim 4, further comprising:
and adding the first component to be configured into the target component library, and updating the target component library so as to directly obtain the component to be configured corresponding to the data identifier of the data to be rendered from the target component library when the obtaining state is a non-first obtaining state.
6. The method according to claim 1, wherein the determining a target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain a target display page comprises:
determining an arrangement sequence corresponding to each component to be configured, and determining a target display position of each component to be configured according to the arrangement sequence;
and filling each component to be configured to a corresponding target display position, and performing visual rendering on the component to be configured at the target display position based on a target rendering plug-in to obtain a target display page.
7. An apparatus for determining a target display page, comprising:
the system comprises an acquisition state determining module, a rendering module and a display module, wherein the acquisition state determining module is used for determining data to be rendered corresponding to business requirements and determining an acquisition state corresponding to the data to be rendered; the acquisition state comprises a first acquisition state and a non-first acquisition state;
the to-be-configured component generation module is used for determining a target rendering mode corresponding to the to-be-rendered data according to the acquisition state, rendering the to-be-rendered data based on the target rendering mode and generating at least one to-be-configured component;
and the target display page determining module is used for determining the target display position of each component to be configured on the page to be updated, and displaying the corresponding component to be configured on the page to be updated according to the target display position to obtain the target display page.
8. The apparatus of claim 7, further characterized by comprising:
the first to-be-configured component generation submodule is used for acquiring first to-be-rendered data corresponding to the service requirement from a target database based on a preset data transmission channel if the acquisition state is a first acquisition state, and generating a first to-be-configured component based on the first to-be-rendered data;
the second component to be configured generation submodule is used for acquiring a second component to be configured corresponding to the data identifier from the target component library if the acquisition state is a non-first acquisition state;
the data to be rendered comprises first rendering data and second data to be rendered, and the components to be configured comprise first components to be configured and second components to be configured.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of determining a target display page of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing a method of determining a target display page as recited in any one of claims 1-7 when executed by a computer processor.
CN202210409837.6A 2022-04-19 2022-04-19 Method, device, equipment and medium for determining target display page Pending CN114647477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210409837.6A CN114647477A (en) 2022-04-19 2022-04-19 Method, device, equipment and medium for determining target display page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210409837.6A CN114647477A (en) 2022-04-19 2022-04-19 Method, device, equipment and medium for determining target display page

Publications (1)

Publication Number Publication Date
CN114647477A true CN114647477A (en) 2022-06-21

Family

ID=81997598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210409837.6A Pending CN114647477A (en) 2022-04-19 2022-04-19 Method, device, equipment and medium for determining target display page

Country Status (1)

Country Link
CN (1) CN114647477A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540806A (en) * 2020-12-25 2021-03-23 北京百度网讯科技有限公司 Applet page rendering method and device, electronic equipment and storage medium
CN113885967A (en) * 2021-10-22 2022-01-04 北京字跳网络技术有限公司 Method, device, equipment and medium for starting small program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540806A (en) * 2020-12-25 2021-03-23 北京百度网讯科技有限公司 Applet page rendering method and device, electronic equipment and storage medium
CN113885967A (en) * 2021-10-22 2022-01-04 北京字跳网络技术有限公司 Method, device, equipment and medium for starting small program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
极乐君: "微信小程序:授权登录 + 基于token的身份验证详解", pages 1 - 5, Retrieved from the Internet <URL:https://cloud.tencent.com/developer/article/1677389> *

Similar Documents

Publication Publication Date Title
CN110750654A (en) Knowledge graph acquisition method, device, equipment and medium
US20220094758A1 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN110287146B (en) Method, device and computer storage medium for downloading application
CN111813804B (en) Data query method and device, electronic equipment and storage medium
CN113032083A (en) Data display method, device, electronic equipment and medium
CN109885781B (en) Mixed page unified browsing method, device, equipment and storage medium
CN109960554B (en) Method, device and computer storage medium for displaying reading content
CN113031946A (en) Method and device for rendering page component
CN112363753A (en) Data verification method and device, electronic equipment and storage medium
CN115795211A (en) Page display method, device, system, equipment and storage medium
CN107301220B (en) Method, device and equipment for data driving view and storage medium
CN112306594A (en) Rendering method and device based on mobile terminal and storage medium
CN109753644B (en) Rich text editing method and device, mobile terminal and storage medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN112968828A (en) Chat message display method, device, equipment and storage medium
CN109347899A (en) The method of daily record data is written in distributed memory system
CN109683726B (en) Character input method, character input device, electronic equipment and storage medium
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN114647477A (en) Method, device, equipment and medium for determining target display page
CN113553123B (en) Data processing method, device, electronic equipment and storage medium
CN113885998A (en) Page rendering method and device, electronic equipment and storage medium
CN112612991A (en) Page display method and device, electronic equipment and storage medium
CN114528509A (en) Page display processing method and device, electronic equipment and storage medium
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
CN111447268B (en) File structure conversion method, device, 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