CN111651696A - Product label customizing method and device, computer storage medium and electronic equipment - Google Patents

Product label customizing method and device, computer storage medium and electronic equipment Download PDF

Info

Publication number
CN111651696A
CN111651696A CN202010477860.XA CN202010477860A CN111651696A CN 111651696 A CN111651696 A CN 111651696A CN 202010477860 A CN202010477860 A CN 202010477860A CN 111651696 A CN111651696 A CN 111651696A
Authority
CN
China
Prior art keywords
tag
label
page
container
configuration information
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.)
Granted
Application number
CN202010477860.XA
Other languages
Chinese (zh)
Other versions
CN111651696B (en
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.)
Taikang Insurance Group Co Ltd
Taikang Pension Insurance Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Taikang Pension Insurance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taikang Insurance Group Co Ltd, Taikang Pension Insurance Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN202010477860.XA priority Critical patent/CN111651696B/en
Publication of CN111651696A publication Critical patent/CN111651696A/en
Application granted granted Critical
Publication of CN111651696B publication Critical patent/CN111651696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to the technical field of computers, and provides a product label customizing method, a product label customizing device, a computer storage medium and an electronic device, wherein the product label customizing method comprises the following steps: determining customized parameters of a product label according to the service requirements of a user; generating label configuration information according to the customization parameters, and converting the label configuration information into a target file format; creating a page label container, and configuring a display style of the page label container based on a cascading style sheet; and filling the tag configuration information in the target file format into a page tag container to obtain the customized tag. The product label customizing method disclosed by the disclosure not only can meet the customizing requirement of a user, but also can improve the customizing efficiency of the product label.

Description

