Ladies' V-neck Waist Cinched Top+ Pants Casual Suit

$79.00
const TAG = "spz-custom-product-automatic"; class SpzCustomProductAutomatic extends SPZ.BaseElement { constructor(element) { super(element); this.variant_id = 'fd899a58-fc4c-42e8-9689-fadf325066c5'; this.isRTL = SPZ.win.document.dir === 'rtl'; this.isAddingToCart_ = false; // 加购中状态 } static deferredMount() { return false; } buildCallback() { this.action_ = SPZServices.actionServiceForDoc(this.element); this.templates_ = SPZServices.templatesForDoc(this.element); this.xhr_ = SPZServices.xhrFor(this.win); this.setupAction_(); this.viewport_ = this.getViewport(); } mountCallback() { this.init(); // 监听事件 this.bindEvent_(); } async init() { this.handleFitTheme(); const data = await this.getDiscountList(); this.renderApiData_(data); } async getDiscountList() { const productId = '0237d8bc-e238-4352-b1e0-faf321f2e5e5'; const variantId = this.variant_id; const productType = 'default'; const reqBody = { product_id: productId, variant_id: variantId, discount_method: "DM_AUTOMATIC", customer: { customer_id: window.C_SETTINGS.customer.customer_id, email: window.C_SETTINGS.customer.customer_email }, product_type: productType } const url = `/api/storefront/promotion/display_setting/text/list`; const data = await this.xhr_.fetchJson(url, { method: "post", body: reqBody }).then(res => { return res; }).catch(err => { this.setContainerDisabled(false); }) return data; } async renderDiscountList() { this.setContainerDisabled(true); const data = await this.getDiscountList(); this.setContainerDisabled(false); // 重新渲染 抖动问题处理 this.renderApiData_(data); } clearDom() { const children = this.element.querySelector('*:not(template)'); children && SPZCore.Dom.removeElement(children); } async renderApiData_(data) { const parentDiv = document.querySelector('.automatic_discount_container'); const newTplDom = await this.getRenderTemplate(data); if (parentDiv) { parentDiv.innerHTML = ''; parentDiv.appendChild(newTplDom); } else { console.log('automatic_discount_container is null'); } } doRender_(data) { const renderData = data || {}; return this.templates_ .findAndRenderTemplate(this.element, renderData) .then((el) => { this.clearDom(); this.element.appendChild(el); }); } async getRenderTemplate(data) { const renderData = data || {}; return this.templates_ .findAndRenderTemplate(this.element, { ...renderData, isRTL: this.isRTL }) .then((el) => { this.clearDom(); return el; }); } setContainerDisabled(isDisable) { const automaticDiscountEl = document.querySelector('.automatic_discount_container_outer'); if(isDisable) { automaticDiscountEl.setAttribute('disabled', ''); } else { automaticDiscountEl.removeAttribute('disabled'); } } // 绑定事件 bindEvent_() { window.addEventListener('click', (e) => { let containerNodes = document.querySelectorAll(".automatic-container .panel"); let bool; Array.from(containerNodes).forEach((node) => { if(node.contains(e.target)){ bool = true; } }) // 是否popover面板点击范围 if (bool) { return; } if(e.target.classList.contains('drowdown-icon') || e.target.parentNode.classList.contains('drowdown-icon')){ return; } const nodes = document.querySelectorAll('.automatic-container'); Array.from(nodes).forEach((node) => { node.classList.remove('open-dropdown'); }) // 兼容主题 this.toggleProductSticky(true); }) // 监听变体变化 document.addEventListener('dj.variantChange', async(event) => { // 重新渲染 const variant = event.detail.selected; if (variant.product_id == '0237d8bc-e238-4352-b1e0-faf321f2e5e5' && variant.id != this.variant_id) { this.variant_id = variant.id; this.renderDiscountList(); } }); } // 兼容主题 handleFitTheme() { // top 属性影响抖动 let productInfoEl = null; if (window.SHOPLAZZA.theme.merchant_theme_name === 'Wind' || window.SHOPLAZZA.theme.merchant_theme_name === 'Flash') { productInfoEl = document.querySelector('.product-info-body .product-sticky-container'); } else if (window.SHOPLAZZA.theme.merchant_theme_name === 'Hero') { productInfoEl = document.querySelector('.product__info-wrapper .properties-content'); } if(productInfoEl){ productInfoEl.classList.add('force-top-auto'); } } // 兼容 wind/flash /hero 主题 (sticky属性影响 popover 层级展示, 会被其他元素覆盖) toggleProductSticky(isSticky) { let productInfoEl = null; if (window.SHOPLAZZA.theme.merchant_theme_name === 'Wind' || window.SHOPLAZZA.theme.merchant_theme_name === 'Flash') { productInfoEl = document.querySelector('.product-info-body .product-sticky-container'); } else if (window.SHOPLAZZA.theme.merchant_theme_name === 'Hero') { productInfoEl = document.querySelector('.product__info-wrapper .properties-content'); } if(productInfoEl){ if(isSticky) { // 还原该主题原有的sticky属性值 productInfoEl.classList.remove('force-position-static'); return; } productInfoEl.classList.toggle('force-position-static'); } } setupAction_() { this.registerAction('handleDropdown', (invocation) => { const discount_id = invocation.args.discount_id; const nodes = document.querySelectorAll('.automatic-container'); Array.from(nodes).forEach((node) => { if(node.getAttribute('id') != `automatic-${discount_id}`) { node.classList.remove('open-dropdown'); } }) const $discount_item = document.querySelector(`#automatic-${discount_id}`); $discount_item && $discount_item.classList.toggle('open-dropdown'); // 兼容主题 this.toggleProductSticky(); }); // 加购事件 this.registerAction('handleAddToCart', (invocation) => { // 阻止事件冒泡 const event = invocation.event; if (event) { event.stopPropagation(); event.preventDefault(); } // 如果正在加购中,直接返回 if (this.isAddingToCart_) { return; } const quantity = invocation.args.quantity || 1; this.addToCart(quantity); }); } // 加购方法 async addToCart(quantity) { // 设置加购中状态 this.isAddingToCart_ = true; const productId = '0237d8bc-e238-4352-b1e0-faf321f2e5e5'; const variantId = this.variant_id; const url = '/api/cart'; const reqBody = { product_id: productId, variant_id: variantId, quantity: quantity }; try { const data = await this.xhr_.fetchJson(url, { method: 'POST', body: reqBody }); // 触发加购成功提示 this.triggerAddToCartToast_(); return data; } catch (error) { error.then(err=>{ this.showToast_(err?.message || err?.errors?.[0] || 'Unknown error'); }) } finally { // 无论成功失败,都重置加购状态 this.isAddingToCart_ = false; } } showToast_(message) { const toastEl = document.querySelector("#apps-match-drawer-add_to_cart_toast"); if (toastEl) { SPZ.whenApiDefined(toastEl).then((apis) => { apis.showToast(message); }); } } // 触发加购成功提示 triggerAddToCartToast_() { // 如果主题有自己的加购提示,则不显示 const themeAddToCartToastEl = document.querySelector('#add-cart-event-proxy'); if (themeAddToCartToastEl) return; // 显示应用的加购成功提示 this.showToast_("Added successfully"); } triggerEvent_(name, data) { const event = SPZUtils.Event.create(this.win, `${ TAG }.${ name }`, data || {}); this.action_.trigger(this.element, name, event); } isLayoutSupported(layout) { return layout == SPZCore.Layout.CONTAINER; } } SPZ.defineElement(TAG, SpzCustomProductAutomatic);
class SpzCustomDiscountBundle extends SPZ.BaseElement { constructor(element) { super(element); } isLayoutSupported(layout) { return layout == SPZCore.Layout.LOGIC; } mountCallback() {} unmountCallback() {} setupAction_() { this.registerAction('showAddToCartToast', () => { const themeAddToCartToastEl = document.querySelector('#add-cart-event-proxy') if(themeAddToCartToastEl) return const toastEl = document.querySelector('#apps-match-drawer-add_to_cart_toast') SPZ.whenApiDefined(toastEl).then((apis) => { apis.showToast("Added successfully"); }); }); } buildCallback() { this.setupAction_(); }; } SPZ.defineElement('spz-custom-discount-toast', SpzCustomDiscountBundle);
Size:  XS(US 4/UK 8/EU 36)
Quantity

Description

Elevate Your Wardrobe: Olive Linen Wrap Co - ord Set

Step into refined simplicity with this olive linen wrap co - ord set – your new go - to for effortlessly chic, all - season style.

Premium Linen Fabric

Crafted from high - quality linen, this set is a breath of fresh air. Linen’s natural fibers are lightweight, breathable, and soft to the touch, making it perfect for warm days or when you crave a gentle, airy feel. It has a subtle, textured look that adds understated luxury, and gets cozier with each wash. A true wardrobe staple built to last.

Flattering Wrap Top

The wrap top features a V - neckline and a tie - waist design, creating a feminine, figure - enhancing silhouette. It cinches at the waist to accentuate curves, while the loose, flowy fit ensures comfort. The short sleeves add a touch of casual elegance, making it ideal for both work and play. Pair it with the matching pants or mix with denim – versatility at its best.

Chic Wide - Leg Pants

The wide - leg linen pants offer a relaxed, breezy fit with a tailored finish. The high - waist design elongates legs, and the wide legs create a graceful, modern silhouette. Whether you’re running errands or attending a lunch meeting, these pants move with you, ensuring all - day comfort and style. Dress them up with heels or keep it casual with slides – endless possibilities.

Versatile Styling

This co - ord set is a styling dream. Wear together for a cohesive, polished look perfect for the office or a weekend brunch. Mix and match: pair the top with a midi skirt for a feminine twist, or style the pants with a cropped sweater for cooler days. Add a statement belt or minimalist jewelry to elevate the outfit – your creativity shines.

Effortless Care

Linen is not only stylish but easy to care for. Machine - wash on a gentle cycle and line - dry to maintain shape and color. The durable fabric resists pilling and fading, so you enjoy the set’s fresh, olive hue and perfect fit wash after wash. Natural wrinkles add to its relaxed, bohemian charm – no ironing needed.

A Wardrobe Essential

This olive linen wrap co - ord set embodies the spirit of easy, elevated living. It allows you to look and feel your best with minimal effort, whether you’re chasing deadlines or enjoying a lazy afternoon. A versatile, timeless addition to any closet.
 
Don’t miss out – add this set to your cart today and embrace the comfort and style of linen. Step into a season of effortless fashion, ready to conquer any occasion with confidence.
 
Click “Add to Cart” now and redefine your everyday style with this must - have co - ord set. Your wardrobe (and your schedule) will thank you!

 

Tops size:
SizeLengthBustSleeve Length
CMinchCMinchCMinch
XS7228.39035.43011.8
S7328.79437.03112.2
M7429.19939.03212.6
L7529.510440.93313.0
XL7629.910942.93413.4
2XL7730.311444.93513.8
3XL7830.711946.93614.2

 

Pants Size:

SizeWaistHipsLength
CMinchCMinchCMinch
XS6425.29035.410742.1
S6525.69437.010842.5
M6626.09939.010942.9
L6726.410440.911043.3
XL6826.810942.911143.7
2XL6927.211444.911244.1
3XL7027.611946.911344.5

*This data was obtained from manually measuring the product, it may be off by 1-2 CM.