require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/pages/christmasHat/index/index"],{521:function(n,e,t){"use strict";(function(n,e){var i=t(4);t(26);i(t(25));var o=i(t(522));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},522:function(n,e,t){"use strict";t.r(e);var i=t(523),o=t(525);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);t(527);var a,c=t(34),s=Object(c["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],a);s.options.__file="pages_tool/pages/christmasHat/index/index.vue",e["default"]=s.exports},523:function(n,e,t){"use strict";t.r(e);var i=t(524);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},524:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return i}));var o=function(){var n=this,e=n.$createElement;n._self._c},r=!1,a=[];o._withStripped=!0},525:function(n,e,t){"use strict";t.r(e);var i=t(526),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},526:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=getApp(),i={data:function(){return{bgPic:null,picChoosed:!1}},methods:{assignPicChoosed:function(){this.bgPic?this.picChoosed=!0:this.picChoosed=!1},getAvatar:function(e){var t,i,o,r=(null===e||void 0===e||null===(t=e.detail)||void 0===t?void 0:t.avatarUrl)||(null===e||void 0===e||null===(i=e.detail)||void 0===i||null===(o=i.userInfo)||void 0===o?void 0:o.avatarUrl);if(r){var a=r;/qlogo\.cn/.test(r)&&(a=r.replace(/\/(\d+)$/,"/0")),this.bgPic=a,this.assignPicChoosed()}else n.showToast({title:"未获取到头像权限",icon:"none",duration:2e3})},chooseImage:function(e){var t=this;n.chooseImage({count:1,sizeType:["original","compressed"],sourceType:[e.target.dataset.way],success:function(e){var i,o=null===e||void 0===e||null===(i=e.tempFilePaths)||void 0===i?void 0:i[0];if(!o)return n.showToast({title:"未选择图片",icon:"none",duration:2e3}),void t.assignPicChoosed();t.bgPic=o,t.assignPicChoosed()},fail:function(n){t.assignPicChoosed()},complete:function(n){t.assignPicChoosed()}})},nextPage:function(){t.globalData.bgPic=this.bgPic,n.navigateTo({url:"../imageeditor/imageeditor"})}}};e.default=i}).call(this,t(2)["default"])},527:function(n,e,t){"use strict";t.r(e);var i=t(528),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},528:function(n,e,t){}},[[521,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages_tool/pages/christmasHat/index/index.js.map