CN112162748A - Application program home page configuration method and device, electronic equipment and readable storage medium - Google Patents

Application program home page configuration method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112162748A
CN112162748A CN202011246884.0A CN202011246884A CN112162748A CN 112162748 A CN112162748 A CN 112162748A CN 202011246884 A CN202011246884 A CN 202011246884A CN 112162748 A CN112162748 A CN 112162748A
Authority
CN
China
Prior art keywords
home page
content
application program
component
base class
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
CN202011246884.0A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011246884.0A priority Critical patent/CN112162748A/en
Publication of CN112162748A publication Critical patent/CN112162748A/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
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the internet technology, and discloses an application program home page configuration method, which comprises the following steps: performing semantic declaration on the initial base class template to obtain a standard base class template; marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set; and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application program home page. The invention also relates to a blockchain technique, the set of components can be stored in a blockchain. The invention also provides an application program home page configuration device, electronic equipment and a computer readable storage medium. The invention can improve the flexibility of the application program home page configuration and the resource utilization rate.

Description

Application program home page configuration method and device, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for configuring a home page of an application program, electronic equipment and a readable storage medium.
Background
Currently, there are many products on the market that include multiple roles in one Application (APP). For example, the online training application is divided into a teacher role and a student role, the takeaway application includes a merchant role and a customer role, and different users need to display different user application home pages.
However, the existing application program home page configuration needs to configure the whole page according to different roles, and the common resource utilization rate cannot be realized when different pages have the same content, so that the configuration method is rigid, and the later maintenance difficulty is high, so that a more flexible application program configuration method is needed.
Disclosure of Invention
The invention provides a method and a device for configuring a home page of an application program, electronic equipment and a computer readable storage medium, and mainly aims to improve the flexibility of the configuration of the home page of the application program and the resource utilization rate.
In order to achieve the above object, the present invention provides a method for configuring a home page of an application, including:
acquiring an initial base class template, and performing semantic declaration on the initial base class template to obtain a standard base class template;
acquiring a home page content set to be displayed, and marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set;
and responding to the user login information, and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application program home page.
Optionally, the marking and inheriting the standard base class template according to the to-be-displayed home page content set to obtain a component set, including:
classifying and extracting the content sets of the home page to be displayed to obtain a common content set and a unique content set;
according to the common content set, attribute marking and inheritance are carried out on the standard base class template to obtain a common component set;
according to the unique content set, carrying out attribute marking and inheritance on the standard base class template to obtain a unique component set;
and summarizing the common component set and the unique component set to obtain the component set.
Optionally, the classifying and extracting the to-be-displayed home page content set to obtain a common content set and a unique content set includes:
counting the occurrence times of each content contained in the home page content set to be displayed;
extracting the content of which the occurrence frequency in the home page content set to be displayed is greater than a preset threshold value to obtain a common content set;
and extracting the content of which the occurrence frequency in the content set to be displayed is less than or equal to the preset threshold value to obtain a unique content set.
Optionally, the attribute marking and inheritance for the standard base class template according to the common content set to obtain a common component set, including:
carrying out template attribute marking on the standard base class template to obtain an initial common template;
and calling a preset function according to each common content contained in the common content set to inherit and mark an ID for the initial common template to obtain the common component set.
Optionally, the responding to the user login information, and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application home page includes:
according to the mapping relation between account information in the login information of the user and the user home page interface, dynamically extracting and combining the component set to obtain an initial user application program home page;
rendering the initial user application program home page to obtain the user application program home page.
Optionally, the rendering the initial user application home page to obtain a user application home page includes:
jumping logic and network interface request addition are carried out on each component in the initial user application program home page;
and rendering each component in the initial user application program home page which is added with the jump logic and the network interface request to obtain the user application program home page.
Optionally, the dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application home page, further includes:
and refreshing the component content of the component contained in the home page of the user application program by using a preset control layer according to the preset life cycle of the home page of the user application program.
In order to solve the above problem, the present invention further provides an application home page configuration apparatus, including:
the template generating module is used for acquiring an initial base class template and performing semantic statement on the initial base class template to obtain a standard base class template;
the component generation module is used for acquiring a home page content set to be displayed, and marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set;
and the home page generation module is used for responding to the user login information and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application program home page.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one computer program; and
and the processor executes the computer program stored in the memory to realize the application program home page configuration method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the application home page configuration method described above.
In the embodiment of the invention, the semantic statement is carried out on the initial base class template to obtain a standard base class template, so that the universality of the base class template is ensured; marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set, classifying and componentizing the components, avoiding repeated development and being beneficial to improving the resource utilization rate; and responding to the user login information, and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application home page.
Drawings
Fig. 1 is a flowchart illustrating a method for configuring a home page of an application according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a component set obtained in a method for configuring a home page of an application according to an embodiment of the present invention;
FIG. 3 is a block diagram of an apparatus for configuring a home page of an application according to an embodiment of the present invention;
fig. 4 is a schematic internal structural diagram of an electronic device for implementing a method for configuring a home page of an application according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a method for configuring a home page of an application program. The execution subject of the application home page configuration method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the application home page configuration method may be executed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flowchart of an application home page configuration method according to an embodiment of the present invention is shown. In the embodiment of the present invention, the method for configuring the home page of the application program includes:
s1, obtaining an initial base class template, and performing semantic statement on the initial base class template to obtain a standard base class template;
in the embodiment of the present invention, the initial base class template is a template of an object type including entity commonality, and can be used to inherit to obtain a corresponding component.
For example, the initial base class template may be: web Components, Angular, React, etc.
Preferably, in this embodiment, the initial base class template is a Web Component. The Web Components is a new standard front-end component module framework defined by W3C (World Wide Web Consortium, internet alliance), and can freely customize front-end Components to perform modular development of the front-end Components.
Furthermore, the semantic declaring of the initial base class template refers to performing semantic specification on the initial base class template, that is, performing strictly according to the W3C standard. The semantic specification is used for standardizing a front-end developer so that the front-end developer can realize the function of a front-end page with a correct label, and is used for enabling the content of the front-end page to be more structured, so that even if CSS (Cascading Style Sheets) patterns in the front-end page are lost or CSS file loading fails, the front-end page cannot be completely disordered, and a user can still clearly know the structural content of the front-end page.
In the foregoing embodiment of the present invention, the initial base class template is subjected to semantic specification by using the standard of W3C, so that the universality and high availability of the standard base class template are ensured, and preferably, in the embodiment of the present invention, a C language compiler is used to perform variable declaration and function declaration on the initial base class template to obtain the standard base class template.
S2, acquiring a home page content set to be displayed, and marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set;
in the embodiment of the invention, the to-be-displayed home page content set is a set of to-be-displayed home page contents corresponding to different classes of users of the application program.
Further, the marking and inheriting the standard base class template according to the home page content to obtain a component set, including:
s21, classifying and extracting the content set of the home page to be displayed to obtain a common content set and a unique content set;
in an embodiment of the present invention, the to-be-displayed first page content set includes a common content and a unique content, preferably, the common content is a content common to a plurality of to-be-displayed first page contents, and the unique content is a content unique to a certain to-be-displayed first page content. Generally, the contents of the first page to be displayed corresponding to different categories of users are not completely the same, but all include common contents and unique contents, such as: the home page content to be displayed corresponding to the teacher user comprises: advertisement column, announcement column, and teaching result column; the to-be-displayed home page content of the student user comprises the following steps: the advertisement column and the announcement column are shared contents, and the teaching result column and the academic period result column are unique contents.
Further, in the embodiment of the present invention, the classifying and extracting the to-be-displayed home page content set to obtain a common content set and a unique content set includes:
step A, counting the occurrence frequency of each content contained in the home page content set to be displayed;
in the embodiment of the present invention, the number of occurrences of each content included in the set of top page contents to be displayed represents the calling frequency of the content.
B, extracting the content of which the occurrence frequency is greater than a preset threshold value in the home page content set to be displayed to obtain the common content set;
in the embodiment of the invention, the content of which the occurrence frequency is greater than the preset threshold value in the home page content set to be displayed is extracted to obtain the corresponding common content, and all the common contents are summarized to obtain the common content set.
And C, extracting the content of which the occurrence frequency is less than or equal to a preset threshold value in the content set to be displayed to obtain the unique content set.
In the embodiment of the present invention, the content whose occurrence number in the to-be-displayed first page content set is less than or equal to the preset threshold is extracted to obtain the corresponding unique content, and all the unique contents are summarized to obtain the unique content set, preferably, in the embodiment of the present invention, the threshold is 2.
In the embodiment of the invention, the frequency of the common content calling is wide in influence range, more resources need to be invested for maintenance, the frequency of the private content calling is small in influence range, less resources need to be invested for maintenance, and the content concentrated on the home page content to be displayed is divided into the common content of high-frequency calling and the unique content of low-frequency calling, so that the effective configuration and utilization of resources are facilitated.
S22, carrying out attribute marking and inheritance on the standard base class template according to the common content set to obtain a common component set;
in the embodiment of the invention, in order to effectively utilize the common content, the common content is selected and inherited and realized by the standard base class template, and when a new user home page needs the same content component, the common content is directly called, so that repeated development is avoided, the common content is effectively utilized, and the resource utilization rate is favorably improved.
In this embodiment of the present invention, the marking and inheriting the standard base class template according to the common content set to obtain a common component set, including:
step X, carrying out template attribute marking on the standard base class template to obtain an initial common template;
in the embodiment of the invention, in order to facilitate subsequent distinguishing and utilization, common component template marking is carried out on the standard base class template to obtain the initial common template;
step Y, according to each common content contained in the common content set, calling a preset function to inherit and mark an ID of the initial common template to obtain the common component set;
in the embodiment of the invention, the inheritance is to call a preset function to realize the content and package the components.
For example: if the common content contained in the common content set is the top margin of the page, calling a Headerh function in the initial common template to realize the top margin setting of the page and packaging the page as a component mark ID of 001, so as to obtain an initial common component 001; if the common content contained in the common content set is the background color of the page, the PaintEvent function is called in the initial common template to realize the setting of the background color of the page and is packaged into a component mark ID of 002, so that an initial common component 002 is obtained, and the initial common component 001 and the initial common component 002 are summarized to obtain the common component set.
S23, carrying out attribute marking and inheritance on the standard base class template according to the unique content set to obtain a unique component set;
in this embodiment of the present invention, the attribute marking and inheriting the standard base class template according to the unique content set includes: carrying out unique component template marking on the standard base class template to obtain the initial unique template; and according to each unique content contained in the unique content set, calling a preset function to inherit and mark an ID of the initial unique template to obtain the unique component set.
And S24, summarizing the common component set and the unique component set to obtain the component set.
In another embodiment of the present invention, to ensure the privacy of the data, the set of components may be stored in block link points.
And S3, responding to the user login information, and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application program home page.
In the embodiment of the invention, different preset user interfaces respond to login information of different users, when the user inputs the login information, the login information of the user is responded, and the component set is dynamically extracted and combined according to the mapping relation between the account information in the login information and the user home page interface to obtain the initial user application program home page. And the user home page interface comprises the component type and the ID which are required to be displayed, and the corresponding jump logic and the network interface. For example: the content to be displayed in the preset user home page interface corresponding to the account information of the teacher user is an initial shared component 001, an initial shared component 002 and a unique component 001, the initial shared component 002 and the unique component 001 in the component set are extracted and displayed at the component position corresponding to the preset user home page interface, and the application home page corresponding to the teacher user is obtained.
Further, the embodiment of the present invention renders the initial user application home page to obtain the user application home page.
In the invention, the initial user application program home page does not have corresponding background data, so that the initial user application program home page is rendered to display the corresponding background data of the initial user application program home page, and the background data is obtained as the user application program home page.
In detail, in the embodiment of the present invention, rendering the initial user application home page to obtain a user application home page includes: jumping logic and network interface request addition are carried out on each component in the initial user application program home page; and rendering each component in the initial user application program home page which is added with the jump logic and the network interface request to obtain the user application program home page. Preferably, the embodiment of the invention utilizes a exact render technique for rendering.
Furthermore, data in the component content is refreshed depending on background data, and in order to update the component content in time, in the embodiment of the present invention, the component content of the component included in the top page of the user application program may also be refreshed by using a preset control layer according to a preset life cycle of the top page of the user application program, where the life cycle is preset component content display time. For example: and when the component content of the component contained in the home page of the user application program is weather content, and the life cycle is 30 minutes, the control layer refreshes the component content of the component contained in the home page of the user application program every 30 minutes to display new weather data. Preferably, the control layer may be, for example: a Controller layer in the Java program.
Fig. 3 is a functional block diagram of the application home page configuring apparatus according to the present invention.
The application home page configuration apparatus 100 of the present invention can be installed in an electronic device. According to the implemented functions, the application home page configuration device may include a component generation module 101 and a home page generation module 102. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the template generating module 101 is configured to obtain an initial base class template, and perform semantic declaration on the initial base class template to obtain a standard base class template.
In the embodiment of the present invention, the initial base class template is a template of an object type including the entity commonality, and can be used to inherit to obtain a corresponding component.
For example, the initial base class template may be: web Components, Angular, React, etc.
Preferably, in this embodiment, the initial base class template is a Web Component. The Web Components are a new standard front-end component module framework defined by W3C, and can freely customize a front-end component to perform modular development of the front-end component.
Furthermore, the semantic declaring of the initial base class template refers to performing semantic specification on the initial base class template, that is, performing strictly according to the W3C standard. The semantic specification is used for standardizing a front-end developer so that the front-end developer can realize the function of a front-end page with a correct label, and is used for enabling the content of the front-end page to be more structured, so that even if the CSS style in the front-end page is lost or the CSS file loading fails, the front-end page cannot be completely disordered, and a user can still clearly know the structural content of the front-end page.
In the foregoing embodiment of the present invention, the initial base class template is subjected to semantic specification by using the standard of W3C, so that the universality and high availability of the standard base class template are ensured, and preferably, the template generation module 101 in the embodiment of the present invention performs variable declaration and function declaration on the initial base class template by using a C language compiler, so as to obtain the standard base class template.
The component generation module 102 is configured to obtain a home page content set to be displayed, and mark and inherit the standard base class template according to the home page content set to be displayed, so as to obtain a component set.
In the embodiment of the invention, the to-be-displayed home page content set is a set of to-be-displayed home page contents corresponding to different classes of users of the application program.
Further, the component generation module 102 obtains a component set by using the following means, including:
classifying and extracting the content sets of the home page to be displayed to obtain a common content set and a unique content set;
in an embodiment of the present invention, the to-be-displayed first page content set includes a common content and a unique content, preferably, the common content is a content common to a plurality of to-be-displayed first page contents, and the unique content is a content unique to a certain to-be-displayed first page content. Generally, the contents of the first page to be displayed corresponding to different categories of users are not completely the same, but all include common contents and unique contents, such as: the home page content to be displayed corresponding to the teacher user comprises: advertisement column, announcement column, and teaching result column; the to-be-displayed home page content of the student user comprises the following steps: the advertisement column and the announcement column are shared contents, and the teaching result column and the academic period result column are unique contents.
Further, in the embodiment of the present invention, the component generation module 102 performs classification and extraction on the content set of the home page to be displayed by using the following means to obtain a common content set and a unique content set, including:
counting the occurrence times of each content contained in the home page content set to be displayed;
in the embodiment of the present invention, the number of occurrences of each content included in the set of top page contents to be displayed represents the calling frequency of the content.
Extracting the content of which the occurrence frequency is greater than a preset threshold value in the home page content set to be displayed to obtain the common content set;
in the embodiment of the invention, the content of which the occurrence frequency is greater than the preset threshold value in the home page content set to be displayed is extracted to obtain the corresponding common content, and all the common contents are summarized to obtain the common content set.
And extracting the content of which the occurrence frequency is less than or equal to a preset threshold value in the content set to be displayed to obtain the unique content set.
In the embodiment of the present invention, the content whose occurrence number in the to-be-displayed first page content set is less than or equal to the preset threshold is extracted to obtain the corresponding unique content, and all the unique contents are summarized to obtain the unique content set, preferably, in the embodiment of the present invention, the threshold is 2.
In the embodiment of the invention, the frequency of the common content calling is wide in influence range, more resources need to be invested for maintenance, the frequency of the private content calling is small in influence range, less resources need to be invested for maintenance, and the content concentrated on the home page content to be displayed is divided into the common content of high-frequency calling and the unique content of low-frequency calling, so that the effective configuration and utilization of resources are facilitated.
According to the common content set, attribute marking and inheritance are carried out on the standard base class template to obtain a common component set;
in the embodiment of the invention, in order to effectively utilize the common content, the common content is selected and inherited and realized by the standard base class template, and when a new user home page needs the same content component, the common content is directly called, so that repeated development is avoided, the common content is effectively utilized, and the resource utilization rate is favorably improved.
In this embodiment of the present invention, the component generation module 102 obtains a common component set by using the following means, including:
carrying out template attribute marking on the standard base class template to obtain an initial common template;
in the embodiment of the invention, in order to facilitate subsequent distinguishing and utilization, common component template marking is carried out on the standard base class template to obtain the initial common template;
according to each common content contained in the common content set, calling a preset function to inherit and mark an ID for the initial common template to obtain the common component set;
in the embodiment of the invention, the inheritance is to call a preset function to realize the content and package the components.
For example: if the common content contained in the common content set is the top margin of the page, calling a Headerh function in the initial common template to realize the top margin setting of the page and packaging the page as a component mark ID of 001, so as to obtain an initial common component 001; if the common content contained in the common content set is the background color of the page, the PaintEvent function is called in the initial common template to realize the setting of the background color of the page and is packaged into a component mark ID of 002, so that an initial common component 002 is obtained, and the initial common component 001 and the initial common component 002 are summarized to obtain the common component set.
According to the unique content set, carrying out attribute marking and inheritance on the standard base class template to obtain a unique component set;
in this embodiment of the present invention, the attribute marking and inheritance for the standard base class template by the component generation module 102 according to the unique content set includes: carrying out unique component template marking on the standard base class template to obtain the initial unique template; and according to each unique content contained in the unique content set, calling a preset function to inherit and mark an ID of the initial unique template to obtain the unique component set.
And summarizing the common component set and the unique component set to obtain the component set.
In another embodiment of the present invention, to ensure the privacy of the data, the set of components may be stored in block link points.
The home page generation module 103 is configured to respond to user login information, and dynamically extract and combine the component sets according to a preset user home page interface to obtain a user application home page.
In the embodiment of the present invention, login information of different users may have different preset user interfaces to respond, and when a user inputs login information, the home page generation module 103 responds to the login information of the user, and performs dynamic extraction and combination on the component set according to a mapping relationship between account information in the login information and the home page interface of the user, so as to obtain a home page of an initial user application. And the user home page interface comprises the component type and the ID which are required to be displayed, and the corresponding jump logic and the network interface. For example: the content to be displayed in the preset user home page interface corresponding to the account information of the teacher user is an initial shared component 001, an initial shared component 002 and a unique component 001, the initial shared component 002 and the unique component 001 in the component set are extracted and displayed at the component position corresponding to the preset user home page interface, and the application home page corresponding to the teacher user is obtained.
Further, the embodiment of the present invention renders the initial user application home page to obtain the user application home page.
In the invention, the initial user application program home page does not have corresponding background data, so that the initial user application program home page is rendered to display the corresponding background data of the initial user application program home page, and the background data is obtained as the user application program home page.
In detail, in the embodiment of the present invention, the rendering module 103 renders the initial user application home page by using the following means to obtain a user application home page, including: jumping logic and network interface request addition are carried out on each component in the initial user application program home page; and rendering each component in the initial user application program home page which is added with the jump logic and the network interface request to obtain the user application program home page. Preferably, the embodiment of the invention utilizes a exact render technique for rendering.
Furthermore, data in the component content is refreshed depending on background data, and in order to update the component content in time, in the embodiment of the present invention, the component content of the component included in the top page of the user application program may also be refreshed by using a preset control layer according to a preset life cycle of the top page of the user application program, where the life cycle is preset component content display time. For example: and when the component content of the component contained in the home page of the user application program is weather content, and the life cycle is 30 minutes, the control layer refreshes the component content of the component contained in the home page of the user application program every 30 minutes to display new weather data. Preferably, the control layer may be, for example: a Controller layer in the Java program.
Fig. 4 is a schematic structural diagram of an electronic device implementing the method for configuring the home page of the application program according to the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as an application home configuration program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile 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 electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of an application program home page configuration program, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., application top page configuration programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 4 only shows an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The application home configuration program 12 stored in the memory 11 of the electronic device 1 is a combination of a plurality of computer programs, and when running in the processor 10, can implement:
acquiring an initial base class template, and performing semantic declaration on the initial base class template to obtain a standard base class template;
acquiring a home page content set to be displayed, and marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set;
and responding to the user login information, and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application program home page.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, 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. The computer readable medium may be non-volatile or volatile. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules 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 can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An application home page configuration method, the method comprising:
acquiring an initial base class template, and performing semantic declaration on the initial base class template to obtain a standard base class template;
acquiring a home page content set to be displayed, and marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set;
and responding to the user login information, and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application program home page.
2. The method for configuring the home page of the application program according to claim 1, wherein the step of marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set comprises:
classifying and extracting the content sets of the home page to be displayed to obtain a common content set and a unique content set;
according to the common content set, attribute marking and inheritance are carried out on the standard base class template to obtain a common component set;
according to the unique content set, carrying out attribute marking and inheritance on the standard base class template to obtain a unique component set;
and summarizing the common component set and the unique component set to obtain the component set.
3. The method for configuring a home page of an application according to claim 2, wherein the classifying and extracting the content set of the home page to be displayed to obtain a common content set and a unique content set comprises:
counting the occurrence times of each content contained in the home page content set to be displayed;
extracting the content of which the occurrence frequency in the home page content set to be displayed is greater than a preset threshold value to obtain a common content set;
and extracting the content of which the occurrence frequency in the content set to be displayed is less than or equal to the preset threshold value to obtain a unique content set.
4. The method for configuring the home page of the application program according to claim 2, wherein the attribute labeling and inheritance are performed on the standard base class template according to the common content set to obtain a common component set, and the method comprises the following steps:
carrying out template attribute marking on the standard base class template to obtain an initial common template;
and calling a preset function according to each common content contained in the common content set to inherit and mark an ID for the initial common template to obtain the common component set.
5. The method for configuring a home page of an application program according to claim 2, wherein the step of obtaining a home page of the application program by performing dynamic extraction and combination on the component set according to a preset home page interface in response to the user login information comprises:
according to the mapping relation between account information in the login information of the user and the user home page interface, dynamically extracting and combining the component set to obtain an initial user application program home page;
rendering the initial user application program home page to obtain the user application program home page.
6. The method for configuring a home page of an application program according to claim 5, wherein the rendering the initial home page of the user application program to obtain a home page of the user application program comprises:
jumping logic and network interface request addition are carried out on each component in the initial user application program home page;
and rendering each component in the initial user application program home page which is added with the jump logic and the network interface request to obtain the user application program home page.
7. The method as claimed in claim 5, wherein the step of dynamically extracting and combining the component set according to a preset user's home page interface to obtain a user's application home page further comprises:
and refreshing the component content of the component contained in the home page of the user application program by using a preset control layer according to the preset life cycle of the home page of the user application program.
8. An application home page configuration apparatus, comprising:
the template generating module is used for acquiring an initial base class template and performing semantic statement on the initial base class template to obtain a standard base class template;
the component generation module is used for acquiring a home page content set to be displayed, and marking and inheriting the standard base class template according to the home page content set to be displayed to obtain a component set;
and the home page generation module is used for responding to the user login information and dynamically extracting and combining the component set according to a preset user home page interface to obtain a user application program home page.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the application home page configuration method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the application home page configuration method according to any one of claims 1 to 7.
CN202011246884.0A 2020-11-10 2020-11-10 Application program home page configuration method and device, electronic equipment and readable storage medium Pending CN112162748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011246884.0A CN112162748A (en) 2020-11-10 2020-11-10 Application program home page configuration method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011246884.0A CN112162748A (en) 2020-11-10 2020-11-10 Application program home page configuration method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112162748A true CN112162748A (en) 2021-01-01

