CN113961858A - Commodity page updating method and device, computer equipment and storage medium - Google Patents

Commodity page updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113961858A
CN113961858A CN202111210781.3A CN202111210781A CN113961858A CN 113961858 A CN113961858 A CN 113961858A CN 202111210781 A CN202111210781 A CN 202111210781A CN 113961858 A CN113961858 A CN 113961858A
Authority
CN
China
Prior art keywords
commodity
updated
template
page
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111210781.3A
Other languages
Chinese (zh)
Inventor
曾文浩
钟伟
卢明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Chuanglehai Technology Co ltd
Original Assignee
Guangzhou Chuanglehai Technology 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 Guangzhou Chuanglehai Technology Co ltd filed Critical Guangzhou Chuanglehai Technology Co ltd
Priority to CN202111210781.3A priority Critical patent/CN113961858A/en
Publication of CN113961858A publication Critical patent/CN113961858A/en
Pending legal-status Critical Current

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a commodity page updating method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a unique identification corresponding to a commodity of a commodity page; positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling upper-layer dom elements until an element block of a basic template for displaying the commodity is obtained; converting dom elements in the element block into template character strings, and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity; copying the marked template character string to an element block of a basic template for displaying other commodities needing to be updated to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to the information to be updated of each commodity to obtain the template character string of the commodity to be updated; and converting the template character string of the commodity to be updated into a dom element, and rendering the page. The method can adapt to the commodity information update of different site topics.

Description

