护膝

class SpzCustomDiscountFlashsale extends SPZ.BaseElement { constructor(element) { super(element); this.xhr_ = SPZServices.xhrFor(this.win); this.getFlashSaleApi = "\/api\/storefront\/promotion\/flashsale\/display_setting\/product_setting"; this.timer = null; this.variantId = "44fb4464-24e0-4ebd-b3f9-900f0f35ae2b"; // 促销活动数据 this.flashsaleData = {} } isLayoutSupported(layout) { return layout == SPZCore.Layout.CONTAINER; } buildCallback() { this.templates_ = SPZServices.templatesForDoc(); this.viewport_ = this.getViewport(); // 挂载bind函数 解决this指向问题 this.render = this.render.bind(this); this.resize = this.resize.bind(this); this.switchVariant = this.switchVariant.bind(this); } mountCallback() { // 获取数据 this.getData(); this.element.onclick = (e) => { const cur = this.win.document.querySelector(".app_discount_flashsale_desc"); if (this.flashsaleData.product_setting.is_redirection && appDiscountUtils.inProductBody(this.element) && e.target !== cur) { this.win.open(`/promotions/discount-default/${this.flashsaleData.discount_info.id}`); } } // 绑定 this.viewport_.onResize(this.resize); // 监听子款式切换,重新渲染 this.win.document.addEventListener('dj.variantChange', this.switchVariant); } unmountCallback() { // 解绑 this.viewport_.removeResize(this.resize); this.win.document.removeEventListener('dj.variantChange', this.switchVariant); // 清除定时器 if (this.timer) { clearTimeout(this.timer); this.timer = null; } } resize() { if (this.timer) { clearTimeout(this.timer) this.timer = null; } this.timer = setTimeout(() => { this.render(); }, 200) } switchVariant(event) { const variant = event.detail.selected; if (variant.product_id == '4a6d09db-ec6f-48a3-a256-8351320cf758' && variant.id != this.variantId) { this.variantId = variant.id; this.getData(); } } getData() { const reqBody = { product_id: "4a6d09db-ec6f-48a3-a256-8351320cf758", product_type: "", variant_id: this.variantId } this.flashsaleData = {}; this.win.fetch(this.getFlashSaleApi, { method: "POST", body: JSON.stringify(reqBody), headers: { "Content-Type": "application/json" } }).then(async (response) => { if (response.ok) { this.flashsaleData = await response.json(); this.render(); } else { this.clearDom(); } }).catch(err => { this.clearDom(); }); } clearDom() { const children = this.element.querySelector('*:not(template)'); children && SPZCore.Dom.removeElement(children); } render() { this.templates_ .findAndRenderTemplate(this.element, { isMobile: appDiscountUtils.judgeMobile(), isRTL: appDiscountUtils.judgeRTL(), inProductDetail: appDiscountUtils.inProductBody(this.element), flashsaleData: this.flashsaleData, image_domain: this.win.SHOPLAZZA.image_domain, }) .then((el) => { this.clearDom(); this.element.appendChild(el); }) } } SPZ.defineElement('spz-custom-discount-flashsale', SpzCustomDiscountFlashsale);
$59  - $99
(Tax included)
套餐:  套餐1(文字)
Quantity

Description


你是一个活力四射的人,总是喜欢参加各种户外活动,但是你可能会经常遇到膝盖疼痛的问题。这可不是个好兆头,会让你的运动体验大打折扣。所以现在就是时候购买一个护膝了!

这款护膝是专门为香港的习惯设计的,采用了最先进的科技,在保护你的膝盖的同时,也不会影响你的活动。护膝的面料采用了优质的材料,柔软舒适,完美贴合你的膝盖。同时,它的透气性非常好,不会让你的膝盖感到闷热。

这款护膝还可以帮助你加速肌肉的恢复,减少运动对膝盖的伤害。不管你是跑步、爬山、骑车还是其他户外运动,都可以放心地佩戴这款护膝,享受运动的乐趣。

护膝非常方便佩戴,你只需要在运动前把它穿上,就可以开始你的运动之旅了。同时,它还有一个调节装置,可以根据你的需要进行调节,确保护膝的稳固性。即使你在剧烈运动中,护膝也不会脱落。

除了运动外,护膝还可以用于日常生活中。如果你的工作需要长时间站立或坐着,护膝也可以帮助你减轻膝盖的负担,让你的工作更加轻松。

总之,护膝是你运动生活中必备的装备。它可以保护你的膝盖,减轻运动对膝盖的伤害,让你更加轻松自在地享受运动的乐趣。现在就来购买这款护膝,让你的运动生活更加完美!

测试车 司法舒服的e