(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/shareQrCode"],{267:function(e,t,n){"use strict";(function(e){var t=n(3);n(25);t(n(24));var o=t(n(268));wx.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n(1)["createPage"])},268:function(e,t,n){"use strict";n.r(t);var o=n(269),r=n(271);for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);n(273);var i,u=n(39),s=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);s.options.__file="user/page/shareQrCode.vue",t["default"]=s.exports},269:function(e,t,n){"use strict";n.r(t);var o=n(270);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},270:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i})),n.d(t,"recyclableRender",(function(){return c})),n.d(t,"components",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},c=!1,i=[];r._withStripped=!0},271:function(e,t,n){"use strict";n.r(t);var o=n(272),r=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=r.a},272:function(e,t,n){"use strict";(function(e){var o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(10)),c=n(27),i=n(49),u=n(36);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={data:function(){return{rwmListArr:[],current:0,imgSrc:""}},onLoad:function(t){e.showLoading({title:"邀请图生成中",mask:!0}),this.loadCodeList(),e.authorize({scope:"scope.writePhotosAlbum",complete:function(){}})},onShow:function(){this.loginInterceptor&&!this.hasLogin&&((0,u.saveUrl)(),(0,u.interceptor)())},onPullDownRefresh:function(){var t=this;setTimeout((function(){t.loadCodeList(),e.stopPullDownRefresh()}),1e3)},computed:a(a({},(0,c.mapState)(["weichatObj","baseURL","urlFile"])),(0,c.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:{comfirm:function(t){console.log(t);var n=this.uniCopy(t);!1===n?e.showToast({title:"不支持"}):e.showToast({title:"复制成功",icon:"none"})},uniCopy:function(t){e.setClipboardData({data:t,success:function(){return console.log("success"),!0}})},loadCodeList:function(){var t=this;(0,i.spreadBanner)({type:1}).then((function(n){200==n.status&&(console.log(n.data),t.rwmListArr=n.data,t.imgSrc=t.rwmListArr[0].poster),e.hideLoading()}))},currentChange:function(e){this.current=e.detail.current},seav:function(){e.getImageInfo({src:this.imgSrc,complete:function(t){var n=t.path;e.getSetting({success:function(t){console.log(t),t.authSetting["scope.writePhotosAlbum"]?e.saveImageToPhotosAlbum({filePath:n,complete:function(t){e.showToast({title:"保存图片成功！",duration:2e3,icon:"none"})}}):e.authorize({scope:"scope.writePhotosAlbum",success:function(t){e.saveImageToPhotosAlbum({filePath:n,complete:function(e){}})},complete:function(t){e.showToast({title:"请先授权保存图片",duration:2e3,icon:"none"}),obj.seav()}})}})}})}}};t.default=f}).call(this,n(1)["default"])},273:function(e,t,n){"use strict";n.r(t);var o=n(274),r=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=r.a},274:function(e,t,n){}},[[267,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/user/page/shareQrCode.js.map