(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/shareQrCode"],{"298f":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("9523")),i=n("2280"),s=n("26cb");function a(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}var c={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:function(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,r.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}({},(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(o){o.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=c}).call(this,n("543d")["default"])},"4fa5":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("3e59");o(n("66fd"));var r=o(n("7d35"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"51a4":function(e,t,n){"use strict";var o=n("f4f3"),r=n.n(o);r.a},"7d35":function(e,t,n){"use strict";n.r(t);var o=n("e787"),r=n("fbcc");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("51a4");var s=n("f0c5"),a=Object(s["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=a.exports},e787:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},r=[]},f4f3:function(e,t,n){},fbcc:function(e,t,n){"use strict";n.r(t);var o=n("298f"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a}},[["4fa5","common/runtime","common/vendor"]]]);