(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/shareQrCode"],{"2c2a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("26cb"),r=n("2681"),c=n("6bd2");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 a(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){u(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 u(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:a(a({},(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"])},"891e":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=[]},9129:function(t,e,n){"use strict";n.r(e);var o=n("891e"),r=n("a527");for(var c in r)"default"!==c&&function(t){n.d(e,t,(function(){return r[t]}))}(c);n("ec32");var i,a=n("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);e["default"]=u.exports},a527:function(t,e,n){"use strict";n.r(e);var o=n("2c2a"),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},b6d0:function(t,e,n){},bafa:function(t,e,n){"use strict";(function(t){n("5935");o(n("66fd"));var e=o(n("9129"));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"])},ec32:function(t,e,n){"use strict";var o=n("b6d0"),r=n.n(o);r.a}},[["bafa","common/runtime","common/vendor"]]]);