Family

ID=73865758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011246884.0A Pending CN112162748A (en) 2020-11-10 2020-11-10 Application program home page configuration method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112162748A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051475A (en) * 2021-03-25 2021-06-29 平安银行股份有限公司 Content recommendation method and device, electronic equipment and readable storage medium
CN113569551A (en) * 2021-07-16 2021-10-29 青岛海尔科技有限公司 APP page configuration method, device, system and storage medium
CN113703809A (en) * 2021-08-31 2021-11-26 康键信息技术(深圳)有限公司 Method, device, equipment and medium for updating home page application data configuration

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255974A (en) * 2017-12-27 2018-07-06 武汉天喻教育科技有限公司 A kind of modular Web page shows system and method
CN110442410A (en) * 2019-07-15 2019-11-12 深圳市元征科技股份有限公司 Embedded type interface design method, device, electronic equipment and storage medium
CN110825374A (en) * 2019-11-04 2020-02-21 泰康保险集团股份有限公司 Page generation method and device based on component, electronic equipment and storage medium
CN111124477A (en) * 2019-12-19 2020-05-08 华云数据有限公司 Front-end configuration method and system and electronic equipment
CN111176643A (en) * 2019-12-24 2020-05-19 厦门市美亚柏科信息股份有限公司 Method for generating subsystem home page and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255974A (en) * 2017-12-27 2018-07-06 武汉天喻教育科技有限公司 A kind of modular Web page shows system and method
CN110442410A (en) * 2019-07-15 2019-11-12 深圳市元征科技股份有限公司 Embedded type interface design method, device, electronic equipment and storage medium
CN110825374A (en) * 2019-11-04 2020-02-21 泰康保险集团股份有限公司 Page generation method and device based on component, electronic equipment and storage medium
CN111124477A (en) * 2019-12-19 2020-05-08 华云数据有限公司 Front-end configuration method and system and electronic equipment
CN111176643A (en) * 2019-12-24 2020-05-19 厦门市美亚柏科信息股份有限公司 Method for generating subsystem home page and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051475A (en) * 2021-03-25 2021-06-29 平安银行股份有限公司 Content recommendation method and device, electronic equipment and readable storage medium
CN113569551A (en) * 2021-07-16 2021-10-29 青岛海尔科技有限公司 APP page configuration method, device, system and storage medium
CN113569551B (en) * 2021-07-16 2023-12-19 青岛海尔科技有限公司 APP page configuration method, device, system and storage medium
CN113703809A (en) * 2021-08-31 2021-11-26 康键信息技术(深圳)有限公司 Method, device, equipment and medium for updating home page application data configuration
CN113703809B (en) * 2021-08-31 2024-04-26 康键信息技术(深圳)有限公司 Method, device, equipment and medium for updating home page application data configuration

