(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_user-user-userTuiImg"],{"2e00":function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"distribution-posters"},[e("v-uni-view",{staticClass:"banenr"},[e("v-uni-image",{staticClass:"slide-image",attrs:{src:t.url,mode:"widthFix","show-menu-by-longpress":!0}})],1),e("v-uni-view",{staticClass:"btn-box"},[e("v-uni-view",{staticClass:"btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.saveImg()}}},[t._v("保存海报")])],1)],1)},o=[]},5678:function(t,n,e){"use strict";e.r(n);var i=e("2e00"),a=e("d14e");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("b420");var u,s=e("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"6aeb117a",null,!1,i["a"],u);n["default"]=r.exports},"7b87":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("9958"),a={name:"Poster",components:{},props:{},data:function(){return{url:null}},mounted:function(){this.getTuiImg()},methods:{getTuiImg:function(){var t=this;(0,i.getTuiImg)().then((function(n){var e=uni.getStorageSync("requestPath");t.url=e+"/"+n.url}),(function(t){uni.showToast({title:t.msg,icon:"none",duration:2e3})}))},downloadIamge:function(t,n){var e=this;this.isDown=!0;var i=t;e.downloadFile(i)},saveImg:function(){this.downloadIamge(this.url,"poster")},downloadFile:function(n){t.log(n),uni.showLoading({title:"图片保存中..."}),uni.downloadFile({url:n,fail:function(t){uni.showModal({title:"提示",content:"保存失败"})},success:function(n){t.log(n);var e=n.tempFilePath;uni.saveImageToPhotosAlbum({filePath:e,success:function(){uni.showToast({title:"保存成功",duration:2e3})},fail:function(){t.log("saveImageToPhotosAlbum 失败"),uni.hideLoading()},complete:function(){uni.hideLoading()}})}})}}};n.default=a}).call(this,e("5a52")["default"])},"8fb1":function(t,n,e){var i=e("24fb");n=i(!1),n.push([t.i,"uni-page-body[data-v-6aeb117a]{height:100%}.distribution-posters[data-v-6aeb117a]{height:100%}.banenr[data-v-6aeb117a]{display:flex;align-items:center;justify-content:center;padding-bottom:%?140?%;height:100%}.banner .slide-image[data-v-6aeb117a]{width:100%;height:auto}.btn-box[data-v-6aeb117a]{height:%?140?%;z-index:9999;width:100%;padding:%?0?% %?30?%;position:fixed;bottom:0;left:0;box-sizing:border-box;background-color:#fff;display:flex;align-items:center;justify-content:center}.btn-box .btn[data-v-6aeb117a]{width:100%;height:%?88?%;line-height:%?88?%;text-align:center;font-size:%?34?%;font-family:PingFang SC;font-weight:400;color:#fff;background:#2bc7b9!important;border-radius:%?44?%}",""]),t.exports=n},b420:function(t,n,e){"use strict";var i=e("d909"),a=e.n(i);a.a},d14e:function(t,n,e){"use strict";e.r(n);var i=e("7b87"),a=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},d909:function(t,n,e){var i=e("8fb1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("4f06").default;a("0f90b98c",i,!0,{sourceMap:!1,shadowMode:!1})}}]);