(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-83d9ef32"],{"0a62":function(t,e,i){"use strict";var n=i("e4f6");i.n(n).a},"6db4":function(t,e,i){!function(t,e){"use strict";function i(t,e,i){document.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function n(t,e,i){document.addEventListener?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function s(){var t={},e=0,i=0,n=0;return{add:function(o,r){r||(r=o,o=0),o>i?i=o:o(t||14))return e=i,!0}},f={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"stripContainer",staticClass:"happy-scroll-strip",class:[t.horizontal?"happy-scroll-strip--horizontal":"happy-scroll-strip--vertical"],style:[t.initLocation],on:{"!wheel":function(e){return e.stopPropagation(),t.handlerWheel(e)}}},[i("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[t.translate,o({},t.config.sizeAttr,t.length+"px"),t.initSize,{background:t.color},{opacity:t.isOpacity}],on:{mousedown:function(e){return e.stopPropagation(),t.handlerMouseDown(e)}}})])},staticRenderFns:[],name:"happy-scroll-strip",props:{horizontal:Boolean,left:Boolean,top:Boolean,move:{type:Number,default:0},size:{type:[Number,String],default:4},minLengthV:{type:Number,default:40},minLengthH:{type:Number,default:40},color:{type:String,default:"rgba(51,51,51,0.2)"},throttle:{type:Number,default:14}},data:function(){return{config:{},startMove:!1,binded:!1,length:0,percentage:0,maxOffset:0,currentOffset:0,moveThrottle:u(this.throttle)}},watch:{currentOffset:function(t){0===t?this.emitLocationEvent("start",0):t===this.maxOffset&&this.emitLocationEvent("end",t/this.percentage)}},computed:{initSize:function(){return o({},this.horizontal?"height":"width",this.size+"px")},isOpacity:function(){return this.percentage<1?1:0},translate:function(){var t=this.move*this.percentage;if(this.$refs.stripContainer)return t<0&&(t=0),t>this.maxOffset&&(t=this.maxOffset),this.currentOffset=t,{transform:this.config.translate+"("+t+"px)"}},initLocation:function(){return this.horizontal?this.top?{top:0,bottom:"auto"}:"":this.left?{left:0,right:"auto"}:""}},methods:{emitLocationEvent:function(t,e){var i=this.horizontal?"horizontal":"vertical";this.$emit(i+"-"+t,e)},computeStrip:function(t,e){var i=this.$refs.stripContainer[this.config.client];this.length=i*(e/t);var n=this.horizontal?this.minLengthH:this.minLengthV;n<1&&(n*=i),this.length=this.lengththis.maxOffset&&(t=this.maxOffset),e&&t>0&&t4?t:void 0}())},e.isLegacyOpera=function(){return!!window.opera}})),v=r((function(t){(t.exports={}).getOption=function(t,e,i){var n=t[e];return void 0!==n&&null!==n||void 0===i?n:i}})),m=function(t){function e(){for(c=!0;l.size();){var t=l;l=s(),t.process()}c=!1}function i(){a=function(t){return setTimeout(t,0)}(e)}var n=(t=t||{}).reporter,o=v.getOption(t,"async",!0),r=v.getOption(t,"auto",!0);r&&!o&&(n&&n.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),o=!0);var a,l=s(),c=!1;return{add:function(t,e){!c&&r&&o&&0===l.size()&&i(),l.add(t,e)},force:function(t){c||(void 0===t&&(t=o),a&&(function(t){clearTimeout(t)}(a),a=null),t?i():e())}}},b="_erd",y={initState:function(t){return t[b]={},a(t)},getState:a,cleanState:function(t){delete t[b]}},w=p.forEach,S=function(t){function e(t,e,i){if(t.addEventListener)t.addEventListener(e,i);else{if(!t.attachEvent)return r.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,i)}}function i(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i);else{if(!t.detachEvent)return r.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,i)}}function n(t){return a(t).container.childNodes[0].childNodes[0].childNodes[0]}function o(t){return a(t).container.childNodes[0].childNodes[0].childNodes[1]}var r=(t=t||{}).reporter,s=t.batchProcessor,a=t.stateHandler.getState,l=t.idHandler;if(!s)throw new Error("Missing required dependency: batchProcessor");if(!r)throw new Error("Missing required dependency: reporter.");var c=function(){var t=document.createElement("div");t.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var e=document.createElement("div");e.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var i=500-e.clientWidth,n=500-e.clientHeight;return document.body.removeChild(e),{width:i,height:n}}(),d="erd_scroll_detection_container";return function(t,e){if(!document.getElementById(t)){var i=e+"_animation",n="/* Created by the element-resize-detector library. */\n";n+="."+e+" > div::-webkit-scrollbar { display: none; }\n\n",n+="."+e+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+i+"; animation-name: "+i+"; }\n",n+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(e,i){i=i||function(t){document.head.appendChild(t)};var n=document.createElement("style");n.innerHTML=e,n.id=t,i(n)}(n+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",d),{makeDetectable:function(t,i,h){function u(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(l.get(i),"Scroll: "),r.log.apply)r.log.apply(null,e);else for(var n=0;nn&&(i=t.biggerMoveH.toLocaleLowerCase()),"start"===i&&(t.moveY=0,t.slideYChange(t.moveY)),"end"===i&&(t.moveY=e.clientHeight,t.slideYChange(t.moveY)),n=e.clientHeight,i="",e.clientWidtho&&(i=t.biggerMoveV.toLocaleLowerCase()),"start"===i&&(t.moveX=0,t.slideXChange(t.moveX)),"end"===i&&(t.moveX=e.clientWidth,t.slideXChange(t.moveX)),o=e.clientWidth}))}},setContainerSize:function(){this.initSize={width:this.$refs["happy-scroll"].clientWidth+20+"px",height:this.$refs["happy-scroll"].clientHeight+20+"px"}},checkScrollMode:function(){if(void 0===A._happyJS._isScrollNotUseSpace){var t=this.$slots.default[0].elm,e=this.$refs.container;(t.offsetHeight>e.clientHeight||t.offsetWidth>e.clientWidth)&&(e.offsetWidth>e.clientWidth||e.offsetHeight>e.clientHeight?A._happyJS._isScrollNotUseSpace=!1:A._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=A._happyJS._isScrollNotUseSpace)}}},beforeCreate:function(){var t=A._happyJS=A._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){var t,e,i,n,o,r,s,a,l;this.updateSyncScroll=(t=function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)},e=this.throttle,l=function l(){var c=(new Date).getTime()-s;c=0?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(r,o),n||(r=o=null)))},function(){r=this,o=arguments,s=(new Date).getTime();var c=i&&!n;return n||(n=setTimeout(l,e)),c&&(a=t.apply(r,o),r=o=null),a})},mounted:function(){var t=this;this.setContainerSize(),this.$nextTick((function(){t.computeStripX(),t.computeStripY(),t.checkScrollMode(),t.initBrowserSize(),t.$nextTick((function(){t.scrollTop&&(t.$refs.container.scrollTop=+t.scrollTop),t.scrollLeft&&(t.$refs.container.scrollLeft=+t.scrollLeft)}))})),this.resizeListener(),this.$watch("browserHSize",this.setContainerSize),this.$watch("browserVSize",this.setContainerSize)}};"undefined"!=typeof window&&window.Vue&&Vue.component("happy-scroll",E);var L={install:function(t){t.component("happy-scroll",E)},version:"2.1.1"};t.default=L,t.HappyScroll=E,t.version="2.1.1",Object.defineProperty(t,"__esModule",{value:!0})}(e,i("a026"))},a254:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAAWCAYAAACL6W/rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4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8");function l(t,e,i,n,o,r,s){try{var a=t[r](s),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,o)}var c={name:"goods_detail",props:{goodsId:{type:String|Number,default:""},product:{type:String|Number,default:""}},components:{HappyScroll:r.HappyScroll},data:function(){return{value2:0,goodsInfo:{}}},mounted:function(){this.product?this.getInfoApi():this.getInfo()},methods:{getInfo:function(){var t=this;Object(s.D)(this.goodsId).then((function(e){t.goodsInfo=e.data}))},getInfoApi:function(){var t=this;Object(a.R)(this.goodsId).then(function(){var e,i=(e=o.a.mark((function e(i){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.goodsInfo=i.data.productInfo;case 1:case"end":return e.stop()}}),e)})),function(){var t=this,i=arguments;return new Promise((function(n,o){var r=e.apply(t,i);function s(t){l(r,n,o,s,a,"next",t)}function a(t){l(r,n,o,s,a,"throw",t)}s(void 0)}))});return function(t){return i.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}}},d=(i("0a62"),i("2877")),h=Object(d.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"goods_detail"},[n("div",{staticClass:"goods_detail_wrapper",class:t.product?"on":"",staticStyle:{height:"640px"}},[n("HappyScroll",{attrs:{size:"5",resize:"","hide-horizontal":""}},[n("div",{staticStyle:{width:"375px"}},[n("div",{staticClass:"title-box"},[t._v("商品详情")]),n("div",{staticClass:"swiper-box"},[n("Carousel",{attrs:{autoplay:"",arrow:"never"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}},t._l(t.goodsInfo.slider_image,(function(t,e){return n("CarouselItem",{key:e},[n("div",{staticClass:"demo-carousel"},[n("img",{attrs:{src:t,alt:""}})])])})),1)],1),n("div",{staticClass:"goods_info"},[n("div",{staticClass:"number-wrapper"},[n("div",{staticClass:"price"},[n("span",[t._v("¥")]),t._v(t._s(t.goodsInfo.price))]),t.goodsInfo.vip_price>0?n("div",{staticClass:"old-price"},[t._v("\n ¥"+t._s(t.goodsInfo.vip_price)+"\n "),n("img",{attrs:{src:i("a254"),alt:"",width:"28"}})]):t._e()]),n("div",{staticClass:"name"},[t._v(t._s(t.goodsInfo.store_name))]),n("div",{staticClass:"msg"},[n("div",{staticClass:"item"},[t._v("原价:¥"+t._s(t.goodsInfo.ot_price))]),n("div",{staticClass:"item"},[t._v("销量:"+t._s(t.goodsInfo.sales))]),n("div",{staticClass:"item"},[t._v("库存:"+t._s(t.goodsInfo.stock))])])]),n("div",{staticClass:"con-box"},[n("div",{staticClass:"title-box"},[t._v("商品介绍")]),n("div",{staticClass:"content",domProps:{innerHTML:t._s(t.goodsInfo.description)}})])])])],1)])}),[],!1,null,"7fe80340",null);e.a=h.exports},e4f6:function(t,e,i){}}]);