(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/goods/goods-car"],{1364:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7eb4")),i=o(n("3b2d")),s=o(n("ee10")),a=o(n("7ca3")),c=n("8f59"),u=o(n("2ef8")),l=n("b8f7");function p(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 y(t){for(var e=1;e0&&this.$emit("hasmj",!0)},immediate:!0}},mixins:[l.utilMixins],computed:y(y({},(0,c.mapState)({vscarList:function(t){return t.scarList}})),{},{scarList:function(){return 1==this.outin?this.vscarList.out:3==this.outin?this.vscarList.fast:2==this.outin?this.vscarList.ins:void 0},carList:function(){return this.scarList.data||[]},yysj:function(){var t="",e=this.sjxx.moreSet;return console.log("info:",e),1==e.timeType?t="24小时营业":2==e.timeType&&e.timeArr&&(t="".concat(e.timeArr[0].startTime,"-").concat(e.timeArr[0].ciri?"次日":"").concat(e.timeArr[0].endTime),e.timeArr[1]&&(t+=" "+"".concat(e.timeArr[1].startTime,"-").concat(e.timeArr[1].ciri?"次日":"").concat(e.timeArr[1].endTime)),e.timeArr[2]&&(t+=" "+"".concat(e.timeArr[2].startTime,"-").concat(e.timeArr[2].ciri?"次日":"").concat(e.timeArr[2].endTime))),t},cshow:function(){return 0==this.carList.length&&(this.showCar=!1),2==this.type||3==this.type?this.addgb:(1==this.sjxx.shopData.storeOpen||2==this.sjxx.shopData.storeOpen&&1==this.sjxx.moreSet.status)&&this.carList.length>0},addgb:function(){return 1==this.sjxx.shopData.storeOpen||2==this.sjxx.shopData.storeOpen&&1==this.sjxx.moreSet.status},xxshow:function(){return 1!=this.sjxx.shopData.storeOpen&&this.ydshow},havezq:function(){return this.sjxx.moreSet.distributionSupport&&this.sjxx.moreSet.distributionSupport.find((function(t){return 2==t}))},getTotal:function(){var t=0;return this.carList.forEach((function(e){t+=+e.num})),{total:+this.scarList.oldPrice||0,price:+this.scarList.price,spzj:+(this.scarList.oldPrice-this.scarList.boxMoney).toFixed(2),bzf:+this.scarList.boxMoney||0,num:t,hyzk:this.blxs(this.scarList.vipDiscount)}},carPrice:function(){var t=this.mjInfo.mjMoney;return{reduceMoney:t,nowPrice:this.getTotal.price}},mjInfo:function(){var t=this.getTotal.spzj,e=[],n="",o=this.scarList.reduce,r=-1,i="";return this.sjxx.discount.reduce.type?(e=[].concat(this.sjxx.discount.reduce.moneyArr),n=this.sjxx.discount.reduce.type,e.length&&(1==n?i=Math.floor(t/e[0].fullMoney)<=0?"每满".concat(this.sl+e[0].fullMoney,"减").concat(e[0].money):"已减".concat(this.sl+o):(r=e.findIndex((function(e){return t>=e.fullMoney})),-1==r?i="满".concat(this.sl).concat(e[e.length-1].fullMoney,"减").concat(this.sl).concat(e[e.length-1].money,",还差").concat(this.sl).concat((e[e.length-1].fullMoney-t).toFixed(2)):0==r?i="已减".concat(this.sl+o):r>0&&(i="已减".concat(this.sl+o,",再满").concat(this.sl+e[r-1].fullMoney,"减").concat(this.sl+e[r-1].money))))):o=0,1==this.buytype&&+this.startMoney>this.getTotal.total&&(i="还差".concat(this.sl).concat((+this.startMoney-this.getTotal.total).toFixed(2),"起送")),{mjMoney:o,text:i,discount:[].concat(e).reverse()}},startMoney:function(){return this.startmoney||this.sjxx.shopData.distribution.startMoney},qsText:function(){var t=this.getTotal.total,e=+this.startMoney,n="",o=!1;if(this.type<=2||4==this.type)if(t<=0||!this.carList.length)n=1==this.buytype?this.sl+e+"起送":"去下单";else if(t-1}};e.default=h}).call(this,n("df3c")["default"])},5690:function(t,e,n){"use strict";n.r(e);var o=n("e2da"),r=n("ef94");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("77fb");var s=n("828b"),a=Object(s["a"])(r["default"],o["b"],o["c"],!1,null,"34c7d126",null,!1,o["a"],void 0);e["default"]=a.exports},"77fb":function(t,e,n){"use strict";var o=n("b94e"),r=n.n(o);r.a},b94e:function(t,e,n){},e2da:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,1==t.type||2==t.type?t.__get_style([{bottom:t.carBtm+"rpx"},t.sname]):null),o=1==t.type||2==t.type?!t.showCar&&t.mjInfo.discount.length:null,r=1==t.type||2==t.type?t.carList.length||!t.mjInfo.discount.length:null,i=1!=t.type&&2!=t.type||r?null:t.__map(t.mjInfo.discount,(function(e,n){var o=t.__get_orig(e),r=t.mjInfo.discount.length;return{$orig:o,g2:r}})),s=1==t.type||2==t.type?t.carList.length:null,a=1==t.type||2==t.type?t.carList.length:null,c=1==t.type||2==t.type?t.carList.length:null,u=1!=t.type&&2!=t.type||1!=t.buytype?null:Number(Number(t.sjxx.shopData.distribution.money).toFixed(2)),l=1==t.type||2==t.type?t.mjInfo.discount.length:null,p=1==t.type||2==t.type?t.carList.length||!t.mjInfo.discount.length:null,y=1!=t.type&&2!=t.type||p?null:t.__map(t.mjInfo.discount,(function(e,n){var o=t.__get_orig(e),r=t.mjInfo.discount.length;return{$orig:o,g8:r}})),h=1==t.type||2==t.type?t.__map(t.carList,(function(e,n){var o=t.__get_orig(e),r=t.carList.length,i=e.discountNum>0?t.blxs(e.num*e.money):null;return{$orig:o,g9:r,m1:i}})):null,f=1!=t.type&&2!=t.type&&3==t.type?t.__get_style([{bottom:t.carBtm+"rpx"},t.sname]):null,d=1!=t.type&&2!=t.type&&3==t.type?!t.showCar&&t.mjInfo.discount.length:null,g=1!=t.type&&2!=t.type&&3==t.type?t.carList.length||!t.mjInfo.discount.length:null,m=1==t.type||2==t.type||3!=t.type||g?null:t.__map(t.mjInfo.discount,(function(e,n){var o=t.__get_orig(e),r=t.mjInfo.discount.length;return{$orig:o,g12:r}})),x=1!=t.type&&2!=t.type&&3==t.type?t.carList.length:null,b=1!=t.type&&2!=t.type&&3==t.type?t.carList.length:null,j=1!=t.type&&2!=t.type&&3==t.type?t.carList.length:null,_=1!=t.type&&2!=t.type&&3==t.type?t.mjInfo.discount.length:null,v=1!=t.type&&2!=t.type&&3==t.type?t.carList.length||!t.mjInfo.discount.length:null,L=1==t.type||2==t.type||3!=t.type||v?null:t.__map(t.mjInfo.discount,(function(e,n){var o=t.__get_orig(e),r=t.mjInfo.discount.length;return{$orig:o,g18:r}})),w=1!=t.type&&2!=t.type&&3==t.type?t.__map(t.carList,(function(e,n){var o=t.__get_orig(e),r=t.carList.length,i=t.itemTotal(e);return{$orig:o,g19:r,m2:i}})):null,I=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.__get_style([{bottom:t.carBtm+"rpx"},t.sname]):null,S=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?!t.showCar&&t.mjInfo.discount.length:null,O=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.carList.length||!t.mjInfo.discount.length:null,T=1==t.type||2==t.type||3==t.type||4!=t.type||O?null:t.__map(t.mjInfo.discount,(function(e,n){var o=t.__get_orig(e),r=t.mjInfo.discount.length;return{$orig:o,g22:r}})),M=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.carList.length:null,D=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.carList.length:null,P=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.carList.length:null,$=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type&&1==t.buytype?Number(Number(t.sjxx.shopData.distribution.money).toFixed(2)):null,k=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.mjInfo.discount.length:null,A=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.carList.length||!t.mjInfo.discount.length:null,C=1==t.type||2==t.type||3==t.type||4!=t.type||A?null:t.__map(t.mjInfo.discount,(function(e,n){var o=t.__get_orig(e),r=t.mjInfo.discount.length;return{$orig:o,g28:r}})),N=1!=t.type&&2!=t.type&&3!=t.type&&4==t.type?t.__map(t.carList,(function(e,n){var o=t.__get_orig(e),r=t.carList.length,i=e.discountNum>0?t.blxs(e.num*e.money):null;return{$orig:o,g29:r,m4:i}})):null;t._isMounted||(t.e0=function(e){t.ydshow=!1},t.e1=function(e){t.ydshow=!1}),t.$mp.data=Object.assign({},{$root:{s0:n,g0:o,g1:r,l0:i,g3:s,g4:a,g5:c,m0:u,g6:l,g7:p,l1:y,l2:h,s1:f,g10:d,g11:g,l3:m,g13:x,g14:b,g15:j,g16:_,g17:v,l4:L,l5:w,s2:I,g20:S,g21:O,l6:T,g23:M,g24:D,g25:P,m3:$,g26:k,g27:A,l7:C,l8:N}})},r=[]},ef94:function(t,e,n){"use strict";n.r(e);var o=n("1364"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'components/goods/goods-car-create-component', { 'components/goods/goods-car-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('df3c')['createComponent'](__webpack_require__("5690")) }) }, [['components/goods/goods-car-create-component']] ]);