屏蔽系统组网控制盒(屏蔽器有线控制)
BWT-D/SPS-CTR-ETH(终端客户专属)
${function() {
const variantData = data.variant || {"id":"29046e58-fb9d-4e4f-836f-92257b2f8ddf","product_id":"879e2bab-640e-41df-9457-667cea49cbe4","title":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":590,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"590","retail_price":"0","available":true,"url":"\/products\/\u5c4f\u853d\u7cfb\u7edf\u7ec4\u7f51\u63a7\u5236\u76d2\u5c4f\u853d\u5668\u6709\u7ebf\u63a7\u5236-ajtn?variant=29046e58-fb9d-4e4f-836f-92257b2f8ddf","available_quantity":999999999,"options":[{"name":"\u63a7\u5236\u76d2\u7c7b\u578b","value":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)"}],"off_ratio":"0","flashsale_info":{"variant_id":"29046e58-fb9d-4e4f-836f-92257b2f8ddf","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":"590","compare_at_price":"","discount_price":"590","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"0","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
控制盒类型:
[模式C]控制盒 (终端授权)
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "\u8bf7\u9009\u62e9\u4e00\u4e2a{{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
添加到购物车
¥590.00
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"29046e58-fb9d-4e4f-836f-92257b2f8ddf","product_id":"879e2bab-640e-41df-9457-667cea49cbe4","title":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":590,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"590","retail_price":"0","available":true,"url":"\/products\/\u5c4f\u853d\u7cfb\u7edf\u7ec4\u7f51\u63a7\u5236\u76d2\u5c4f\u853d\u5668\u6709\u7ebf\u63a7\u5236-ajtn?variant=29046e58-fb9d-4e4f-836f-92257b2f8ddf","available_quantity":999999999,"options":[{"name":"\u63a7\u5236\u76d2\u7c7b\u578b","value":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)"}],"off_ratio":"0","flashsale_info":{"variant_id":"29046e58-fb9d-4e4f-836f-92257b2f8ddf","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":"590","compare_at_price":"","discount_price":"590","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"0","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
立即购买
商品已售空。
商品不存在。
${function(){
const variantData = data.variant || {"id":"29046e58-fb9d-4e4f-836f-92257b2f8ddf","product_id":"879e2bab-640e-41df-9457-667cea49cbe4","title":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":590,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"590","retail_price":"0","available":true,"url":"\/products\/\u5c4f\u853d\u7cfb\u7edf\u7ec4\u7f51\u63a7\u5236\u76d2\u5c4f\u853d\u5668\u6709\u7ebf\u63a7\u5236-ajtn?variant=29046e58-fb9d-4e4f-836f-92257b2f8ddf","available_quantity":999999999,"options":[{"name":"\u63a7\u5236\u76d2\u7c7b\u578b","value":"[\u6a21\u5f0fC]\u63a7\u5236\u76d2 (\u7ec8\u7aef\u6388\u6743)"}],"off_ratio":"0","flashsale_info":{"variant_id":"29046e58-fb9d-4e4f-836f-92257b2f8ddf","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":"590","compare_at_price":"","discount_price":"590","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"0","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
return `
Sku : ${variantData && variantData.sku}
重量 : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
条码 : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 399;
const custom_text = "\u8d2d\u4e70 {amount} \u4ee5\u4e0a\u4eab\u53d7\u514d\u8d39\u90ae\u5bc4";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "\u60a8\u7684\u8ba2\u5355\u5df2\u514d\u90ae";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}