CN113961184A - Page layout processing method and device, storage medium and electronic equipment - Google Patents

Page layout processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113961184A
CN113961184A CN202111335301.6A CN202111335301A CN113961184A CN 113961184 A CN113961184 A CN 113961184A CN 202111335301 A CN202111335301 A CN 202111335301A CN 113961184 A CN113961184 A CN 113961184A
Authority
CN
China
Prior art keywords
page
target
component
template
layout
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
CN202111335301.6A
Other languages
Chinese (zh)
Inventor
左晓琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202111335301.6A priority Critical patent/CN113961184A/en
Publication of CN113961184A publication Critical patent/CN113961184A/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/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Document Processing Apparatus (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a page layout processing method and device, a storage medium and electronic equipment, and relates to the field of financial technology. The method comprises the following steps: acquiring a component library edited by a webpage, wherein the component library comprises a plurality of component elements; constructing a plurality of page templates according to the component elements in the element library, wherein the page templates comprise at least one component element; acquiring target information selected by a target object, wherein the target information at least comprises one of the following items: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; generating a page typesetting strategy according to the target information; and according to the page typesetting strategy, laying out the client page. Through the method and the device, the problem that the efficiency of page layout is low in the related technology is solved.

Description

Page layout processing method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of financial technology, in particular to a page layout processing method and device, a storage medium and electronic equipment.
Background
At present, in a bank service plate, page layout changing layout such as H5 and applets is very important for improving user interaction and visual experience aiming at a client. The current implementation mode is that a page is required to be designed according to vision and interaction, the template type required by a bank end is determined according to the content of the page design, and the size of a fixed template is set according to the requirement of a client so as to meet the requirement of adapting the client. However, this implementation method has some problems, and when the bank service plate personnel update the service template types (including shapes, sizes, etc.), the current system flow cannot implement real-time template configuration update, which results in low efficiency of page layout.
Aiming at the problem of low efficiency of page layout in the related art, no effective solution is provided at present.
Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for processing a page layout, a storage medium, and an electronic device, so as to solve the problem of low efficiency of page layout in the related art.
In order to achieve the above object, according to one aspect of the present application, a page layout processing method is provided. The method comprises the following steps: acquiring a component library edited by a webpage, wherein the component library comprises a plurality of component elements; constructing a plurality of page templates according to the component elements in the element library, wherein the page templates comprise at least one component element; acquiring target information selected by a target object, wherein the target information at least comprises one of the following items: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; generating a page typesetting strategy according to the target information; and according to the page typesetting strategy, laying out the client page.
Further, constructing a plurality of page templates according to the component elements in the element library, including: if the adjustment operation of the target object on the target component element in the plurality of component elements is detected; adjusting the size of the target component element in response to the adjustment operation; and constructing a target page template according to the target component elements after the size adjustment.
Further, the display mode of the target page template is one of the following modes: fixed display, sliding display, automatic rolling display and ceiling display.
Further, generating a page layout strategy according to the target information, including: determining each content module on a target page template in the target information; calculating data information of each content module, wherein the data information at least comprises: vertical or horizontal size, area size, starting coordinate position; and generating the page layout strategy according to the data information.
Further, after the client page is laid out according to the page layout policy, the method further includes: if the target object is detected to update the selected target information, generating an updated page layout strategy according to the updated target information; and re-laying out the client page according to the updated page layout strategy.
Further, when the target information is updated, the updated content includes one of the following: the sequence of the target page template, the size of the target page template, the content of the target page template and the display mode of the target page template.
In order to achieve the above object, according to another aspect of the present application, there is provided a page layout processing apparatus. The device includes: the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a component library edited by a webpage, and the component library comprises a plurality of component elements; the first building unit is used for building a plurality of page templates according to the component elements in the component library, wherein the page templates comprise at least one component element; a second obtaining unit, configured to obtain target information selected by a target object, where the target information includes at least one of: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; the first planning unit is used for generating a page typesetting strategy according to the target information; and the first layout unit is used for laying out the client page according to the page typesetting strategy.
Further, the apparatus further comprises: a first detection unit configured to detect an adjustment operation of a target component element of the plurality of component elements by a target object; an adjustment unit configured to adjust a size of the target component element in response to the adjustment operation; and the third construction unit is used for constructing the target page template according to the target component elements after the size adjustment.
Further, the display mode of the target page template is one of the following modes: fixed display, sliding display, automatic rolling display and ceiling display.
Further, the apparatus further comprises: the confirming unit is used for confirming each content module on the target page template in the target information; a calculating unit, configured to calculate data information of each content module, where the data information at least includes: vertical or horizontal size, area size, starting coordinate position; and the second planning unit is used for generating the page typesetting strategy according to the data information.
Further, the apparatus further comprises: the second detection unit is used for generating an updated page layout strategy according to the updated target information after the client page is laid according to the page layout strategy and if the target object is detected to update the selected target information; and the second layout unit is used for re-laying the client page according to the updated page layout strategy.
Further, when the target information is updated, the updated content includes one of the following: the sequence of the target page template, the size of the target page template, the content of the target page template and the display mode of the target page template.
In order to achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium including a stored program, wherein the program performs the processing method of the page layout according to any one of the above.
In order to achieve the above object, according to another aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the processing method of the page layout according to any one of the above.
Through the application, the following steps are adopted: acquiring a component library edited by a webpage, wherein the component library comprises a plurality of component elements; constructing a plurality of page templates according to the component elements in the element library, wherein the page templates comprise at least one component element; acquiring target information selected by a target object, wherein the target information at least comprises one of the following items: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; generating a page typesetting strategy according to the target information; according to the page layout strategy, the client pages are laid out, the problem of low page layout efficiency in the related technology is solved, a plurality of page templates are built through component elements in a component library, and the page layout strategy is automatically generated according to target information selected from the plurality of page templates of a user, so that the client pages are laid out, and the effect of quickly realizing page layout is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flowchart of a processing method of a page layout provided according to an embodiment of the present application;
FIG. 2 is a first schematic diagram illustrating an alternative page layout processing method according to an embodiment of the present disclosure;
FIG. 3 is a second schematic diagram of an alternative page layout processing method provided in an embodiment of the present application;
FIG. 4 is a third schematic diagram illustrating an alternative page layout processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a processing apparatus for page layout according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of a page layout processing method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S101, a component library edited by a webpage page is obtained, wherein the component library comprises a plurality of component elements.
The common component elements of the design page are imported into an element library edited by the webpage page, for example, the common component elements include rectangles, circles, squares, semi-corners and the like, and the sizes of the component elements are not fixed.
Step S102, a plurality of page templates are built according to the component elements in the component library, wherein the page templates comprise at least one component element.
The sizes of the component elements are not fixed, the component elements can be randomly reduced or stretched and support splicing, a plurality of page templates can be spliced and combined according to actual requirements, and the page templates are stored in a page template library.
In step S103, target information selected by the target object is acquired.
For example, the target object is bank background personnel, and the target information is the style of the page template, the number of the page templates, the display mode of the page template and the display mode of the page template selected by the bank background personnel according to the current requirements.
And step S104, generating a page layout strategy according to the target information.
And calculating a generated page typesetting strategy according to the target information selected by the bank background personnel, for example, the position where the modules of payment and payment details, account transfer, account, website service and the like are placed in the basic function of the page 1.
And step S105, laying out the client page according to the page layout strategy.
According to the page typesetting strategy, the page of the client is optimally laid out, for example, the size of a page template is adjusted in equal proportion, so that the page of the client is more attractive in appearance.
Through the steps, a plurality of page templates are built through the component elements in the element library, and a page typesetting strategy is automatically generated according to target information selected from the plurality of page templates of the user, so that the layout of the client pages is realized, and the effect of quickly realizing the page layout is further achieved. That is, in the method for processing the page layout, the diversity of the page templates is realized through the permutation and combination of various component elements, and the page layout strategy is automatically recommended through the system according to the target information selected by the user, so that the client page is laid out, the problem of low efficiency of page layout in the related technology is solved, the market change can be quickly complied with, and the bank client page is more attractive.
Optionally, in the page layout processing method provided in the embodiment of the present application, constructing a plurality of page templates according to component elements in a component library includes: if the adjustment operation of the target object on the target component element in the plurality of component elements is detected; adjusting the size of the target component element in response to the adjustment operation; and constructing a target page template according to the target component elements after the size adjustment.
When the page template is constructed, the component elements in the element library are not fixed, and bank background personnel can shrink or stretch the component elements according to requirements to adjust the component elements to the required size.
The sizes of the component elements are not fixed, and can be adjusted according to actual requirements, and the mode can enable the component elements which can be adjusted by bank background personnel to construct the page template more flexibly.
Optionally, in the page layout processing method provided in the embodiment of the present application, a display manner of the target page template is one of the following: fixed display, sliding display, automatic rolling display and ceiling display.
Pages with different contents have different display modes, for example, a basic function page adopts sliding display, a financial information page adopts automatic scrolling display, and a personal information page adopts fixed display.
Different display modes are adopted according to the content of the page, so that the page layout of the client side is more attractive.
Optionally, in the method for processing a page layout provided in the embodiment of the present application, generating a page layout policy according to the target information includes: determining each content module on a target page template in the target information; calculating data information of each content module, wherein the data information at least comprises: vertical or horizontal size, area size, starting coordinate position; and generating a page layout strategy according to the data information.
For example, based on the component elements and page contents selected by bank background personnel, in the basic function page, a menu bar (for example, the menu bar comprises regions, search bars and the like), a function bar (for example, my account, my assets, my details and my payment) and an activity bar (for example, paying lottery, transacting new card activities and the like) are required, the system calculates the data information of each content module and determines the size and the placement position of the module.
According to the component elements and the content contained in the component elements, required data information is automatically calculated, the task load of bank background workers is reduced, and each content module can be placed more reasonably and attractively.
Optionally, in the page layout processing method provided in the embodiment of the present application, after the layout of the client page is performed according to the page layout policy, the method further includes: if the target object is detected to update the selected target information, generating an updated page layout strategy according to the updated target information; and re-laying out the client page according to the updated page layout strategy.
When the bank background personnel modify the selected target information, a new page typesetting strategy is calculated and generated according to the modified information, and the optimal layout is performed again on the client page.
In the process of page revision, bank background personnel only need to carry out simple information modification without self-adjustment of layout, so that the processing time of the page layout is greatly reduced, the pushing of related information to a user is facilitated, and the user can know the activity content of the bank more quickly.
Optionally, in the page layout processing method provided in this embodiment of the present application, when the target information is updated, the update content includes one of the following: the sequence of the target page template, the size of the target page template, the content of the target page template and the display mode of the target page template.
In page revising, different adjustments are made for different situations, for example, when the activity pushed by a bank changes, only the content of the target page template needs to be modified.
As shown in fig. 2, bank background personnel flexibly stretch or shrink and splice a plurality of templates according to component elements, determine the vertical/horizontal size and the area size of the templates and store the templates in a template library, wherein the imported content only comprises the original shape and is not fixed in size, and the size of the control template can be flexibly stretched or shrunk; after receiving information selected by bank background personnel, the system generates a recommended typesetting strategy and displays the optimal layout of the page; and dragging the recommendation template to a display page of the client by bank background personnel, and maintaining attributes of the bank background personnel, wherein the attributes comprise functions of maintaining pictures, editing titles, selecting jump activities and the like.
An implementation process of automatically adjusting the layout combination of the client is shown in fig. 3, a bank background person flexibly stretches or shrinks and splices a plurality of templates according to component elements, determines the vertical/horizontal size and the area size of the templates and stores the templates in a template library, and the imported content only comprises the original shape and is not fixed in size, so that the size of the templates can be flexibly controlled by stretching or shrinking; the bank background personnel maintain according to the number of the current templates, the size of the templates, the template display mode, the function field display mode and the like; after the system receives the updated content of the bank background personnel, calculating new vertical/horizontal size, area size, initial coordinate position and the like of each content module, adjusting typesetting content and generating a new typesetting mode; and dragging the recommendation template to a display page of the client by bank background personnel, and maintaining attributes of the bank background personnel, wherein the attributes comprise functions of maintaining pictures, editing titles, selecting jump activities and the like.
An implementation process of automatically recommending and adjusting a client layout combination is shown in fig. 4, a bank background person flexibly stretches or shrinks and splices a plurality of templates according to component elements, determines the vertical/horizontal size and the area size of the templates and stores the templates in a template library, and the imported content only comprises the original shape, is not fixed in size and can flexibly stretch or shrink to control the size of the templates; after receiving information selected by bank background personnel, the system generates a recommended typesetting strategy and displays the optimal layout of the page; the bank background personnel maintain according to the number of the current templates, the size of the templates, the template display mode, the function field display mode and the like; after the system receives the updated content of the bank background personnel, calculating new vertical/horizontal size, area size, initial coordinate position and the like of each content module, adjusting typesetting content and generating a new typesetting mode; and dragging the recommendation template to a display page of the client by bank background personnel, and maintaining attributes of the bank background personnel, wherein the attributes comprise functions of maintaining pictures, editing titles, selecting jump activities and the like.
To sum up, the method for processing a page layout provided by the embodiment of the present application obtains a component library edited by a webpage, where the component library includes a plurality of component elements; constructing a plurality of page templates according to the component elements in the element library, wherein the page templates comprise at least one component element; acquiring target information selected by a target object, wherein the target information at least comprises one of the following items: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; generating a page typesetting strategy according to the target information; according to the page layout strategy, the client pages are laid out, the problem of low page layout efficiency in the related technology is solved, a plurality of page templates are built through component elements in a component library, and the page layout strategy is automatically generated according to target information selected from the plurality of page templates of a user, so that the client pages are laid out, and the effect of quickly realizing page layout is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a processing apparatus for page layout, and it should be noted that the processing apparatus for page layout of the embodiment of the present application may be used to execute the processing method for page layout provided in the embodiment of the present application. The following describes a processing apparatus for a page layout according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a processing device for page layout according to an embodiment of the present application. As shown in fig. 5, the apparatus includes: a first acquisition unit 10, a first construction unit 20, a second acquisition unit 30, a first planning unit 40 and a first layout unit 50.
The first acquiring unit 10 is configured to acquire a component library edited by a webpage, where the component library includes a plurality of component elements.
The first building unit 20 is configured to build a plurality of page templates according to the component elements in the component library, where the page templates include at least one component element.
A second obtaining unit 30, configured to obtain target information selected by a target object, where the target information includes at least one of: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template.
And the first planning unit 40 is configured to generate a page layout strategy according to the target information.
The first layout unit 50 is configured to layout the client page according to the page layout policy.
To sum up, the processing apparatus for page layout provided in this embodiment of the present application obtains, through the first obtaining unit 10, a component library for webpage editing, where the webpage includes a plurality of component elements; a first constructing unit 20, which constructs a plurality of page templates according to the component elements in the component library, wherein the page templates include at least one component element; a second obtaining unit 30, configured to obtain target information selected by a target object, where the target information includes at least one of: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; the first planning unit 40 generates a page layout strategy according to the target information; the first layout unit 50 lays out the client pages according to the page layout strategy, so as to solve the problem of low page layout efficiency in the related art, construct a plurality of page templates through the component elements in the element library, and automatically generate the page layout strategy according to the target information selected from the plurality of page templates by the user, thereby laying out the client pages, and further achieving the effect of quickly realizing the page layout.
Optionally, in the processing apparatus for page layout provided in the embodiment of the present application, the apparatus further includes: a first detection unit configured to detect an adjustment operation of a target component element of the plurality of component elements by a target object; an adjustment unit for adjusting the size of the target component element in response to the adjustment operation; and the third construction unit is used for constructing the target page template according to the target component elements after the size adjustment.
Optionally, in the processing apparatus for page layout provided in the embodiment of the present application, a display manner of the target page template is one of the following: fixed display, sliding display, automatic rolling display and ceiling display.
Optionally, in the processing apparatus for page layout provided in the embodiment of the present application, the apparatus further includes: the confirming unit is used for confirming each content module on the target page template in the target information; a calculating unit, configured to calculate data information of each content module, where the data information at least includes: vertical or horizontal size, area size, starting coordinate position; and the second planning unit is used for generating a page typesetting strategy according to the data information.
Optionally, in the processing apparatus for page layout provided in the embodiment of the present application, the apparatus further includes: the second detection unit is used for generating an updated page layout strategy according to the updated target information after the client page is laid according to the page layout strategy and if the target object is detected to update the selected target information; and the second layout unit is used for re-laying the client page according to the updated page typesetting strategy.
Optionally, in the processing apparatus for page layout provided in the embodiment of the present application, when there is an update to the target information, the update content includes one of: the sequence of the target page template, the size of the target page template, the content of the target page template and the display mode of the target page template.
The processing device of the page layout comprises a processor and a memory, wherein the first acquiring unit 10, the first constructing unit 20, the second acquiring unit 30, the first planning unit 40, the first layout unit 50 and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the processing problem of the page layout can be quickly realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium, on which a program is stored, which, when executed by a processor, implements the processing method of the page layout.
The embodiment of the invention provides electronic equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: acquiring a component library edited by a webpage, wherein the component library comprises a plurality of component elements; constructing a plurality of page templates according to the component elements in the element library, wherein the page templates comprise at least one component element; acquiring target information selected by a target object, wherein the target information at least comprises one of the following items: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; generating a page typesetting strategy according to the target information; and according to the page typesetting strategy, laying out the client page.
Optionally, building a plurality of page templates according to the component elements in the element library includes: if the adjustment operation of the target object on the target component element in the plurality of component elements is detected; adjusting the size of the target component element in response to the adjustment operation; and constructing a target page template according to the target component elements after the size adjustment.
Optionally, the display mode of the target page template is one of the following: fixed display, sliding display, automatic rolling display and ceiling display.
Optionally, generating a page layout policy according to the target information, including: determining each content module on a target page template in the target information; calculating data information of each content module, wherein the data information at least comprises: vertical or horizontal size, area size, starting coordinate position; and generating a page layout strategy according to the data information.
Optionally, after the layout of the client page is performed according to the page layout policy, the method further includes: if the target object is detected to update the selected target information, generating an updated page layout strategy according to the updated target information; and re-laying out the client page according to the updated page layout strategy.
Optionally, when there is an update in the target information, the update content includes one of: the sequence of the target page template, the size of the target page template, the content of the target page template and the display mode of the target page template. The devices herein may be servers, P C, PADs, cell phones, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring a component library edited by a webpage, wherein the component library comprises a plurality of component elements; constructing a plurality of page templates according to the component elements in the element library, wherein the page templates comprise at least one component element; acquiring target information selected by a target object, wherein the target information at least comprises one of the following items: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template; generating a page typesetting strategy according to the target information; and according to the page typesetting strategy, laying out the client page.
Optionally, building a plurality of page templates according to the component elements in the element library includes: if the adjustment operation of the target object on the target component element in the plurality of component elements is detected; adjusting the size of the target component element in response to the adjustment operation; and constructing a target page template according to the target component elements after the size adjustment.
Optionally, the display mode of the target page template is one of the following: fixed display, sliding display, automatic rolling display and ceiling display.
Optionally, generating a page layout policy according to the target information, including: determining each content module on a target page template in the target information; calculating data information of each content module, wherein the data information at least comprises: vertical or horizontal size, area size, starting coordinate position; and generating a page layout strategy according to the data information.
Optionally, after the layout of the client page is performed according to the page layout policy, the method further includes: if the target object is detected to update the selected target information, generating an updated page layout strategy according to the updated target information; and re-laying out the client page according to the updated page layout strategy.
Optionally, when there is an update in the target information, the update content includes one of: the sequence of the target page template, the size of the target page template, the content of the target page template and the display mode of the target page template.
It should be noted that the page layout processing method, the page layout processing apparatus, the storage medium, and the electronic device disclosed in the present application may be used in the financial field, and may also be used in any field other than the financial field.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, system-less auto-recommended page layouts, CD-ROMs, optical storage, etc.) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for processing page layout is characterized by comprising the following steps:
acquiring a component library edited by a webpage, wherein the component library comprises a plurality of component elements;
constructing a plurality of page templates according to the component elements in the element library, wherein the page templates comprise at least one component element;
acquiring target information selected by a target object, wherein the target information at least comprises one of the following items: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template;
generating a page typesetting strategy according to the target information;
and according to the page typesetting strategy, laying out the client page.
2. The method of claim 1, wherein building a plurality of page templates from component elements in the component library comprises:
if the adjustment operation of the target object on the target component element in the plurality of component elements is detected;
adjusting the size of the target component element in response to the adjustment operation;
and constructing a target page template according to the target component elements after the size adjustment.
3. The method of claim 1, wherein the target page template is presented in one of: fixed display, sliding display, automatic rolling display and ceiling display.
4. The method of claim 1, wherein generating a page layout policy based on the target information comprises:
determining each content module on a target page template in the target information;
calculating data information of each content module, wherein the data information at least comprises: vertical or horizontal size, area size, starting coordinate position;
and generating the page layout strategy according to the data information.
5. The method of claim 1, wherein after laying out the client page according to the page layout policy, the method further comprises:
if the target object is detected to update the selected target information, generating an updated page layout strategy according to the updated target information;
and re-laying out the client page according to the updated page layout strategy.
6. The method of claim 5, wherein when the target information is updated, the updated content comprises one of: the sequence of the target page template, the size of the target page template, the content of the target page template and the display mode of the target page template.
7. A page layout processing apparatus, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a component library edited by a webpage, and the component library comprises a plurality of component elements;
the first building unit is used for building a plurality of page templates according to the component elements in the component library, wherein the page templates comprise at least one component element;
a second obtaining unit, configured to obtain target information selected by a target object, where the target information includes at least one of: the style of the target page template, the number of the target page templates, the content of the target page template and the display mode of the target page template;
the first planning unit is used for generating a page typesetting strategy according to the target information;
and the first layout unit is used for laying out the client page according to the page typesetting strategy.
8. The apparatus of claim 7, further comprising:
a first detection unit configured to detect an adjustment operation of a target component element of the plurality of component elements by a target object;
an adjustment unit configured to adjust a size of the target component element in response to the adjustment operation;
and the third construction unit is used for constructing the target page template according to the target component elements after the size adjustment.
9. A computer-readable storage medium characterized in that the storage medium includes a stored program, wherein the program executes the processing method of a page layout according to any one of claims 1 to 6.
10. An electronic device comprising one or more processors and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of processing a page layout of any of claims 1 to 6.
CN202111335301.6A 2021-11-11 2021-11-11 Page layout processing method and device, storage medium and electronic equipment Pending CN113961184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335301.6A CN113961184A (en) 2021-11-11 2021-11-11 Page layout processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335301.6A CN113961184A (en) 2021-11-11 2021-11-11 Page layout processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113961184A true CN113961184A (en) 2022-01-21

