404 Not Found


nginx/1.18.0 (Ubuntu)
on y(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function b(t,r){for(var e=0;er&&window.innerWidth<=e,i=window.innerWidth>r&&window.innerWidth<=o,p=window.innerWidth>o;return{IS_SMALL_MOBILE:n,IS_MOBILE:a,IS_SMALL_IPAD:c,IS_IPAD:i,IS_PC:p,IS_MOBILE_STYLE:window.innerWidth<=e,IS_PC_STYLE:window.innerWidth>e,MOBILE_OR_SMALL_IPAD:a||c,MOBILE_OR_IPAD:a||i,IPAD_OR_PC:i||p}},N={header:".plugin-container-header",footer:".plugin-container-footer"},P=S((function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t)}));C(P,"common",{miniCartPayTop:".plugin-mini_cart-pay_top",miniCartPayBottom:".plugin-mini_cart-pay_bottom"}),C(P,"products",k(k({},N),{},{priceBottom:".plugin-product_detail-price_bottom",buyButtonTop:".plugin-product_detail-buy_top",buyButtonBottom:".plugin-product_detail-buy_bottom",buyDescriptBottom:".plugin-product_detail-buy_describe_bottom",tabsTop:".plugin-product_detail-tabs_top",tabsBottom:".plugin-product_detail-tabs_bottom",quantityTop:".plugin-product_detail-quantity_top",detailTab:".plugin-product_detail-content",productTitleBottom:".plugin-product_detail-title_bottom"})),C(P,"blogList",N),C(P,"blogDetail",N),C(P,"search",k(k({},N),{},{searchEmpty:".plugin-search-empty"})),C(P,"collectionList",N),C(P,"collectionDetail",N),C(P,"cart",k(k({},N),{},{buyButtonBottom:".plugin-cart-buy_bottom",buyButtonTop:".plugin-cart-buy_top"})),C(P,"cartPopover",{header:".plugin-cart_layer-header",footer:".plugin-cart_layer-footer"}),C(P,"login",N),C(P,"register",N),C(P,"resetPassword",N),C(P,"settle",k(k({},N),{},{rightBottom:".plugin-checkout-right_bottom"})),C(P,"paySuccess",k(k({},N),{},{rightBottom:".plugin-checkout-right_bottom",contentTop:".plugin-checkout-content_top",contentBottom:".plugin-checkout-content_bottom"})),C(P,"order",k(k({},N),{},{productTop:".plugin-orderdetail-product_top"})),C(P,404,k(k({},N),{},{content:".plugin-notfound-content"})),C(P,"account",N),C(P,"commentPopup",{top:".plugin-write-comment-top"});function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function z(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */z=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function i(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{i({},"")}catch(t){i=function(t,r,e){return t[r]=e}}function p(t,r,e,o){var n=r&&r.prototype instanceof s?r:s,a=Object.create(n.prototype),c=new T(o||[]);return a._invoke=function(t,r,e){var o="suspendedStart";return function(n,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw a;return E()}for(e.method=n,e.arg=a;;){var c=e.delegate;if(c){var i=y(c,e);if(i){if(i===u)continue;return i}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===o)throw o="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o="executing";var p=d(t,r,e);if("normal"===p.type){if(o=e.done?"completed":"suspendedYield",p.arg===u)continue;return{value:p.arg,done:e.done}}"throw"===p.type&&(o="completed",e.method="throw",e.arg=p.arg)}}}(t,e,c),a}function d(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var u={};function s(){}function l(){}function f(){}var m={};i(m,n,(function(){return this}));var h=Object.getPrototypeOf,_=h&&h(h(k([])));_&&_!==r&&e.call(_,n)&&(m=_);var g=f.prototype=s.prototype=Object.create(m);function v(t){["next","throw","return"].forEach((function(r){i(t,r,(function(t){return this._invoke(r,t)}))}))}function w(t,r){function o(n,a,c,i){var p=d(t[n],t,a);if("throw"!==p.type){var u=p.arg,s=u.value;return s&&"object"==A(s)&&e.call(s,"__await")?r.resolve(s.__await).then((function(t){o("next",t,c,i)}),(function(t){o("throw",t,c,i)})):r.resolve(s).then((function(t){u.value=t,c(u)}),(function(t){return o("throw",t,c,i)}))}i(p.arg)}var n;this._invoke=function(t,e){function a(){return new r((function(r,n){o(t,e,r,n)}))}return n=n?n.then(a,a):a()}}function y(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,y(t,r),"throw"===r.method))return u;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=d(e,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,u;var n=o.arg;return n?n.done?(r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,u):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,u)}function b(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function x(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function k(t){if(t){var r=t[n];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o=0;--n){var a=this.tryEntries[n],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var i=e.call(a,"catchLoc"),p=e.call(a,"finallyLoc");if(i&&p){if(this.prev=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&e.call(n,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),x(e),u}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var o=e.completion;if("throw"===o.type){var n=o.arg;x(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),u}},t}function D(t,r,e,o,n,a,c){try{var i=t[a](c),p=i.value}catch(t){return void e(t)}i.done?r(p):Promise.resolve(p).then(o,n)}function M(t){return function(){var r=this,e=arguments;return new Promise((function(o,n){var a=t.apply(r,e);function c(t){D(a,o,n,c,i,"next",t)}function i(t){D(a,o,n,c,i,"throw",t)}c(void 0)}))}}function B(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var o,n,a=[],c=!0,i=!1;try{for(e=e.call(t);!(c=(o=e.next()).done)&&(a.push(o.value),!r||a.length!==r);c=!0);}catch(t){i=!0,n=t}finally{try{c||null==e.return||e.return()}finally{if(i)throw n}}return a}(t,r)||F(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,r){if(t){if("string"==typeof t)return R(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?R(t,r):void 0}}function R(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,o=new Array(r);e0&&void 0!==arguments[0]?arguments[0]:{},r=t.appName||Date.now(),e=t.className,o=void 0===e?"":e,n=t.content,a=t.defaultVisible,c=t.maxWidth,i=t.zIndex,p=t.width,d=t.footer,u=t.title,s=t.hideCrossLine,l=t.onShow,f=t.onClose,m=t.contentClass,h=void 0===m?"":m,_=t.isAutoRemove,g=t.hideHeader,v=t.disableQuickClose,w=t.maskOpacity,y=void 0===w?.2:w,b=t.type,x=void 0===b?"modal":b,T=t.animationDuration,k=void 0===T?1e3:T,E="app-".concat(r,"_modal"),S="".concat(o?" "+o:""),C="".concat(E,"-style");_&&($(".".concat(E)).remove(),$("#".concat(C)).remove());var O="70px",I="24px",j="30px",L=p;Number(L)==L&&(L+="px"),s&&(O="80px"),"miniModal"===x&&(O="56px",I="16px",j="22px"),"drawer"===x&&(O="80px",I="24px",j="22px",L||(L="400px"),G().IS_MOBILE&&(L="100%"));var N='\n\t\t\t\n\t\t");$("#".concat(C)).length||$("body").append(N);var P={content:n,footer:d,title:u,showFnArray:[],closeFnArray:[]},A={hide:function(){var t="appBounceOutUp";G().IS_MOBILE&&"mobileDrawer"===x?t="appSlideOutDown":"drawer"===x&&(t="appSlideOutRight"),$(".".concat(E)).css("animation","app".concat(r,"FadeIn ").concat(k,"ms")),$(".".concat(E,"-core")).css("animation","".concat(t," ").concat(k,"ms")),setTimeout((function(){$(".".concat(E)).remove(),f&&f(),P.closeFnArray.forEach((function(t){return t()}))}),k-.3*k),"mobileDrawer"===x&&window.removeEventListener("resize",D)},show:function(){var t=this;setTimeout((function(){$("body").append(z({content:P.content,footer:P.footer,title:P.title})),"mobileDrawer"===x&&D(),t.initConfig(),$(".".concat(E,"-close")).on("click",A.hide),$(".".concat(E)).on("click",(function(){v||A.hide()})),$(".".concat(E,"-core")).on("click",(function(t){return t.stopPropagation()})),"mobileDrawer"===x&&window.addEventListener("resize",D),setTimeout((function(){var t=$(".".concat(E,"-core footer")).innerHeight();$(".".concat(E,"-core")).css("padding-bottom",t+"px"),$(".".concat(E,"-core main")).css("max-height","calc(100vh - ".concat(O," - 64px - ").concat(t,"px)"))})),l&&l(),P.showFnArray.forEach((function(t){return t()}))}))},initConfig:function(){P.content=n,P.footer=d,P.title=u},setContent:function(t){$(".".concat(E," main")).length?($(".".concat(E," main")).html(t),this.initConfig()):P.content=t},setFooter:function(t){$(".".concat(E," footer")).length?($(".".concat(E," footer")).html(t),this.initConfig()):P.footer=t},setTitle:function(t){$(".".concat(E)).length?(this.initConfig(),$(".".concat(E," .").concat(E,"-title")).html(t)):P.title=t},set:function(t){var r={content:this.setContent.bind(this,t.content),footer:this.setFooter.bind(this,t.footer),title:this.setTitle.bind(this,t.title)};for(var e in t)Object.hasOwnProperty.call(t,e)&&r[e]()},addEventListener:function(t,r){"function"!=typeof r&&new Error("期望传入函数"),P["".concat(t,"FnArray")].push(r)}};return a&&A.show(),A;function z(t){var r=t.content,e=t.footer,o=t.title,n=e?"
".concat(e,"
"):"",a='\n\t\t\t\t
\n\t\t\t\t\t
').concat(o,'
\n\t\t\t\t\t\n\t\t\t\t
');return g&&(a=""),'\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t').concat(a,'\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t').concat(r||"","\n\t\t\t\t\t\t
\n\t\t\t\t\t\t").concat(n,"\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t")}function D(){G().IS_MOBILE?$(".".concat(E)).addClass("".concat(E,"-mobile-drawer")):$(".".concat(E)).removeClass("".concat(E,"-mobile-drawer"))}}},{key:"scrollTo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scrollTop:0,selector:"",duration:300},r=t.scrollTop,e=void 0===r?0:r,o=t.selector,n=void 0===o?"":o,a=t.duration,c=void 0===a?300:a,i=10,p=n?document.querySelector(n).scrollTop:window.pageYOffset,d=(e-p)/c*i,u=e>p?"down":"up",s=setInterval((function(){Math.abs(p-e)>Math.abs(d)?p+=d:p=e,n?document.querySelector(n).scroll(0,p):window.scrollTo(0,p),("down"===u?p>=e:p<=e)&&clearInterval(s)}),i)}},{key:"insertDom",value:function(t){var r=t.type,e=t.selector,o=t.dom;$(e).each((function(t,e){$(e).is(":visible")&&$(e)[r](o)}))}},{key:"createAppDivByWeight",value:function(t){var r,e,o,n="",a=!1,c=!1;t.container?(r=t.html,e=t.appWeightOrAppName,a=t.insertToHideContianer||!1,c=t.insertAllContainer||!1,o=t.removeNode,n=t.container):n=t,o&&$(o).each((function(t,r){return $(r).remove()}));var i=isNaN(e)?parseInt(window["_app_".concat(e,"_sort_weight")]):e,p="app-weight";"string"==typeof r?r.indexOf(p)<0&&(r=r.replace("=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return c=t.done,t},e:function(t){i=!0,a=t},f:function(){try{c||null==e.return||e.return()}finally{if(i)throw a}}}}(e.entries());try{for(n.s();!(o=n.n()).done;){var a=B(o.value,2),c=a[0],d=a[1],u=parseInt($(d).attr(p));if(0===c&&i>u)return $(d).before(r);if(c===e.length-1)return $(d).after(r);var s=$(e[c+1]).attr(p);if(is)return $(d).after(r)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"createStickyHtml",value:function(r,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n="app-sticky-".concat(o,"-box");$("#".concat(n)).length||$("body")["top"===o?"prepend":"append"]('
')),t.createAppDivByWeight({container:"#".concat(n),html:r,appWeightOrAppName:e})}},{key:"createStickyHtmlToMinicart",value:function(r,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n="app-sticky-".concat(o,"-box-minicart");if(!$("#".concat(n)).length){var a,c;"top"===o?(a=P.cartPopover.header,c="before"):(a=P.cartPopover.footer,c="after");var i="80px";G().IS_MOBILE_STYLE&&(i="60px"),$(a)[c](''))}t.createAppDivByWeight({container:"#".concat(n),html:r,appWeightOrAppName:e})}},{key:"append",value:function(t,r){this.insertDom({type:"append",selector:t,dom:r})}},{key:"prepend",value:function(t,r){this.insertDom({type:"prepend",selector:t,dom:r})}},{key:"download",value:function(t){!function(t,r,e){window.URL=window.URL||window.webkitURL;var o=new XMLHttpRequest;o.open("get",t,!0),e.responseType&&(o.responseType=e.responseType),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&r(o)},o.send()}(t,(function(r){var e=t.split("/").pop();!function(t,r){var e=document.createElement("a"),o=new Blob([t]),n=window.URL.createObjectURL(o);e.href=n,e.download=r,e.click(),window.URL.revokeObjectURL(n)}(r.response,e)}),{responseType:"blob"})}},{key:"checkRoute",value:function(t){if("module_notfound"===_GET_C_SETTING_("current_template"))return!1;t=t.replace(/_/g,"/");var r={"index/index":["index/index"],"collection/list":["collection/list"],"collection/detail":["collection/detail"],"product/detail":["product/detail"],"cart/list":["cart/list"],"order/checkout":["order/checkout","orderonepage/index","ordersinglepage/index","ordersinglepage/gateway"],"orderonepage/index":["order/checkout","orderonepage/index","ordersinglepage/index","ordersinglepage/gateway"],"order/success":["order/success"],"account/default":["account/default"],"ordersinglepage/gateway":["ordersinglepage/gateway"]};return!(!Array.isArray(r[t])||!r[t].includes(_GET_C_SETTING_("current_router")))}},{key:"debounce",value:function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return function(){r&&clearTimeout(r),r=setTimeout((function(){t(),r=null}),e)}}},{key:"subscribe",value:(n=M(z().mark((function r(e,o,n){return z().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise(function(){var r=M(z().mark((function r(a,c){var i,p,d,u,s;return z().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=$(e).siblings("input").val(),t.isEmail(i)){r.next=5;break}return moi.alertInfo({content:lang.checkout.email_is_invalid,placement:"top",type:"warn"}),c(),r.abrupt("return");case 5:return $(o).show(),p=moi.nodeShowLoading(o),r.next=9,x.post({url:"/homeapi/module/newsletter",data:{email:i,submit_type:n}});case 9:if(d=r.sent,u=d.code,s=d.msg,p.close(),$(o).hide(),!u){r.next=17;break}return moi.alertInfo({content:s,placement:"top",type:"danger"}),r.abrupt("return");case 17:moi.alertInfo({content:lang.general.subscribe_succeed,placement:"top",type:"success"}),a("");case 19:case"end":return r.stop()}}),r)})));return function(t,e){return r.apply(this,arguments)}}()));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return n.apply(this,arguments)})},{key:"getCouponFormat",value:function(t){if(!t)return["",""];var r=t.param.discount,e=t.param.condition,o=e.type,n=lang.coupons.discount_rule_extra,a="";return o&&(n=lang.coupons[1===o?"discount_rule_count":"discount_rule_amount"].replace(/\{([^}]+)\}/g,"".concat(2===o?formatMoney(e.value,_GET_C_SETTING_("currency")):e.value)),"zh-CN"===_GET_C_SETTING_("website_language")&&(n=n.slice(0,n.length-2))),1===r.type&&(a="".concat(r.value,"% OFF")),2===r.type&&(a=lang.coupons.discount_type_fixed_amount.replace(/\{([^}]+)\}/g,"".concat(formatMoney(r.value,_GET_C_SETTING_("currency"))))),[a,n]}},{key:"getEcData",value:function(t){var r=moi.getPageStorage("mian_product_params");return r?{ec_data_id:r.product_id,ec_data_from:"app_".concat(t),ec_data_name:encodeURIComponent(r.productTitle),ec_data_price:r.price,ec_data_discount_price:r.price,ec_data_spu:r.spu,ec_data_image:r.src,ec_data_category:_GET_C_SETTING_("product").product_type,ec_data_uniq_id:r.product_id,ec_data_sku:r.sku,ec_data_sku_code:r.sku_code,ec_data_quantity:r.quantity,ec_data_sku_name:r.sku_value||"",ec_currency_code:_GET_C_SETTING_("base_currency").standard_code,ec_data_action_type:"add_to_cart"}:{}}}],e&&U(r.prototype,e),o&&U(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(),W={product_detail:"product/detail",cart_list:"cart/list",collection_detail:"collection/detail","carts/create":"carts/create",search_detail:"search/detail",order_success:"order/success",module_notfound:"module/notfound",account_default:"account/default",blog_list:"blog/list",blog_detail:"blog/detail"};function Y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"prev";return'')}function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function Z(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function V(t){for(var r=1;r