仁德·蘋果山楂掉秤茶
【最新款瘦身茶包-蘋果山楂掉秤茶】仁德中醫師研發,可瘦身美白,可降三高,清潤可口,茶香十足,每天堅持喝躺著都能瘦~
10000 售出
${function() {
const variantData = data.variant || {"id":"592a73d9-349e-45eb-beda-d377f2bbc4ab","product_id":"42695520-f89f-4923-9b18-dd701d6898ba","title":"\u3010\u8d85\u592f\u7279\u50f9\u3011\u8cb7\u56db\u9001\u4e94-9\u5165\u7d44NT$1890-\u8d85NT$1290\u514d\u8cbb\u8d08\u9001\u50f9\u503cNT$688\u7684\u7cbe\u54c1\u624b\u6416\u676f","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"\u3010\u8d85\u592f\u7279\u50f9\u3011\u8cb7\u56db\u9001\u4e94-9\u5165\u7d44NT$1890","option2":"\u8d85NT$1290\u514d\u8cbb\u8d08\u9001\u50f9\u503cNT$688\u7684\u7cbe\u54c1\u624b\u6416\u676f","option3":"","note":"","image":null,"wholesale_price":[{"price":1890,"min_quantity":1}],"weight":"0","compare_at_price":"3298","price":"1890","retail_price":"3298","available":true,"url":"\/products\/\u4ec1\u5fb7-\u860b\u679c\u5c71\u6942\u6389\u79e4\u8336?variant=592a73d9-349e-45eb-beda-d377f2bbc4ab","available_quantity":999999999,"options":[{"name":"\u5957\u9910","value":"\u3010\u8d85\u592f\u7279\u50f9\u3011\u8cb7\u56db\u9001\u4e94-9\u5165\u7d44NT$1890"},{"name":"\u8d08\u54c1","value":"\u8d85NT$1290\u514d\u8cbb\u8d08\u9001\u50f9\u503cNT$688\u7684\u7cbe\u54c1\u624b\u6416\u676f"}],"off_ratio":43,"flashsale_info":[],"sales":10000};
const saveType = "amount";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}%` : `-` }
`; }()}
${function(){
return `
請選擇一個套餐
`;
}()}
${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}","仁德藥行官網旗艦店")}
請前往商店氛圍插件開啟創造信任功能。只有開啟後,卡片才會展示給客戶。