Family

ID=79470238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335301.6A Pending CN113961184A (en) 2021-11-11 2021-11-11 Page layout processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113961184A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023155811A1 (en) * 2022-02-18 2023-08-24 维沃移动通信有限公司 Page layout adjustment method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023155811A1 (en) * 2022-02-18 2023-08-24 维沃移动通信有限公司 Page layout adjustment method and apparatus

Similar Documents

Publication Publication Date Title
EP3279866B1 (en) Method and apparatus for generating synthetic picture
CN110046303B (en) Information recommendation method and device based on demand matching platform
CN108460003B (en) Text data processing method and device
CN113961184A (en) Page layout processing method and device, storage medium and electronic equipment
CN113486280A (en) Page rendering display method, device, equipment, storage medium and program product
CN107977342A (en) A kind of document control methods and device
CN111796743A (en) Business process modeling method and system
CN110020291B (en) Webpage layout processing method and device
CN111291543B (en) Data display method and device, storage medium and processor
CN111209009B (en) Content distribution method and device, storage medium and electronic equipment
CN112036974A (en) Service commodity online method, device, equipment and storage medium
CN112560403A (en) Text processing method and device and electronic equipment
CN107391144B (en) View display method and device
CN108334251B (en) View multiplexing method and device
CN106681972A (en) Method and device for displaying table
CN113792237A (en) Card type layout optimization method and device, storage medium and processor
CN109582191B (en) Menu content display method and device
CN113792241A (en) Method and related device for overlaying and browsing DWG (discrete wavelet packet) file on Web map
CN112394868A (en) Method and device for positioning target information in webpage popup frame
CN105225034A (en) interaction processing method and device
CN111090825A (en) Dynamic customization method for webpage content
CN112800357A (en) Web page presenting method, device, equipment and storage medium
CN112579068A (en) Code generation method, device, storage medium and equipment
CN106610974B (en) Webpage photo wall generation method and device
CN110968758B (en) Webpage data crawling method and device

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