CommodityPurchase.js 3.3 KB

12345678910
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesPurchase/components/CommodityPurchase"],{"0d71":function(t,e,n){"use strict";n.r(e);var i=n("af45"),r=n("665b");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("ffc6");var u,c=n("8261"),a=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,"677b2bf8",null,!1,i["a"],u);e["default"]=a.exports},"1ddc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("7602"),r=o(n("fca4"));function o(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(){Promise.all([n.e("common/vendor"),n.e("components/app-img")]).then(function(){return resolve(n("cb3c"))}.bind(null,n)).catch(n.oe)},s={name:"Commodity",components:{AppImg:f},mixins:[r.default],props:{info:{required:!0,type:Object,default:function(){return{}}},type:{type:String,default:i.COMMODITY_TYPE.COMMON},bigCount:{type:Number,default:0},smallCount:{type:Number,default:0},autoPrice:{type:Number,default:0},itemPrice:{type:Number,default:0}},data:function(){return{COMMODITY_TYPE:i.COMMODITY_TYPE}},created:function(){},methods:{addEvent:function(){this.animationFun("add"),this.$emit("add",this.info)},delEvent:function(){this.animationFun("del"),this.$emit("del",this.info)},removeEvent:function(){this.$emit("remove",this.info)},changePriceEvent:function(t){var e=t.detail.value;this.$emit("changePrice",this.info,e)},customNum:function(){if(!this.bigCount&&!this.smallCount){var t=c(c({},this.info),{},{bigCount:this.bigCount,smallCount:this.smallCount,itemPrice:this.itemPrice});this.$emit("addOneEvent",this.info,t,"noAdd")}this.$emit("customNum",c(c({},this.info),{},{bigCount:this.bigCount,smallCount:this.smallCount,itemPrice:this.itemPrice}))}}};e.default=s},"665b":function(t,e,n){"use strict";n.r(e);var i=n("1ddc"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},6816:function(t,e,n){},af45:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c},o=[]},ffc6:function(t,e,n){"use strict";var i=n("6816"),r=n.n(i);r.a}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pagesPurchase/components/CommodityPurchase-create-component',
  4. {
  5. 'pagesPurchase/components/CommodityPurchase-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('934e')['createComponent'](__webpack_require__("0d71"))
  7. })
  8. },
  9. [['pagesPurchase/components/CommodityPurchase-create-component']]
  10. ]);