[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114546375A - Page configuration method, page configuration device and electronic equipment - Google Patents

Page configuration method, page configuration device and electronic equipment Download PDF

Info

Publication number
CN114546375A
CN114546375A CN202111594871.7A CN202111594871A CN114546375A CN 114546375 A CN114546375 A CN 114546375A CN 202111594871 A CN202111594871 A CN 202111594871A CN 114546375 A CN114546375 A CN 114546375A
Authority
CN
China
Prior art keywords
component
theme
feature
page
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
CN202111594871.7A
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.)
Xiamen Kecan Information Technology Co ltd
Kehua Data Co Ltd
Original Assignee
Xiamen Kecan Information Technology Co ltd
Kehua Data 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 Xiamen Kecan Information Technology Co ltd, Kehua Data Co Ltd filed Critical Xiamen Kecan Information Technology Co ltd
Priority to CN202111594871.7A priority Critical patent/CN114546375A/en
Publication of CN114546375A publication Critical patent/CN114546375A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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

Landscapes

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

Abstract

The invention provides a page configuration method, a page configuration device and electronic equipment. The page configuration method comprises the following steps: when a target component is added to a target page, acquiring a component feature card of the target component, wherein the component feature card comprises a plurality of component feature elements; acquiring a current theme feature card of a target page; the theme feature card comprises a plurality of theme feature elements, and the component feature elements of the component feature card have a mapping relation in the theme feature elements of the theme feature card; and determining the characteristic value of the component characteristic element of the component characteristic card of the target component based on the characteristic value of the theme characteristic element of the current theme characteristic card and the mapping relation so as to match the target component with the target page. The invention can reduce the repeated operation of developers in the page configuration process and improve the configuration efficiency of the page.

Description