Commodity page updating method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of web page processing technologies, and in particular, to a method and an apparatus for updating a commodity page, a computer device, and a storage medium.
Background
In the cross-border e-commerce industry, an optimizer needs to adjust and market commodities on a website page according to the commodity sales condition. The optimization processing efficiency can be improved by displaying the corresponding commodity through the unique identifier of the browser.
For example, the method is realized by developing an APP under an independent station platform, and then, for example, the method is realized by simply building own services and scripts, and then, for example, the method is realized by adding custom scripts and HTML in a site background by using platform API (application programming interface) capability. The third of these three ways is the simplest, fast and least costly. However, in actual operation, the site theme styles of the platforms are different, which means that one set of HTML code cannot be applied to different sites.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method, an apparatus, a computer device and a storage medium for updating a commodity page that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for updating a commodity page.
The commodity page updating method comprises the following steps:
acquiring a unique identification corresponding to a commodity of a commodity page;
positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling upper-layer dom elements until an element block of a basic template for displaying the commodity is obtained;
converting dom elements in the element block into template character strings, and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity;
copying the marked template character string to an element block of a basic template for displaying other commodities needing to be updated to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to the information to be updated of each commodity to obtain the template character string of the commodity to be updated;
and converting the template character string of the commodity to be updated into a dom element, and rendering the page.
Optionally, the positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling the upper-layer dom element until obtaining the element block of the basic template displaying the commodity includes:
positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling an upper layer dom element;
and if the number of the element blocks of the basic template for displaying the commodity is equal to the number of the commodities displayed on the commodity page and the number of the upper-layer elements is 1, acquiring the element blocks of the basic template for displaying the first commodity.
Optionally, before copying the marked template character string to an element block of a basic template showing other goods to be updated to replace its dom element, the method includes the steps of:
and searching element blocks of the basic template for displaying other commodities needing to be updated according to the unique identifiers corresponding to the other commodities needing to be updated.
Optionally, the information to be updated of the commodity includes one or more of a commodity title, a commodity price, a jump link, and a commodity picture.
In a second aspect, an embodiment of the present invention provides a device for updating a commodity page.
The commodity page updating device comprises:
the unique identifier acquisition module is used for acquiring a unique identifier corresponding to a commodity of the commodity page;
the first commodity element block acquisition module is used for positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity and bubbling upper-layer dom elements until the element block of the basic template for displaying the commodity is acquired;
the marked template character string determining module is used for converting dom elements in the element block into template character strings and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity;
the system comprises a to-be-updated commodity template character string determining module, a to-be-updated commodity template character string determining module and a to-be-updated commodity template character string updating module, wherein the to-be-updated commodity template character string determining module is used for copying the marked template character string to an element block of a basic template for displaying other commodities to be updated so as to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to-be-updated information of each commodity to obtain a template character string of the commodity to be updated;
and the page rendering module is used for converting the template character strings of the commodities to be updated into dom elements and rendering the page.
Optionally, the first commodity element block obtaining module includes:
the bubbling submodule is used for positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity and bubbling the upper-layer dom element;
and the first commodity element block acquisition submodule is used for acquiring the element blocks of the basic template for displaying the first commodity if the number of the element blocks of the basic template for displaying the commodity is equal to the number of the commodities displayed on the commodity page and the number of the upper-layer elements is 1.
Optionally, the apparatus further comprises:
and the other commodity element block needing to be updated acquiring module is used for searching the element block of the basic template for displaying other commodities needing to be updated according to the unique identifier corresponding to other commodities needing to be updated.
Optionally, the information to be updated of the commodity includes one or more of a commodity title, a commodity price, a jump link, and a commodity picture.
In a third aspect, an embodiment of the present invention provides a computer device.
The computer device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the merchandise page update method of any one of the first aspects.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium.
The computer-readable storage medium stores thereon a computer program which, when executed by a processor, implements the merchandise page updating method according to any one of the first aspects.
In the embodiment, a unique identifier corresponding to a commodity of a commodity page is obtained; positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling upper-layer dom elements until an element block of a basic template for displaying the commodity is obtained; converting dom elements in the element block into template character strings, and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity; copying the marked template character string to an element block of a basic template for displaying other commodities needing to be updated to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to the information to be updated of each commodity to obtain the template character string of the commodity to be updated; and converting the template character string of the commodity to be updated into a dom element, and rendering the page. The method can adapt to the commodity information updating of different site themes, does not need to develop a set of HTML codes for each platform, and greatly reduces the development time and labor.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for updating a commodity page according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a commodity page updating device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
The independent station (independent website) refers to a website which is built by an enterprise or an individual through a purchase server and a domain name. In the e-commerce industry, the independent station is the e-commerce website of the independent station, and ownership of the independent station is different from that of a third-party e-commerce platform. The e-commerce service platform, such as Shopefy, Shoplazza, ShopBase and the like, can provide a technology and a template for building an online shop for an e-commerce seller, register an account for a merchant, select a website template, upload commodities and add description, set price and logistics options, add a collection mode, and can generate an attractive and reliable independent station in a short time.
In the cross-border e-commerce industry, an optimizer needs to adjust and market commodities on a website page according to the commodity sales condition. The optimization processing efficiency can be improved by displaying the corresponding commodity through the unique identifier of the browser.
The platform can be realized by developing an APP under an independent station platform, can be realized by simply building own service and script, and can also be realized by adding a custom script and HTML in a site background by using platform API capability. The third of these three ways is the simplest, fast and least costly. However, in actual operation, the site theme styles of the platforms are different, which means that one set of HTML code cannot be applied to different sites.
Example one
Fig. 1 is a flowchart of a method for updating a commodity page according to an embodiment of the present invention, where the method may be executed by a commodity page updating apparatus, the commodity page updating apparatus may be implemented by software and/or hardware, and may be configured in a computer device, such as a server, a personal computer, and the like, and the method may be adapted to update commodity information of different site topics, and does not need to develop a set of HTML codes for each platform, thereby greatly reducing development time and manpower. The commodity page updating method specifically comprises the following steps:
step 101, obtaining a unique identifier corresponding to a commodity on a commodity page.
A plurality of commodities can be displayed in the commodity page, and information such as commodity titles, commodity prices, skip links, commodity pictures and the like of the commodities can be displayed specifically. And acquiring the unique identifier corresponding to the commodity of the commodity page to obtain the list information of the commodity displayed on the commodity page.
And 102, positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling upper-layer dom elements until an element block of a basic template for displaying the commodity is obtained.
The basic template can display page contents of a commodity, such as commodity title, commodity price, jump links, commodity pictures and other information of the commodity, and is realized through html codes. And updating the related information of the basic template, namely updating and optimizing the page content of the corresponding commodity.
Specifically, the position of the first commodity on the page is found through the unique identifier corresponding to the first commodity in the list information of the commodities, and the position is the approximate position of the first commodity on the page and is not a basic template for displaying the commodity. The upper layer dom element of the first commodity needs to be continuously bubbled on the basis of positioning the position of the commodity on the page until an element block of a basic template for displaying the commodity is obtained.
In one embodiment, the step 102 includes:
and a substep 1021, positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling an upper layer dom element.
And a substep 1022, if the number of the element blocks of the basic template for displaying the commodity is equal to the number of the commodities displayed on the commodity page, and the number of the upper-layer elements is 1, acquiring the element block of the basic template for displaying the first commodity.
If the number of the element blocks of the basic template for displaying the commodity is equal to the number of the commodities displayed on the commodity page, and the number of the upper-layer elements is 1, that is, the parent element of the upper-layer elements is not the root element, the content below the parent element of the current element is the element block of the basic template for displaying the commodity.
And 103, converting dom elements in the element block into template character strings, and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity.
Converting dom into a string can be achieved by using a three-party class library. For example, the method for converting dom into a string provided in jquery var domStr ═$ ("#"). html (). is used.
And after the dom elements in the element block are converted into the template character string, modifying the template character string into the marked template character string according to the information to be updated of the first commodity. For example, if the information to be updated of the first commodity includes a commodity ID and a commodity name, replacing the corresponding commodity ID in the template character string with "customid", and replacing the corresponding commodity name in the template character string with "customname", to obtain the template character string with marks.
The information to be updated of the first commodity can be a commodity ID and a commodity name, and can further include one or more of a commodity title, a commodity price, a skip link and a commodity picture, or only include one or more of a commodity title, a commodity price, a skip link and a commodity picture, which can be determined according to the actual situation.
In an embodiment, step 103 is preceded by step 102A of searching for an element block of a basic template showing other commodities to be updated according to unique identifiers corresponding to the other commodities to be updated.
And 104, copying the marked template character string to an element block of a basic template for displaying other commodities needing to be updated to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to the information to be updated of each commodity to obtain the template character string of the commodity to be updated.
For example, information of the top commodity needs to be updated, then the marked template character string is copied to an element block of a corresponding basic template of the top commodity to replace a dom element of the top commodity, and the corresponding marked template character string is modified according to information obtained from a shop background system, namely information to be updated of the top commodity, if the name of a certain top commodity needs to be updated to ABC, the 'customname' in the corresponding marked template character string is modified to 'ABC', and the template character string after the information of the top commodity is updated is obtained.
And 105, converting the template character string of the commodity to be updated into a dom element, and rendering the page.
And converting the template character string of the commodity to be updated into a dom element by using a html () method of jquery, and rendering the page to obtain the updated commodity page.
In the embodiment, a unique identifier corresponding to a commodity of a commodity page is obtained; positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling upper-layer dom elements until an element block of a basic template for displaying the commodity is obtained; converting dom elements in the element block into template character strings, and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity; copying the marked template character string to an element block of a basic template for displaying other commodities needing to be updated to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to the information to be updated of each commodity to obtain the template character string of the commodity to be updated; and converting the template character string of the commodity to be updated into a dom element, and rendering the page. The method can adapt to the commodity information updating of different site themes, does not need to develop a set of HTML codes for each platform, and greatly reduces the development time and labor.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example two
Fig. 2 is a schematic structural diagram of a commodity page updating device according to a second embodiment of the present invention. The commodity page updating device may specifically include the following modules:
the unique identifier acquiring module 201 is configured to acquire a unique identifier corresponding to a commodity on a commodity page;
a first commodity element block obtaining module 202, configured to locate a position of a first commodity on a page according to a unique identifier corresponding to the first commodity, and bubble an upper-layer dom element until an element block of a basic template displaying the commodity is obtained;
the marked template character string determining module 203 is used for converting dom elements in the element block into a template character string and modifying the template character string into a marked template character string according to the information to be updated of the first commodity;
a to-be-updated commodity template character string determining module 204, configured to copy the marked template character string to an element block of a basic template displaying other commodities to be updated to replace a dom element of the marked template character string, and modify the corresponding marked template character string according to-be-updated information of each commodity to obtain a template character string of the commodity to be updated;
and the page rendering module 205 is configured to convert the template character string of the commodity to be updated into a dom element, and render the page.
In one embodiment, the first commodity element block obtaining module 202 includes:
the bubbling submodule is used for positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity and bubbling the upper-layer dom element;
and the first commodity element block acquisition submodule is used for acquiring the element blocks of the basic template for displaying the first commodity if the number of the element blocks of the basic template for displaying the commodity is equal to the number of the commodities displayed on the commodity page and the number of the upper-layer elements is 1.
In one embodiment, the apparatus further comprises:
and the other commodity element block needing to be updated acquiring module is used for searching the element block of the basic template for displaying other commodities needing to be updated according to the unique identifier corresponding to other commodities needing to be updated.
In one embodiment, the information to be updated of the commodity comprises one or more of a commodity title, a commodity price, a jump link and a commodity picture.
The commodity page updating device provided by the embodiment of the invention can execute the commodity page updating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 3 is only an example and should not impose any limitation on the scope of use or functionality of embodiments of the present invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 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 network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, 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.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the merchandise page updating method provided by the embodiment of the present invention.
Example four
The fourth embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method for updating a commodity page, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
A computer readable storage medium may include, for example, but is 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 computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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. In the context of this document, a computer 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.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A commodity page updating method is characterized by comprising the following steps:
acquiring a unique identification corresponding to a commodity of a commodity page;
positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling upper-layer dom elements until an element block of a basic template for displaying the commodity is obtained;
converting dom elements in the element block into template character strings, and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity;
copying the marked template character string to an element block of a basic template for displaying other commodities needing to be updated to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to the information to be updated of each commodity to obtain the template character string of the commodity to be updated;
and converting the template character string of the commodity to be updated into a dom element, and rendering the page.
2. The method according to claim 1, wherein the positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity and bubbling upper-layer dom elements until obtaining the element block of the basic template displaying the commodity comprises:
positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity, and bubbling an upper layer dom element;
and if the number of the element blocks of the basic template for displaying the commodity is equal to the number of the commodities displayed on the commodity page and the number of the upper-layer elements is 1, acquiring the element blocks of the basic template for displaying the first commodity.
3. The method according to claim 1, wherein before copying the marked template character string to the element block of the basic template showing other goods to be updated to replace the dom element thereof, the method comprises the following steps:
and searching element blocks of the basic template for displaying other commodities needing to be updated according to the unique identifiers corresponding to the other commodities needing to be updated.
4. A method according to any one of claims 1 to 3, characterized in that: the information to be updated of the commodity comprises one or more of a commodity title, a commodity price, a skip link and a commodity picture.
5. An apparatus for updating a commodity page, the apparatus comprising:
the unique identifier acquisition module is used for acquiring a unique identifier corresponding to a commodity of the commodity page;
the first commodity element block acquisition module is used for positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity and bubbling upper-layer dom elements until the element block of the basic template for displaying the commodity is acquired;
the marked template character string determining module is used for converting dom elements in the element block into template character strings and modifying the template character strings into marked template character strings according to the information to be updated of the first commodity;
the system comprises a to-be-updated commodity template character string determining module, a to-be-updated commodity template character string determining module and a to-be-updated commodity template character string updating module, wherein the to-be-updated commodity template character string determining module is used for copying the marked template character string to an element block of a basic template for displaying other commodities to be updated so as to replace a dom element of the marked template character string, and modifying the corresponding marked template character string according to-be-updated information of each commodity to obtain a template character string of the commodity to be updated;
and the page rendering module is used for converting the template character strings of the commodities to be updated into dom elements and rendering the page.
6. The apparatus of claim 5, wherein the first commodity element block obtaining module comprises:
the bubbling submodule is used for positioning the position of the first commodity on the page according to the unique identifier corresponding to the first commodity and bubbling the upper-layer dom element;
and the first commodity element block acquisition submodule is used for acquiring the element blocks of the basic template for displaying the first commodity if the number of the element blocks of the basic template for displaying the commodity is equal to the number of the commodities displayed on the commodity page and the number of the upper-layer elements is 1.
7. The apparatus of claim 5, further comprising:
and the other commodity element block needing to be updated acquiring module is used for searching the element block of the basic template for displaying other commodities needing to be updated according to the unique identifier corresponding to other commodities needing to be updated.
8. The apparatus according to any one of claims 5 to 7, wherein: the information to be updated of the commodity comprises one or more of a commodity title, a commodity price, a skip link and a commodity picture.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the merchandise page update method of any of claims 1-4.
10. A computer-readable storage medium characterized by: the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the merchandise page updating method according to any one of claims 1-4.
CN202111210781.3A 2021-10-18 2021-10-18 Commodity page updating method and device, computer equipment and storage medium Pending CN113961858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111210781.3A CN113961858A (en) 2021-10-18 2021-10-18 Commodity page updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111210781.3A CN113961858A (en) 2021-10-18 2021-10-18 Commodity page updating method and device, computer equipment and storage medium

