【官方正品】仁德·草本舒眠膏
中醫師研製【草本舒眠膏】失眠患者救星!睡前涂一涂,一夜无梦到天亮~薰衣草沉香/晚安精油,草本原料,放心用!
10000 售出
${function() {
const variantData = data.variant || {"id":"7f8a66db-8521-40e2-a6cc-aad9da5b26fd","product_id":"e2ee4927-bd08-447f-9098-3a86c44f1825","title":"\u3010\u8d85\u592f\u7279\u50f9\u3011\u8cb7\u4e09\u9001\u4e03-10\u5165\u7d44NT$1490","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"\u3010\u8d85\u592f\u7279\u50f9\u3011\u8cb7\u4e09\u9001\u4e03-10\u5165\u7d44NT$1490","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":1490,"min_quantity":1}],"weight":"0","compare_at_price":"2598","price":"1490","retail_price":"2598","available":true,"url":"\/products\/\u5b98\u65b9\u6b63\u54c1-\u4ec1\u5fb7-\u8349\u672c\u8212\u7720\u818f?variant=7f8a66db-8521-40e2-a6cc-aad9da5b26fd","available_quantity":999999999,"options":[{"name":"\u5957\u9910","value":"\u3010\u8d85\u592f\u7279\u50f9\u3011\u8cb7\u4e09\u9001\u4e03-10\u5165\u7d44NT$1490"}],"off_ratio":43,"flashsale_info":[],"sales":10000};
const saveType = "amount";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}%` : `-` }
`; }()}
${function(){
return `
請選擇一個套餐
`;
}()}
${function() {
const minInventory = parseInt('5');
const maxInventory = parseInt('30');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "\u5eab\u5b58\u50c5\u5269\u6700\u5f8c {stock} \u4ef6".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
現在訂購預計:Sep-17 - Sep-21送達
${function() {
const type = 'hero';
const postageFreeAmount = 0;
const custom_text_hero = "";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "\u60a8\u7684\u8a02\u55ae\u5df2\u514d\u90f5";
const custom_text_wind = "";
const custom_text = type === 'hero' ? custom_text_hero : custom_text_wind;
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
${type === 'hero' ?
`
` :
`
`
}
`;
}()}
商品已售空。
商品不存在。
/** @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 = "/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}","仁德藥行官網旗艦店")}
請前往商店氛圍插件開啟創造信任功能。只有開啟後,卡片才會展示給客戶。