(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-supply-qrcode-qrcode"],{"53ee":function(e,t,i){"use strict";(function(e){var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("4c72")),u={data:function(){return{supply_id:0,qrcode:"",supply_name:","}},onLoad:function(e){var t=a.default.getSceneData(e);(e.supply_id||t.supply_id)&&(this.supply_id=e.supply_id?e.supply_id:t.supply_id)},mounted:function(){this.getCardQrcode()},methods:{getCardQrcode:function(){var e=this,t=e.supply_id,i="wx";i="mp",uni.showLoading({title:"加载中"}),e._get("plus.supply.supply/qrCode",{supply_id:t,source:i,url:e.url},(function(t){e.qrcode=t.data.qrcode,e.supply_name=t.data.supply_name,e.loadding=!1,uni.hideLoading()}))},saveImage:function(){var t=this;uni.showLoading({title:"加载中"}),uni.downloadFile({url:t.qrcode,success:function(t){uni.hideLoading(),uni.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(e){uni.showToast({title:"保存成功",icon:"success",duration:2e3})},fail:function(e){"saveImageToPhotosAlbum:fail auth deny"===e.errMsg&&(uni.showToast({title:"请允许访问相册后重试",icon:"none",duration:1e3}),setTimeout((function(){uni.openSetting()}),1e3))},complete:function(t){e("log","complete"," at pages/supply/qrcode/qrcode.vue:109")}})}})}}};t.default=u}).call(this,i("0de9")["log"])},"56ee":function(e,t,i){"use strict";var n=i("a44c"),a=i.n(n);a.a},"7a55":function(e,t,i){"use strict";i.r(t);var n=i("a004"),a=i("e2cd");for(var u in a)"default"!==u&&function(e){i.d(t,e,(function(){return a[e]}))}(u);i("56ee");var o,d=i("f0c5"),r=Object(d["a"])(a["default"],n["b"],n["c"],!1,null,"54e16d27",null,!1,n["a"],o);t["default"]=r.exports},a004:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return u})),i.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",[i("v-uni-view",{staticStyle:{width:"750rpx",height:"800rpx"}},[i("v-uni-view",{staticStyle:{"text-align":"center",padding:"40rpx"}},[i("v-uni-view",[e._v(e._s(e.supply_name))])],1),i("v-uni-image",{staticClass:"qrcode",attrs:{src:e.qrcode,mode:""}}),i("v-uni-view",{staticStyle:{height:"40rpx"}}),i("v-uni-view",{staticStyle:{margin:"auto","text-align":"center"}},[e._v("扫描或长按识别，成为会员")])],1),i("v-uni-view",{staticStyle:{height:"40rpx"}}),i("v-uni-view",{staticClass:"fix-painter-share"},[i("v-uni-button",{staticClass:"fr",staticStyle:{width:"100%"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.saveImage.apply(void 0,arguments)}}},[e._v("保存图片")])],1),i("v-uni-view",{staticStyle:{height:"40rpx"}})],1)],1)},u=[]},a129:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,"uni-page-body[data-v-54e16d27]{background:#efeff5}.fix-painter-share[data-v-54e16d27]{width:100%;height:%?90?%;line-height:%?90?%;bottom:%?0?%;color:#fff;background:#fff;border-radius:%?0?%}.fix-painter-share uni-button[data-v-54e16d27]{width:100%;height:%?90?%;line-height:%?90?%;color:#fff;background:#1aad19;border-radius:%?0?%}.fix-painter-share[data-v-54e16d27]{width:90%;padding:%?0?% 5%;background:none}.fix-painter-share uni-button[data-v-54e16d27]{padding:%?0?%;width:47.5%;font-size:%?32?%;border-radius:%?10?%}.fix-painter-share uni-button.fl[data-v-54e16d27]{color:#000;background:none;border:%?1?% solid #d8d8d8}.qrcode[data-v-54e16d27]{width:%?400?%;height:%?400?%;margin:auto}body.?%PAGE?%[data-v-54e16d27]{background:#efeff5}",""]),e.exports=t},a44c:function(e,t,i){var n=i("a129");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("b523c274",n,!0,{sourceMap:!1,shadowMode:!1})},e2cd:function(e,t,i){"use strict";i.r(t);var n=i("53ee"),a=i.n(n);for(var u in n)"default"!==u&&function(e){i.d(t,e,(function(){return n[e]}))}(u);t["default"]=a.a}}]);