(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-distribution-poster"],{"01f9":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".info_text[data-v-b8144b62]{width:%?710?%;margin-left:%?20?%;background-color:#fff;padding:%?20?% %?40?%;box-sizing:border-box}.info_text_img[data-v-b8144b62]{width:%?20?%;height:%?20?%}.code-img[data-v-b8144b62]{width:%?710?%;height:%?1138?%;margin-left:%?20?%}.btns[data-v-b8144b62]{display:flex;justify-content:center;padding:%?15?%;background-color:#fff;margin-top:%?20?%}.save-btn[data-v-b8144b62]{width:%?690?%;height:%?80?%;line-height:%?80?%;margin:0 auto}.hideCanvasView[data-v-b8144b62]{position:relative}.hideCanvas[data-v-b8144b62]{position:absolute;left:%?-9999?%;top:%?-9999?%}",""]),t.exports=e},"2f52":function(t,e,n){var i=n("01f9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("ab4e013e",i,!0,{sourceMap:!1,shadowMode:!1})},4055:function(t,e,n){"use strict";n.r(e);var i=n("c85d"),a=n("7b04");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("bb62");var s=n("f0c5"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"b8144b62",null,!1,i["a"],void 0);e["default"]=o.exports},"7b04":function(t,e,n){"use strict";n.r(e);var i=n("b0ddd"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},b0ddd:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("3835")),r=i(n("5530")),s=i(n("c7eb")),o=i(n("1da1")),u=n("26cb"),c=(i(n("7ded")),{components:{},props:{},data:function(){return{src:"",options:"",poster:{}}},computed:(0,u.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=this;return(0,o.default)((0,s.default)().mark((function t(){var n;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.widget=e.$refs.canvas,e.$util.showLoading(),e.$util.setNavigationBarColor({bg:e.primaryColor}),n=e,setTimeout((function(){console.log("bbbb"),n.canvase()}),1e3);case 5:case"end":return t.stop()}}),t)})))()},methods:(0,r.default)((0,r.default)({},(0,u.mapActions)(["user/report"])),{},{canvase:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var n,i,a;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t,e.next=3,t.$api.mine.userCommQr();case 3:i=e.sent,"https://lbqnyv2.migugu.com/bianzu14.png","0rpx",a={css:{width:"710rpx",height:"1138rpx"},views:[{type:"image",src:"https://lbqnyv2.migugu.com/bianzu14.png",css:{width:"710rpx",height:"1138rpx",top:"0rpx",left:"0rpx",position:"absolute"}},{type:"image",src:i,css:{position:"absolute",width:"290rpx",height:"290rpx",bottom:"70rpx",left:"210rpx",background:"#ffffff",borderRadius:"0rpx"}}]},t.$refs.painter.render(a),t.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(e){n.$util.hideAll(),t.src=e.tempFilePath,console.log(e.tempFilePath)}});case 9:case"end":return e.stop()}}),e)})))()},previewImage:function(){var t=this.src;uni.previewImage({current:t,urls:[t]})},saveImage:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var n,i,r,o;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$util.checkAuth({type:"writePhotosAlbum"});case 2:return n=t.src,e.next=5,uni.saveImageToPhotosAlbum({filePath:n});case 5:if(i=e.sent,r=(0,a.default)(i,2),o=r[0],r[1],!o){e.next=11;break}return e.abrupt("return");case 11:uni.showToast({icon:"none",title:"保存成功"});case 12:case"end":return e.stop()}}),e)})))()}})});e.default=c},bb62:function(t,e,n){"use strict";var i=n("2f52"),a=n.n(i);a.a},c85d:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={lPainter:n("52fd").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticStyle:{"background-color":"#F4F6F7",padding:"20rpx 0"}},[n("v-uni-view",{staticClass:"hideCanvasView"},[n("l-painter",{ref:"painter",staticClass:"hideCanvas"})],1),t.src?[n("v-uni-image",{staticClass:"code-img",attrs:{src:t.src},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"info_text f_c"},[n("v-uni-view",{staticStyle:{"font-size":"28rpx","margin-bottom":"20rpx",color:"#2F2F2F"}},[t._v("邀请3步")]),n("v-uni-view",{staticClass:"f_r_sb_c",staticStyle:{"font-size":"28rpx",color:"#767676"}},[n("v-uni-view",{staticClass:"f_r_m_c"},[t._v("1.分享海报")]),n("v-uni-image",{staticClass:"info_text_img",attrs:{src:"/static/coupon/btn.png",mode:""}}),n("v-uni-view",{staticClass:"f_r_m_c"},[t._v("2.微信扫码")]),n("v-uni-image",{staticClass:"info_text_img",attrs:{src:"/static/coupon/btn.png",mode:""}}),n("v-uni-view",{staticClass:"f_r_m_c"},[t._v("3.注册登录")])],1)],1),n("v-uni-view",{staticClass:"btns"},[n("v-uni-button",{staticClass:"save-btn flex-center radius",style:{background:t.primaryColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage.apply(void 0,arguments)}}},[t._v("长按上图保存图片")])],1)]:t._e()],2)},r=[]}}]);