Page configuration method, page configuration device and electronic equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a page configuration method, a page configuration apparatus, and an electronic device.
Background
With the continuous development of internet technology, the rapid development of internet pages has become a trend of the current internet development. For example, the H5 page is based on single-web page transmission, carries designs such as pictures, videos and characters, and calls the vision, touch and hearing of a user at the same time, so that the popularization effect and the transmission efficiency of the product are improved.
At present, in the process of developing and configuring a page, a brand-new development process is basically performed according to the requirements of a user. The developer needs to perform attribute configuration on a large number of elements in the page each time the configuration is developed, which results in that the developer needs to spend a large amount of time to perform attribute configuration, and a large number of repeated operations result in low efficiency in the configuration process of the current page. For example, in the configuration process of the H5 page, a developer needs to add a large number of elements, such as lines, characters, etc., and perform attribute configuration on the large number of elements, such as colors, fonts, etc., so that the developer spends a large amount of time performing repeated operations, and the configuration efficiency is low.
Disclosure of Invention
The invention provides a page configuration method, a page configuration device and electronic equipment, which can reduce repeated operation of developers in a page configuration process and improve the page configuration efficiency.
In a first aspect, the present invention provides a page configuration method, including: when a target component is added to a target page, acquiring a component feature card of the target component, wherein the component feature card comprises a plurality of component feature elements; acquiring a current theme feature card of the target page; the theme feature card comprises a plurality of theme feature elements, and the component feature elements of the component feature card have a mapping relation in the theme feature elements of the theme feature card; and determining the characteristic value of the component characteristic element of the component characteristic card of the target component based on the characteristic value of the theme characteristic element of the current theme characteristic card and the mapping relation so as to match the target component with the target page.
On one hand, the invention adds the components comprising a plurality of component characteristic elements, thereby improving the operation granularity of developers in the process of page configuration, namely, the operation of a single element is converted into the operation of the components comprising a plurality of component characteristic elements, reducing the operation frequency of the developers in the process of configuration and improving the configuration efficiency of the page. On the other hand, the invention establishes the mapping relation between the component feature elements of the component feature card and the theme feature elements of the theme feature card, and determines the feature values of the component feature elements of the component feature card of the target component based on the feature values of the theme feature elements of the current theme feature card and the mapping relation, thereby automatically determining the attributes of the component feature elements in the target component and enabling the target component to be matched with the target page. The process is automatically completed without manual operation, repeated operation of developers in the page configuration process is reduced, and the page configuration efficiency is further improved.
In a possible implementation manner, the page configuration method further includes: when a component is newly built, acquiring a plurality of component characteristic elements of the newly built component; and generating a component feature card of the newly-built component based on the plurality of component feature elements.
In a possible implementation manner, the page configuration method further includes: when a page theme is newly built, acquiring a plurality of theme characteristic elements of the newly built page theme; and generating a theme feature card of the theme of the new page based on the plurality of theme feature elements.
In a possible implementation manner, the page configuration method further includes: when the theme of the target page is modified into the target theme, a theme feature card corresponding to the target theme is obtained; acquiring a component feature card of each component on a target page; and determining the characteristic value of the component characteristic element of the component characteristic card of each component based on the characteristic value of the theme characteristic element of the theme characteristic card corresponding to the target theme and the mapping relation so as to match each component with the target theme.
In one possible implementation manner, determining the feature value of the component feature element of the component feature card of the target component based on the feature value of the theme feature element of the current theme feature card and the mapping relationship comprises: and assigning the feature value of the theme feature element of the current theme feature card to the feature value of the component feature element of the component feature card of the target component according to the mapping relation.
In one possible implementation manner, the theme feature elements of the theme feature card and the theme feature elements of the component feature card each include: color feature parameters, font feature parameters, and graphic feature parameters.
In one possible implementation, the color feature parameters include: primary color, secondary color and line color; the font characteristic parameters include: title font, main content font and prompt font; the graphical feature parameters include a style attribute of the icon.
In a second aspect, an embodiment of the present invention provides a page configuration apparatus, where the page configuration apparatus includes a communication module and a processing module; a communication module for receiving an instruction for instructing addition of a target component to a target page; the system comprises a processing module, a theme feature card and a theme feature card, wherein the processing module is used for acquiring the component feature card of a target component when the target component is added to a target page, the theme feature card comprises a plurality of theme feature elements, and the component feature elements of the component feature card have a mapping relation in the theme feature elements of the theme feature card; and determining the characteristic value of the component characteristic element of the component characteristic card of the target component based on the characteristic value of the theme characteristic element of the current theme characteristic card and the mapping relation so as to match the target component with the target page.
In a possible implementation manner, the communication module is further configured to receive an instruction for indicating a new component in the target page; the processing module is also used for acquiring a plurality of component characteristic elements of the newly-built component when the component is newly built; and generating a component feature card of the newly-built component based on the plurality of component feature elements.
In a possible implementation manner, the communication module is further configured to receive an instruction for indicating that a theme is newly created in the target page; the processing module is also used for acquiring a plurality of theme characteristic elements of the newly-built page theme when the page theme is newly built; and generating a theme feature card of the theme of the new page based on the plurality of theme feature elements.
In a possible implementation manner, the processing module is further configured to obtain a theme feature card corresponding to the target theme when the theme of the target page is modified into the target theme; acquiring a component feature card of each component on a target page; and determining the characteristic value of the component characteristic element of the component characteristic card of each component based on the characteristic value of the theme characteristic element of the theme characteristic card corresponding to the target theme and the mapping relation so as to match each component with the target theme.
In a possible implementation manner, the processing module is specifically configured to assign, according to the mapping relationship, the feature value of the theme feature element of the current theme feature card to the feature value of the component feature element of the component feature card of the target component.
In one possible implementation manner, the theme feature elements of the theme feature card and the theme feature elements of the component feature card each include: color feature parameters, font feature parameters, and graphic feature parameters.
In one possible implementation, the color feature parameters include: primary color, secondary color and line color; the font characteristic parameters include: title font, main content font and prompt font; the graphical feature parameters include a style attribute of the icon.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a display device and a page configuration device, where the page configuration device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and is characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of the foregoing first aspect and possible implementation manners of the first aspect. The display device is used for displaying a target page, and a target component in the target page is matched with the theme of the target page.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method according to the first aspect and any possible implementation manner of the first aspect.
For technical effects brought by any possible implementation manner of the second aspect to the fourth aspect, reference may be made to technical effects brought by an implementation manner corresponding to the first aspect, and details are not described here again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a page configuration apparatus according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a page configuration method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another page allocating apparatus according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In the description of the present invention, "/" means "or" unless otherwise specified, for example, a/B may mean a or B. "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. Further, "at least one" or "a plurality" means two or more. The terms "first," "second," and the like do not denote any order or importance, but rather the terms "first," "second," and the like do not denote any order or importance.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion for ease of understanding.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules, but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
To make the objects, technical solutions and advantages of the present invention more apparent, the following description will be made by way of specific embodiments in conjunction with the accompanying drawings of the present invention.
As described in the background art, there is a technical problem of low configuration efficiency in the process of developing and configuring a page.
In order to solve the above technical problem, an embodiment of the present invention provides a page configuration method. According to the method, the corresponding relation is established between the theme of the page and the components, when the components are added into the page, the characteristics of the components can be automatically determined based on the theme of the page, the automatic configuration of the page is realized, the repeated operation of developers in the page configuration process is reduced, and the page configuration efficiency is improved.
To implement the page configuration method, as shown in fig. 1, an embodiment of the present invention provides a page configuration apparatus, configured to execute the page configuration method. The page configuration apparatus 100 includes: a processor 101, a memory 102 and a computer program 103 stored in said memory 102 and executable on said processor 101. The processor 101 implements the steps of the above-described page allocation methods when executing the computer program 103.
Illustratively, the computer program 103 may be partitioned into one or more modules/units that are stored in the memory 102 and executed by the processor 101 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 103 in the page configuration apparatus 100.
The Processor 101 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 102 may be an internal storage unit of the page configuration apparatus 100, such as a hard disk or a memory of the page configuration apparatus 100. The memory 102 may also be an external storage device of the page configuration apparatus 100, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the page configuration apparatus 100. Further, the memory 102 may also include both an internal storage unit and an external storage device of the page configuration apparatus 100. The memory 102 is used for storing the computer program and other programs and data required by the terminal. The memory 102 may also be used to temporarily store data that has been output or is to be output.
As shown in fig. 2, an embodiment of the present invention provides a page configuration method, where an execution subject of the page configuration method is the page configuration apparatus shown in fig. 1. The page configuration method includes steps S201 to S203.
S201, when a target component is added to a target page, a page configuration device acquires a component feature card of the target component.
In the embodiment of the present application, the component feature card may include several component feature elements.
In some embodiments, the target component has several contents. Illustratively, the target component may be a table. Accordingly, the table may include background, text, borders, and the like. For another example, the target component may be a switch button, and the content of the switch button may include a frame, a switch slider, and the like.
In some embodiments, the component feature elements in the component feature card are used to point to style types of different content of the target component. The style types can be colors, fonts, picture styles and the like. For example, the component feature elements in the component feature card are used to point to the style type of the content of the background, text, border, etc. of the target component. Such as background color, text font, border color, etc.
Illustratively, the component feature elements may include color feature parameters, font feature parameters, and graphic feature parameters. The color characteristic parameters comprise a dominant color, an auxiliary color and a line color. The font characteristic parameters include a caption font, a main content font, and a hint font. The graphical feature parameters include a style attribute of the icon.
It can be understood that the color feature parameter in the component feature card is used to point to the color of the content corresponding to the component feature card, the font feature parameter in the component feature card is used to point to the font of the content corresponding to the component feature card, and the graphic feature parameter in the component feature card is used to point to the icon style attribute of the content corresponding to the component feature card.
As a possible implementation manner, the page configuration apparatus may obtain the component feature card of the target component by querying the feature library. The feature library stores attribute information of each component in advance. For example, the feature library stores the identifier of the component, the identifier of the component feature card, and the corresponding component feature element.
S202, the page configuration device obtains a current theme characteristic card of the target page.
The theme feature card comprises a plurality of theme feature elements, and the component feature elements of the component feature card have a mapping relation in the theme feature elements of the theme feature card.
In some embodiments, each theme feature element in the theme feature card is used to point to a different style type. For example, each theme feature element in the theme feature card may point to a style type such as color, font, and graphic.
Illustratively, the theme feature elements may include color feature parameters, font feature parameters, and graphic feature parameters. The color characteristic parameters comprise a primary color, a secondary color and line colors. The font characteristic parameters include a title font, a main content font and a hint font. The graphical feature parameters include a style attribute of the icon.
It will be appreciated that the color feature parameters in the theme card are used to point to the colors of the target page, such as the primary, secondary, and line colors. The font feature parameters in the theme feature card are used to point to the fonts of the target page, such as title font, main content font, and hint font. The graphic feature parameter in the theme feature card is used to point to the style attribute of the icon in the target page.
In some embodiments, the target page may have a variety of different theme styles. Each theme style corresponds to a theme feature card. The current theme feature card is any one of a plurality of theme feature cards in the target page.
Illustratively, different theme signature cards apply to different scenarios. For example, the theme feature card may be a coma series dark theme, a coma series white theme, an Tencent white theme, a BMS dark theme, or a BMS white theme, etc. Also for example, the theme feature card may be a theme applied to a pad, or a theme applied to a pc.
It should be noted that each theme feature element in the theme feature card is used to point to different style types, and the component feature element in the component feature card is used to point to different style types of the content of the target component. When the component feature elements in the component feature card and the theme feature elements in the theme feature card point to the same style type, a mapping relationship exists between the component feature elements in the component feature card and the theme feature elements in the theme feature card, that is, the component feature elements of the component feature card have a mapping relationship in the theme feature elements of the theme feature card.
As a possible implementation manner, the page configuration apparatus may preset a mapping relationship between the component feature element of the component feature card and the theme feature element of the theme feature card, where the mapping relationship is a unique mapping relationship.
As another possible implementation manner, the page configuration apparatus may further modify, in real time according to an instruction of the user, a mapping relationship between the component feature element of the component feature card and the theme feature element of the theme feature card.
In some embodiments, the attribute information of the target page is stored in advance in the feature library of the page configuration device. For example, the feature library stores the identifier of the current theme feature card and the corresponding theme feature element.
As a possible implementation manner, the page configuration apparatus may obtain the current theme feature card of the target page by querying the feature library, and determine the theme feature element of the current theme feature card.
S203, determining the characteristic value of the component characteristic element of the component characteristic card of the target component based on the characteristic value of the theme characteristic element of the current theme characteristic card and the mapping relation so as to enable the target component to be matched with the target page.
In some embodiments, the feature value is used to represent a style type to which the theme feature element or the component feature element corresponds. Illustratively, the feature value of the dominant color of the line in the table is 002, which can indicate that the dominant color of the line in the table is blue.
As a possible implementation manner, the page configuration device assigns the feature value of the theme feature element of the current theme feature card to the feature value of the component feature element of the component feature card of the target component according to the mapping relationship.
On one hand, the invention adds the components comprising a plurality of component characteristic elements, thereby improving the operation granularity of developers in the page configuration process, namely, the operation of a single element is converted into the operation of the components comprising a plurality of component characteristic elements, thereby reducing the operation frequency of the developers in the configuration process and improving the configuration efficiency of the page. On the other hand, the method establishes the corresponding relation between the component feature elements of the component feature card and the theme feature elements of the theme feature card, and determines the feature values of the component feature elements of the component feature card of the target component based on the feature values of the theme feature elements of the current theme feature card and the mapping relation, so that the attributes of the component feature elements in the target component are automatically determined, and the target component is matched with the target page. The process is automatically completed without manual operation, repeated operation of developers in the page configuration process is reduced, and the page configuration efficiency is further improved.
Optionally, the page configuration method provided by the present invention further includes steps S301 to S302.
S301, when the component is newly built, the page configuration device acquires a plurality of component characteristic elements of the newly built component.
As a possible implementation manner, the page configuration device can receive an instruction of a new component input by a user, and the instruction of the new component can comprise a plurality of component characteristic elements. Therefore, the page configuration device can acquire a plurality of component characteristic elements of the newly-built component according to the instruction.
S302, generating a component feature card of the newly-built component based on the plurality of component feature elements.
It can be understood that the page configuration apparatus can create a new component based on the instruction of the new component input by the user, create the component feature card of the new component, so that the page configuration apparatus can determine the component feature elements of the component feature card of the new component based on the theme feature elements of the theme feature card and the mapping relationship, so that the new component matches with the target page.
It should be noted that, when the user needs to establish a page theme that does not exist in the target page, the user may input an instruction for creating a new page theme to the page configuration apparatus, so that the page configuration apparatus establishes a new page theme and enriches the configuration style of the page.
Optionally, the page configuration method provided by the present invention further includes steps S401 to S402.
S401, when a page theme is newly built, a page configuration device obtains a plurality of theme characteristic elements of the newly built page theme.
As a possible implementation manner, the page configuring device may receive an instruction of a new page theme input by a user, where the instruction of the new page theme may include a plurality of theme characteristic elements. Therefore, the page configuration device can acquire a plurality of theme characteristic elements of the theme of the newly-built page based on the instruction.
S402, the page configuration device generates a theme characteristic card of the newly-built page theme based on the plurality of theme characteristic elements.
It can be understood that, the page configuring apparatus can create a page theme based on an instruction of creating the page theme input by the user, create the page theme, and create the theme feature card of the page theme, so that the page configuring apparatus can determine the component feature elements of the component feature card of the component in the target page based on the theme feature elements of the theme feature card of the new page theme and the mapping relationship, so that the component in the target page matches with the newly created page theme in the target page.
It should be noted that, a user may modify a page theme of the target page, and the component feature elements of the component feature card of the component in the target page may be switched based on the modified page theme, so that the component feature elements of the component feature card of the component in the target page are matched with the modified page theme.
Optionally, the page configuration method provided by the present invention further includes steps S501 to S502.
S501, when the theme of the target page is modified into the target theme, the page configuration device obtains the theme feature card corresponding to the target theme.
As a possible implementation manner, the page configuring device may receive an instruction for modifying the page theme, which may include the modified target theme, input by the user. Therefore, the page configuration device can acquire the theme feature card corresponding to the target theme based on the instruction.
S502, the page configuration device obtains component feature cards of all components on the target page.
S503, the page configuration device determines the feature values of the component feature elements of the component feature cards of the components based on the feature values of the theme feature elements of the theme feature cards corresponding to the target theme and the mapping relationship, so that the components are matched with the target theme.
As a possible implementation manner, the page configuration device may assign, according to the mapping relationship, the feature value of the theme feature element of the theme feature card corresponding to the target theme to the feature value of the component feature element of the component feature card of each component in the target page, so that each component is matched with the target theme.
Therefore, the page configuration device can modify the theme of the target page into the target theme, and determine the characteristic values of the component characteristic elements of the component characteristic cards of the components based on the characteristic values of the theme characteristic elements of the theme characteristic cards corresponding to the target theme and the mapping relation, so that the components are matched with the target theme, and the automatic matching of the components and the page theme is realized.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.
Fig. 3 is a schematic structural diagram of another page configuration apparatus provided in an embodiment of the present invention, where the page configuration apparatus 100 includes a communication module 601 and a processing module 602.
The communication module 601 is configured to receive an instruction indicating to add a target component to a target page.
The processing module 602 is configured to, when a target component is added to a target page, obtain a component feature card of the target component, where the component feature card includes a plurality of component feature elements; acquiring a current theme feature card of a target page; the theme feature card comprises a plurality of feature elements, and the component feature elements of the component feature card have a mapping relation in the theme feature elements of the theme feature card; and determining the characteristic value of the component characteristic element of the component characteristic card of the target component based on the characteristic value of the theme characteristic element of the current theme characteristic card and the mapping relation so as to match the target component with the target page.
In a possible implementation manner, the communication module 601 is further configured to receive an instruction for indicating a component to be newly built in the target page; the processing module 602 is further configured to, when a component is newly created, obtain a plurality of component feature elements of the newly created component; and generating a component feature card of the newly-built component based on the plurality of component feature elements.
In a possible implementation manner, the communication module 601 is further configured to receive an instruction for indicating to create a new theme in the target page; the processing module 602 is further configured to, when a new page theme is created, obtain a plurality of theme feature elements of the new page theme; and generating a theme feature card of the theme of the new page based on the plurality of theme feature elements.
In a possible implementation manner, the processing module 602 is further configured to obtain a theme feature card corresponding to the target theme when the theme of the target page is modified into the target theme; acquiring a component feature card of each component on a target page; assigning the feature values of the theme feature elements of the theme feature card corresponding to the target theme to the component feature elements of the component feature card of each component; and determining the characteristic value of the component characteristic element of the component characteristic card of each component based on the characteristic value of the theme characteristic element of the theme characteristic card corresponding to the target theme and the mapping relation so as to match each component with the target theme.
In a possible implementation manner, the processing module 602 is specifically configured to assign, according to the mapping relationship, the feature value of the theme feature element of the current theme feature card to the feature value of the component feature element of the component feature card of the target component.
In one possible implementation manner, the theme feature elements of the theme feature card and the theme feature elements of the component feature card each include: color feature parameters, font feature parameters, and graphic feature parameters.
In one possible implementation, the color feature parameters include: primary color, secondary color and line color; the font characteristic parameters include: title font, main content font and prompt font; the graphical feature parameters include a style attribute of the icon.
It should be noted that the processor 701 in fig. 1, when executing the computer program 703, implements the functions of each module/unit in the page configuration apparatus 100 shown in fig. 3, for example, the functions of the communication module 601 and the processing module 602 shown in fig. 3.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present invention further provides an electronic device, which includes a display device and a page configuration device, where the page configuration device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and is characterized in that the processor implements the steps of the method according to any one of the possible implementation manners of the foregoing embodiment when executing the computer program. The display device is used for displaying a target page, and a target component in the target page is matched with the theme of the target page.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A page configuration method is characterized in that the page configuration method comprises the following steps:
when a target component is added to a target page, acquiring a component feature card of the target component, wherein the component feature card comprises a plurality of component feature elements;
acquiring a current theme feature card of the target page; the theme feature card comprises a plurality of theme feature elements, and the component feature elements of the component feature card have a mapping relation in the theme feature elements of the theme feature card;
and determining the characteristic value of the component characteristic element of the component characteristic card of the target component based on the characteristic value of the theme characteristic element of the current theme characteristic card and the mapping relation so as to match the target component with the target page.
2. The page configuration method according to claim 1, wherein the page configuration method further comprises:
when a component is newly built, acquiring a plurality of component characteristic elements of the newly built component;
and generating a component feature card of the newly-built component based on the plurality of component feature elements.
3. The page configuration method according to claim 1, wherein the page configuration method further comprises:
when a page theme is newly built, acquiring a plurality of theme characteristic elements of the newly built page theme;
and generating a theme characteristic card of the theme of the newly-built page based on the plurality of theme characteristic elements.
4. The page configuration method according to claim 1, wherein the page configuration method further comprises:
when the theme of the target page is modified into a target theme, a theme feature card corresponding to the target theme is obtained;
acquiring a component feature card of each component on the target page;
and determining the characteristic value of the component characteristic element of the component characteristic card of each component based on the characteristic value of the theme characteristic element of the theme characteristic card corresponding to the target theme and the mapping relation so as to match each component with the target theme.
5. The page configuration method according to any one of claims 1 to 4, wherein the determining the feature value of the component feature element of the component feature card of the target component based on the feature value of the theme feature element of the current theme feature card and the mapping relationship comprises:
and assigning the feature value of the theme feature element of the current theme feature card to the feature value of the component feature element of the component feature card of the target component according to the mapping relation.
6. The page configuration method according to any one of claims 1 to 4, wherein the theme feature elements of the theme feature card and the component feature elements of the component feature card each include: color feature parameters, font feature parameters, and graphic feature parameters.
7. The page configuring method of claim 6, wherein the color feature parameters comprise: primary color, secondary color and line color;
the font characteristic parameters include: title font, main content font and prompt font;
the graphical feature parameters include a style attribute of the icon.
8. The page configuration device is characterized by comprising a communication module and a processing module;
the communication module is used for receiving an instruction for indicating that a target component is added to a target page;
the processing module is used for acquiring a component feature card of the target component when the target component is added to the target page, wherein the component feature card comprises a plurality of component feature elements; acquiring a current theme feature card of a target page; the theme feature card comprises a plurality of theme feature elements, and the component feature elements of the component feature card have a mapping relation in the theme feature elements of the theme feature card; and determining the characteristic value of the component characteristic element of the component characteristic card of the target component based on the characteristic value of the theme characteristic element of the current theme characteristic card and the mapping relation so as to match the target component with the target page.
9. An electronic device, characterized in that the electronic device comprises a display means and a page configuration means, the page configuration means comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of the preceding claims 1 to 7 when executing the computer program;
the display device is used for displaying a target page, and a target component in the target page is matched with the theme of the target page.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202111594871.7A 2021-12-23 2021-12-23 Page configuration method, page configuration device and electronic equipment Pending CN114546375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111594871.7A CN114546375A (en) 2021-12-23 2021-12-23 Page configuration method, page configuration device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111594871.7A CN114546375A (en) 2021-12-23 2021-12-23 Page configuration method, page configuration device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114546375A true CN114546375A (en) 2022-05-27

