mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-04-27 15:07:43 +00:00
feat: V8 store page
This commit is contained in:
parent
3baf84abd8
commit
52645faa84
1 changed files with 2 additions and 2 deletions
|
|
@ -250,7 +250,7 @@ export async function renderStore($app, storeLabelRaw) {
|
||||||
const pctBadge = priceBadgeHtml(it);
|
const pctBadge = priceBadgeHtml(it);
|
||||||
|
|
||||||
const skuLink = `#/link/?left=${encodeURIComponent(String(it.sku || ""))}`;
|
const skuLink = `#/link/?left=${encodeURIComponent(String(it.sku || ""))}`;
|
||||||
|
console.log(it);
|
||||||
return `
|
return `
|
||||||
<div class="item" data-sku="${esc(it.sku)}">
|
<div class="item" data-sku="${esc(it.sku)}">
|
||||||
<div class="itemRow">
|
<div class="itemRow">
|
||||||
|
|
@ -268,7 +268,7 @@ export async function renderStore($app, storeLabelRaw) {
|
||||||
<span class="mono price">${esc(price)}</span>
|
<span class="mono price">${esc(price)}</span>
|
||||||
${
|
${
|
||||||
href
|
href
|
||||||
? `<a class="badge" href="${esc(href)}" target="_blank" rel="noopener noreferrer" onclick="event.stopPropagation()">${normStoreLabel(it.store)}</a>`
|
? `<a class="badge" href="${esc(href)}" target="_blank" rel="noopener noreferrer" onclick="event.stopPropagation()">${esc(storeLabel)}</a>`
|
||||||
: ``
|
: ``
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue