(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/qrPage/index"],{"1f03":function(e,t,a){"use strict";a.r(t);var n=a("abe0"),c=a("42b0");for(var o in c)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return c[e]}))}(o);a("aab4");var r=a("f0c5"),i=Object(r["a"])(c["default"],n["b"],n["c"],!1,null,"3c668c36",null,!1,n["a"],void 0);t["default"]=i.exports},"42b0":function(e,t,a){"use strict";a.r(t);var n=a("fef6"),c=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=c.a},"8b23":function(e,t,a){"use strict";(function(e,t){var n=a("4ea4");a("2707");n(a("66fd"));var c=n(a("1f03"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(c.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},aab4:function(e,t,a){"use strict";var n=a("c271"),c=a.n(n);c.a},abe0:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},c=[]},c271:function(e,t,a){},fef6:function(e,t,a){"use strict";(function(e,n){var c=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a("6549"),r=c(a("0b78")),i=(a("9a13"),{data:function(){return{kcardCode:"",testUrl:""}},onLoad:function(e){console.log("二维码页面onLoad：",e,o.getBase64Image)},onShow:function(){},methods:{getAccessToken:function(){var t=this;e.request({url:"https://api.weixin.qq.com/cgi-bin/token?appid=".concat("wx98ab2939999e13de","&secret=").concat("29bad412d9cc5a7f48ca88d2848db8d3","&grant_type=client_credential"),data:{},header:{"content-type":"json"},success:function(e){console.log(e),t.getUnlimitedQRCode(e.data.access_token)}})},getUnlimitedQRCode:function(t){var a=this;e.request({url:"https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=".concat(t),responseType:"arraybuffer",data:JSON.stringify({scene:"kcardCode=123456",page:"pages/qrPage/index",check_path:!1}),header:{"content-type":"json"},method:"POST",success:function(t){console.log(t);var n=e.arrayBufferToBase64(t.data);a.testUrl="data:image/jpeg;base64,"+n,console.log("testUrl----base64",a.testUrl,n,t.data)}})},genQr:function(){},upImg:function(e){console.log("upImg的file",e);var t=this;n.uploadFile({url:r.default.baseUrl,filePath:e,name:"file",header:{"Content-Type":"multipart/form-data"},formData:{fileType:"images",dirName:"cert"},success:function(e){var a=JSON.parse(e.data);0==a.code&&(t.avatarUrl=a.data.url,console.log("上传后的头像url地址",a.data.url))},fail:function(e){console.log("upload failed:",e)}})}}});t.default=i}).call(this,a("bc2e")["default"],a("543d")["default"])}},[["8b23","common/runtime","common/vendor"]]]);