11 lines
13 KiB
JavaScript
11 lines
13 KiB
JavaScript
![]() |
(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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h={name:"goods-car",components:{addGoods:function(){n.e("components/goods/add-goods").then(function(){return resolve(n("cc0e"))}.bind(null,n)).catch(n.oe)},mgPopup:function(){n.e("components/common/popup").then(function(){return resolve(n("7fc3"))}.bind(null,n)).catch(n.oe)},sqBtn:function(){n.e("components/common/sq-btn").then(function(){return resolve(n("cd85"))}.bind(null,n)).catch(n.oe)}},props:{type:{type:String,default:"1"},cName:{type:String,default:""},sname:"",carBtm:{type:[String,Number],default:""},carlistPab:{type:[String,Number],default:""},zIndex:{type:Number,default:999},ingopay:{type:String,default:"1"},buytype:{type:Number,default:2},sjxx:{type:Object,default:function(){return{}}},goodsList:{type:Array,default:function(){return[]}},startmoney:{type:[String,Number],default:""},show:Boolean,outin:{type:String,default:"1"},tableinfo:""},data:function(){return{showCar:!1,ydshow:!0,showSqtel:!1}},watch:{showCar:function(t){this.$emit("update:show",t)},show:function(t){t&&(this.showCar=t)},mjInfo:{handler:function(t){t.discount.length>0&&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
|
||
|
;(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']]
|
||
|
]);
|