(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/shareQrCode"],{315:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(316));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},316:function(e,t,n){"use strict";n.r(t);var r=n(317),o=n(319);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n(321);var s,a=n(35),c=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],s);c.options.__file="pages/user/shareQrCode.vue",t["default"]=c.exports},317:function(e,t,n){"use strict";n.r(t);var r=n(318);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},318:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return i})),n.d(t,"components",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},i=!1,s=[];o._withStripped=!0},319:function(e,t,n){"use strict";n.r(t);var r=n(320),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},320:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(11)),i=n(49),s=n(28);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={onShareAppMessage:function(e){var t="/pages/index/index?spread="+this.userInfo.uid;console.log("path",t);var n={path:t,imageUrl:this.poster,title:this.userInfo.nickname+"邀请您进入智播商城"};return console.log("---data---",n),n},data:function(){return{shareList:[],swiperIndex:0,poster:""}},onLoad:function(e){console.log("---option---",e);var t="/pages/index/index?spread="+this.userInfo.uid;console.log("path",t),this.loadData()},computed:c({},(0,s.mapState)(["userInfo"])),methods:{bindchange:function(e){var t=this.shareList;this.swiperIndex=e.detail.current,this.poster=t[this.swiperIndex].poster,console.log(this.poster)},savePosterPath:function(){var t=this;""==t.poster&&(t.poster=t.shareList[0].poster),e.downloadFile({url:t.poster,success:function(n){if(200!==n.statusCode)return t.$api.msg(n.errMsg);e.getSetting({success:function(r){r.authSetting["scope.writePhotosAlbum"]?e.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(e){return t.$api.msg("保存成功")},fail:function(e){return t.$api.msg(e.errMsg)},complete:function(e){}}):e.authorize({scope:"scope.writePhotosAlbum",success:function(){e.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(e){return t.$api.msg("保存成功")},fail:function(e){return t.$api.msg(e.errMsg)},complete:function(e){}})},fail:function(){e.showModal({title:"您已拒绝获取相册权限",content:"是否进入权限管理，调整授权？",success:function(n){if(n.confirm)e.openSetting({success:function(e){console.log(e.authSetting)}});else if(n.cancel)return t.$api.msg("已取消！")}})}})},fail:function(e){}})},fail:function(e){return t.$api.msg(e.errMsg)}})},seav:function(t){e.showLoading({title:"生成中...",mask:!0}),e.saveImageToPhotosAlbum({filePath:this.poster,complete:function(t){e.hideLoading(),console.log(t),e.showToast({title:"保存图片成功！",duration:2e3,icon:"none"})}})},loadData:function(){var t=this;e.showLoading({title:"获取中",mask:!0}),(0,i.spreadBanner)({type:1}).then((function(n){e.hideLoading(),t.shareList=n.data,console.log("obj.shareList",t.shareList)})).catch((function(t){e.hideLoading()}))}}};t.default=u}).call(this,n(2)["default"])},321:function(e,t,n){"use strict";n.r(t);var r=n(322),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},322:function(e,t,n){}},[[315,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/user/shareQrCode.js.map