Family

ID=81669110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111594871.7A Pending CN114546375A (en) 2021-12-23 2021-12-23 Page configuration method, page configuration device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114546375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519859A (en) * 2022-07-30 2024-02-06 荣耀终端有限公司 Interface adjustment method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519859A (en) * 2022-07-30 2024-02-06 荣耀终端有限公司 Interface adjustment method and electronic equipment

Similar Documents

Publication Publication Date Title
CN108228169B (en) Chart making method, device, equipment and medium based on eCharts tool
CN108958736B (en) Page generation method and device, electronic equipment and computer readable medium
CN105700925B (en) A kind of interface implementing method and device of APP
CN105511873B (en) User interface control display method and device
CN107797826B (en) Rule configuration method based on rule engine, terminal and equipment
US10437420B2 (en) Method and apparatus for setting background picture of unlocking interface of application, and electronic device
CN107909368B (en) Payment control method and device, terminal and readable storage medium
US11922543B2 (en) Device and method for coloring sketch image with color pointer
CN109410295B (en) Color setting method, device, equipment and computer readable storage medium
CN108363574B (en) Front-end customization method and device based on SDK, terminal equipment and storage medium
CN109542398B (en) Business system generation method and device and computer readable storage medium
CN109785408B (en) Mapping method and device and electronic equipment
EP4270321A1 (en) Graphic rendering method and apparatus, and storage medium
CN114546375A (en) Page configuration method, page configuration device and electronic equipment
US20200034101A1 (en) Data displaying method and electronic device
CN110647371A (en) Multi-language resource file analysis method and system based on service configuration
CN104793937A (en) Start-up control method and device
CN112288666A (en) Image processing method and device
CN112364609A (en) Business standing book generation method and device, storage medium and electronic equipment
CN115270737B (en) Method and device for modifying format of target object
CN112367535B (en) Generation method and device of active user interface
CN111199519B (en) Method and device for generating special effect package
CN115713572A (en) Text image generation method and device, electronic equipment and readable storage medium
CN107977451B (en) Method and device for adding dynamic content in display page and terminal equipment
CN115167728A (en) Menu bar merging and displaying method, device and computer readable 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