(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/lottery/qrcode/qrcode"],{"29b0":function(t,n,e){"use strict";e.r(n);var o=e("d18c"),c=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=c.a},"41fa":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var c=function(){var t=this,n=t.$createElement;t._self._c},i=[]},"6fc8":function(t,n,e){"use strict";var o=e("db967"),c=e.n(o);c.a},a09f:function(t,n,e){"use strict";e.r(n);var o=e("41fa"),c=e("29b0");for(var i in c)"default"!==i&&function(t){e.d(n,t,(function(){return c[t]}))}(i);e("6fc8");var u,a=e("f0c5"),s=Object(a["a"])(c["default"],o["b"],o["c"],!1,null,"c32c8ef0",null,!1,o["a"],u);n["default"]=s.exports},c5ce:function(t,n,e){"use strict";(function(t){e("2d0a");o(e("66fd"));var n=o(e("a09f"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},d18c:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"qrcode",components:{},data:function(){return{setting:{}}},onLoad:function(){this.$commonLoad.onload();var t=this;t.$request({url:t.$api.lottery.setting}).then((function(n){0===n.code&&(t.setting=n.data.setting)})).catch((function(t){}))},methods:{save:function(n){t.showLoading({title:"图片保存中"}),t.downloadFile({url:n,success:function(n){t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(){t.showToast({title:"保存成功"})},fail:function(e){e.errMsg&&t.showModal({title:"提示",content:"您好,请先授权保存到相册权限",showCancel:!1,success:function(e){e.confirm&&t.openSetting({success:function(e){e.authSetting["scope.writePhotosAlbum"]?t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(){t.showToast({title:"保存成功"})}}):t.showModal({title:"提示",content:"授权失败，请稍后重新获取",showCancel:!1})}})}})},complete:function(n){t.hideLoading()}})},fail:function(n){t.showModal({title:"图片下载失败",content:n.errMsg,showCancel:!1})},complete:function(n){t.hideLoading()}})},copy:function(){this.$utils.uniCopy({data:this.setting.cs_wechat,success:function(){}})}}};n.default=e}).call(this,e("543d")["default"])},db967:function(t,n,e){}},[["c5ce","common/runtime","common/vendor"]]]);