(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/StorePoster"],{"33c3":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n("8c38");var o=n("fc49"),a={name:"StorePoster",props:{posterImageStatus:Boolean,posterData:Object,goodId:String},data:function(){return{canvasStatus:!1,posterImage:""}},watch:{posterImageStatus:function(){var t=this;!0===t.posterImageStatus&&t.$nextTick((function(){t.savePosterPath()}))}},mounted:function(){},methods:{posterImageClose:function(){this.posterImageStatus=!1,this.canvasStatus=!1,this.$emit("setPosterImageStatus")},saveImg:function(){this.downloadFile(this.posterImage)},downloadFile:function(e){t.downloadFile({url:e,fail:function(e){console.log(e),t.showModal({title:"提示",content:"保存失败"})},success:function(e){console.log(e),t.showModal({title:"提示",content:"保存成功"})}})},savePosterPath:function(){var e=this;t.showLoading({title:"海报生成中",mask:!0}),(0,o.getProductPoster)(this.goodId,{from:"weixin"==this.$deviceType||"weixinh5"==this.$deviceType?"uniappH5":this.$deviceType}).then((function(t){e.canvasStatus=!0,e.posterImage=t.data})).finally((function(){t.hideLoading()}))}}};e.default=a}).call(this,n("543d")["default"])},"39fd":function(t,e,n){"use strict";n.r(e);var o=n("98a2"),a=n("5aef");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("bc20");var i,c=n("f0c5"),u=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"ea6ddee2",null,!1,o["a"],i);e["default"]=u.exports},"5aef":function(t,e,n){"use strict";n.r(e);var o=n("33c3"),a=n.n(o);for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=a.a},"7a87":function(t,e,n){},"98a2":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement;t._self._c},s=[]},bc20:function(t,e,n){"use strict";var o=n("7a87"),a=n.n(o);a.a}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'components/StorePoster-create-component', { 'components/StorePoster-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("39fd")) }) }, [['components/StorePoster-create-component']] ]);