杨总惠通宝
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.
 
 
 
 
 
 
htb_backend/public/static/js/pages-plantGrass-plant_rele...

1 lines
21 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_release-index~pages-product-addGoods-addGoodDetils~pages-product-addGoods-ind~cf516786"],{2308:function(t,i,e){var s=e("5587");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=e("4f06").default;a("5d214da4",s,!0,{sourceMap:!1,shadowMode:!1})},5587:function(t,i,e){var s=e("24fb");i=s(!1),i.push([t.i,".my-canvas[data-v-dfa26e9c]{display:flex;position:fixed!important;background:#000;left:0;z-index:100000;width:100%}.my-avatar[data-v-dfa26e9c]{width:%?150?%;height:%?150?%;border-radius:100%}.oper-canvas[data-v-dfa26e9c]{display:flex;position:fixed!important;left:0;z-index:100001;width:100%}.prv-canvas[data-v-dfa26e9c]{display:flex;position:fixed!important;background:#000;left:0;z-index:200000;width:100%}.oper-wrapper[data-v-dfa26e9c]{height:50px;position:fixed!important;box-sizing:border-box;border:1px solid #f1f1f1;background:#fff;width:100%;left:0;bottom:0;z-index:100009;flex-direction:row}.oper[data-v-dfa26e9c]{display:flex;flex-direction:column;justify-content:center;padding:%?10?% %?20?%;width:100%;height:100%;box-sizing:border-box;align-self:center}.btn-wrapper[data-v-dfa26e9c]{display:flex;flex-direction:row;\n\n\nheight:50px;\njustify-content:space-between}.btn-wrapper uni-view[data-v-dfa26e9c]{display:flex;align-items:center;justify-content:center;font-size:16px;color:#333;border:1px solid #f1f1f1;border-radius:6%}.hover[data-v-dfa26e9c]{background:#f1f1f1;border-radius:6%}.clr-wrapper[data-v-dfa26e9c]{display:flex;flex-direction:row;flex-grow:1}.clr-wrapper uni-view[data-v-dfa26e9c]{display:flex;align-items:center;justify-content:center;font-size:16px;color:#333;border:1px solid #f1f1f1;border-radius:6%}.my-slider[data-v-dfa26e9c]{flex-grow:1}",""]),t.exports=i},"640f":function(t,i,e){"use strict";e.r(i);var s=e("8699"),a=e.n(s);for(var h in s)["default"].indexOf(h)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(h);i["default"]=a.a},8699:function(t,i,e){"use strict";e("7a82");var s=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=s(e("c7eb")),h=s(e("1da1")),n=s(e("b85c"));e("acd8"),e("e25e"),e("498a"),e("c975"),e("d401"),e("d3b7"),e("25f0"),e("ace4"),e("8a59"),e("907a"),e("9a8c"),e("a975"),e("735e"),e("c1ac"),e("d139"),e("3a7b"),e("986a"),e("1d02"),e("d5d6"),e("82f8"),e("e91f"),e("60bd"),e("5f96"),e("3280"),e("3fcc"),e("ca91"),e("25a1"),e("cd26"),e("3c5d"),e("2954"),e("649e"),e("219c"),e("b39a"),e("72f7"),e("ac1f"),e("466d"),e("81b2"),e("0eb6"),e("b7ef"),e("8bd4"),e("5cc6"),e("3ca3"),e("ddb0"),e("2b3d"),e("9861");var o={name:"yq-avatar",data:function(){return{csH:"0px",sD:"none",sT:"-10000px",pT:"-10000px",iS:{},sS:{},sO:!0,bW:"19%",bD:"flex",tp:0,imgSrc:{imgSrc:""}}},watch:{avatarSrc:function(){this.imgSrc.imgSrc=this.avatarSrc}},props:{avatarSrc:"",avatarStyle:"",selWidth:"",selHeight:"",expWidth:"",expHeight:"",minScale:"",maxScale:"",canScale:"",canRotate:"",lockWidth:"",lockHeight:"",stretch:"",lock:"",fileType:"",noTab:"",inner:"",quality:"",index:"",bgImage:""},created:function(){var t=this;this.cc=uni.createCanvasContext("avatar-canvas",this),this.cco=uni.createCanvasContext("oper-canvas",this),this.ccp=uni.createCanvasContext("prv-canvas",this),this.qlty=parseFloat(this.quality)||1,this.imgSrc.imgSrc=this.avatarSrc,this.letRotate=!1===this.canRotate||!0===this.inner||"true"===this.inner||"false"===this.canRotate?0:1,this.letScale=!1===this.canScale||"false"===this.canScale?0:1,this.isin=!0===this.inner||"true"===this.inner?1:0,this.indx=this.index||void 0,this.mnScale=parseFloat(this.minScale)||.3,this.mxScale=parseFloat(this.maxScale)||4,this.noBar=!0===this.noTab||"true"===this.noTab?1:0,this.stc=this.stretch,this.lck=this.lock,this.fType="jpg"===this.fileType?"jpg":"png",this.isin||!this.letRotate?(this.bW="24%",this.bD="none"):(this.bW="19%",this.bD="flex"),this.noBar?this.fWindowResize():uni.showTabBar({fail:function(){t.noBar=1},success:function(){t.noBar=0},complete:function(i){t.fWindowResize()}})},methods:{fWindowResize:function(){var t=uni.getSystemInfoSync();this.platform=t.platform,this.wW=t.windowWidth,this.drawTop=t.windowTop,this.wH=t.windowHeight,this.noBar||(this.wH+=50),this.csH=this.wH-50+"px",this.tp=this.csH,this.tp=t.windowTop+parseInt(this.csH)+"px",this.pxRatio=this.wW/750;var i=this.avatarStyle;if(i&&!0!==i&&(i=i.trim())){i=i.split(";");var e,s={},a=(0,n.default)(i);try{for(a.s();!(e=a.n()).done;){var h=e.value;if(h){if(h=h.trim().split(":"),h[1].toString().indexOf("upx")>=0){var o=h[1].trim().split(" ");for(var r in o)o[r]&&o[r].toString().indexOf("upx")>=0&&(o[r]=parseFloat(o[r])*this.pxRatio+"px");h[1]=o.join(" ")}s[h[0].trim()]=h[1].trim()}}}catch(c){a.e(c)}finally{a.f()}this.iS=s}this.expWidth&&(this.eW=this.expWidth.toString().indexOf("upx")>=0?parseInt(this.expWidth)*this.pxRatio:parseInt(this.expWidth)),this.expHeight&&(this.eH=this.expHeight.toString().indexOf("upx")>=0?parseInt(this.expHeight)*this.pxRatio:parseInt(this.expHeight)),"flex"===this.sD&&this.fDrawInit(!0),this.fHideImg()},fSelect:function(){var t=this;this.fSelecting||(this.fSelecting=!0,setTimeout((function(){t.fSelecting=!1}),500),uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(i){uni.showLoading({title:"加载中...",mask:!0});var e=t.imgPath=i.tempFilePaths[0],s=i.tempFiles[0].name;!s&&e&&(s=e.split("/"),s=s[s.length-1]),uni.getImageInfo({src:e,success:function(i){if(t.imgWidth=i.width,t.imgHeight=i.height,t.path=e,!t.hasSel){var a=t.sS||{};if(!t.selWidth||!t.selHeight)return void uni.showModal({title:"裁剪框的宽或高没有设置",showCancel:!1});var h=t.selWidth.toString().indexOf("upx")>=0?parseInt(t.selWidth)*t.pxRatio:parseInt(t.selWidth),n=t.selHeight.toString().indexOf("upx")>=0?parseInt(t.selHeight)*t.pxRatio:parseInt(t.selHeight);a.width=h+"px",a.height=n+"px",a.top=(t.wH-n-50|0)/2+"px",a.left=(t.wW-h|0)/2+"px",t.sS=a}t.noBar?t.fDrawInit(!0):uni.hideTabBar({complete:function(){t.fDrawInit(!0)}}),t.$emit("getName",s)},fail:function(){uni.showToast({title:"请选择正确图片",duration:2e3})},complete:function(){uni.hideLoading()}})}}))},fUpload:function(){var t=this;if(!this.fUploading){this.fUploading=!0,setTimeout((function(){t.fUploading=!1}),1e3);var i=this.sS,e=parseInt(i.left),s=parseInt(i.top),a=parseInt(i.width),h=parseInt(i.height),n=this.eW||a*this.pixelRatio,o=this.eH||h*this.pixelRatio;uni.showLoading({title:"加载中...",mask:!0}),this.sD="none",this.sT="-10000px",this.hasSel=!1,this.fHideImg(),uni.canvasToTempFilePath({x:e,y:s,width:a,height:h,destWidth:n,destHeight:o,canvasId:"avatar-canvas",fileType:this.fType,quality:this.qlty,success:function(i){i=i.tempFilePath,t.btop(i).then((function(i){t.$emit("upload",{avatar:t.imgSrc,path:i,index:t.indx,data:t.rtn,base64:t.base64||null})}))},fail:function(t){uni.showToast({title:"error1",duration:2e3})},complete:function(){uni.hideLoading(),t.noBar||uni.showTabBar(),t.$emit("end")}},this)}},fPrvUpload:function(){var t=this;if(!this.fPrvUploading){this.fPrvUploading=!0,setTimeout((function(){t.fPrvUploading=!1}),1e3);var i=this.sS,e=(parseInt(i.width),parseInt(i.height),this.prvX),s=this.prvY,a=this.prvWidth,h=this.prvHeight,n=this.eW||parseInt(i.width)*this.pixelRatio,o=this.eH||parseInt(i.height)*this.pixelRatio;uni.showLoading({title:"加载中...",mask:!0}),this.sD="none",this.sT="-10000px",this.hasSel=!1,this.fHideImg(),uni.canvasToTempFilePath({x:e,y:s,width:a,height:h,destWidth:n,destHeight:o,canvasId:"prv-canvas",fileType:this.fType,quality:this.qlty,success:function(i){i=i.tempFilePath,t.btop(i).then((function(i){t.$emit("upload",{avatar:t.imgSrc,path:i,index:t.indx,data:t.rtn,base64:t.base64||null})}))},fail:function(){uni.showToast({title:"error_prv",duration:2e3})},complete:function(){uni.hideLoading(),t.noBar||uni.showTabBar(),t.$emit("end")}},this)}},fDrawInit:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.wW,s=this.wH,a=this.imgWidth,h=this.imgHeight,n=a/h,o=e-40,r=s-50-80,c=o/r,l=parseInt(this.sS.width),d=parseInt(this.sS.height);switch(this.fixWidth=0,this.fixHeight=0,this.lckWidth=0,this.lckHeight=0,this.stc){case"x":this.fixWidth=1;break;case"y":this.fixHeight=1;break;case"long":n>1?this.fixWidth=1:this.fixHeight=1;break;case"short":n>1?this.fixHeight=1:this.fixWidth=1;break;case"longSel":l>d?this.fixWidth=1:this.fixHeight=1;break;case"shortSel":l>d?this.fixHeight=1:this.fixWidth=1;break}switch(this.lck){case"x":this.lckWidth=1;break;case"y":this.lckHeight=1;break;case"long":n>1?this.lckWidth=1:this.lckHeight=1;break;case"short":n>1?this.lckHeight=1:this.lckWidth=1;break;case"longSel":l>d?this.lckWidth=1:this.lckHeight=1;break;case"shortSel":l>d?this.lckHeight=1:this.lckWidth=1;break}this.fixWidth?(o=l,r=o/n):this.fixHeight?(r=d,o=r*n):n<c?h<r?(o=a,r=h):o=r*n:a<o?(o=a,r=h):r=o/n,this.isin&&(o<l&&(o=l,r=o/n,this.lckHeight=0),r<d&&(r=d,o=r*n,this.lckWidth=0)),this.scaleSize=1,this.rotateDeg=0,this.posWidth=(e-o)/2|0,this.posHeight=(s-r-50)/2|0,this.useWidth=0|o,this.useHeight=0|r,this.centerX=this.posWidth+o/2,this.centerY=this.posHeight+r/2,this.focusX=0,this.focusY=0;var p=this.sS,f=parseInt(p.left),u=parseInt(p.top),v=parseInt(p.width),g=parseInt(p.height),x=(this.canvas,this.canvasOper,this.cc,this.cco);x.beginPath(),x.setLineWidth(3),x.setGlobalAlpha(1),x.setStrokeStyle("white"),x.strokeRect(f,u,v,g),x.setFillStyle("black"),x.setGlobalAlpha(.5),x.fillRect(0,0,this.wW,u),x.fillRect(0,u,f,g),x.fillRect(0,u+g,this.wW,this.wH-g-u-50),x.fillRect(f+v,u,this.wW-v-f,g),x.setGlobalAlpha(1),x.setStrokeStyle("red"),x.moveTo(f+15,u),x.lineTo(f,u),x.lineTo(f,u+15),x.moveTo(f+v-15,u),x.lineTo(f+v,u),x.lineTo(f+v,u+15),x.moveTo(f+15,u+g),x.lineTo(f,u+g),x.lineTo(f,u+g-15),x.moveTo(f+v-15,u+g),x.lineTo(f+v,u+g),x.lineTo(f+v,u+g-15),x.stroke(),x.draw(!1,(function(){i&&(t.sD="flex",t.sT=t.drawTop+"px",t.fDrawImage(!0))})),this.$emit("init")},fDrawImage:function(){var t=Date.now();if(!(t-this.drawTm<20)){this.drawTm=t;var i=this.cc,e=this.useWidth*this.scaleSize,s=this.useHeight*this.scaleSize;if(this.bgImage?i.drawImage(this.bgImage,0,0,this.wW,this.wH-50):i.fillRect(0,0,this.wW,this.wH-50),this.isin){var a=this.focusX*(this.scaleSize-1),h=this.focusY*(this.scaleSize-1);i.translate(this.centerX,this.centerY),i.rotate(this.rotateDeg*Math.PI/180),i.drawImage(this.imgPath,this.posWidth-this.centerX-a,this.posHeight-this.centerY-h,e,s)}else i.translate(this.posWidth+e/2,this.posHeight+s/2),i.rotate(this.rotateDeg*Math.PI/180),i.drawImage(this.imgPath,-e/2,-s/2,e,s);i.draw(!1)}},fPreview:function(){var t=this;if(!this.fPreviewing){this.fPreviewing=!0,setTimeout((function(){t.fPreviewing=!1}),1e3);var i=this.sS,e=parseInt(i.left),s=parseInt(i.top),a=parseInt(i.width),h=parseInt(i.height);uni.showLoading({title:"加载中...",mask:!0}),uni.canvasToTempFilePath({x:e,y:s,width:a,height:h,expWidth:a*this.pixelRatio,expHeight:h*this.pixelRatio,canvasId:"avatar-canvas",fileType:this.fType,quality:this.qlty,success:function(i){t.prvImgTmp=i=i.tempFilePath;var e=t.ccp,s=t.wW,a=parseInt(t.csH),h=parseInt(t.sS.width),n=parseInt(t.sS.height),o=s-40,r=a-80,c=o/h,l=n*c;l<r?(h=o,n=l):(c=r/n,h*=c,n=r),e.fillRect(0,0,s,a),t.prvX=s=(s-h)/2|0,t.prvY=a=(a-n)/2|0,t.prvWidth=h|=0,t.prvHeight=n|=0,e.drawImage(i,s,a,h,n),e.draw(!1),t.btop(i).then((function(i){t.sO=!1,t.pT=t.drawTop+"px"})),t.sO=!1,t.pT=t.drawTop+"px"},fail:function(){uni.showToast({title:"error2",duration:2e3})},complete:function(){uni.hideLoading()}},this)}},fChooseImg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(i){var s=i.selWidth,a=i.selHeight,h=i.expWidth,n=i.expHeight,o=i.quality,r=i.canRotate,c=i.canScale,l=i.minScale,d=i.maxScale,p=i.stretch,f=i.fileType,u=i.inner,v=i.lock;h&&(this.eW=h.toString().indexOf("upx")>=0?parseInt(h)*this.pxRatio:parseInt(h)),n&&(this.eH=n.toString().indexOf("upx")>=0?parseInt(n)*this.pxRatio:parseInt(n)),this.letRotate=!1===r||!0===u||"true"===u||"false"===r?0:1,this.letScale=!1===c||"false"===c?0:1,this.qlty=parseFloat(o)||1,this.mnScale=parseFloat(l)||.3,this.mxScale=parseFloat(d)||4,this.stc=p,this.isin=!0===u||"true"===u?1:0,this.fType="jpg"===f?"jpg":"png",this.lck=v,this.isin||!this.letRotate?(this.bW="24%",this.bD="none"):(this.bW="19%",this.bD="flex"),s&&a&&(s=s.toString().indexOf("upx")>=0?parseInt(s)*this.pxRatio:parseInt(s),a=a.toString().indexOf("upx")>=0?parseInt(a)*this.pxRatio:parseInt(a),this.sS.width=s+"px",this.sS.height=a+"px",this.sS.top=(this.wH-a-50|0)/2+"px",this.sS.left=(this.wW-s|0)/2+"px",this.hasSel=!0)}this.rtn=e,this.indx=t,this.fSelect()},fRotate:function(){this.rotateDeg+=90-this.rotateDeg%90,this.fDrawImage()},fStart:function(t){var i=t.touches,e=i[0],s=i[1];if(this.touch0=e,this.touch1=s,s){var a=s.x-e.x,h=s.y-e.y;this.fgDistance=Math.sqrt(a*a+h*h)}},fMove:function(t){var i=t.touches,e=i[0],s=i[1];if(s){var a=s.x-e.x,h=s.y-e.y,n=Math.sqrt(a*a+h*h),o=.005*(n-this.fgDistance),r=this.scaleSize+o;do{if(!this.letScale)break;if(r<this.mnScale)break;if(r>this.mxScale)break;var c=this.useWidth*o/2,l=this.useHeight*o/2;if(this.isin){var d,p,f=this.useWidth*r,u=this.useHeight*r,v=(this.posWidth,this.posHeight,parseInt(this.sS.left)),g=parseInt(this.sS.top),x=parseInt(this.sS.width),w=parseInt(this.sS.height),m=v+x,b=g+w;if(f<=x||u<=w)break;this.cx=d=this.focusX*r-this.focusX,this.cy=p=this.focusY*r-this.focusY,this.posWidth-=c,this.posHeight-=l,this.posWidth-d>v&&(this.posWidth=v+d),this.posWidth+f-d<m&&(this.posWidth=m-f+d),this.posHeight-p>g&&(this.posHeight=g+p),this.posHeight+u-p<b&&(this.posHeight=b-u+p)}else this.posWidth-=c,this.posHeight-=l;this.scaleSize=r}while(0);this.fgDistance=n,s.x!==e.x&&this.letRotate&&(a=(this.touch1.y-this.touch0.y)/(this.touch1.x-this.touch0.x),h=(s.y-e.y)/(s.x-e.x),this.rotateDeg+=180*Math.atan((h-a)/(1+a*h))/Math.PI,this.touch0=e,this.touch1=s),this.fDrawImage()}else if(this.touch0){var y=e.x-this.touch0.x,S=e.y-this.touch0.y,I=this.posWidth+y,W=this.posHeight+S;if(this.isin){var H,k,T=this.useWidth*this.scaleSize,D=this.useHeight*this.scaleSize,R=I,P=W,C=R+T,M=P+D,z=parseInt(this.sS.left),O=parseInt(this.sS.top),$=z+parseInt(this.sS.width),_=O+parseInt(this.sS.height);this.cx=H=this.focusX*this.scaleSize-this.focusX,this.cy=k=this.focusY*this.scaleSize-this.focusY,!this.lckWidth&&Math.abs(y)<100&&(z<R-H?this.posWidth=z+H:$>C-H?this.posWidth=$-T+H:(this.posWidth=I,this.focusX-=y)),!this.lckHeight&&Math.abs(S)<100&&(O<P-k?(this.focusY-=O+k-this.posHeight,this.posHeight=O+k):_>M-k?(this.focusY-=_+k-(this.posHeight+D),this.posHeight=_-D+k):(this.posHeight=W,this.focusY-=S))}else Math.abs(y)<100&&!this.lckWidth&&(this.posWidth=I),Math.abs(S)<100&&!this.lckHeight&&(this.posHeight=W),this.focusX-=y,this.focusY-=S;this.touch0=e,this.fDrawImage()}},fEnd:function(t){var i=t.touches,e=i&&i[0];i&&i[1];e?this.touch0=e:(this.touch0=null,this.touch1=null)},fHideImg:function(){this.prvImg="",this.pT="-10000px",this.sO=!0,this.prvImgData=null,this.target=null},fClose:function(){this.sD="none",this.sT="-10000px",this.hasSel=!1,this.fHideImg(),this.noBar||uni.showTabBar(),this.$emit("end")},fGetImgData:function(){var t=this;return new Promise((function(i,e){var s=t.prvX,a=t.prvY,h=t.prvWidth,n=t.prvHeight;uni.canvasGetImageData({canvasId:"prv-canvas",x:s,y:a,width:h,height:n,success:function(t){i(t.data)},fail:function(t){e(t)}},t)}))},fColorChange:function(t){var i=this;return(0,h.default)((0,a.default)().mark((function e(){var s,h,n,o,r,c,l,d,p,f,u,v,g,x,w,m,b,y,S,I,W,H,k,T,D,R,P;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=Date.now(),!(s-i.prvTm<100)){e.next=3;break}return e.abrupt("return");case 3:if(i.prvTm=s,uni.showLoading({title:"加载中...",mask:!0}),i.prvImgData){e.next=11;break}return e.next=8,i.fGetImgData().catch((function(){uni.showToast({title:"error_read",duration:2e3})}));case 8:if(i.prvImgData=e.sent){e.next=10;break}return e.abrupt("return");case 10:i.target=new Uint8ClampedArray(i.prvImgData.length);case 11:if(h=i.prvImgData,n=i.target,o=t.detail.value,0===o)n=h;else for(o=(o+100)/200,o<.005&&(o=0),o>.995&&(o=1),W=h.length-1;W>=0;W-=4)r=h[W-3]/255,c=h[W-2]/255,l=h[W-1]/255,m=Math.max(r,c,l),w=Math.min(r,c,l),v=m-w,m===w?p=0:m===r&&c>=l?p=(c-l)/v*60:m===r&&c<l?p=(c-l)/v*60+360:m===c?p=(l-r)/v*60+120:m===l&&(p=(r-c)/v*60+240),u=(m+w)/2,0===u||m===w?f=0:0<u&&u<=.5?f=v/(2*u):u>.5&&(f=v/(2-2*u)),h[W]&&(d=h[W]),o<.5?f=f*o/.5:o>.5&&(f=2*f+2*o-f*o/.5-1),0===f?r=c=l=Math.round(255*u):(u<.5?x=u*(1+f):u>=.5&&(x=u+f-u*f),g=2*u-x,b=p/360,y=b+1/3,S=b,I=b-1/3,H=function(t){return t<0?t+1:t>1?t-1:t},k=function(t){return t<1/6?g+6*(x-g)*t:t>=1/6&&t<.5?x:t>=.5&&t<2/3?g+6*(x-g)*(2/3-t):g},r=y=Math.round(255*k(H(y))),c=S=Math.round(255*k(H(S))),l=I=Math.round(255*k(H(I)))),d&&(n[W]=d),n[W-3]=r,n[W-2]=c,n[W-1]=l;T=i.prvX,D=i.prvY,R=i.prvWidth,P=i.prvHeight,uni.canvasPutImageData({canvasId:"prv-canvas",x:T,y:D,width:R,height:P,data:n,fail:function(){uni.showToast({title:"error_put",duration:2e3})},complete:function(){uni.hideLoading()}},i);case 15:case"end":return e.stop()}}),e)})))()},btop:function(t){return this.base64=t,new Promise((function(i,e){var s=t.split(","),a=s[0].match(/:(.*?);/)[1],h=atob(s[1]),n=h.length,o=new Uint8Array(n);while(n--)o[n]=h.charCodeAt(n);return i((window.URL||window.webkitURL).createObjectURL(new Blob([o],{type:a})))}))}}};i.default=o},a208:function(t,i,e){"use strict";e.r(i);var s=e("adc6"),a=e("640f");for(var h in a)["default"].indexOf(h)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(h);e("dd8b");var n=e("f0c5"),o=Object(n["a"])(a["default"],s["b"],s["c"],!1,null,"dfa26e9c",null,!1,s["a"],void 0);i["default"]=o.exports},adc6:function(t,i,e){"use strict";e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("v-uni-image",{staticClass:"my-avatar",style:[t.iS],attrs:{src:t.imgSrc.imgSrc},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.fSelect.apply(void 0,arguments)}}}),e("v-uni-canvas",{staticClass:"my-canvas",style:{top:t.sT,height:t.csH},attrs:{"canvas-id":"avatar-canvas",id:"avatar-canvas","disable-scroll":"false"}}),e("v-uni-canvas",{staticClass:"oper-canvas",style:{top:t.sT,height:t.csH},attrs:{"canvas-id":"oper-canvas",id:"oper-canvas","disable-scroll":"false"},on:{touchstart:function(i){arguments[0]=i=t.$handleEvent(i),t.fStart.apply(void 0,arguments)},touchmove:function(i){arguments[0]=i=t.$handleEvent(i),t.fMove.apply(void 0,arguments)},touchend:function(i){arguments[0]=i=t.$handleEvent(i),t.fEnd.apply(void 0,arguments)}}}),e("v-uni-canvas",{staticClass:"prv-canvas",style:{height:t.csH,top:t.pT},attrs:{"canvas-id":"prv-canvas",id:"prv-canvas","disable-scroll":"false"},on:{touchstart:function(i){arguments[0]=i=t.$handleEvent(i),t.fHideImg.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"oper-wrapper",style:{display:t.sD,top:t.tp}},[e("v-uni-view",{staticClass:"oper"},[t.sO?e("v-uni-view",{staticClass:"btn-wrapper"},[e("v-uni-view",{style:{width:t.bW},attrs:{"hover-class":"hover"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.fSelect.apply(void 0,arguments)}}},[e("v-uni-text",[t._v("重选")])],1),e("v-uni-view",{style:{width:t.bW},attrs:{"hover-class":"hover"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.fClose.apply(void 0,arguments)}}},[e("v-uni-text",[t._v("关闭")])],1),e("v-uni-view",{style:{width:t.bW,display:t.bD},attrs:{"hover-class":"hover"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.fRotate.apply(void 0,arguments)}}},[e("v-uni-text",[t._v("旋转")])],1),e("v-uni-view",{style:{width:t.bW},attrs:{"hover-class":"hover"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.fPreview.apply(void 0,arguments)}}},[e("v-uni-text",[t._v("预览")])],1),e("v-uni-view",{style:{width:t.bW},attrs:{"hover-class":"hover"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.fUpload.apply(void 0,arguments)}}},[e("v-uni-text",[t._v("上传")])],1)],1):e("v-uni-view",{staticClass:"clr-wrapper"},[e("v-uni-slider",{staticClass:"my-slider",attrs:{"block-size":"25",value:"0",min:"-100",max:"100",activeColor:"red",backgroundColor:"green","block-color":"grey","show-value":!0},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.fColorChange.apply(void 0,arguments)}}}),e("v-uni-view",{style:{width:t.bW},attrs:{"hover-class":"hover"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.fPrvUpload.apply(void 0,arguments)}}},[e("v-uni-text",[t._v("上传")])],1)],1)],1)],1)],1)},a=[]},b85c:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,i){var e="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=(0,s.default)(t))||i&&t&&"number"===typeof t.length){e&&(t=e);var a=0,h=function(){};return{s:h,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:h}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,r=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){r=!0,n=t},f:function(){try{o||null==e["return"]||e["return"]()}finally{if(r)throw n}}}},e("a4d3"),e("e01a"),e("d3b7"),e("d28b"),e("3ca3"),e("ddb0"),e("d9e2"),e("d401");var s=function(t){return t&&t.__esModule?t:{default:t}}(e("06c5"))},dd8b:function(t,i,e){"use strict";var s=e("2308"),a=e.n(s);a.a}}]);