Similar Documents

Publication Publication Date Title
CN112162748A (en) Application program home page configuration method and device, electronic equipment and readable storage medium
CN113238929B (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN113806434A (en) Big data processing method, device, equipment and medium
CN113704665A (en) Dynamic service publishing method, device, electronic equipment and storage medium
CN115129753A (en) Data blood relationship analysis method and device, electronic equipment and storage medium
CN115048111A (en) Code generation method, device, equipment and medium based on metadata
CN114385497A (en) Test environment generation method and device, electronic equipment and storage medium
CN113722533A (en) Information pushing method and device, electronic equipment and readable storage medium
CN113360139A (en) Integration method and device of front-end frame, electronic equipment and storage medium
CN113468175A (en) Data compression method and device, electronic equipment and storage medium
CN114816371B (en) Message processing method, device, equipment and medium
CN112069782A (en) Document template generation method and device, electronic equipment and storage medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN114185522A (en) Page theme customizing method and device, electronic equipment and storage medium
CN115314570A (en) Data issuing method, device, equipment and medium based on protocol development framework
CN115496166A (en) Multitasking method and device, electronic equipment and storage medium
CN115080899A (en) Interactive sub-web page starting method, device, equipment and storage medium
CN115220740A (en) Database environment deployment method and device, electronic equipment and storage medium
CN114625712A (en) Data synchronization method and device, electronic equipment and storage medium
CN114611477A (en) Design recommendation method and device for data table, electronic equipment and medium
CN114186540A (en) Mail content intelligent filling method and device, electronic equipment and storage medium
CN113918305A (en) Node scheduling method and device, electronic equipment and readable storage medium
CN113515265A (en) Site configuration method, device, equipment and computer readable storage medium
CN112527443A (en) Prompt box display method and device, electronic equipment and computer readable storage medium
CN114357534B (en) Classroom training platform construction method, device, equipment and medium based on block chain

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