(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/views/user/extension"],{"2d72":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},3845:function(t,n,e){},"91a7":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=getApp(),i=function(){e.e("pages/commponent/public/loading").then(function(){return resolve(e("7c23"))}.bind(null,e)).catch(e.oe)},a={data:function(){return{isShow:!0,colors:"",windowHeight:"",windowWidth:"",imgUrl:""}},components:{loading:i},props:{},onLoad:function(t){var n=this;this.setData({colors:o.globalData.newColor}),this.getSystem(),setTimeout((function(){n.setData({isShow:!1})}),600)},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{getSystem:function(){var n=this;t.getSystemInfo({success:function(t){n.setData({windowHeight:t.windowHeight,windowWidth:t.windowWidth}),n.createPoster()}})},createPoster:function(){var n=t.createCanvasContext("mycanvas",this);n.fillStyle="#FFFFFF",n.fillRect(0,0,this.windowWidth-30,560),n.drawImage("/static/images/user/poster.jpg",0,0,this.windowWidth-30,560),n.save();var e=60,o=60,i=15,a=15,c=8;this.setRadius(n,e,o,i,a,c),setTimeout((function(){n.save(),n.draw()}),200)},setRadius:function(t,n,e,o,i,a){t.arc(o+a,i+a,a,Math.PI,3*Math.PI/2),t.lineTo(n-a+o,i),t.arc(n-a+o,a+i,a,3*Math.PI/2,2*Math.PI),t.lineTo(n+o,e+i-a),t.arc(n-a+o,e-a+i,a,0,1*Math.PI/2),t.lineTo(a+o,e+i),t.arc(a+o,e-a+i,a,1*Math.PI/2,Math.PI),t.strokeStyle="#fff",t.fill(),t.clip(),t.drawImage("/static/images/ewm.png",o,i,n,e),t.closePath(),t.restore()},saveImg:function(){t.showLoading({title:"保存中..."});t.getSetting({success:function(n){n.authSetting["scope.writePhotosAlbum"]?setTimeout((function(){t.canvasToTempFilePath({canvasId:"mycanvas",success:function(n){console.log(n),t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(n){t.hideLoading(),t.showToast({title:"保存成功",icon:"success"})},fail:function(n){t.showToast({title:"保存失败",icon:"none"})}})}})}),1e3):(t.hideLoading(),t.openSetting({success:function(t){}}))}})}}};n.default=a}).call(this,e("543d")["default"])},9586:function(t,n,e){"use strict";var o=e("3845"),i=e.n(o);i.a},ac6d:function(t,n,e){"use strict";(function(t){e("2804");o(e("66fd"));var n=o(e("cd9c"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},cd9c:function(t,n,e){"use strict";e.r(n);var o=e("2d72"),i=e("f4c6");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("9586");var c,s=e("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"4428897a",null,!1,o["a"],c);n["default"]=u.exports},f4c6:function(t,n,e){"use strict";e.r(n);var o=e("91a7"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a}},[["ac6d","common/runtime","common/vendor"]]]);