5-pairs Baby / Toddler / Kid Heart Stars Pattern Mesh Panel Socks
5-pairs Baby / Toddler / Kid Heart Stars Pattern Mesh Panel Socks
${function() {
const variantData = data.variant || {"id":"8e5fba64-3111-403a-b0c6-228ed3dec95f","product_id":"03aba6df-49c9-4f47-b011-bf7bdb28b3da","title":"Color-C-1-3 Year","weight_unit":"kg","inventory_quantity":1,"sku":"20423709","barcode":"","position":1,"option1":"Color-C","option2":"1-3 Year","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/00434e39577a00916844ecf663010c6a.jpeg","path":"00434e39577a00916844ecf663010c6a.jpeg","width":800,"height":800,"alt":"5-pairs Baby \/ Toddler \/ Kid Heart Stars Pattern Mesh Panel Socks","aspect_ratio":1},"wholesale_price":[{"price":4.19,"min_quantity":1}],"weight":"0.1","compare_at_price":"5.99","price":"4.19","retail_price":"5.99","available":true,"url":"\/zh-cn\/products\/539623-5-pairs-baby-toddler-kid-heart-stars-pattern-mesh-panel-socks-algv?variant=8e5fba64-3111-403a-b0c6-228ed3dec95f","available_quantity":1,"options":[{"name":"COLOR","value":"Color-C"},{"name":"SIZE","value":"1-3 Year"}],"off_ratio":"30","flashsale_info":{"variant_id":"8e5fba64-3111-403a-b0c6-228ed3dec95f","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"4.19","compare_at_price":"","discount_price":"4.19","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"30","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
const saveType = null;
const productSaveLabel = null;
return `
-
${ variantData.off_ratio }%
(已含稅)
`; }()}
${function() {
const minInventory = parseInt('7');
const maxInventory = parseInt('10');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
people are viewing this right now
${function(){
return `
请选择一个COLOR
`;
}()}
请选择一个SIZE
${function(){
return `
请选择一个SIZE
`;
}()}
/** @private {string} */
class SpzCustomAnchorScroll extends SPZ.BaseElement {
static deferredMount() {
return false;
}
constructor(element) {
super(element);
/** @private {Element} */
this.scrollableContainer_ = null;
}
isLayoutSupported(layout) {
return layout == SPZCore.Layout.LOGIC;
}
buildCallback() {
this.viewport_ = this.getViewport();
this.initActions_();
}
setTarget(containerId, targetId) {
this.containerId = '#' + containerId;
this.targetId = '#' + targetId;
}
scrollToTarget() {
const container = document.querySelector(this.containerId);
const target = container.querySelector(this.targetId);
const {scrollTop} = container;
const eleOffsetTop = this.getOffsetTop_(target, container);
this.viewport_
.interpolateScrollIntoView_(
container,
scrollTop,
scrollTop + eleOffsetTop
);
}
initActions_() {
this.registerAction(
'scrollToTarget',
(invocation) => this.scrollToTarget(invocation?.caller)
);
this.registerAction(
'setTarget',
(invocation) => this.setTarget(invocation?.args?.containerId, invocation?.args?.targetId)
);
}
/**
* @param {Element} element
* @param {Element} container
* @return {number}
* @private
*/
getOffsetTop_(element, container) {
if (!element./*OK*/ getClientRects().length) {
return 0;
}
const rect = element./*OK*/ getBoundingClientRect();
if (rect.width || rect.height) {
return rect.top - container./*OK*/ getBoundingClientRect().top;
}
return rect.top;
}
}
SPZ.defineElement('spz-custom-anchor-scroll', SpzCustomAnchorScroll);
const STRENGTHEN_TRUST_URL = "/zh-cn/api/strengthen_trust/settings";
class SpzCustomStrengthenTrust extends SPZ.BaseElement {
constructor(element) {
super(element);
this.renderElement_ = null;
}
isLayoutSupported(layout) {
return layout == SPZCore.Layout.CONTAINER;
}
buildCallback() {
this.xhr_ = SPZServices.xhrFor(this.win);
const renderId = this.element.getAttribute('render-id');
SPZCore.Dom.waitForChild(
document.body,
() => !!document.getElementById(renderId),
() => {
this.renderElement_ = SPZCore.Dom.scopedQuerySelector(
document.body,
`#${renderId}`
);
if (this.renderElement_) {
this.render_();
}
this.registerAction('track', (invocation) => {
this.track_(invocation.args);
});
}
);
}
render_() {
this.fetchData_().then((data) => {
if (!data) {
return;
}
SPZ.whenApiDefined(this.renderElement_).then((apis) => {
apis?.render(data);
document.querySelector('#strengthen-trust-render-1539149753700').addEventListener('click',(event)=>{
if(event.target.nodeName == 'A'){
this.track_({type: 'trust_content_click'});
}
})
});
});
}
track_(data = {}) {
const track = window.sa && window.sa.track;
if (!track) {
return;
}
track('trust_enhancement_event', data);
}
parseJSON_(string) {
let result = {};
try {
result = JSON.parse(string);
} catch (e) {}
return result;
}
fetchData_() {
return this.xhr_
.fetchJson(STRENGTHEN_TRUST_URL)
.then((responseData) => {
if (!responseData || !responseData.data) {
return null;
}
const data = responseData.data;
const moduleSettings = (data.module_settings || []).reduce((result, moduleSetting) => {
return result.concat(Object.assign(moduleSetting, {
logos: (moduleSetting.logos || []).map((item) => {
return moduleSetting.logos_type == 'custom' ? this.parseJSON_(item) : item;
})
}));
}, []);
return Object.assign(data, {
module_settings: moduleSettings,
isEditor: window.self !== window.top,
});
});
}
}
SPZ.defineElement('spz-custom-strengthen-trust', SpzCustomStrengthenTrust);
${data.module_title}
请前往商店氛围插件开启信赖感营造功能。只有开启后,卡片才会展示给客户。
${item.content.replaceAll("{store_name}","小铺")}
请前往商店氛围插件开启信赖感营造功能。只有开启后,卡片才会展示给客户。
Enjoy free shipping on every order, delivered to your doorstep no matter where you are in the world.
Shop with confidence with our hassle-free returns policy, ensuring you love what you buy.
Designed with the planet in mind, all our products are committed to sustainable practices.
Your payment information is always protected with our advanced, encrypted checkout security.
* Material: 80% cotton, 17% nylon, 3% spandex
* Size:nS: Bottom length of socks: 10cm, suitable for 1-3 years old;nM: Bottom length of socks: 12cm, suitable for 3-5 years old;nL: Bottom length of socks: 14cm, suitable for 6-8 years old;nXL: Bottom length of socks: 17cm, suitable for 9-11 years old;
* Hand wash
* Imported
${function(){
const variantData = data.variant || null;
return `
供应商 :
${data.product && data.product.vendor}
重量 :
${variantData && variantData.weight}${variantData && variantData.weight_unit}
条码 :
${variantData && variantData.barcode}
Sku :
${variantData && variantData.sku}
库存 :
${variantData && variantData.available_quantity}
` }()}