Product label customizing method and device, computer storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for customizing a product tag, a computer storage medium, and an electronic device.
Background
With the rapid development of computer and internet technologies, it is often involved to present different types of labels according to different services. Therefore, in practical applications, how to implement quick and flexible customization of tags while completing production and delivery processes at low cost becomes a focus of attention of related developers.
At present, the development process of the traditional tag generally outputs the tag according to a pre-written development file with a fixed mode. Therefore, if the labels are added, removed or modified, the overall development and testing process is changed, and thus, the workload is high, the lead time is too long, and the customization requirements of related services cannot be met.
In view of the above, there is a need in the art to develop a new method and apparatus for customizing a product tag.
It is to be noted that the information disclosed in the background section above is only used to enhance understanding of the background of the present disclosure.
Disclosure of Invention
The present disclosure is directed to a method for customizing a product label, a device for customizing a product label, a computer storage medium, and an electronic device, so as to at least avoid a defect that a label in the prior art cannot meet a user customization requirement to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a method of customizing a product label, comprising: determining customized parameters of a product label according to the service requirements of a user; generating label configuration information according to the customization parameters, and converting the label configuration information into a target file format; creating a page label container, and configuring a display style of the page label container based on a cascading style sheet; and filling the tag configuration information in the target file format into the page tag container to obtain a customized tag.
In an exemplary embodiment of the present disclosure, the determining the customized parameters of the product tag according to the business requirements of the user includes: acquiring a label characteristic corresponding to the user service requirement; determining customized parameters corresponding to the tag features based on a pre-established data dictionary; the data dictionary is a data linked list for storing the mapping relation between the label features and the customization parameters.
In an exemplary embodiment of the present disclosure, the generating tag configuration information according to the customization parameters includes: acquiring configurable parameters contained in a standard configuration file; and changing the configurable parameters according to the customized parameters to obtain the tag configuration information.
In an exemplary embodiment of the present disclosure, the configurable parameters include at least one of: a parameter of placement position, a parameter of background color, and a parameter of character weight.
In an exemplary embodiment of the present disclosure, after generating tag configuration information according to the customization parameters, the method further includes: acquiring the data volume of the tag configuration information; and if the data volume of the tag configuration information is larger than the capacity of the page tag container, performing data compression processing on the tag configuration information.
In an exemplary embodiment of the present disclosure, the method further comprises: acquiring attribute information of the product, and acquiring the number of characters which can be contained in the page label container; extracting target attribute information from the attribute information of the product according to the number of the characters; the number of characters of the target attribute information is equal to the number of characters which can be contained in the page label container; and performing natural language processing on the target attribute information, and determining the target attribute information after the natural language processing as the tag content of the customized tag.
In an exemplary embodiment of the present disclosure, the method further comprises: comparing the length of the tag content with the length of the page tag container to determine whether the tag content can be filled into the page tag container in a single line; if yes, filling the label content into the page label container in a single line form; and if not, filling the label content into the page label container in a multi-line form according to a line breaking mode meeting the semantic line breaking standard.
According to a second aspect of the present disclosure, there is provided an apparatus for customizing a product tag, comprising: the acquisition module is used for determining the customized parameters of the product label according to the service requirements of the user; the generating module is used for generating label configuration information according to the customized parameters and converting the label configuration information into a target file format; the system comprises a creating module, a display module and a display module, wherein the creating module is used for creating a page label container and configuring the display style of the page label container based on a cascading style sheet; and the customizing module is used for filling the tag configuration information in the target file format into the page tag container to obtain a customized tag.
According to a third aspect of the present disclosure, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method of customizing a product label of the first aspect described above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of customizing a product label of the first aspect via execution of the executable instructions.
According to the technical scheme, the product label customizing method, the product label customizing device, the computer storage medium and the electronic device in the exemplary embodiment of the disclosure have at least the following advantages and positive effects:
in the technical solutions provided in some embodiments of the present disclosure, on one hand, a customization parameter of a product tag is determined according to a user service requirement, tag configuration information is generated according to the customization parameter, and the tag configuration information is converted into a target file format, so that a technical problem that a tag in the prior art cannot be customized in real time according to the user service requirement can be solved. Furthermore, a page label container is created, and the display style of the page label container is configured based on the cascading style sheet, so that the interestingness of page display can be increased, the file opening speed can be increased, the operation is simplified, and the obstacle of information communication among different computers is eliminated. On the other hand, the tag configuration information of the target file format is filled into the page tag container to obtain the customized tag, so that the technical problems of large workload and low efficiency caused by the need of adding, deleting and changing the tag in the prior art can be solved, and the customization efficiency of the product tag is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a schematic diagram illustrating a development flow of tags in the related art;
FIG. 2 illustrates a flow diagram of a method for customizing a product label in an exemplary embodiment of the present disclosure;
FIG. 3 illustrates an overall flow diagram of a method for customizing a product label in an exemplary embodiment of the present disclosure;
FIG. 4 shows a schematic structural diagram of an apparatus for customizing a product label in an exemplary embodiment of the present disclosure;
FIG. 5 shows a schematic diagram of a computer storage medium in an exemplary embodiment of the disclosure;
fig. 6 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
Now, referring to fig. 1, fig. 1 shows a schematic diagram of a development flow of a tag in the related art, which includes steps S101 to S103, and the following explains a specific embodiment with reference to fig. 1:
in step S101, according to the service requirement, completing HTML (HyperText Mark-Up language, HyperText markup language or HyperText markup language, abbreviated as HTML) structure construction of one or more tags; in step S102, writing a CSS Style (CSS, Cascading Style Sheets for short) of a tag according to a service requirement, which mainly includes a tag placement position and a tag appearance; in step S103, the compatibility of the tag in each browser is tested, and the online release of the test is completed. Therefore, the label is output according to the pre-written development file and the development process, and if the label needs to be added, removed or modified, the change of the whole development process needs to be involved, so that the workload is large, the lead time is too long, and the customization requirements of users cannot be met.
In the embodiments of the present disclosure, a method for customizing a product tag is provided first, which overcomes, at least to some extent, a defect that a method for customizing a product tag provided in the prior art cannot meet a user customization requirement.
Fig. 2 is a flowchart illustrating a method for customizing a product tag according to an exemplary embodiment of the present disclosure, where an execution subject of the method for customizing a product tag may be a server that performs a customization process on the tag.
Referring to fig. 2, a method of customizing a product tag according to one embodiment of the present disclosure includes the steps of:
step S210, determining customized parameters of the product label according to the service requirements of the user;
step S220, generating label configuration information according to the customized parameters, and converting the label configuration information into a target file format;
step S230, creating a page label container, and configuring the display style of the page label container based on the cascading style sheet;
step S240, the tag configuration information in the target file format is filled into the page tag container, so as to obtain the customized tag.
In the technical solution provided in the embodiment shown in fig. 2, on one hand, according to the user service requirement, the customization parameters of the product tag are determined, the tag configuration information is generated according to the customization parameters, and the tag configuration information is converted into the target file format, so that the technical problem that the tag in the prior art cannot be customized in real time according to the user service requirement can be solved. Furthermore, a page label container is created, and the display style of the page label container is configured based on the cascading style sheet, so that the interestingness of page display can be increased, the file opening speed can be increased, the operation is simplified, and the obstacle of information communication among different computers is eliminated. On the other hand, the tag configuration information of the target file format is filled into the page tag container to obtain the customized tag, so that the technical problems of large workload and low efficiency caused by the need of adding, deleting and modifying the tag in the prior art can be solved, and the customization efficiency of the product tag is improved.
The following describes the specific implementation process of each step in fig. 2 in detail:
in an exemplary embodiment of the present disclosure, a product tag is an identifier used to mark product content or product category, and is a tool for conveniently searching and locating products, like a keyword corresponding to a product.
Illustratively, a data dictionary may be created in advance. A data dictionary is a collection of descriptions of data objects or items, which is essentially a database that embodies the relationships between data objects and other objects, and in a banking application scenario, for example, an "account holder" and the "available credit" corresponding to the account holder may be stored in the data dictionary. By creating the data dictionary, different types of product labels can correspond to independent development processes, and the data dictionary can be changed at any time along with the change of user service requirements. The corresponding customized label can be quickly generated only by inquiring the parameters corresponding to the customized requirements of each user from the data dictionary and completing the change of the standard configuration file, so that the development and test investment is saved.
For example, the data dictionary in the present disclosure may be a data linked list storing mapping relationships between tag features and customization parameters, where different tag features correspond to different customization parameters. Exemplarily, reference may be made to table 1.
TABLE 1
Figure BDA0002516384210000061
Referring to table 1, the tag characteristics may include attributes of "red, green, blue, bold … …", and the like. Different label characteristics correspond different identification numbers, so that different label characteristics can be distinguished according to the identification numbers, and the data acquisition efficiency is improved.
Obviously, the label features "red, green and blue" are of the same type and are all "background" (indicating the background color of the label). The tag features are of the same type, i.e., "font weight" (indicating the word weight of the tag). The tag features are of the same type "left, centered, right" and are all "positions" (indicating the location of the tag).
Different tag features correspond to different customization parameters (i.e. different parameter codes of the tag features in the programming language), for example, the customization parameter corresponding to the tag feature "red" is "# ff 0000", and the customization parameter corresponding to the tag feature "LEFT" is "LEFT".
It should be noted that, the specific numerical values or codes of the identification number, the type, the customized parameter and the tag feature may be set according to actual situations, and belong to the protection scope of the present disclosure.
With continued reference to fig. 2, in step S210, the customized parameters of the product label are determined according to the business requirements of the user.
After the data dictionary is created, the customized parameters of the product label can be determined according to the business requirements of the user. Specifically, the tag characteristics corresponding to the user service requirements may be obtained first, and then, the data dictionary may be queried to determine the customized parameters corresponding to the tag characteristics.
The user service requirements are the display requirements of the user for the product labels, and different display requirements correspond to different customization parameters. Illustratively, the user traffic demand may be: "the label background is green, the label font is bolded and the label position is left". It should be noted that the user service requirement may be set according to the actual situation, and this disclosure does not make any special limitation on this.
Further, it may be determined that the tag feature corresponding to the user service requirement is "green, bold, LEFT", and further, the data dictionary may be queried to determine that the customized parameter corresponding to the tag feature "green" is "# 00ff 00", the customized parameter corresponding to the tag feature "bold" is "TRUE", and the customized parameter corresponding to the tag feature "LEFT" is "LEFT".
In step S220, tag configuration information is generated according to the customization parameters, and the tag configuration information is converted into a target file format.
In an exemplary embodiment of the present disclosure, after the customized parameter is obtained, the standard configuration file may be modified according to the customized parameter, so as to obtain the tag configuration information. The tag configuration information is a configuration file obtained after configurable parameters in a standard configuration file are changed. Specifically, the configurable parameters in the standard configuration file may be changed according to the customized parameters to obtain tag configuration information.
The standard configuration file may be some general or statistical tag types that most users tend to select, which may include specific display contents of the product tag and configurable parameters in the product tag, and specifically, the contents included in the standard configuration file may refer to the following code segments:
{
"content": "a brand new product",
“fontweight”:“FALSE”,
“background”:“#ff0000”,
“position”:“RIGHT”,
}
referring to the above code segment, "content" denotes product tag content. It should be noted that the attribute information of the product can be obtained, and the number of characters that can be contained in the page label container can be obtained; extracting target attribute information from the attribute information of the product according to the number of the characters; the number of characters of the target attribute information is equal to the number of characters which can be contained in the page label container; and performing natural language processing on the target attribute information, and determining the target attribute information after the natural language processing as the tag content of the customized tag. For example, when the attribute information of the product is: the extracted target attribute information can be ' a low-risk and high-cost performance product with guarantee ', and further can be subjected to natural language processing to improve readability, for example, the processed target attribute information can be ' a low-risk and high-cost performance product with guarantee ', when the number of characters which can be contained in a page label container is 15 characters '. Therefore, the readability of the label content of the customized label can be improved, and the sentence is smooth and clear at a glance.
After the tag content is obtained, the length of the tag content may be compared with the length of the page tag container to determine whether the tag content can be filled into the page tag container in a single line, and further, when the length of the tag content is less than or equal to the length of the page tag container, the tag content may be filled into the page tag container in a single line. When the length of the tag content is greater than that of the page tag container, the tag content can be filled into the page tag container in a multi-line form according to a line break mode meeting the semantic line break standard, for example, when the length of the page tag container is 10 words and the tag content is a ' high cost performance and remarkable product ', a ' high cost performance and ' remarkable product ' can be filled in the first line, so that the problem that semantic sentence breaks are difficult to understand is avoided.
The configurable parameters include at least one of: a parameter of placement position, a parameter of background color, and a parameter of character weight. Wherein, the arrangement position (position) is used for setting whether the product label is arranged at the left side, the middle side or the right side of the page label container, and the parameters of the arrangement position comprise 'left side, middle side and right side'; background color (background) can be used to set the color of the product label, and parameters of background color include "red, green, and blue"; the word weight can be used to set whether the font of the label content of the product label is bolded, and the parameters of the word weight include "bolded and not bolded".
Therefore, referring to the explanation related to step S210, the parameter "# ff 0000" of the background color in the standard configuration file may be changed to the customized parameter "# 00ff 00", the parameter "FALSE" with the heavy character may be changed to the customized parameter "TRUE", the parameter "RIGHT" with the placement position may be changed to the customized parameter "LEFT", and then, whether all the configurable parameters in the standard configuration file are changed is sequentially traversed and determined, and if all the configurable parameters are changed, the tag configuration information may be generated according to the modified configurable parameters. Thus, complete modification of the configurable parameters can be ensured, and correct generation of the customized tag can be ensured.
It should be noted that the specific number of the configurable parameters can be determined according to the actual customization needs of the user. For example, when the user wants to customize the placement position and background color background, the configurable parameters are the position parameter and background parameter, and the font weight parameter may take the default parameter "false" in the preset configuration file. When the user wants to customize the font weight, the configurable parameter is the fontweight parameter, and the parameter of the placement position may be the default parameter "RIGHT" in the preset configuration file, and the parameter of the background color background may be the default parameter "# ff 0000" in the preset configuration file.
The method and the device have the advantages that under the condition that a user does not need to customize the label, the user can directly generate the default configuration universal label according to the standard configuration file, so that the user service requirements when the product label is needed to be customized and the product label is not needed to be customized can be met, the development time is saved, the technical problems of large workload and low efficiency caused by the fact that the product label is needed to be added, deleted and changed in the related technology can be solved, and the product label customizing efficiency is improved.
In the exemplary embodiment of the present disclosure, after the tag configuration information is obtained, the data amount of the tag configuration information may also be obtained, and then, if the data amount of the tag configuration information is greater than the capacity of the page tag container, data compression processing may be performed on the tag configuration information, so that it can be ensured that the tag configuration information is normally injected into the page tag container, and normal generation of the customized tag is ensured.
The standard configuration file can be a JSON (Java script Object Notation, JS Object Notation for short: JSON) format, the JSON format is a lightweight data exchange format, the JSON format adopts a text format completely independent of a programming language to store and express data, the JSON format is a data exchange language with a concise and clear hierarchical structure, the JSON format is easy to read and write, and is easy to analyze and generate by a machine, and the network transmission efficiency can be effectively improved.
After the standard configuration file in the JSON format is obtained, format conversion may be performed on the standard configuration file based on a front-end technology JS (abbreviation of JavaScript, which is a high-level, multi-modal, and interpreted programming Language, and is a Language based on prototype and function precedence, and supports object-oriented programming, command-oriented programming, and functional programming), so as to convert the configuration file in the JSON format into a target file format, which may be, for example, an HTML format (Hyper Text Mark-up Language, hypertext markup Language, or hypertext markup Language, abbreviated as HTML). By converting the JSON format standard configuration file into the HTML format configuration file, the file opening speed can be increased, the operation is simplified, the obstacle of information exchange among different computers is eliminated, and the data acquisition efficiency is improved.
In step S230, a page tag container is created, and a display style of the page tag container is configured based on the cascading style sheet.
Illustratively, a page container may be created, i.e., a container object to which a page may be added, and illustratively, an empty html chunk element may be set to serve as a container for the custom tag.
Illustratively, the display style of the page tag container can be configured based on the cascading style sheet. Illustratively, the display style of the page tag container may be set to be in a color semi-transparent form to increase the interest of the displayed page.
The Cascading Style Sheets (english name: Cascading Style Sheets) is a computer Language used to express the file Style of HTML (Hyper Text Mark-up Language, or Hyper Text Markup Language, or HTML for short) or XML (eXtensible Mark-up Language, XML for short, a subset of standard general Markup Language). The CSS can not only statically modify the web page, but also dynamically format elements of the web page in coordination with various scripting languages.
The CSS has rich style definition and is easy to use and modify, the pixel-level accurate control can be performed on the typesetting of the element positions in the webpage through the CSS, almost all font and font styles are supported, the capability of editing webpage objects and model styles is provided, the webpage can be statically modified, and the elements of the webpage can be dynamically formatted by matching with various script languages. The CSS simplifies the formatting code of the web page, and the external style sheet is also saved in the cache by the browser, which speeds up the download display and reduces the number of codes that need to be uploaded (since the repeatedly set format will only be saved once). When sites with large number of pages need to be modified, the style characteristics of the whole site can be changed only by modifying the CSS style sheet storing the website format, so that modification of the web pages can be avoided, workload of related workers is reduced, and modification efficiency is improved.
In step S240, the tag configuration information in the target file format is filled into the page tag container, so as to obtain a customized tag.
After the tag configuration information is converted into tag configuration information in an HTML format, the tag configuration information can be filled into a predefined page tag container to obtain a customized tag, so that the customized tag can be put into use. The page turning or slide effect of the small area can be realized through the page container, and the display effect of the customized tag is optimized.
Therefore, the method and the device can solve the technical problem that the label in the related technology cannot be customized in real time according to the service requirement of the user, can also solve the technical problems of large workload and low efficiency caused by the need of adding, deleting and changing the label in the related technology, and improve the customization efficiency of the product label.
In an exemplary embodiment of the present disclosure, reference may be made to fig. 3, fig. 3 schematically illustrates an overall algorithm flowchart of a customization method of a product tag in another exemplary embodiment of the present disclosure, including steps S301 to S307, and the overall flowchart of the present disclosure is explained below with reference to fig. 3.
In step S301, start;
in step S302, a standard configuration file is acquired;
in step S303, according to the user service requirement, querying a pre-created data dictionary, and determining a customized parameter of the product tag;
in step S304, the configurable parameters in the standard configuration file are changed according to the customized parameters to obtain tag configuration information;
in step S305, it is traversed whether all parameters are changed;
if yes, in step S306, injecting the tag configuration information into the page tag container to obtain a customized tag;
if not, jumping to step S305;
in step S307, the process ends.
The present disclosure also provides a device for customizing a product label, and fig. 4 shows a schematic structural diagram of the device for customizing a product label in an exemplary embodiment of the present disclosure; as shown in fig. 4, the apparatus 400 for customizing a product tag may include a determining module 401, a generating module 402, a creating module 403, and a customizing module 404. Wherein:
the determining module 401 is configured to determine a customized parameter of a product tag according to a service requirement of a user.
In an exemplary embodiment of the present disclosure, the determining module is configured to obtain a tag feature corresponding to a user service requirement; determining customized parameters corresponding to the tag features based on a pre-established data dictionary; the data dictionary is a data linked list for storing the mapping relation between the label characteristics and the customization parameters.
A generating module 402, configured to generate tag configuration information according to the customization parameters, and convert the tag configuration information into a target file format.
In an exemplary embodiment of the present disclosure, the generating module is configured to obtain configurable parameters included in a standard configuration file; and modifying the configurable parameters according to the customized parameters to obtain tag configuration information.
In an exemplary embodiment of the present disclosure, the configurable parameters include at least one of: a parameter of placement position, a parameter of background color, and a parameter of character weight.
In an exemplary embodiment of the present disclosure, the generation module is configured to obtain a data amount of the tag configuration information; and if the data volume of the tag configuration information is larger than the capacity of the page tag container, performing data compression processing on the tag configuration information.
In an exemplary embodiment of the disclosure, the generation module is configured to obtain attribute information of a product, and obtain the number of characters that can be contained in a page label container; extracting target attribute information from the attribute information of the product according to the number of the characters; the number of characters of the target attribute information is equal to the number of characters which can be contained in the page label container; and performing natural language processing on the target attribute information, and determining the target attribute information after the natural language processing as the tag content of the customized tag.
In an exemplary embodiment of the present disclosure, the generation module is configured to compare the length of the tag content with the length of the page tag container to determine whether the tag content can be filled into the page tag container in a single line; if yes, filling the label content into a page label container in a single-line mode; if not, filling the label content into the page label container in a multi-line form according to a line breaking mode meeting the semantic line breaking standard.
And a creating module 403, configured to create a page tag container and configure a display style of the page tag container based on the cascading style sheet.
In an exemplary embodiment of the present disclosure, the creation module is configured to create a page tag container and configure a display style of the page tag container based on a cascading style sheet.
And the customizing module 404 is configured to fill the tag configuration information in the target file format into the page tag container to obtain a customized tag.
In an exemplary embodiment of the present disclosure, the customization module is configured to fill the tag configuration information in the target file format into the page tag container to obtain a customized tag.
The specific details of each module in the product label customizing device are already described in detail in the corresponding product label customizing method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer storage medium capable of implementing the above method. On which a program product capable of implementing the above-described method of the present specification is stored. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 5, a program product 500 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the disclosure is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, and a bus 630 that couples the various system components including the memory unit 620 and the processing unit 610.
Wherein the storage unit stores program code that is executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present disclosure as described in the above section "exemplary methods" of this specification. For example, the processing unit 610 may perform the following as shown in fig. 2: step S210, determining customized parameters of the product label according to the service requirements of the user; step S220, generating label configuration information according to the customized parameters, and converting the label configuration information into a target file format; step S230, creating a page label container, and configuring the display style of the page label container based on the cascading style sheet; step S240, the tag configuration information in the target file format is filled into the page tag container, so as to obtain the customized tag.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. As shown, the network adapter 660 communicates with the other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method of customizing a product label, comprising:
determining customized parameters of a product label according to the service requirements of a user;
generating label configuration information according to the customization parameters, and converting the label configuration information into a target file format;
creating a page label container, and configuring a display style of the page label container based on a cascading style sheet;
and filling the tag configuration information in the target file format into the page tag container to obtain a customized tag.
2. The method of claim 1, wherein determining customized parameters for a product label based on customer business requirements comprises:
acquiring a label characteristic corresponding to the user service requirement;
determining customized parameters corresponding to the tag features based on a pre-established data dictionary;
the data dictionary is a data linked list for storing the mapping relation between the label features and the customization parameters.
3. The method of claim 1, wherein generating tag configuration information according to the customization parameters comprises:
acquiring configurable parameters contained in a standard configuration file;
and changing the configurable parameters according to the customized parameters to obtain the tag configuration information.
4. The method of claim 3, wherein the configurable parameters comprise at least one of: a parameter of placement position, a parameter of background color, and a parameter of character weight.
5. The method of claim 1, wherein after generating tag configuration information according to the customization parameters, the method further comprises:
acquiring the data volume of the tag configuration information;
and if the data volume of the tag configuration information is larger than the capacity of the page tag container, performing data compression processing on the tag configuration information.
6. The method of claim 1, further comprising:
acquiring attribute information of the product, and acquiring the number of characters which can be contained in the page label container;
extracting target attribute information from the attribute information of the product according to the number of the characters; the number of characters of the target attribute information is equal to the number of characters which can be contained in the page label container;
and performing natural language processing on the target attribute information, and determining the target attribute information after the natural language processing as the tag content of the customized tag.
7. The method of claim 6, further comprising:
comparing the length of the tag content with the length of the page tag container to determine whether the tag content can be filled into the page tag container in a single line;
if yes, filling the label content into the page label container in a single line form;
and if not, filling the label content into the page label container in a multi-line form according to a line breaking mode meeting the semantic line breaking standard.
8. An apparatus for customizing a product label, comprising:
the determining module is used for determining the customized parameters of the product label according to the service requirements of the user;
the generating module is used for generating label configuration information according to the customized parameters and converting the label configuration information into a target file format;
the system comprises a creating module, a display module and a display module, wherein the creating module is used for creating a page label container and configuring the display style of the page label container based on a cascading style sheet;
and the customizing module is used for filling the tag configuration information in the target file format into the page tag container to obtain a customized tag.
9. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of customizing a product label of any one of claims 1 to 7.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of customizing a product label of any one of claims 1-7 via execution of the executable instructions.
CN202010477860.XA 2020-05-29 2020-05-29 Product label customizing method and device, computer storage medium and electronic equipment Active CN111651696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010477860.XA CN111651696B (en) 2020-05-29 2020-05-29 Product label customizing method and device, computer storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010477860.XA CN111651696B (en) 2020-05-29 2020-05-29 Product label customizing method and device, computer storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111651696A true CN111651696A (en) 2020-09-11
CN111651696B CN111651696B (en) 2023-06-02

