(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-agent-qrcode-qrcode"],{"010a":function(t,e,n){"use strict";n.r(e);var i=n("e3e6"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"1ddd":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"qrcode"},[e("v-uni-image",{attrs:{src:this.qrcode_url,mode:"widthFix"}}),e("v-uni-view",{staticClass:"btns-wrap"},[e("v-uni-view",{staticClass:"f34 tc ww100",attrs:{type:"default"}},[this._v("长按保存图片")])],1)],1)},o=[]},6142:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".qrcode uni-image[data-v-8ebccc68]{width:100%}.btns-wrap[data-v-8ebccc68]{position:fixed;height:%?88?%;right:0;bottom:0;left:0;display:flex;z-index:10}.btns-wrap .btn-red[data-v-8ebccc68]{width:100%;height:%?88?%;line-height:%?88?%;border-radius:0}",""]),t.exports=e},ab7e:function(t,e,n){"use strict";var i=n("f3c7"),o=n.n(i);o.a},e3e6:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{qrcode_url:""}},mounted:function(){this.getData()},methods:{getData:function(){var t=this;uni.showLoading({title:"加载中"});var e=t.getPlatform();t._get("plus.agent.qrcode/poster",{source:e},(function(e){uni.hideLoading(),t.qrcode_url=e.data.qrcode}))},savePosterImg:function(){var t=this;uni.showLoading({title:"加载中"}),uni.downloadFile({url:t.qrcode_url,success:function(e){uni.hideLoading(),uni.saveImageToPhotosAlbum({filePath:e.tempFilePath,success:function(e){uni.showToast({title:"保存成功",icon:"success",duration:2e3}),t.isCreatedImg=!1},fail:function(t){console.log(t.errMsg),"saveImageToPhotosAlbum:fail auth deny"===t.errMsg&&(uni.showToast({title:"请允许访问相册后重试",icon:"none",duration:1e3}),setTimeout((function(){uni.openSetting()}),1e3))},complete:function(t){console.log("complete")}})}})}}};e.default=i},f3c7:function(t,e,n){var i=n("6142");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("3120d6cf",i,!0,{sourceMap:!1,shadowMode:!1})},fc5a:function(t,e,n){"use strict";n.r(e);var i=n("1ddd"),o=n("010a");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("ab7e");var c=n("f0c5"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"8ebccc68",null,!1,i["a"],void 0);e["default"]=u.exports}}]);