(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/shareQrCode"],{"0c20":function(t,e,n){"use strict";(function(t){n("30ba");o(n("66fd"));var e=o(n("184c"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},1664:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement;t._self._c},c=[]},"184c":function(t,e,n){"use strict";n.r(e);var o=n("1664"),r=n("efbe");for(var c in r)"default"!==c&&function(t){n.d(e,t,(function(){return r[t]}))}(c);n("6958");var i,u=n("f0c5"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);e["default"]=a.exports},"2ce7":function(t,e,n){},6958:function(t,e,n){"use strict";var o=n("2ce7"),r=n.n(o);r.a},d641:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("26cb"),r=n("f9a9"),c=n("5cc1");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={data:function(){return{rwmListArr:[],current:0,imgSrc:""}},onLoad:function(e){t.showLoading({title:"邀请图生成中",mask:!0}),this.loadCodeList(),t.authorize({scope:"scope.writePhotosAlbum",complete:function(){}})},onShow:function(){this.loginInterceptor&&!this.hasLogin&&((0,c.saveUrl)(),(0,c.interceptor)())},onPullDownRefresh:function(){var e=this;setTimeout((function(){e.loadCodeList(),t.stopPullDownRefresh()}),1e3)},computed:u(u({},(0,o.mapState)(["weichatObj","baseURL","urlFile"])),(0,o.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:{comfirm:function(e){console.log(e);var n=this.uniCopy(e);!1===n?t.showToast({title:"不支持"}):t.showToast({title:"复制成功",icon:"none"})},uniCopy:function(e){t.setClipboardData({data:e,success:function(){return console.log("success"),!0}})},loadCodeList:function(){var e=this;(0,r.spreadBanner)({type:1}).then((function(n){200==n.status&&(console.log(n.data),e.rwmListArr=n.data,e.imgSrc=e.rwmListArr[0].poster),t.hideLoading()}))},currentChange:function(t){this.current=t.detail.current},seav:function(){t.getImageInfo({src:this.imgSrc,complete:function(e){var n=e.path;t.getSetting({success:function(e){console.log(e),e.authSetting["scope.writePhotosAlbum"]?t.saveImageToPhotosAlbum({filePath:n,complete:function(e){t.showToast({title:"保存图片成功！",duration:2e3,icon:"none"})}}):t.authorize({scope:"scope.writePhotosAlbum",success:function(e){t.saveImageToPhotosAlbum({filePath:n,complete:function(t){}})},complete:function(e){t.showToast({title:"请先授权保存图片",duration:2e3,icon:"none"}),obj.seav()}})}})}})}}};e.default=s}).call(this,n("543d")["default"])},efbe:function(t,e,n){"use strict";n.r(e);var o=n("d641"),r=n.n(o);for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=r.a}},[["0c20","common/runtime","common/vendor"]]]);