Family

ID=72352743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010477860.XA Active CN111651696B (en) 2020-05-29 2020-05-29 Product label customizing method and device, computer storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111651696B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686729A (en) * 2020-12-31 2021-04-20 微医云(杭州)控股有限公司 Product customization method and device, electronic equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425728A (en) * 2012-05-15 2013-12-04 国际商业机器公司 Method and system for group bookmark
CN104239062A (en) * 2014-09-23 2014-12-24 深圳市富途网络科技有限公司 Various-type label page displaying method and system based on client side
CN104965866A (en) * 2015-06-05 2015-10-07 小米科技有限责任公司 Method and apparatus for establishing label and style rule binding relation
US9678930B1 (en) * 2014-09-22 2017-06-13 Amazon Technologies, Inc. Generating customized resource identifiers
CN108021708A (en) * 2017-12-27 2018-05-11 广州启生信息技术有限公司 Content recommendation method, device and computer-readable recording medium
CN109272337A (en) * 2017-07-17 2019-01-25 阿里巴巴集团控股有限公司 The generation method and relevant device of object tag
CN109446443A (en) * 2018-10-18 2019-03-08 武汉斗鱼网络科技有限公司 A kind of tag update method, apparatus, equipment and storage medium
US20190122260A1 (en) * 2016-09-27 2019-04-25 Tencent Technology (Shenzhen) Company Limited Method and apparatus for generating targeted label, and storage medium
CN109766122A (en) * 2018-12-20 2019-05-17 平安信托有限责任公司 Document data transfer generation method, device, computer equipment and storage medium
CN110321544A (en) * 2019-07-08 2019-10-11 北京百度网讯科技有限公司 Method and apparatus for generating information
CN110866054A (en) * 2019-10-17 2020-03-06 苏宁云计算有限公司 Label configuration method and device and computer storage medium
CN110879937A (en) * 2019-10-12 2020-03-13 平安国际智慧城市科技股份有限公司 Method and device for generating webpage from document, computer equipment and storage medium
CN110895463A (en) * 2018-09-13 2020-03-20 百度在线网络技术(北京)有限公司 Label processing method, device, equipment and computer readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425728A (en) * 2012-05-15 2013-12-04 国际商业机器公司 Method and system for group bookmark
US9678930B1 (en) * 2014-09-22 2017-06-13 Amazon Technologies, Inc. Generating customized resource identifiers
CN104239062A (en) * 2014-09-23 2014-12-24 深圳市富途网络科技有限公司 Various-type label page displaying method and system based on client side
CN104965866A (en) * 2015-06-05 2015-10-07 小米科技有限责任公司 Method and apparatus for establishing label and style rule binding relation
US20190122260A1 (en) * 2016-09-27 2019-04-25 Tencent Technology (Shenzhen) Company Limited Method and apparatus for generating targeted label, and storage medium
CN109272337A (en) * 2017-07-17 2019-01-25 阿里巴巴集团控股有限公司 The generation method and relevant device of object tag
CN108021708A (en) * 2017-12-27 2018-05-11 广州启生信息技术有限公司 Content recommendation method, device and computer-readable recording medium
CN110895463A (en) * 2018-09-13 2020-03-20 百度在线网络技术(北京)有限公司 Label processing method, device, equipment and computer readable storage medium
CN109446443A (en) * 2018-10-18 2019-03-08 武汉斗鱼网络科技有限公司 A kind of tag update method, apparatus, equipment and storage medium
CN109766122A (en) * 2018-12-20 2019-05-17 平安信托有限责任公司 Document data transfer generation method, device, computer equipment and storage medium
CN110321544A (en) * 2019-07-08 2019-10-11 北京百度网讯科技有限公司 Method and apparatus for generating information
CN110879937A (en) * 2019-10-12 2020-03-13 平安国际智慧城市科技股份有限公司 Method and device for generating webpage from document, computer equipment and storage medium
CN110866054A (en) * 2019-10-17 2020-03-06 苏宁云计算有限公司 Label configuration method and device and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卢良进;傅惠娟;: "基于活动标签的内容管理系统" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686729A (en) * 2020-12-31 2021-04-20 微医云(杭州)控股有限公司 Product customization method and device, electronic equipment and storage medium
CN112686729B (en) * 2020-12-31 2024-02-20 微医云(杭州)控股有限公司 Product customization method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111651696B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US8370750B2 (en) Technology for generating service program
RU2390834C2 (en) Method and device for browsing and interacting with electronic worksheet from web-browser
CN104199647B (en) A kind of visualization system and implementation method based on IBM main frames
CN109710250B (en) Visualization engine system and method for constructing user interface
CN106354483B (en) Data processing method and device and electronic equipment
US11853684B2 (en) Synchronization and tagging of image and text data
CN111158795A (en) Report generation method, device, medium and electronic equipment
US7742048B1 (en) Method, system, and apparatus for converting numbers based upon semantically labeled strings
JP2023541186A (en) Visualization page rendering method, device, equipment and storage medium
CN112463152A (en) Webpage adaptation method and device based on AST
US20100107095A1 (en) Template-based calculator application
CN111651696B (en) Product label customizing method and device, computer storage medium and electronic equipment
CN111783401B (en) Character string processing method and device, computer storage medium and electronic equipment
US20090137202A1 (en) Information distribution system
CN113419721A (en) Web-based expression editing method, device, equipment and storage medium
CN113760894A (en) Data calling method and device, electronic equipment and storage medium
CN113127776A (en) Breadcrumb path generation method and device and terminal equipment
US20080005085A1 (en) Server Device and Search Method
CN110717134A (en) Product description issuing method and device, storage medium and electronic equipment
CN110807056A (en) Excel-based report processing method, Excel-based report processing device, Excel-based report processing medium and electronic equipment
CN113687827B (en) Data list generation method, device and equipment based on widget and storage medium
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN114356291A (en) Method, device, equipment and medium for generating form based on configuration file
CN111916164B (en) Method and device for realizing center-started investigation system in clinical research
CN113220297A (en) Webpage style dynamic generation method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant