404 Not Found


nginx/1.18.0 (Ubuntu)
`:`
  • `;} const this_params=parseUrlParams(urls[index]);if(this_params.video){tempHtml.find(".swiper-wrapper").append(`
  • `);}else{tempHtml.find(".swiper-wrapper").append(`
  • `);} const top=self.offset().top-$(document).scrollTop();const left=self.offset().left;const height=self.height();const width=self.width();if(!this_params.video){tempHtml.css({height:height,top:top,left:left,width:width,opacity:0.1});} $("body").append(tempHtml);if(!this_params.video){setTimeout(function(){tempHtml.css({height:"100%",top:0,left:0,width:"100%",opacity:1});},100);} setTimeout(function(){tempHtml.css({backgroundColor:"rgba(0, 0, 0, 0.6)"});tempHtml.addClass("view-picture-operate-show");tempHtml.find(".swiper-wrapper").html(swiperSlideHtml);new Swiper("#picture-swiper-container",{on:{init:function(){$('.view-picture .video-icon').each(function(){$(this).click(function(){$(this).closest('.swiper-slide').find('video').get(0).play();})}) $('.view-picture video').each(function(){const $icon=$(this).closest('.swiper-slide').find('.video-icon');$(this).on('canplay',function(){setTimeout(()=>{this.paused&&$icon.css("visibility","visible")},1000);}).on('play',function(){$icon.css("visibility","hidden")}).on('pause',function(){$icon.css("visibility","visible")});})},slideChange:function(){tempHtml.find('video').each(function(){try{this.pause()}catch(e){}})}},loop:false,initialSlide:index,autoHeight:true,navigation:{nextEl:"#picture-swiper-next",prevEl:"#picture-swiper-prev"}});},this_params.video?0:800);tempHtml.find("#operate-close").click(function(){tempHtml.addClass("view-picture-operate-hide");tempHtml.css({opacity:0.1});setTimeout(function(){tempHtml.remove();},400);});};Moi.prototype.countdown=function(dom,time,callback){var time;var t=setInterval(function(){if(time<=0){dom.remove();callback&&callback();clearInterval(t);} var s=Math.floor(time%60);var m=Math.floor((time/60)%60);var h=Math.floor((time/(60*60))%60);time=parseFloat(time)-1;var HHtml=''+(h>=10?h:"0"+h)+"H";var mHtml=''+(m>=10?m:"0"+m)+"M";var sHtml=''+(s>=10?s:"0"+s)+"S";var str="";if(h>0){str=HHtml+" : "+mHtml+" : "+sHtml;}else{str=mHtml+" : "+sHtml;} dom&&dom.html(str);},1000);};Moi.prototype.loadSwiper=function(version,callback){let linkHref=oemcart_imgcdn+`/uploads/0/theme/default/assets/swiper${version}-bundle.min.css?v=1108`;let link=document.createElement('link');link.rel='stylesheet';link.type='text/css';link.href=linkHref;let linkElem=$("link[href='"+linkHref+"']") if(linkElem.length==0){document.head.appendChild(link);} if(!this.callbacks){this.callbacks=[];} this.callbacks.push(callback) this.loadScript(oemcart_imgcdn+`/uploads/0/theme/default/assets/swiper${version}-bundle.min.js`,({loadType})=>{if(loadType=="ok"){this.callbacks.forEach(el=>el())} if(window['Swiper8']&&loadType=='old'){callback()}})} function setMoreMenu(option){var parentNode=$(option.parent);var childNode=parentNode.find(option.child);var moreNode=parentNode.find(option.moreClass);var parentWidth=parentNode.innerWidth();var totalWidth=0;var moreNodeWidth=moreNode.innerWidth();var isMore=false;childNode.each(function(index,child){totalWidth+=$(child).innerWidth();if(!$(child).hasClass(option.moreClass.replace('.',''))&&totalWidth+moreNodeWidth>parentWidth){$(child).hide();isMore=true;}});option.moreHtml&&parentNode.append(option.moreHtml);isMore?moreNode.show():moreNode.hide() if(option.triggerFunc==='click'||!option.triggerFunc){moreNode.click(function(e){e.stopPropagation() option.onMore&&option.onMore()})}else{moreNode.hover(function(e){e.stopPropagation() option.hoverEnter&&option.hoverEnter()},function(e){e.stopPropagation() option.hoverLeave&&option.hoverLeave()})}} Moi.prototype.hexToRgba=function(hex,alpha=1){hex=hex.replace(/^#/,'');if(hex.length===3){hex=hex.split('').map(c=>c+c).join('');}else if(hex.length===4){hex=hex.split('').map(c=>c+c).join('');} let r=parseInt(hex.slice(0,2),16);let g=parseInt(hex.slice(2,4),16);let b=parseInt(hex.slice(4,6),16);let a=hex.length===8?parseInt(hex.slice(6,8),16)/255:alpha;return`rgba(${r}, ${g}, ${b}, ${a})`;} Moi.prototype.setCustomNav=function(d,w,isShowShortMenu=false,callbackFunc,isShowMoreLink=true){d.find('.nav-child').each(function(){if(isShowShortMenu){if($(this).find('dl dd').length>0){$(this).parents('li').addClass('nav-child-three');}else{$(this).parents('li').addClass('nav-child-second');}}else{$(this).parents('li').addClass('nav-child-three');}}) if(!isShowMoreLink)return;var navWidth=w;var navUl=d.children('ul').width();if(navUl>navWidth){d.children('ul').children('li').each(function(){var left=$(this).position().left;var w=$(this).width();left+=w;if(left>(navWidth-160)){$(this).hide();$(this).nextAll('li').hide();return false;}}) d.children('ul').append('');var _html=d.children('ul').clone();d.find('.more_link_child').children('.nav_container_wrapper').append(_html);d.find('.more_link_child').children('.nav_container_wrapper').children('ul').children('li').each(function(index){if($(this).is(':visible')){$(this).remove();}else{if(d.find('.more_link_child').children('.nav_container_wrapper').children('ul').find('li.on').length===0){$(this).addClass('on')} $(this).show();}}) d.find('.more_link_child').children('.nav_container_wrapper').children('ul').children('li').hover(function(){$(this).parent().siblings('.nav-child').remove();$(this).parent().children('li').removeClass('on');$(this).addClass('on');if($(this).children('.nav-child').length==1){var moreNav=$(this).children('.nav-child').clone();$(this).parent().parent().append(moreNav);}})} d.children('ul').css('width','100%') callbackFunc&&callbackFunc()} Moi.prototype.setHeadMenu=function(option){setMoreMenu(option) this.addEvent('lazyImg',function(event){if(option.logoSrc&&event.params==option.logoSrc){setMoreMenu(option)}})};window.moi=new Moi();function getWeek(dateTime){let temptTime=new Date(dateTime.getTime());let weekday=temptTime.getDay()||7;temptTime.setDate(temptTime.getDate()-weekday+1+5);let firstDay=new Date(temptTime.getFullYear(),0,1);let dayOfWeek=firstDay.getDay();let spendDay=1;if(dayOfWeek!=0)spendDay=7-dayOfWeek+1;firstDay=new Date(temptTime.getFullYear(),0,1+spendDay);let d=Math.ceil((temptTime.valueOf()-firstDay.valueOf())/86400000);let result=Math.ceil(d/7);return result;} function getProductInfo(handle,success){moi.ajax({url:`/products/${handle}`,type:"get",success:function(ret){if(!ret.code){success&&success.call(this,ret);}else{return moi.alert({title:ret.msg});}}});} window.quickViewClose=function(callback){if(moi.globalpopupLayer){moi.globalpopupLayer.close(callback);}};window.quickViewCart=function(params){moi.onEvent("cartChange",params.cart);moi.addEvent("quickViewAddCart",function(){miniCart() showMiniCart();},true);quickViewClose(function(){var num=parseInt(moi.getPageStorage("cart_number",0))+params.quantity;moi.changeCartNumber(num);miniCart();moi.onEvent("quickViewAddCart",{product_id:params.product_id,product:params,collection_id:[]});});};window.quickViewBuy=function(url){quickViewClose(function(){moi.href(url);});};window.quickViewDetail=function(url){quickViewClose(function(){moi.href(url);});};window.quickViewLoad=function(height){if(!moi.globalpopupLayer){return false;} const classStr=themeConfig.global.product_quickview_type=="normal"?"normal-quick-iframe":"simple-quick-iframe";const quickIframe=moi.globalpopupLayer.temp.find("#quick-iframe");const iframeWrapNode=moi.globalpopupLayer.temp.find(".quick-iframe-wrap");moi.globalpopupLayer.temp.find(".quick-iframe-wrap-loading").remove();quickIframe.height(height);quickIframe.addClass(classStr);setTimeout(function(){if(height>iframeWrapNode.innerHeight()){quickIframe.attr("scrolling","auto");}},500);};window.oemsaasQuickview=moi.throttle(function(e){e.stopPropagation();e.preventDefault();moi.popupProductPicture({handle:$(this).data("handle"),data_from:$(this).data("from")});},1000);window['quickview']=moi.throttle(function(e){e.stopPropagation();e.preventDefault();moi.popupProductPicture({handle:$(this).data("handle"),data_from:$(this).data("from")});},1000);function getFirstUrl(){return sessionStorage.getItem("firstUrl")||false;} function createdExitIntentToken(){return new Date().getTime()+Math.floor(Math.random()*10)} const oemcartRouter={list:[],addRouter(){router.list.push(location.href)},saveLocalStorage(){localStorage.setItem('oemcart_routers',JSON.stringify(router.list))}} const firstWindowExitIntentUtil={getExitIntentToken(){return moi.getCookie("exit_intent_token")},isExitIntentFirst(){return sessionStorage.getItem("exit_intent_first_window")},setValue(){sessionStorage.setItem("exit_intent_first_window",1);moi.setCookie("exit_intent_token",createdExitIntentToken(),window["exit_intent_expiration_date"]||'h1')},removeValue(){sessionStorage.removeItem("exit_intent_first_window");sessionStorage.removeItem("firstUrl") moi.delCookie("exit_intent_token");}} function isHandleExit(state){var firstUrl=getFirstUrl();var href=location.href;if(!state&&firstUrl==href){return true} return false} function handleCallBackExitIntent(){firstWindowExitIntentUtil.removeValue() moi.onEvent("callback_exit_intent") window["callback_exit_intent"]&&callback_exit_intent()} function addEventListenerPopstate(){window.addEventListener("popstate",(event)=>{if(window["oemcart_is_debug"]){var exit_intent_first_window=sessionStorage.getItem("exit_intent_first_window");var firstUrl=sessionStorage.getItem("firstUrl") var exit_intent_token=moi.getCookie("exit_intent_token");$('body').append(`
    ${JSON.stringify({exit_intent_first_window,firstUrl,exit_intent_token})}
    `)} if(isHandleExit(event.state)&&firstWindowExitIntentUtil.isExitIntentFirst()){handleCallBackExitIntent();}});} function addRouter(isReplace){history.pushState({page:403},"",moi.setUrlParams(location.href,{exit:'true'}));} var is_init_exit_intent=false;window["init_exit_intent"]=function init_exit_intent(option){if(option&&option.debug){window["oemcart_is_debug"]=true;} if(option&&option.cookieExpirationDate){window["exit_intent_expiration_date"]=option.cookieExpirationDate;} if(is_init_exit_intent){return false} if(moi.isMobile()){var firstUrl=getFirstUrl();var href=location.href;if((!firstWindowExitIntentUtil.getExitIntentToken())){sessionStorage.setItem("firstUrl",href) addRouter()} addEventListenerPopstate();}else{document.body.addEventListener('mouseout',function(event){if(event.clientY<0&&firstWindowExitIntentUtil.isExitIntentFirst()){handleCallBackExitIntent();}});} if(!firstWindowExitIntentUtil.getExitIntentToken()){firstWindowExitIntentUtil.setValue()} is_init_exit_intent=true;}})();function getOssProcess(){var oemcart_platform=window['oemcart_platform']||1;if(oemcart_platform==1){return"x-oss-process=image"}else{return"x-image-process=image"}} function setOssProcessPath(src,imgHandleTypes){if(imgHandleTypes.length){var handleTypes=[getOssProcess()].concat(imgHandleTypes);var splitStr=src.indexOf("?")===-1?"?":"&";return src+splitStr+handleTypes.join("/");} return src} (function(){function waterfalls(option){const self=this;this.dom=$(option.id);this.resizeConfig=option.resizeConfig;this.currentColumnConfig=this.resizeWidth($(window).width());this.columnsGutter="20px";this.renderType=option.renderType||"Js";this.rowGutter="20px";this.fallNode=null;this.childrenClassName=option.childrenClass||".mo-waterfall-column";this.bottomDistance=option.bottomDistance||30;this.render=option.render;this.imgKey=option.imgKey||false;this.windowH=$(window).height();this.scrollBottom=option.scrollBottom;this.renderComplete=option.renderComplete;this.loadHtml=$('
    ');this.storage=[];this.addHeight=option.addHeight;this.initDom();$(window).scroll(function(){self.scroll.call(this,self);});$(window).resize(function(){const width=$(window).width();const columns=self.resizeWidth(width);if(columns&&columns.columns!==self.currentColumnConfig.columns){self.refresh(columns);}});} waterfalls.prototype.resizeWidth=function(width){for(let i=0;i`);this.fallNode=this.dom.children(".mo-waterfall-warp");for(let i=0;i`);this.fallNode.append(element);} this.fallNode.attr("style",`--columns:${this.currentColumnConfig.columns};--column-gutter:${this.currentColumnConfig.columnsGutter}`);this.childs=this.getChilds();};waterfalls.prototype.addStorage=function(data){this.storage=[...this.storage,...data];this.storageRender(data);};waterfalls.prototype.getImageHeight=function(src,callback,i){if(!src){callback&&callback(0);return;} let image=new Image();image.src=setOssProcessPath(src,['resize,m_lfit,w_100']);image.onload=()=>{const scale=image.height/image.width;const proportional=(this.childs.width*scale).toFixed(2);callback&&callback(Number(proportional));};image.onerror=()=>{console.log("加载失败");callback&&callback(0);};};waterfalls.prototype.storageRender=function(list){let self=this;let newlist=[].concat(list) if(this.renderType==='hw_liquid'){function hwLiquidRender(data){const childsNode=self.dom.children(".mo-waterfall-warp").children(this.childrenClassName);let index=self.getChildsMinHeight()[0];self.render(data,function(node){var $element=$(node).clone();$element.css({'visibility':'hidden','position':'absolute','display':'block'}).appendTo('body');self.childs.heights[index].height=self.childs.heights[index].height+$element.height();$element.remove();childsNode.eq(index).append(node);self.renderComplete&&self.renderComplete.call(self,node);moi.onEvent("waterfallsComplete");if(newlist.length){let data=newlist.splice(0,1);hwLiquidRender(data)}});} let data=newlist.splice(0,1) hwLiquidRender(data);return} const loadHtml=[];let sotrs=this.getChildsMinHeight();let startIndex=0;for(let i=0;ia.height-b.height).map((item)=>{return item.index;});};waterfalls.prototype.setHeight=function(index,height){this.childs.heights[index]=this.childs.heights[index]+height+this.addHeight();};waterfalls.prototype.scroll=function(self){const scrollTop=$(this).scrollTop();if(scrollTop+self.windowH+self.bottomDistance>=self.getHeight()+self.getOffsetTop()){self.childs=self.getChilds();self.scrollBottom&&self.scrollBottom.call(this);}};waterfalls.prototype.complete=function(){moi.bindRedirectHref(this.fallNode.find("a"));this.renderComplete&&this.renderComplete.call(this,this.fallNode);};waterfalls.prototype.appendHTml=function(loadHtml){const self=this;const childsNode=this.childs.node;let completeCount=0;for(let i=0;i${text}`));};waterfalls.prototype.showMore=function(text,href){if(text){this.dom.append($(``));}};window.waterfalls=waterfalls;window.waterfallsScrollLoad=true;window.waterfalls=waterfalls;})();var oemcartIsWebp="";function checkWebpFeature(feature,callback){if(typeof oemcartIsWebp==="boolean"){return callback(feature,oemcartIsWebp)} var kTestImages={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"} var img=new Image() img.onload=function(){oemcartIsWebp=(img.width>0)&&(img.height>0) callback(feature,oemcartIsWebp)};img.onerror=function(){oemcartIsWebp=false;callback(feature,false)} img.src="data:image/webp;base64,"+kTestImages[feature]} (function(){const $window=$(window);const ratio=window.devicePixelRatio;var lazyImgs=[];function getStoreConfigImageConfig(){if(!window.storeConfig||!window.storeConfig.imagerocket){return false} return JSON.parse(window.storeConfig.imagerocket);} function getImageToWebP(suffix){var config=getStoreConfigImageConfig();var webpSuffix=["JPG","JPEG","PNG","AVIF"];if(!config||config.status==2||!webpSuffix.includes(suffix)){return""} return`format,webp`} function getImageQuality(suffix){var qualitySuffix=["JPG","JPEG","WEBP"];var config=getStoreConfigImageConfig();if(!config||config.status==2||(!getImageToWebP(suffix)&&!qualitySuffix.includes(suffix))){return""} var quality=config.quality_type===1?'q':'Q';return`quality,${quality}_${config.quality_value}`} function avifFormatJPG(suffix){if(suffix==="AVIF"){return`format,jpg`} return""} function loadImg(option){var config=getStoreConfigImageConfig();checkWebpFeature("lossy",function(feature,isSupported){if(isSupported){option.imgHandleTypes.push(getImageToWebP(option.fileExtension));} if(!isSupported||config.status===2||!config){option.imgHandleTypes.push(avifFormatJPG(option.fileExtension))} option.elment[0].onload=()=>{moi.onEvent("lazyImg",option.imgSrc);} option.elment[0].onerror=()=>{if(!option.retry){option.elment.attr("src",option.src);option['retry']=true}else{if(option.elment.attr('flag')){option.elment.attr("src",oemcart_imgcdn+"/uploads/0/theme/default/assets/guoqi.png");}else{option.elment.attr("src",oemcart_imgcdn+"/uploads/0/theme/default/assets/empty.png");}}} var handleTypes=option.imgHandleTypes.filter(Boolean);option.elment.attr("src",setOssProcessPath(option.src,handleTypes));});} function setImgUrl(elment){if(elment.attr("data-aspect-ratio")){return false;} var oldSrc=elment.attr("src");var imgSrc=elment.attr("data-src");var cropType=elment.attr("data-crop-type");var cropHeight=elment.attr("data-crop-height");var cropWidth=elment.attr("data-crop-width");var isCdn=elment.attr("data-cdn")||false;elment[0].removeAttribute("data-src");if(imgSrc){var fileExtension=imgSrc.substring(imgSrc.lastIndexOf(".")+1).toUpperCase();var src=imgSrc;if(isCdn){src=oemcart_imgcdn+src} var whiteSuffix=["JPG","JPEG","PNG","BMP","TIFF","AVIF"];var imgHandleTypes=[];if(whiteSuffix.includes(fileExtension)){var width=cropWidth||elment.innerWidth();if(cropType==="height"){var height=cropHeight||elment.height();if(height){imgHandleTypes.push(`resize,m_lfit,h_${Math.floor(width * (ratio > 1 ? ratio : 2))}`);}}else if(cropType==='none'){imgHandleTypes.push('')}else{if(width){imgHandleTypes.push(`resize,m_lfit,w_${Math.floor(width * (ratio > 1 ? ratio : 2))}`);}} imgHandleTypes.push(getImageQuality(fileExtension));} loadImg({src:src,fileExtension:fileExtension,imgHandleTypes:imgHandleTypes,imgSrc:imgSrc,oldSrc:oldSrc,elment:elment});}} function lazyImageShow(){const wtop=$window.scrollTop();if(lazyImgs.length>0){const wheight=$window.height();const delIndexs=[];for(let i=0;i=0;i--){lazyImgs.splice(delIndexs[i],1);}}} var isSupportIntersectionObserver=window['IntersectionObserver']?true:false;var imgObserver="";if(isSupportIntersectionObserver){imgObserver=new IntersectionObserver(function(entrys){for(const entry of entrys){if(entry.intersectionRatio){const element=$(entry.target);setImgUrl(element);}}},{rootMargin:"0px 0px 100px 0px",threshold:[0.01]})}else{console.log("Not Supported IntersectionObserver")} function onScroll(){lazyImageShow();};$window.scroll(onScroll);window.lazyImageShow=lazyImageShow;window.lazyLoadImage=setImgUrl;window.addLazyImages=function(nodes){nodes.each(function(){if(isSupportIntersectionObserver){imgObserver.observe(this);}else{lazyImgs.push($(this));}});onScroll();};try{document.addEventListener('DOMContentLoaded',(event)=>{$('html,body').find('img[data-src]').each(function(){addLazyImages($(this))}) const target=document.body;if(target&&window["MutationObserver"]){const observer=new MutationObserver((mutationList)=>{mutationList.forEach((record)=>{record.addedNodes.forEach((node)=>{if(node.nodeType===1){const $node=$(node);if($node.is('img[data-src]')){window.addLazyImages($node);} $node.find('img[data-src]').each(function(){window.addLazyImages($(this));});}});});});observer.observe(target,{childList:true,attributes:false,characterData:false,subtree:true});}})}catch(error){}})();$(function(){function imgSize(productBox){for(let i=0;i-1?location.href:"/search";if(themeId){location.href=moi.setUrlParams(URL,{q:searchValue,page:1,theme_id:themeId});}else{location.href=moi.setUrlParams(URL,{q:searchValue,page:1});} return false;};window['search']=oemsaasSearch window['shopSearch']=oemsaasSearch window.oemsaasMiniCart=function(){if(window["oemcart_current_template"]==="cart_list"){return} moi.onEvent("showMiniCart");$(".minicart").addClass("minicart_on");$('body').addClass("df-overflow-hidden") const html=$(".minicart").find(".minicart_mid").html();if(!html){miniCart();}else{var miniCartInfo=moi.getPageStorage('miniCartInfo',{coupon_code:''});shopCouponRecord&&shopCouponRecord('',miniCartInfo.coupon_code) if(window["oemcart_current_template"]!=="cart_list"){oemcartTriggerCartChange();}}};window['showMiniCart']=function(){if(window["oemcart_current_template"]!=="cart_list"){window.oemsaasMiniCart()}};window['shopMiniCart']=oemsaasMiniCart function pad(num,n){return num+Array(n>num?n-(""+num).length+1:0).join(0);} function number_format(number,decimals,dec_point,thousands_sep){var gapnum=3;var str="";number=number.toFixed(decimals);is_negative=number<0?true:false;if(is_negative){number=Math.abs(number)+"";} realnum=number.split(".")[0];decimal=number.split(".")[1];realnumarr=realnum.split("");for(var i=1;i<=realnumarr.length;i++){str=realnumarr[realnumarr.length-i]+str;if(i%gapnum==0){str=thousands_sep+str;}} str=realnum.length%gapnum==0?str.substr(1):str;realnum=str+(decimals?""+dec_point+""+(decimal?pad(decimal,decimals):pad(0,decimals)):"");if(is_negative){realnum="-"+realnum;} return realnum;} function FloatAdd(arg1,arg2){var r1,r2,m;try{r1=arg1.toString().split(".")[1].length;}catch(e){r1=0;} try{r2=arg2.toString().split(".")[1].length;}catch(e){r2=0;} m=Math.pow(10,Math.max(r1,r2));return(arg1*m+arg2*m)/m;} function FloatSub(arg1,arg2,decimal){var r1,r2,m,n;try{r1=arg1.toString().split(".")[1].length;}catch(e){r1=0;} try{r2=arg2.toString().split(".")[1].length;}catch(e){r2=0;} m=Math.pow(10,Math.max(r1,r2));n=r1>=r2?r1:r2;if(decimal){n=decimal;} return((arg1*m-arg2*m)/m).toFixed(n);} function FloatMul(arg1,arg2,decimal){var m=0,s1=arg1.toString(),s2=arg2.toString();try{m+=s1.split(".")[1].length;}catch(e){} try{m+=s2.split(".")[1].length;}catch(e){} if(decimal){return((Number(s1.replace(".",""))*Number(s2.replace(".","")))/Math.pow(10,m)).toFixed(decimal);} return(Number(s1.replace(".",""))*Number(s2.replace(".","")))/Math.pow(10,m);} function FloatDiv(arg1,arg2,decimal){var t1=0,t2=0,r1,r2;try{t1=arg1.toString().split(".")[1].length;}catch(e){} try{t2=arg2.toString().split(".")[1].length;}catch(e){} with(Math){r1=Number(arg1.toString().replace(".",""));r2=Number(arg2.toString().replace(".",""));if(decimal){return Number((r1/r2)*pow(10,t2-t1)).toFixed(decimal);} return(r1/r2)*pow(10,t2-t1);}} function price_format(price,decimal=2){result=price.toFixed(decimal);return Number(result);} function currencyExchange(price,currency,decimal_num){var rate=currency.exchange_rate;var decimal=currency.decimal_num;if(decimal_num){decimal=decimal_num;} return price_format(price*rate,decimal);} function formatMoney(number,currency,exchangeRate,appendSymbol,isFormat){var exchangeRate=exchangeRate||currency.exchange_rate;var symbolLeft=currency.symbol_left;var symbolRigth=currency.symbol_right;var currencyFormat=currency.currency_format;var decimalNum=currency.decimal_num;var decimalSeparator=".";var thousandsSeparator="'";switch(currencyFormat){case"123,456.78":decimalSeparator=".";thousandsSeparator=",";break;case"123,456":decimalSeparator="";thousandsSeparator=",";decimalNum=0;break;case"123.456,78":decimalSeparator=",";thousandsSeparator=".";break;case"123.456":decimalSeparator="";thousandsSeparator=".";decimalNum=0;break;case"123'456.65":default:decimalSeparator=".";thousandsSeparator="'";break;} number=number||0;number=price_format(number*exchangeRate,decimalNum);if(isFormat===false){return number} symbolLeft=symbolLeft!=""?symbolLeft+" ":"";symbolRigth=symbolRigth!=""?" "+symbolRigth:"";if(appendSymbol===false){return number_format(number,decimalNum,decimalSeparator,thousandsSeparator);} return symbolLeft+""+number_format(number,decimalNum,decimalSeparator,thousandsSeparator)+""+symbolRigth;} var isGetCartNumber=false;function addCartNum(){if(!isGetCartNumber){var num=oemcart_cart_number.item_number moi.changeCartNumber(num);isGetCartNumber=true;}else{moi.ajax({url:"/cart.json",type:"GET",dataType:"json",success:function(res){var num=res.data.item_number;moi.changeCartNumber(num);}});}} function miniCart(){if(window["oemcart_current_template"]==="cart_list"){return false} $(".minicart_form").remove();$.ajax({url:"/cart/mini",cache:false,dataType:"html",success:function(html){$(".minicart_mid").html(html);moi.onEvent("miniCart");if(window["oemcart_current_template"]!=="cart_list"){oemcartTriggerCartChange();}},beforeSend:function(){$(".minicart_top").after('
    ');},complete:function(){$(".minicart_ajaxloading").remove();}});} function createAjaxLoading(){$("body").append('