(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/distribution/bind-technician"],{"0cb9":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7eb4")),o=r(n("34cf")),a=r(n("7ca3")),c=r(n("ee10")),u=n("8f59");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e0&&void 0!==t[0]&&t[0],o=e,a=o.options.type,c=void 0===a?0:a,u=1==c?"resellerInvCoachQr":"adminCoachQr",s=o.admin_id,f=void 0===s?0:s,p=o.check_admin,l=void 0===p?{}:p,d=l.id,h=void 0===d?0:d,r&&1==c&&h&&(f=h),m=1==c?{admin_id:f}:{},n.next=10,e.$api.mine[u](m);case 10:v=n.sent,b=e.configInfo.bind_technician_img,g=void 0===b?"":b,x=g||"https://lbqnyv2.migugu.com/bianzu18.png",w=e.userInfo,y=w.nickName,_=w.avatarUrl,"0rpx","145rpx",O={css:{width:"710rpx",height:"1278rpx"},views:[{type:"image",src:x,css:{width:"710rpx",height:"1138rpx",objectFit:"cover",top:"0rpx",left:"0rpx",position:"absolute"}},{type:"view",css:{background:"#fff",width:"710rpx",height:"140rpx",bottom:"0rpx",left:"0rpx",position:"absolute"},views:[{type:"image",src:_,css:{position:"absolute",width:"94rpx",height:"94rpx",objectFit:"cover",borderRadius:"50rpx",bottom:"23rpx",left:"20rpx"}},{type:"text",text:y,css:{position:"absolute",bottom:"70rpx",left:"130rpx",width:"350rpx",fontSize:"32rpx",fontWeight:"300",color:"#0C0C0C"}},{type:"text",text:"邀请您成为"+e.$t("action.attendantName")+" 快快扫码加盟我们吧!",css:{position:"absolute",bottom:"25rpx",left:"130rpx",width:"750rpx",fontSize:"26rpx",color:"#999999"}}]},{type:"image",src:v,css:{position:"absolute",width:"290rpx",height:"290rpx",bottom:"366rpx",left:"210rpx",background:"#ffffff",borderRadius:"145rpx"}}]},e.$refs.painter.render(O),e.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(t){o.$util.hideAll(),e.src=t.tempFilePath}});case 19:case"end":return n.stop()}}),n)})))()},previewImage:function(){var e=this.src;t.previewImage({current:e,urls:[e]})},saveImage:function(){var e=this;return(0,c.default)(i.default.mark((function n(){var r,a,c,u;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$util.checkAuth({type:"writePhotosAlbum"});case 2:return r=e.src,n.next=5,t.saveImageToPhotosAlbum({filePath:r});case 5:if(a=n.sent,c=(0,o.default)(a,2),u=c[0],c[1],!u){n.next=11;break}return n.abrupt("return");case 11:t.showToast({icon:"none",title:"保存成功"});case 12:case"end":return n.stop()}}),n)})))()},toPreviewSave:function(){this.saveImage()}})};e.default=p}).call(this,n("df3c")["default"])},"1c42":function(t,e,n){"use strict";var r=n("eef0"),i=n.n(r);i.a},4221:function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("7043");r(n("3240"));var i=r(n("a513"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"494c":function(t,e,n){"use strict";n.r(e);var r=n("0cb9"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},a513:function(t,e,n){"use strict";n.r(e);var r=n("fb67"),i=n("494c");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("1c42");var a=n("828b"),c=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=c.exports},eef0:function(t,e,n){},fb67:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={lPainter:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/lime-painter/components/l-painter/l-painter")]).then(n.bind(null,"577c"))}},i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){return t.$util.goUrl({url:"/user/pages/distribution/share-set"})})},o=[]}},[["4221","common/runtime","common/vendor"]]]);