Publications (1)

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

Family

ID=79464296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111210781.3A Pending CN113961858A (en) 2021-10-18 2021-10-18 Commodity page updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113961858A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831252A (en) * 2012-09-21 2012-12-19 北京奇虎科技有限公司 Method and device for updating index database and search method and system
US20160062963A1 (en) * 2014-08-26 2016-03-03 Adobe Systems Incorporated Synchronizing DOM Element References
US20170371852A1 (en) * 2016-06-27 2017-12-28 Synergy Platform Pty Ltd System and method for in-browser editing
CN109522018A (en) * 2018-11-14 2019-03-26 腾讯科技(深圳)有限公司 Page processing method, device and storage medium
CN110717133A (en) * 2019-09-11 2020-01-21 北京城市网邻信息技术有限公司 Page updating method and device, terminal equipment and storage medium
CN110825600A (en) * 2019-10-28 2020-02-21 北京城市网邻信息技术有限公司 Page information processing method, server and page display device
CN112307384A (en) * 2020-10-21 2021-02-02 深圳市欢太科技有限公司 Page snapshot display method and device, electronic equipment and storage medium
CN112561640A (en) * 2020-12-15 2021-03-26 中国建设银行股份有限公司 Commodity page template generation method and device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831252A (en) * 2012-09-21 2012-12-19 北京奇虎科技有限公司 Method and device for updating index database and search method and system
US20160062963A1 (en) * 2014-08-26 2016-03-03 Adobe Systems Incorporated Synchronizing DOM Element References
US20170371852A1 (en) * 2016-06-27 2017-12-28 Synergy Platform Pty Ltd System and method for in-browser editing
CN109522018A (en) * 2018-11-14 2019-03-26 腾讯科技(深圳)有限公司 Page processing method, device and storage medium
CN110717133A (en) * 2019-09-11 2020-01-21 北京城市网邻信息技术有限公司 Page updating method and device, terminal equipment and storage medium
CN110825600A (en) * 2019-10-28 2020-02-21 北京城市网邻信息技术有限公司 Page information processing method, server and page display device
CN112307384A (en) * 2020-10-21 2021-02-02 深圳市欢太科技有限公司 Page snapshot display method and device, electronic equipment and storage medium
CN112561640A (en) * 2020-12-15 2021-03-26 中国建设银行股份有限公司 Commodity page template generation method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘烈毅: "基于jQuery框架的前端模板引擎的研究与实现", CNKI优秀硕士学位论文全文库信息科技, 15 March 2017 (2017-03-15), pages 1 - 80 *
王磊;蒋建中;郭军利;: "基于扩展DOM树的Web页面信息抽取", 计算机应用与软件, no. 06, 15 June 2007 (2007-06-15), pages 141 - 143 *

