GMKtec NucBox K7 Mini PC Intel® 13th Core i5 13500H
A compact mini PC powered by Intel 13th Core i5 13500H processor, powerful for your daily office work. It can be your workstation, handling video editing, gaming, 3D etc, perfect for high-performance purposes.
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Color
`;
}()}
${function(){
const optName = "Variant";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Variant
`;
}()}
${function(){
const optName = "Power Plug Type";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Power Plug Type
`;
}()}
${function() {
const variantData = data.variant || {"id":"ba4b4b17-8657-402c-8f94-babefb6dccd0","product_id":"77944abe-7e55-4ba8-bab2-c9eddc7769ef","title":"Light Blue-Barebone\uff08No DDR, No SSD, No OS)-US","weight_unit":"kg","inventory_quantity":10,"sku":"K7-10-00S","barcode":"","position":1,"option1":"Light Blue","option2":"Barebone\uff08No DDR, No SSD, No OS)","option3":"US","note":"","image":null,"wholesale_price":[{"price":329.99,"min_quantity":1}],"weight":"3","compare_at_price":"0","price":"329.99","retail_price":"0","available":true,"url":"\/products\/intel-13th-core-i5-13500h-mini-pc-nucbox-k7?variant=ba4b4b17-8657-402c-8f94-babefb6dccd0","available_quantity":10,"options":[{"name":"Color","value":"Light Blue"},{"name":"Variant","value":"Barebone\uff08No DDR, No SSD, No OS)"},{"name":"Power Plug Type","value":"US"}],"off_ratio":"0","flashsale_info":{"variant_id":"ba4b4b17-8657-402c-8f94-babefb6dccd0","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":"329.99","compare_at_price":"","discount_price":"329.99","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":163};
const saveType = "amount";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}%` : `-` }
`; }()}
${function(){
const dd = data.dd; const hh = data.hh; const mm = data.mm; const ss = data.ss; const sss = data.SSS;
const hours = data.d * 24 + data.h;
return `
${dd}D
Ā·
${hours}
${hh}
:
${mm}
:
${ss}
.
${sss}
`
}()}
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 = "ba4b4b17-8657-402c-8f94-babefb6dccd0";
// äæéę“»åØę°ę®
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");
const setting = this.flashsaleData.product_setting;
const landingUrl = `/promotions/discount-default/${this.flashsaleData.discount_info.id}`;
const finalUrl = appDiscountUtils.resolveDiscountHref(setting, landingUrl);
if (finalUrl && appDiscountUtils.inProductBody(this.element) && e.target !== cur) {
this.win.open(finalUrl, '_blank', 'noopener');
}
}
// ē»å®
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 == '77944abe-7e55-4ba8-bab2-c9eddc7769ef' && variant.id != this.variantId) {
this.variantId = variant.id;
this.getData();
}
}
getData() {
const reqBody = {
product_id: "77944abe-7e55-4ba8-bab2-c9eddc7769ef",
product_type: "default",
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);
Free Shipping Worldwide (Remote areas excluded)
US Orders: No Import Fees
Product was out of stock.
Product is unavailable.