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.
 
 
 
 
xxdj1/unpackage/dist/build/h5/static/js/user-pages-distribution-bin...

1 lines
5.1 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-distribution-bind-technician"],{"5ec2":function(t,e,n){var r=n("b623");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("4f06").default;i("2c1fd612",r,!0,{sourceMap:!1,shadowMode:!1})},7233:function(t,e,n){"use strict";n.r(e);var r=n("c871"),i=n("a01b");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("b676");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"710081f4",null,!1,r["a"],void 0);e["default"]=s.exports},a01b:function(t,e,n){"use strict";n.r(e);var r=n("b949"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},b623:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".code-img[data-v-710081f4]{width:%?710?%;height:%?1278?%;margin-left:%?20?%}.btns[data-v-710081f4]{display:flex;justify-content:center;padding:%?15?%;background-color:#fff;margin-top:%?20?%}.save-btn[data-v-710081f4]{width:%?690?%;height:%?80?%;line-height:%?80?%;margin:0 auto}.hideCanvasView[data-v-710081f4]{position:relative}.hideCanvas[data-v-710081f4]{position:absolute;left:%?-9999?%;top:%?-9999?%}",""]),t.exports=e},b676:function(t,e,n){"use strict";var r=n("5ec2"),i=n.n(r);i.a},b949:function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("3835")),a=r(n("5530")),o=r(n("c7eb")),s=r(n("1da1")),u=n("26cb"),c=(r(n("7ded")),{components:{},props:{},data:function(){return{src:"",options:""}},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,s.default)((0,o.default)().mark((function t(){var n;return(0,o.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(){n.renderToCanvas()}),1e3);case 5:case"end":return t.stop()}}),t)})))()},methods:(0,a.default)((0,a.default)({},(0,u.mapActions)(["user/report"])),{},{renderToCanvas:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var n,r,i,a,s,u;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t,e.next=3,t.$api.mine.adminCoachQr();case 3:r=e.sent,"https://lbqnyv2.migugu.com/bianzu18.png",i=t.userInfo,a=i.nickName,s=i.avatarUrl,"0rpx",u={css:{width:"710rpx",height:"1278rpx"},views:[{type:"image",src:"https://lbqnyv2.migugu.com/bianzu18.png",css:{width:"710rpx",height:"1138rpx",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:s,css:{position:"absolute",width:"94rpx",height:"94rpx",borderRadius:"50rpx",bottom:"23rpx",left:"20rpx"}},{type:"text",text:a,css:{position:"absolute",bottom:"70rpx",left:"130rpx",width:"350rpx",fontSize:"32rpx",fontWight:"700",color:"#0C0C0C"}},{type:"text",text:"邀请你成为技师 快快扫码加盟我们吧!",css:{position:"absolute",bottom:"23rpx",left:"130rpx",width:"750rpx",fontSize:"26rpx",color:"#999999"}}]},{type:"image",src:r,css:{position:"absolute",width:"290rpx",height:"290rpx",bottom:"366rpx",left:"210rpx",background:"#ffffff",borderRadius:"0rpx"}}]},t.$refs.painter.render(u),t.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(e){n.$util.hideAll(),t.src=e.tempFilePath,console.log(e.tempFilePath)}});case 10: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,s.default)((0,o.default)().mark((function e(){var n,r,a,s;return(0,o.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(r=e.sent,a=(0,i.default)(r,2),s=a[0],a[1],!s){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},c871:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={lPainter:n("52fd").default},i=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:"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)},a=[]}}]);