Similar Documents

Publication Publication Date Title
AU2018278888B2 (en) Identification of host-compatible downloadable applications
US6799299B1 (en) Method and apparatus for creating stylesheets in a data processing system
US11170063B2 (en) User interface element for surfacing related results
US9507480B1 (en) Interface optimization application
US9268562B1 (en) Methods and apparatuses for dynamically generating mobile application layouts using client-independent configuration
US20100205523A1 (en) Web Widget for Enabling Screen Reader Accessibility for a Web Application
US20120234907A1 (en) System and process for managing hosting and redirecting the data output of a 2-D QR barcode
US20190384616A1 (en) Method for displaying and changing mobile commerce elements within native application instantly without code build
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
US20100083129A1 (en) User Interface for Internet Advertisement
CN105426508A (en) Webpage generation method and apparatus
JP2013528859A (en) Integration of client application and web page
CN110795649A (en) Target page display method, device and system and electronic equipment
CN111562911B (en) Webpage editing method and device and storage medium
US10956658B2 (en) Digital content editing of a document object model (DOM) based on object model comparison
US11640440B2 (en) Automation system and method
CN107451163B (en) Animation display method and device
CN108536715B (en) Preview page generation method, device, equipment and storage medium
US20190042549A1 (en) Method and apparatus for building pages, apparatus and non-volatile computer storage medium
CN111198738A (en) Mobile terminal page display method and device and electronic equipment
CN113961858A (en) Commodity page updating method and device, computer equipment and storage medium
CN110807652A (en) Marketing information management method and system based on gift
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
US20160004783A1 (en) Automated generation of web site entry pages
CN112540747A (en) Platform development method, device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination