Template multi-page preview method and device, equipment and storage medium
By processing template data into sub-templates and loading them into page display controls using the view reuse mechanism, the problem of low template preview efficiency in terminal devices is solved, achieving efficient preview of multi-page templates and improving user experience.
Patent Information
- Application Number
- CN202410745979.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-24
AI Technical Summary
When users preview templates on the H5 page of the terminal device, they can usually only preview one template at a time, which results in inefficient template preview and affects the user experience.
By responding to the template preview command, the template data to be processed is processed into several sub-template data, and based on the view reuse mechanism, these sub-template data are loaded into the corresponding page display controls for display, thereby realizing multi-page preview of the template.
It realizes the display of multiple templates at the same time, improves the efficiency and user experience of template preview, and solves the problem of low template preview efficiency in the existing technology.
Smart Images

Figure CN118690093A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of template processing, and in particular to a template multi-page preview method, device, equipment and storage medium. Background Art
[0002] With the continuous development of the information age, people use mobile devices in more and more places, and at the same time, more and more applications use H5 (HyperText Markup Language 5, HTML5) pages in mobile devices. In the existing solution, when users preview templates in the H5 page of the terminal device, they can usually only preview one template at a time, resulting in low template preview efficiency and affecting user experience.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a template multi-page preview method, device, equipment and storage medium, aiming to solve the technical problem in the prior art that when a user previews a template in an H5 page of a terminal device, usually only one template can be previewed at a time, resulting in low template preview efficiency.
[0005] To achieve the above object, the present invention provides a template multi-page preview method, the template multi-page preview method comprising:
[0006] In response to the template preview instruction, the template data to be processed is processed into a plurality of sub-template data;
[0007] Based on the view reuse mechanism, the plurality of sub-template data are respectively loaded into the corresponding page display controls for display; the view reuse mechanism is used to perform page display by reusing the views of the pre-stored page display controls.
[0008] Optionally, the step of loading the plurality of sub-template data into corresponding page display controls for display based on a view reuse mechanism includes:
[0009] Reusing the page display control through the view reuse mechanism to display the page display control;
[0010] The plurality of sub-template data are loaded into the corresponding page display controls for display.
[0011] Optionally, the method further comprises:
[0012] When a template operation instruction triggered by a displayed template multi-page preview page is detected, an operation type corresponding to the template operation instruction is obtained;
[0013] The operation sub-template is processed according to the operation type.
[0014] Optionally, the operation type includes: a template switching operation; and the step of processing the sub-template to be operated according to the operation type includes:
[0015] If the operation type is the template switching operation, determining the sub-template to be switched in the sub-template to be operated according to the template operation instruction;
[0016] The currently displayed sub-template in the template editing page is switched to the sub-template to be switched.
[0017] Optionally, the operation type further includes: a template sorting operation; and the step of processing the sub-template to be operated according to the operation type includes:
[0018] If the operation type is the template sorting operation, determining the template arrangement order corresponding to the sub-template to be operated according to the template operation instruction;
[0019] The sub-templates to be operated are sorted according to the template arrangement order.
[0020] Optionally, the operation type further includes: a template adding operation and a template deleting operation; and the step of processing the sub-template to be operated according to the operation type includes:
[0021] If the operation type is the template adding operation, then determining the template adding area in the template multi-page preview page according to the template operation instruction, and adding a sub-template in the template adding area;
[0022] And / or, if the operation type is the template deletion operation, determining and deleting the sub-template to be deleted in the sub-template to be operated according to the template operation instruction.
[0023] Optionally, the operation type further includes: a template content editing operation; and the step of processing the sub-template to be operated according to the operation type includes:
[0024] If the operation type is the template content editing operation, determining the sub-template to be edited in the sub-template to be operated according to the template operation instruction;
[0025] The sub-template to be edited is displayed on the template editing page, and the content of the sub-template to be edited is edited according to the editing operation.
[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides a template multi-page preview device, the device comprising:
[0027] A data processing module, used for processing the template data to be processed into a plurality of sub-template data in response to the template preview instruction;
[0028] The template display module is used to load the plurality of sub-template data into the corresponding page display controls for display based on the view reuse mechanism; the view reuse mechanism is used to display the page by reusing the views of the pre-stored page display controls.
[0029] In addition, to achieve the above-mentioned purpose, the present invention also proposes a template multi-page preview device, which includes: a memory, a processor, and a template multi-page preview program stored in the memory and runnable on the processor, and the template multi-page preview program is configured to implement the steps of the template multi-page preview method described above.
[0030] In addition, to achieve the above purpose, the present invention also proposes a storage medium, on which a template multi-page preview program is stored, and when the template multi-page preview program is executed by a processor, the steps of the template multi-page preview method described above are implemented.
[0031] In the present invention, it is disclosed that in response to a template preview instruction, the template data to be processed is processed into a plurality of sub-template data; based on a view reuse mechanism, the plurality of sub-template data are respectively loaded into corresponding page display controls for display; the view reuse mechanism is used to perform page display by reusing the views of pre-stored page display controls; since the present invention loads a plurality of sub-template data corresponding to the template data to be processed into corresponding page display controls for display based on the view reuse mechanism, multiple sub-templates can be displayed at the same time, thereby solving the technical problem in the prior art that when a user previews a template in an H5 page of a terminal device, usually only one template can be previewed at a time, resulting in low efficiency of template preview, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of the structure of a template multi-page preview device in a hardware operating environment according to an embodiment of the present invention;
[0033] Figure 2 It is a flowchart of a first embodiment of a template multi-page preview method of the present invention;
[0034] Figure 3 It is a flow chart of a second embodiment of the template multi-page preview method of the present invention;
[0035] Figure 4 This is a page display diagram in the second embodiment of the template multi-page preview method of the present invention;
[0036] Figure 5This is a display diagram of previewing a multi-page template in the second embodiment of the template multi-page preview method of the present invention;
[0037] Figure 6 It is a schematic diagram of the flow of template sorting in the second embodiment of the template multi-page preview method of the present invention;
[0038] Figure 7 It is a schematic diagram of the process of template processing in the template multi-page preview method of the present invention;
[0039] Figure 8 It is a structural block diagram of the first embodiment of the template multi-page preview device of the present invention.
[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0042] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of a template multi-page preview device structure in a hardware operating environment according to an embodiment of the present invention.
[0043] like Figure 1 As shown, the template multi-page preview device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0044] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the template multi-page preview device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0045] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a template multi-page preview program.
[0046] exist Figure 1 In the template multi-page preview device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the template multi-page preview device of the present invention can be set in the template multi-page preview device, and the template multi-page preview device calls the template multi-page preview program stored in the memory 1005 through the processor 1001, and executes the template multi-page preview method provided by the embodiment of the present invention.
[0047] The embodiment of the present invention provides a template multi-page preview method, referring to Figure 2 , Figure 2 Schematic diagram of the flow of the first embodiment of the template multi-page preview method of the present invention.
[0048] In this embodiment, the template multi-page preview method includes the following steps:
[0049] Step S10: In response to the template preview instruction, the template data to be processed is processed into a plurality of sub-template data.
[0050] It should be noted that the execution subject of the method of this embodiment can be a terminal device with data processing and template display functions, such as a mobile phone, a tablet, etc., or other electronic devices that can achieve the same or similar functions, and this embodiment does not limit this. Here, the template multi-page preview method provided in this embodiment and the following embodiments is specifically described using a terminal device.
[0051] It should be noted that the template preview instruction may be an instruction for instructing the terminal device to perform a template multi-page preview. In this embodiment, the user may trigger the template preview instruction by clicking the template multi-page preview control in the terminal device, and the terminal device may respond to the template preview instruction when detecting the template multi-page preview instruction.
[0052] It should be understood that the above-mentioned template data to be processed can be all template data that needs to be displayed in the H5 page of the terminal device; correspondingly, the sub-template data is the template data corresponding to multiple sub-templates. In actual applications, the terminal device can process all template data in the H5 page into template data corresponding to multiple sub-templates. Among them, the template data in this embodiment may include text, pictures, format and color of text and pictures in the template, etc., which is not limited in this embodiment.
[0053] Step S20: Based on the view reuse mechanism, the plurality of sub-template data are loaded into corresponding page display controls for display.
[0054] The view reuse mechanism is used to perform page display by reusing the views of pre-stored page display controls.
[0055] It should be noted that the above view reuse mechanism may be a mechanism for reusing views in a terminal device. In this embodiment, when a list item in the terminal device is moved out of the screen, the view reuse mechanism does not destroy its view, but caches it to provide it for reuse by a list item that has just entered the screen, thereby avoiding the repeated creation of unnecessary views, thereby improving device performance, enhancing application responsiveness, and reducing power consumption.
[0056] It can be understood that in this embodiment, the view reuse mechanism can be determined according to the device system type, wherein the device system type is the system type corresponding to the terminal device. In this embodiment, the device system type can include but is not limited to iOS system, Android system, etc.
[0057] In this embodiment, for terminal devices of the iOS system, the corresponding view reuse mechanism may be a UICollectionView reuse mechanism; for terminal devices of the Android system, the corresponding view reuse mechanism may be a RecyclerView reuse mechanism, which is not limited in this embodiment.
[0058] It should be noted that the above page display control can be a control for displaying a page of a terminal device. In this embodiment, for a terminal device of an iOS system, its page display control can be WKWebView; for a terminal device of an Android system, its page display control can be WebView. Among them, WKWebView is an iOS browsing control for loading web pages; Webview is an engine based on webkit for displaying html pages.
[0059] Specifically, the step S30 includes: reusing the page display control through the view reuse mechanism to display the page display control; and loading the plurality of sub-template data into the corresponding page display control for display.
[0060] In the specific implementation, the terminal device can reuse each page display control through the corresponding view reuse mechanism to display the page display control, and load the sub-template data into the corresponding page display control respectively to display the sub-template data in the page display control, so that all sub-template data can be displayed, and the template multi-page preview is realized. Specifically, for terminal devices of iOS system, the WKWebView control can be displayed through the UICollectionView reuse mechanism, and each template data can be loaded into the corresponding WKWebView for display; for terminal devices of Android system, each sub-WebView control can be reused through RecyclerView, and each template data can be loaded into the corresponding sub-WebView for display.
[0061] The present embodiment discloses that in response to a template preview instruction, the template data to be processed is processed into a plurality of sub-template data; based on a view reuse mechanism, the plurality of sub-template data are respectively loaded into corresponding page display controls for display; the view reuse mechanism is used to perform page display by reusing the view of a pre-stored page display control; since the present embodiment loads a plurality of sub-template data corresponding to the template data to be processed into corresponding page display controls for display based on the view reuse mechanism, multiple sub-templates can be displayed at the same time, thereby solving the technical problem in the prior art that when a user previews a template in an H5 page of a terminal device, usually only one template can be previewed at a time, resulting in low efficiency of template preview, thereby improving user experience.
[0062] refer to Figure 3 , Figure 3 Schematic diagram of the flow of the second embodiment of the template multi-page preview method of the present invention.
[0063] Based on the above first embodiment, in order to implement the user's personalized operation on the template in the page, in this embodiment, the method further includes:
[0064] Step S40: when a template operation instruction triggered by a displayed template multi-page preview page is detected, an operation type corresponding to the template operation instruction is obtained.
[0065] It should be noted that the above-mentioned template multi-page preview page can be a page used to display the template in the terminal device.
[0066] It should be understood that the above-mentioned template operation instructions can be instructions for instructing the terminal device to operate the template in the page; accordingly, the above-mentioned operation type is the type of operation performed by the user on the template. In this embodiment, the operation type may include but is not limited to template switching operations, template sorting operations, template adding operations, template deleting operations and template content editing operations.
[0067] Step S50: Processing the operation sub-template according to the operation type.
[0068] It is understandable that the sub-templates to be operated may be all the sub-templates displayed in the template multi-page preview page.
[0069] Further, the operation type includes: template switching operation; the step S50 includes: if the operation type is the template switching operation, determining the sub-template to be switched in the sub-template to be operated according to the template operation instruction; switching the currently displayed sub-template in the template editing page to the sub-template to be switched.
[0070] It should be understood that the above template switching operation may be an operation of switching the template displayed in the template editing page in the terminal device, wherein the template editing page may be a page in the terminal device for editing elements such as pictures and texts in the model.
[0071] It is understandable that the above-mentioned sub-template to be switched can be a sub-template that the user wants to be displayed in the template editing page, or a sub-template that the user currently needs to edit. Correspondingly, the above-mentioned currently displayed sub-template is the sub-template currently displayed in the template editing page. Among them, if the sub-template is not currently displayed in the template editing page, the terminal device can directly display the sub-template to be switched in the template editing page. In this embodiment, the user can trigger the template operation instruction by clicking on any sub-template in the template multi-page preview page. At this time, the sub-template clicked by the user is the above-mentioned sub-template to be switched. When the terminal device detects the template operation instruction and the operation type of the template operation instruction is a template switching operation, the template operation instruction can be parsed to determine the sub-template to be switched clicked by the user, and the sub-template currently displayed in the template editing page is switched to the sub-template to be switched.
[0072] In the specific implementation, refer to Figure 4 , Figure 4 This is a page display diagram in the second embodiment of the template multi-page preview method of the present invention. Figure 4 As shown, if the page currently displayed on the terminal device is a template editing page, you can click the template multi-page preview control (i.e. Figure 4The control corresponding to the number "1" in the figure, where the number "1" indicates that the template is currently being edited. 1) Enter the template multi-page preview page, where several sub-templates are displayed in the template multi-page preview page, such as templates 1-6 in the figure, thereby realizing multi-page preview of the template. Then, the user can operate any sub-template in the template multi-page preview page to trigger the template operation instruction. Specifically, if the user needs to edit a sub-template in the template multi-page preview page, the template operation instruction can be triggered by clicking on the template. At this time, the operation type corresponding to the template operation instruction is a template switching operation. Then, the system can determine the sub-template clicked by the user based on the template operation instruction, and jump to the template editing page. At the same time, the sub-template clicked by the user is displayed in the drawing board of the template editing page, thereby realizing template switching.
[0073] Specifically, refer to Figure 5 , Figure 5 This is a display diagram of previewing a multi-page template in the second embodiment of the template multi-page preview method of the present invention. Figure 5 As shown, Figure 5 The image on the left is the template editing page of the terminal device, and the image on the right is the template multi-page preview page of the terminal device. If the user needs to preview the template on multiple pages, he can click the template multi-page preview control "1" to switch the page of the terminal device to the template multi-page preview page on the right. Among them, the template multi-page preview page displays six sub-templates, and the user can perform corresponding operations on these six sub-templates.
[0074] Furthermore, the operation type also includes: template sorting operation; the step S50 also includes: if the operation type is the template sorting operation, determining the template arrangement order corresponding to the sub-template to be operated according to the template operation instruction; and sorting the sub-template to be operated according to the template arrangement order.
[0075] It should be noted that the template sorting operation can be an operation of sorting all sub-templates displayed in the template multi-page preview page. Correspondingly, the template arrangement order is the order of all sub-templates displayed in the template multi-page preview page.
[0076] In this embodiment, if the user needs to sort the sub-templates in the template multi-page preview page, the user can trigger the sorting function by long pressing the sub-template to be operated in the template multi-page preview page, and drag the sub-template to be sorted to sort the sub-templates. Specifically, when the user long presses the sub-template, the template operation instruction can be triggered, and the operation type corresponding to the template operation instruction at this time is the template sorting operation. Then, the terminal device can determine the sub-template dragged by the user and the final location of the sub-template by parsing the template operation instruction, that is, it can determine the template arrangement order corresponding to each sub-template to be operated in the template multi-page preview page, and sort the sub-templates to be operated according to the template arrangement order.
[0077] Specifically, refer to Figure 6 , Figure 6 Schematic diagram of the flow of template sorting in the second embodiment of the template multi-page preview method of the present invention. Figure 6 As shown, if there are currently two sub-templates to be operated in the template multi-page preview page of the terminal device, such as Template 1 and Template 2 in the figure, if the user wants to put Template 2 in front of Template 1, the user can long press Template 2 and drag Template 2 to the front of Template 1 to trigger the template operation instruction. After detecting the template operation instruction, the terminal device can determine the operation type of the template operation instruction as a template sorting operation, and determine the template arrangement order as Template 2 and Template 1 according to the template operation instruction. Then, Template 1 and Template 2 can be sorted according to the template arrangement order, and at this time, Template 2 can be placed in front of Template 1.
[0078] Furthermore, the operation type also includes: template adding operation and template deleting operation; the step S50 also includes: if the operation type is the template adding operation, determining the template adding area in the template multi-page preview page according to the template operation instruction, and adding a sub-template in the template adding area; and / or, if the operation type is the template deleting operation, determining and deleting the sub-template to be deleted in the sub-template to be operated according to the template operation instruction.
[0079] It should be noted that the above template adding operation may be an operation of adding a sub-template in the template multi-page preview page; correspondingly, the above template deleting operation may be an operation of deleting a sub-template in the template multi-page preview page.
[0080] It is understandable that the above template newly added area can be an area where the newly added sub-template is placed. In this embodiment, if the user needs to add a sub-template in the template multi-page preview page, he can click the appropriate position in the template multi-page preview page (such as Figure 5 and Figure 6The “+” area) triggers the template operation instruction, so that the terminal device can add a sub-template in the template new area clicked by the user according to the template operation instruction.
[0081] It should be understood that the sub-template to be deleted may be a sub-template that the user needs to delete in the template multi-page display page.
[0082] In this embodiment, the user can click the delete control (such as Figure 5 and Figure 6 The “×” position in the upper right corner of the sub-template) triggers the template operation instruction. After detecting the template operation instruction, the terminal device can determine the instruction type corresponding to the template operation instruction as a template deletion operation, and then parse the template operation instruction to determine the sub-template that the user needs to delete, and delete the sub-template to be deleted.
[0083] Furthermore, the operation type also includes: template content editing operation; the step S50 also includes: if the operation type is the template content editing operation, determining the sub-template to be edited in the sub-template to be operated according to the template operation instruction; displaying the sub-template to be edited on the template editing page, and editing the content of the sub-template to be edited according to the editing operation.
[0084] It should be noted that the template content editing operation may be an operation of editing elements such as pictures and texts in a sub-template. The sub-template to be edited may be a sub-template that a user needs to edit in a template multi-page preview page.
[0085] In this embodiment, if the system needs to edit a sub-template in the template multi-page preview page, it can switch the sub-template displayed in the template editing page to the sub-template to be edited by clicking on the sub-template to be edited, and then the user can edit the sub-template to be edited in the template editing page. At this time, the terminal device can edit the content of the sub-template to be edited according to the user's editing operation.
[0086] In the specific implementation, refer to Figure 7 , Figure 7 Schematic diagram of the process of template processing in the template multi-page preview method of the present invention. Figure 7As shown, after entering the H5 page, the terminal device can process the template data into sub-template data corresponding to several sub-templates, and load the sub-template data into the corresponding page display control for display according to the view reuse mechanism. Then, the terminal device can detect the template operation instruction in real time to determine whether it is necessary to perform corresponding operations on the sub-template to be operated in the template multi-page preview page (such as adding / deleting sub-template operations). If necessary, a reusable cell can be created to operate the sub-template through the reusable cell. When the operation is completed, the terminal device can update the data source and refresh the view to show the user the updated template multi-page preview page and template editing page, as well as the updated sub-template in the template multi-page preview page and template editing page.
[0087] When the present embodiment detects a template operation instruction triggered by a multi-page preview page of a displayed template, the operation type corresponding to the template operation instruction is obtained, and the sub-template to be operated is processed according to the operation type, so that the user can realize personalized operation of the template in the page, and the user experience is improved. Among them, if the operation type corresponding to the template operation instruction is a template switching operation, the sub-template to be switched in the sub-template to be operated is determined according to the template operation instruction, and the current displayed sub-template in the template editing page is switched to the sub-template to be switched, so that the template displayed in the template editing page can be quickly switched to the specified template, and the flexibility of template switching is improved. If the operation type corresponding to the template operation instruction is a template sorting operation, the template arrangement order corresponding to the sub-template to be operated is determined according to the template operation instruction, and the sub-template to be operated is sorted according to the template arrangement order, so that the template can be quickly sorted, and the flexibility of template display is improved.
[0088] In addition, an embodiment of the present invention further provides a storage medium, on which a template multi-page preview program is stored. When the template multi-page preview program is executed by a processor, the steps of the template multi-page preview method described above are implemented.
[0089] Reference Figure 8 , Figure 8 It is a structural block diagram of the first embodiment of the template multi-page preview device of the present invention.
[0090] like Figure 8 As shown, the template multi-page preview device proposed in the embodiment of the present invention includes:
[0091] The data processing module 801 is used to process the template data to be processed into a plurality of sub-template data in response to the template preview instruction;
[0092] The template display module 802 is used to load the plurality of sub-template data into corresponding page display controls for display based on a view reuse mechanism; the view reuse mechanism is used to perform page display by reusing the views of pre-stored page display controls.
[0093] Furthermore, the template display module 802 is also used to reuse the page display control through the view reuse mechanism to display the page display control; and load the plurality of sub-template data into the corresponding page display control for display.
[0094] The template multi-page preview device of the present embodiment discloses that in response to a template preview instruction, the template data to be processed is processed into a plurality of sub-template data; based on a view reuse mechanism, the plurality of sub-template data are respectively loaded into corresponding page display controls for display; since the present embodiment loads a plurality of sub-template data corresponding to the template data to be processed into corresponding page display controls for display based on a view reuse mechanism, multiple sub-templates can be displayed at the same time, thereby solving the technical problem in the prior art that when a user previews a template in an H5 page of a terminal device, usually only one template can be previewed at a time, resulting in low efficiency of template preview, thereby improving user experience.
[0095] Based on the first embodiment of the template multi-page preview device of the present invention, a second embodiment of the template multi-page preview device of the present invention is proposed.
[0096] In this embodiment, the template multi-page preview device further includes: a template processing module;
[0097] The template processing module is used to obtain the operation type corresponding to the template operation instruction when detecting the template operation instruction triggered by the displayed template multi-page preview page; and process the sub-template to be operated according to the operation type.
[0098] Furthermore, the operation type includes: template switching operation; the template processing module is also used to determine the sub-template to be switched in the sub-template to be operated according to the template operation instruction if the operation type is the template switching operation; and switch the currently displayed sub-template in the template editing page to the sub-template to be switched.
[0099] Furthermore, the operation type also includes: a template sorting operation; the template processing module is also used to determine the template arrangement order corresponding to the sub-template to be operated according to the template operation instruction if the operation type is the template sorting operation; and sort the sub-template to be operated according to the template arrangement order.
[0100] Furthermore, the operation types also include: template adding operation and template deleting operation; the template processing module is also used to determine the template adding area in the template multi-page preview page according to the template operation instruction if the operation type is the template adding operation, and add a sub-template in the template adding area if the operation type is the template deleting operation; and / or, if the operation type is the template deleting operation, determine and delete the sub-template to be deleted in the sub-template to be operated according to the template operation instruction.
[0101] Furthermore, the operation type also includes: template content editing operation; the template processing module is also used to determine the sub-template to be edited in the sub-template to be operated according to the template operation instruction if the operation type is the template content editing operation; display the sub-template to be edited on the template editing page, and edit the content of the sub-template to be edited according to the editing operation.
[0102] When the present embodiment detects a template operation instruction triggered by a multi-page preview page of a displayed template, the operation type corresponding to the template operation instruction is obtained, and the sub-template to be operated is processed according to the operation type, so that the user can realize personalized operation of the template in the page, and the user experience is improved. Among them, if the operation type corresponding to the template operation instruction is a template switching operation, the sub-template to be switched in the sub-template to be operated is determined according to the template operation instruction, and the current displayed sub-template in the template editing page is switched to the sub-template to be switched, so that the template displayed in the template editing page can be quickly switched to the specified template, and the flexibility of template switching is improved. If the operation type corresponding to the template operation instruction is a template sorting operation, the template arrangement order corresponding to the sub-template to be operated is determined according to the template operation instruction, and the sub-template to be operated is sorted according to the template arrangement order, so that the template can be quickly sorted, and the flexibility of template display is improved.
[0103] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0104] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0106] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A template multi-page preview method, It is characterized in that The template multi-page preview method comprises: In response to the template preview instruction, the template data to be processed is processed into a plurality of sub-template data; Based on the view reuse mechanism, the plurality of sub-template data are respectively loaded into the corresponding page display controls for display; the view reuse mechanism is used to perform page display by reusing the views of the pre-stored page display controls.
2. The template multi-page preview method as claimed in claim 1, It is characterized in that The step of loading the plurality of sub-template data into corresponding page display controls for display based on the view reuse mechanism includes: Reusing the page display control through the view reuse mechanism to display the page display control; The plurality of sub-template data are loaded into the corresponding page display controls for display.
3. The template multi-page preview method according to claim 1, It is characterized in that The method further comprises: When a template operation instruction triggered by a displayed template multi-page preview page is detected, an operation type corresponding to the template operation instruction is obtained; The operation sub-template is processed according to the operation type.
4. The template multi-page preview method as claimed in claim 3, It is characterized in that The operation type includes: a template switching operation; the step of processing the sub-template to be operated according to the operation type includes: If the operation type is the template switching operation, determining the sub-template to be switched in the sub-template to be operated according to the template operation instruction; The currently displayed sub-template in the template editing page is switched to the sub-template to be switched.
5. The template multi-page preview method as claimed in claim 3, It is characterized in that The operation type also includes: a template sorting operation; the step of processing the sub-template to be operated according to the operation type includes: If the operation type is the template sorting operation, determining the template arrangement order corresponding to the sub-template to be operated according to the template operation instruction; The sub-templates to be operated are sorted according to the template arrangement order.
6. The template multi-page preview method as claimed in claim 3, It is characterized in that The operation type also includes: template adding operation and template deleting operation; the step of processing the sub-template to be operated according to the operation type includes: If the operation type is the template adding operation, determining a template adding area in the template multi-page preview page according to the template operation instruction, and adding a sub-template in the template adding area; And / or, if the operation type is the template deletion operation, determining and deleting the sub-template to be deleted in the sub-template to be operated according to the template operation instruction.
7. The template multi-page preview method as claimed in claim 3, It is characterized in that The operation type also includes: template content editing operation; the step of processing the sub-template to be operated according to the operation type includes: If the operation type is the template content editing operation, determining the sub-template to be edited in the sub-template to be operated according to the template operation instruction; The sub-template to be edited is displayed on the template editing page, and the content of the sub-template to be edited is edited according to the editing operation.
8. A template multi-page preview device, It is characterized in that The device comprises: A data processing module, used for processing the template data to be processed into a plurality of sub-template data in response to the template preview instruction; The template display module is used to load the plurality of sub-template data into the corresponding page display controls for display based on the view reuse mechanism; the view reuse mechanism is used to display the page by reusing the views of the pre-stored page display controls.
9. A template multi-page preview device, It is characterized in that The device comprises: a memory, a processor, and a template multi-page preview program stored in the memory and executable on the processor, wherein the template multi-page preview program is configured to implement the steps of the template multi-page preview method as described in any one of claims 1 to 7.
10. A storage medium, It is characterized in that The storage medium stores a template multi-page preview program, and when the template multi-page preview program is executed by the processor, the steps of the template multi-page preview method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
View reusing method and device
CN108334251A
Picture browsing method and device
CN112948728A
Page preview method, related device and equipment
CN113779465A
Electronic license template manufacturing system and method
CN114254241A
Big data-based index page processing method and device and storage medium
CN115393081A
