(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-share-qr-code-poster/app-share-qr-code-poster"],{"4c97":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");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 r(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 u=function(){n.e("components/basic-component/app-layout/app-permissions-auth/app-permissions-auth").then(function(){return resolve(n("f033"))}.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 e=this;t.showLoading({title:"图片保存中"}),t.downloadFile({url:this.shareImage,success:function(n){t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(){t.hideLoading(),t.showToast({title:"保存成功",duration:3e3,icon:"none"})},fail:function(){t.hideLoading(),e.getAuthSetting()},complete:function(){}})}})},getShareImg:function(){var e=this;this.url&&this.$request({url:this.url}).then((function(n){0===n.code?(e.shareImage=n.data.pic_url,e.loading=!1):t.showModal({content:n.msg,showCancel:!1})}))},getAuthSetting:function(){var e=this;t.getSetting({success:function(t){e.is_can_save=!t.authSetting["scope.writePhotosAlbum"]}})},cancel:function(t){this.is_can_save=t},preview:function(e){t.previewImage({urls:[e],longPressActions:!0})}}};e.default=c}).call(this,n("543d")["default"])},"6b3f":function(t,e,n){"use strict";n.r(e);var o=n("4c97"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},7954:function(t,e,n){},"9f9b":function(t,e,n){"use strict";n.r(e);var o=n("e555"),i=n("6b3f");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("cf42");var a,u=n("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"0f228996",null,!1,o["a"],a);e["default"]=c.exports},cf42:function(t,e,n){"use strict";var o=n("7954"),i=n.n(o);i.a},e555:function(t,e,n){"use strict";var o,i=function(){var t=this,e=t.$createElement;t._self._c},r=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}))}}]);
;(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__("9f9b"))
        })
    },
    [['components/page-component/app-share-qr-code-poster/app-share-qr-code-poster-create-component']]
]);
