You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
2.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/StorePoster"],{"4cd5":function(t,e,n){"use strict";n.r(e);var o=n("fe80"),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},"8c5d":function(t,e,n){},"9d0c":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=[]},c3482:function(t,e,n){"use strict";var o=n("8c5d"),a=n.n(o);a.a},cd35:function(t,e,n){"use strict";n.r(e);var o=n("9d0c"),a=n("4cd5");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("c3482");var i,c=n("f0c5"),u=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"dc01a360",null,!1,o["a"],i);e["default"]=u.exports},fe80:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n("b6d1");var o=n("2df4"),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"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/StorePoster-create-component',
{
'components/StorePoster-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("cd35"))
})
},
[['components/StorePoster-create-component']]
]);