(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/gift/index/index"],{"05f4":function(t,e,i){"use strict";i.r(e);var n=i("1b85"),o=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=o.a},"1b85":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(i("4795")),o=i("2f62");function r(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e=this.gift_list[t].attr.stock){var i=JSON.parse(JSON.stringify(this.gift_list[t]));i.number=this.gift_list[t].attr.stock,this.$set(this.gift_list,t,i),this.changeNumber(t)}else this.$set(this.gift_list[t],"number",e),this.changeNumber(t)},changeNumber:function(t){var e=this.gift_list[t],i=e.number,n=e.price;this.$set(this.gift_list[t],"total_cost",parseFloat((i*n).toFixed(2))),0===this.gift_list[t].number&&this.$delete(this.gift_list,t),this.$storage.setStorageSync("GIFT_CART",this.gift_list)},submit:function(){var e=this;return l(n.default.mark((function i(){var o,r,s,a,u;return n.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(e.$utils.showLoading(),o=[{mch_id:0,type:e.method_type,open_num:e.open_num,open_time:e.open_time,bless_word:e.bless_word?e.bless_word:e.config.bless_word,bless_music:e.bless_music,open_type:e.open_type,goods_list:[],remark:"",use_integral:0,user_coupon_id:0}],r=0;r