spz-recently-viewed

Supported layouts: container

When to Use

When you need to record and display recently viewed products, generally used on product pages, album pages, etc.

Code Demonstration

Basic Usage

Stores recently viewed product data and can retrieve recently viewed product data.

<spz-recently-viewed
  list-id="recently-view-render"
  product-id="..."
  count="8"
  layout="container"
></spz-recently-viewed>

<spz-list id="recently-view-render" ...><!-- ... --></spz-list>

Attributes

Attribute NameDescriptionTypeDefault ValueRequired
list-idID of spz-list or spz-render element with srcstring-No
product-idID of the product to be stored for viewing. Usually configured on product detail pagesstring-No
countMaximum number of data returnednumber16No

AI Summary (LLM Ready)

  • Component ID: spz-recently-viewed
  • One-line purpose: Displays recently viewed products.
  • Detected attribute rows: 3
  • Detected method subsections: 0
  • Detected event subsections: 0
  • Top attribute names: list-id, product-id, count
  • Top method names: none (needs manual completion)
  • Top event names: none (needs manual completion)
  • Reading order: start from usage/examples, then verify attributes, methods, and events.
  • Related docs: /en/guide/actions-and-events/ , /en/guide/layouts/