(window.webpackJsonp=window.webpackJsonp||[]).push([[587,112,113,118,119,120,121,122,123,124,125,404,439],{1541:function(t,e,n){t.exports={}},1552:function(t,e,n){"use strict";n(1541)},1557:function(t,e,n){"use strict";n.r(e);n(8),n(78);var o={props:{title:{type:String,default:""},description:{type:String,default:""},isOpen:{type:Boolean,default:!1}},methods:{open:function(){this.$emit("open")}}},r=(n(1552),n(2)),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-other-information-line"},[e("div",{staticClass:"component-other-information-line__inner"},[e("v-collapse-item",{attrs:{value:t.isOpen},on:{open:t.open},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"component-other-information-line__title",domProps:{innerHTML:t._s(t.title)}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"component-other-information-line__content"},[e("div",{staticClass:"component-other-information-line__description",domProps:{innerHTML:t._s(t.description)}})])])],1)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{VCollapseItem:n(134).default})},1560:function(t,e,n){t.exports={}},1561:function(t,e,n){t.exports={}},1599:function(t,e,n){"use strict";n.r(e);var o={},r=(n(1601),n(2)),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("a",{staticClass:"component-product-back",attrs:{href:"javascript:history.back();"}},[e("svg-icon",{attrs:{name:"back"}}),t._v(" "),e("span",[t._v("返回")])],1)}),[],!1,null,null,null);e.default=component.exports},1601:function(t,e,n){"use strict";n(1560)},1602:function(t,e,n){"use strict";n(1561)},1620:function(t,e,n){"use strict";n.r(e);var o=n(12),r=n(43),c={data:function(){return{visibleServiceDialog:!1}},methods:{openServiceDialog:function(){this.visibleServiceDialog=!this.visibleServiceDialog,this.$store.dispatch("seTracking/ContactClick",{button_name:"专属客服"}),this.visibleServiceDialog&&Object(o.q)(this.$store,r.b)}}},l=(n(1602),n(2)),component=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-block-contact-us"},[e("div",{staticClass:"component-block-contact-us__title"},[t._v("联系我们")]),t._v(" "),e("div",{staticClass:"component-block-contact-us__content"},[e("div",{staticClass:"component-block-contact-us__customer-service",on:{click:t.openServiceDialog}},[e("svg-icon",{staticClass:"component-block-contact-us__icon",attrs:{name:"customer-service-gray"}}),t._v(" "),e("span",[t._v("专属客服")])],1),t._v(" "),e("footer-wechat-qrcode",{directives:[{name:"show",rawName:"v-show",value:t.visibleServiceDialog,expression:"visibleServiceDialog"}],on:{close:t.openServiceDialog}}),t._v(" "),e("div",{staticClass:"component-block-contact-us__line"},[t._v("客服热线:4008 568 580")]),t._v(" "),t._m(0),t._v(" "),t._m(1)],1)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-block-contact-us__line"},[e("div",{staticClass:"component-block-contact-us__line-label"},[t._v("工作时间:")]),t._v(" "),e("div",{staticClass:"component-block-contact-us__line-value"},[e("span",[t._v("9:00-22:00 ")]),t._v(" "),e("span",[t._v("(春节法定假期 10:00-16:00)")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-block-contact-us__line"},[e("div",{staticClass:"component-block-contact-us__line-label"},[t._v("邮箱:")]),t._v(" "),e("div",{staticClass:"component-block-contact-us__line-value"},[t._v("customerservice.cn@loropiana.com")])])}],!1,null,null,null);e.default=component.exports;installComponents(component,{FooterWechatQrcode:n(216).default})},1642:function(t,e,n){t.exports={}},1718:function(t,e,n){t.exports={}},1719:function(t,e,n){t.exports={}},1771:function(t,e,n){"use strict";n(1642)},1814:function(t,e,n){"use strict";n.r(e);n(8),n(7),n(9),n(10),n(5),n(4),n(6);var o=n(1),r=n(0);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e0&&t.stock>=t.qty&&t.qty<=t.cartItemMaxQty}));return!(null!=t&&t.length)}}),methods:{selectedAll:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isAllDisabled){e.next=2;break}return e.abrupt("return");case 2:return t.$nuxt.$loading.start(),e.next=5,t.$api.cart.selectAll({isSelect:!t.isAllChecked});case 5:(n=e.sent)&&1===n.code?(t.$store.commit("cart/setCartInfo",n.data),Object(l.a)(t,n.data)):t.$toastShow(n.message),t.$nuxt.$loading.finish(),t.$store.dispatch("seTracking/BagOperate",{product_quantity:t.items.reduce((function(a,b){return a+b.qty}),0),operate_type:t.isAllChecked?"全选":"取消全选",is_success:1===(null==n?void 0:n.code),fail_reason:1===(null==n?void 0:n.code)?"":n.message});case 9:case"end":return e.stop()}}),e)})))()},remove:function(){var t=this.availableItems.filter((function(t){return t.isSelected}));this.$isMobile?this.$eventBus.$emit("cart.remove.drawer.open",t):this.$eventBus.$emit("cart.remove.dialog.open",t)},isLastPreOrderLine:function(t){return this.items.map((function(t){return t.isPreOrder})).lastIndexOf(!0)===t},isLastHotSaleLine:function(t){return this.items.map((function(t){return t.isHotSale})).lastIndexOf(!0)===t}}},f=(n(2064),n(2)),component=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-cart-loader"},[e("div",{staticClass:"component-cart-loader__inner"},t._l(t.items,(function(n,o){return e("cart-line",{key:o,attrs:{item:n,"is-last-pre-order-line":t.isLastPreOrderLine(o),"is-last-hot-sale-line":t.isLastHotSaleLine(o)}})})),1),t._v(" "),e("div",{staticClass:"component-cart-loader__footer"},[e("div",{staticClass:"component-cart-loader__footer-inner",on:{click:function(e){return e.stopPropagation(),t.selectedAll.apply(null,arguments)}}},[e("v-checkbox",{attrs:{model:t.isAllChecked,"is-round":!0,disabled:t.isAllDisabled}}),t._v(" "),e("span",{staticClass:"component-cart-loader__footer-label"},[t._v("全选")]),t._v(" "),e("a",{directives:[{name:"show",rawName:"v-show",value:t.isAllChecked,expression:"isAllChecked"}],staticClass:"component-cart-loader__remove",on:{click:function(e){return e.stopPropagation(),t.remove.apply(null,arguments)}}},[t._v("\n 删除\n ")])],1),t._v(" "),e("div",{staticClass:"component-cart-loader__footer-total layout-mobile"},[t._v("总计:"+t._s(t.total.grand))])])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{CartLine:n(2347).default,VCheckbox:n(214).default})},2348:function(t,e,n){"use strict";n.r(e);n(8),n(7),n(9),n(10),n(5),n(4),n(6);var o=n(1),r=n(0),c=n(12);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var m={computed:function(t){for(var e=1;e1},shoppingCartTips:function(){var t;return(null===(t=this.globalConfiguration)||void 0===t||null===(t=t.shoppingCartTips)||void 0===t||null===(t=t.text)||void 0===t?void 0:t.iOne)||""}}),mounted:function(){this.$store.dispatch("seTracking/BagView",{product_quantity:this.items.reduce((function(a,b){return a+b.qty}),0)})},methods:{toCheckout:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.canToCheckout){e.next=2;break}return e.abrupt("return");case 2:if(t.validateHotSaleOrPreOrder()){e.next=4;break}return e.abrupt("return");case 4:if(!t.isSelectedStockNotEnoughItem()){e.next=7;break}return t.$isMobile?t.$eventBus.$emit("cart.stock.not.enough.drawers.open"):t.$eventBus.$emit("cart.stock.not.enough.dialog.open"),e.abrupt("return");case 7:return e.next=9,t.handleToCheckout();case 9:case"end":return e.stop()}}),e)})))()},handleToCheckout:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,o,r,path;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.checkout.getCheckoutItems();case 2:if(n=e.sent,o=t.items.filter((function(t){return t.isSelected})),!n||-1!==n.code){e.next=7;break}return t.$toastShowPurchaseLimit("限量购买",n.message),e.abrupt("return");case 7:t.canToCheckout&&(t.$store.commit("account/setNeedLoginSituation","前往结算"),r=o.every((function(t){return t.isPreOrder}))||o.every((function(t){return t.isHotSale})),path=r?"/checkout?cardType=3":"/checkout",t.$router.push(path),t.$store.dispatch("seTracking/BagOperate",{product_quantity:t.items.reduce((function(a,b){return a+b.qty}),0),operate_type:"前往结算",is_success:1===(null==n?void 0:n.code),fail_reason:1===(null==n?void 0:n.code)?"":n.message}));case 8:case"end":return e.stop()}}),e)})))()},validateHotSaleOrPreOrder:function(){return!(this.handleNormalOrPreOrderOrHotSaleIsTwo>1)||(this.$toastShow("热卖或预售商品需单独结算"),!1)},isSelectedStockNotEnoughItem:function(){return!!this.items.some((function(t){return t.stock>0&&t.qty>t.stock||0===t.stock}))}}},d=(n(2489),n(2)),component=Object(d.a)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-cart layout-loro-main"},[e("product-back",{staticClass:"layout-desktop"}),t._v(" "),e("div",{staticClass:"layout-loro-normal"},[e("div",{staticClass:"layout-loro-normal__main"},[t.items.length?e("div",{staticClass:"page-cart__content"},[e("div",{staticClass:"page-cart__title font-en-sc"},[e("span",[t._v("购物袋")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.shoppingCartTips&&t.items&&t.items.length,expression:"shoppingCartTips && items && items.length"}],staticClass:"page-cart__tips font-en-sc"},[t._v("\n "+t._s(t.shoppingCartTips)+"\n ")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNormalOrPreOrderOrHotSaleTipsText,expression:"isShowNormalOrPreOrderOrHotSaleTipsText"}],staticClass:"page-cart__pre-order-info font-en-sc"},[t._v("\n 热卖或预售商品需单独结算\n ")])]),t._v(" "),e("cart-loader"),t._v(" "),e("div",{staticClass:"page-cart__total layout-desktop"},[e("div",{staticClass:"page-cart__total-title"},[t._v("总计")]),t._v(" "),e("div",{staticClass:"page-cart__total-price"},[t._v(t._s(t.total.grand))])]),t._v(" "),e("div",{staticClass:"page-cart__button-group"},[e("a",{class:["page-cart__to-checkout","font-en-sc",{"is-disable":!t.canToCheckout}],on:{click:function(e){return e.stopPropagation(),t.toCheckout.apply(null,arguments)}}},[t._v("\n 前往结算\n ")])])],1):e("cart-empty")],1),t._v(" "),e("div",{staticClass:"layout-loro-normal__secondary"},[e("client-only",[e("cart-information",{directives:[{name:"show",rawName:"v-show",value:!(0===t.items.length&&t.$isMobile),expression:"!(items.length === 0 && $isMobile)"}],attrs:{"is-empty":0===t.items.length}})],1)],1)]),t._v(" "),e("cart-remove-dialog"),t._v(" "),e("cart-remove-drawers"),t._v(" "),e("cart-stock-not-enough-dialog"),t._v(" "),e("cart-stock-not-enough-drawers")],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{ProductBack:n(1599).default,CartLoader:n(2346).default,CartEmpty:n(2348).default,CartInformation:n(2017).default,CartRemoveDialog:n(2349).default,CartRemoveDrawers:n(2350).default,CartStockNotEnoughDialog:n(2351).default,CartStockNotEnoughDrawers:n(2352).default})}}]);