Whole Body 925 Silver--Four-Leaf Clover Five-Flower Bracelet High Version Women New Peter Stone Agate Mother-of-Pearl Plated 18K Gold Factory Direct Sale
color
【New】Laser Violet
【New】Violet with Diamonds
【No Rhinestones】White Gold Color White Mother-of-Pearl
【No Diamond】Gold Color White Mother-of-Pearl
【No Diamond】Rose Gold Color with White Mother-of-Pearl
【No Diamond】Gold Color Red Agate
[No Diamond] Rose Gold Red Agate
【No Diamond】Gold Color Malachite
【No Diamond】Rose Gold Malachite
【No Diamond】White Gold Black Onyx
[No Diamond] Rose Gold Gray Shell
[No Diamond] Gold Black Onyx
[No Diamond] Rose Gold Black Onyx
【No Diamond】Gold Pink Shell
[No Diamond] Rose Gold Pink Shell
【No Diamond】Gold Color Tiger Eye Stone
【No Diamond】Rose Gold Tiger Eye Stone
【No Diamond】White Gold Blue Mother-of-Pearl
[No Diamond] Gold Blue Agate
[No Diamond] White Gold Blue Agate
[No Diamond] Rose Gold Blue Agate
【No Diamond】White Gold Color Purple Chalcedony
【With Diamond】White Gold Color White Mother-of-Pearl
[With Diamonds] Rose Gold Gray Shell
【With Diamond】Gold Color White Mother-of-Pearl
【With Diamond】Rose Gold Color White Mother-of-Pearl
【With Diamond】White Gold Red Agate
【With Diamond】Gold Color Red Agate
[With Diamonds] Rose Gold Red Agate
【With Diamonds】Gold Pink Shell
【With Diamonds】Rose Gold Pink Shell
【With Diamond】White Gold Malachite
【With Diamond】Gold Color Malachite
【With Diamond】Rose Gold Malachite
[With Diamond] White Gold Black Onyx
[With Diamond] Rose Gold Black Onyx
[With Diamond] Gold Black Onyx
【With Diamond】White Gold Tiger Eye Stone
【With Diamond】White Gold Color Purple Chalcedony
【Full Diamond】White Gold
【Full Diamond】Rose Gold
【Full Diamond】Gold Color Golden
[Laser] Platinum
[Laser] Gold color
[Laser] Rose Gold
[Laser + Red Agate] Gold Color
[Laser + Carnelian] Rose Gold
【New Model】Laser Black Warrior
[Transparent] Rose Gold
size
[V Gold] Highest Version-Color Retention for One Year
Bracelet High-End Counter Packaging
Bracelet High-End Counter Packaging Certificate
Bracelet Poison Packaging [Full Set] Certificate
Price
$159.00
Save
$150.00
2566 sold
Quantity
Free worldwide shipping
Free returns
High quality guaranteed
Secure payments
Product is unavailable.
Product was out of stock.
Flash sale cannot be displayed here. Please move it to the product detail area.
(This prompt will not be displayed on the client-side)
${saleCount}
sold
${function() {
if (banner.type === "TYPE_TWO") return `
`
return ``;
}()}
` : ``;
const flashSaleDesc = discount_info.limit_user_product_discount > -1 ? `
Promo products limited to ${discount_info.limit_user_product_discount} item per person
` : "";
return `
${bgImg}
${countdownDom}
${flashSaleDesc}
${titleIcon}
${productDisplay.text}
${progressBarDom}
${dd}D
·
${hours}
${hh}
:
${mm}
:
${ss}
.
${sss}
Avaliability:
in stock, ready to be shipped
${(function () {
return automatic_discount_list.map((item) => {
// 模版类型
const template_type = item.discount[0].template_type;
// 是否显示自动折扣
const is_show_automatic_discount = item.discount[0].product_enabled;
// 是否跳转落地页
const is_redirection = item.discount[0].is_redirection;
// 折扣图标
const discount_icon = item.discount_icon;
// 第一个自动折扣
const first_automatic_discount = item.discount[0];
// 显示折叠展示
const isFold = (item.discount[0].display_type || DISPLAY_TYPE.DTE_FOLD) === DISPLAY_TYPE.DTE_FOLD;
// 文本数组
const text_arr = item.discount[0].config.texts;
// 落地页链接
const first_landing_url = `/promotions/discount-default/${first_automatic_discount.discount_id}`;
// 自动折扣总数
const automatic_discount_total = item.discount.length;
// 是否显示折扣图标
const isHasDiscountIcon = discount_icon ? true : false;
// 是否显示折扣图标且模版类型不为tag
const isHasDiscountIconWithNoTag = (template_type != 'tag' && isHasDiscountIcon)? true : false;
// 文本颜色
let text_color = DEFAULT_CONFIG.TEXT_COLOR;
// 背景颜色
const bgFn = (curBg) => template_type === "text" ? "transparent" : curBg;
let bg_color = bgFn(DEFAULT_CONFIG.BG);
// 边框颜色
const borderFn = (curBorder) => template_type == "tag" ? curBorder : "initial";
let border_color = borderFn(DEFAULT_CONFIG.BORDER_COLOR);
// 模版配置
let template_config = first_automatic_discount.template_config;
// 兜底方案
try {
if(template_config.length !== 0){
template_config = JSON.parse(template_config);
text_color= isHasDiscountIconWithNoTag ? template_config.color[template_type].icon_text_color : template_config.color[template_type].text_color;
bg_color = bgFn(template_config.color[template_type].background_color);
const arrayRgba = bg_color.split(",");
arrayRgba.splice(3, 1, " 1)");
border_color = borderFn(`${arrayRgba.join(",")}`);
}
} catch (error) {
console.error('template_config_error', error);
template_config = {
color: {
[template_type]: {
icon_text_color: DEFAULT_CONFIG.TEXT_COLOR,
text_color: DEFAULT_CONFIG.TEXT_COLOR,
background_color: DEFAULT_CONFIG.BG
}
}
};
}
// 标签
const isTag = template_type == 'tag';
// 文字和横幅
const isTextAndBanner = template_type == 'text' || template_type == 'banner';
// 文字样式
const textStyle = `color: ${text_color}; background-color: transparent; border: none;`;
// 标签样式
const labelStyle = `color: ${text_color};border: 1px solid ${border_color};background-color:${bg_color};padding: 4px;`;
// 横幅样式
const bannerStyle = `color: ${text_color};border: none; background-color:${bg_color}`;
// 外层样式在标签样式下不展示颜色配置,除开标签类型,颜色都可以在外层覆盖
let outerStyle = '';
if (template_type == 'text') {
outerStyle = textStyle;
} else if (template_type == 'tag') {
outerStyle = "border: none;";
} else if (template_type == 'banner') {
outerStyle = bannerStyle;
}
/**
* 1. 标签一定是单独样式展示的
* 2. 折叠:横向布局,文字和横幅,合并成一行文本; 标签:单独样式处理
* 3. 平铺:纵向布局,文字、横幅和标签; 标签:单独样式处理
*/
let txtHtml = ``;
if (isFold) {
if(isTag) {
// 标签
const spanText = text_arr.map((text) => {
return `${text}`;
}).join('');
txtHtml = `
`
}
})()}
${spanText}
`;
} else {
// 文字和横幅
txtHtml = `
${first_automatic_discount.config.text}
`;
}
} else {
// 文字和横幅, 但标签有自己的样式
const spanText = text_arr.map((text) => {
return `${text}`;
}).join('');
// 都是纵向布局,标签有间距, 多活动多层级横向布局
txtHtml = `${spanText}
`;
}
/**
* 显示图标的判断
*/
const discount_type = item.discount_type;
const isShowRebateIcon = ["DT_REBATE_CTQ_OTP", "DT_REBATE_CTQ_OTR", "DT_REBATE_CTA_OTP", "DT_REBATE_CTA_OTR", "DT_M_N_DISCOUNT"].includes(discount_type) && isTextAndBanner
const isShowBxgyIcon = ["DT_BUY_ONE_GET_ONE", "DT_BUY_X_GET_Y"].includes(discount_type)
const isShowBundleIcon = ["DT_CLASSIC_BUNDLE","DT_MIX_MATCH_BUNDLE"].includes(discount_type);
/**
* 渲染下拉框或抽屉的折扣列表
*/
const discount_list_html = (curItem) => {
return `
${function() {
return curItem.discount.map(childItem => {
return `
`}).join('');
}()}
`;
}
return `
`;
}).join('');
})()}
${childItem.config.text}
${childItem.config.text}
Description