(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-share-qr-code-poster/app-share-qr-code-poster"],{"198c":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o}));var i=function(){var e=this,t=e.$createElement;e._self._c},r=[]},"1bf0":function(e,t,n){},4168:function(e,t,n){"use strict";var o=n("1bf0"),i=n.n(o);i.a},4336:function(e,t,n){"use strict";n.r(t);var o=n("198c"),i=n("995f");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("4168");var a,u=n("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"4fe5a7cb",null,!1,o["a"],a);t["default"]=c.exports},6735:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("2f62");function i(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 r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){n.e("components/basic-component/app-layout/app-permissions-auth/app-permissions-auth").then(function(){return resolve(n("aee1"))}.bind(null,n)).catch(n.oe)},c={name:"app-share-qr-code-poster",components:{appPermissionsAuth:u},computed:r({},(0,o.mapGetters)("iPhoneX",{getBoolEmpty:"getBoolEmpty"})),props:{value:{type:Boolean,default:function(){return!1}},url:{type:String,default:function(){return""}},disabled:{type:Boolean,default:function(){return!1}},isHidden:{type:Boolean,default:function(){return!0}}},data:function(){return{showHidden:this.value,buttonBoolean:!0,shareImage:"",is_can_save:!1,text:"保存图片需要您的授权。点击去设置,开启 保存到相册 权限",loading:!0}},methods:{fenxianghaibao:function(){this.buttonBoolean=!1,this.getShareImg()},showHiddenClick:function(){this.showHidden=!1,this.$emit("input",this.showHidden),this.buttonBoolean=!0},savePicture:function(){var t=this;e.showLoading({title:"图片保存中"}),e.downloadFile({url:this.shareImage,success:function(n){e.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(){e.hideLoading(),e.showToast({title:"保存成功",duration:3e3,icon:"none"})},fail:function(){e.hideLoading(),t.getAuthSetting()},complete:function(){}})}})},getShareImg:function(){var t=this;this.url&&this.$request({url:this.url}).then((function(n){0===n.code?(t.shareImage=n.data.pic_url,t.loading=!1):e.showModal({content:n.msg,showCancel:!1})}))},getAuthSetting:function(){var t=this;e.getSetting({success:function(e){t.is_can_save=!e.authSetting["scope.writePhotosAlbum"]}})},cancel:function(e){this.is_can_save=e},preview:function(t){e.previewImage({urls:[t],longPressActions:!0})}}};t.default=c}).call(this,n("543d")["default"])},"995f":function(e,t,n){"use strict";n.r(t);var o=n("6735"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/app-share-qr-code-poster/app-share-qr-code-poster-create-component',
    {
        'components/page-component/app-share-qr-code-poster/app-share-qr-code-poster-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("4336"))
        })
    },
    [['components/page-component/app-share-qr-code-poster/app-share-qr-code-poster-create-component']]
]);
