You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
high-mini/unpackage/dist/build/mp-weixin/pages/user/myQR/myQR.js

1 line
1.9 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/myQR/myQR"],{"128e":function(t,n,e){},2968:function(t,n,e){"use strict";e.r(n);var i=e("fea1"),o=e.n(i);for(var c in i)"default"!==c&&function(t){e.d(n,t,(function(){return i[t]}))}(c);n["default"]=o.a},"32c2":function(t,n,e){"use strict";e.r(n);var i=e("f196"),o=e("2968");for(var c in o)"default"!==c&&function(t){e.d(n,t,(function(){return o[t]}))}(c);e("c472");var u,a=e("f0c5"),r=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);n["default"]=r.exports},ac3c:function(t,n,e){"use strict";(function(t){e("185d");i(e("66fd"));var n=i(e("32c2"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},c472:function(t,n,e){"use strict";var i=e("128e"),o=e.n(i);o.a},f196:function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){return i}));var o=function(){var t=this,n=t.$createElement;t._self._c},c=[]},fea1:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{tis:"保存到相册",showBtn:!1}},onLoad:function(){},methods:{printscreen:function(){this.tis="正在保存";var n=this.$mp.page.$getAppWebview(),e=new plus.nativeObj.Bitmap;this.showBtn=!1,this.$nextTick((function(){var i=this;setTimeout((function(){n.draw(e,(function(n){i.showBtn=!0,console.log("bitmap绘制图片成功"),console.log("e: "+JSON.stringify(n)),e.save("_doc/Qr.jpg",{overwrite:!0,quality:100},(function(n){plus.gallery.save(n.target,(function(n){t.showToast({title:"保存成功"}),i.tis="保存到相册",e.clear()}),(function(t){e.clear()}))}),(function(t){console.log("保存图片失败:"+JSON.stringify(t))}))}),(function(t){console.log("bitmap绘制图片失败:"+JSON.stringify(t))}))}),200)}))}}};n.default=e}).call(this,e("543d")["default"])}},[["ac3c","common/runtime","common/vendor"]]]);