qrcode.js 2.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/lottery/qrcode/qrcode"],{1533:function(t,n,e){"use strict";var o,c=function(){var t=this,n=t.$createElement;t._self._c},a=[];e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}))},"30f1":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:null}},onLoad:function(){var t=this;t.$request({url:t.$api.lottery.setting}).then((function(n){0===n.code&&(t.setting=n.data.setting)})).catch((function(t){console.log(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(){t.setClipboardData({data:this.setting.cs_wechat,success:function(){}})}}};n.default=e}).call(this,e("543d")["default"])},"5b2c":function(t,n,e){"use strict";(function(t){e("8748");o(e("66fd"));var n=o(e("eb66"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},aae1:function(t,n,e){"use strict";e.r(n);var o=e("30f1"),c=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=c.a},adcc:function(t,n,e){},cd6c:function(t,n,e){"use strict";var o=e("adcc"),c=e.n(o);c.a},eb66:function(t,n,e){"use strict";e.r(n);var o=e("1533"),c=e("aae1");for(var a in c)"default"!==a&&function(t){e.d(n,t,(function(){return c[t]}))}(a);e("cd6c");var i,u=e("f0c5"),s=Object(u["a"])(c["default"],o["b"],o["c"],!1,null,"9b8aaabe",null,!1,o["a"],i);n["default"]=s.exports}},[["5b2c","common/runtime","common/vendor"]]]);