require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/userTuiImg"],{"1bf0":function(t,n,e){"use strict";var o=e("536b"),u=e.n(o);u.a},"4e31":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("41e9"),u={name:"Poster",components:{},props:{},data:function(){return{url:null}},mounted:function(){this.getTuiImg()},methods:{getTuiImg:function(){var n=this;(0,o.getTuiImg)().then((function(e){var o=t.getStorageSync("requestPath");n.url=o+"/"+e.url}),(function(n){t.showToast({title:n.msg,icon:"none",duration:2e3})}))},downloadIamge:function(t,n){this.isDown=!0;var e=t;this.downloadFile(e)},saveImg:function(){this.downloadIamge(this.url,"poster")},downloadFile:function(n){console.log(n),t.showLoading({title:"图片保存中..."}),t.downloadFile({url:n,fail:function(n){t.showModal({title:"提示",content:"保存失败"})},success:function(n){console.log(n);var e=n.tempFilePath;t.saveImageToPhotosAlbum({filePath:e,success:function(){t.showToast({title:"保存成功",duration:2e3})},fail:function(){console.log("saveImageToPhotosAlbum 失败"),t.hideLoading()},complete:function(){t.hideLoading()}})}})}}};n.default=u}).call(this,e("df3c")["default"])},"536b":function(t,n,e){},"61a3":function(t,n,e){"use strict";e.r(n);var o=e("728a"),u=e("9cf7");for(var i in u)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("1bf0");var a=e("828b"),c=Object(a["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},"6f2e":function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("584a");o(e("3240"));var u=o(e("61a3"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(u.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"728a":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},u=[]},"9cf7":function(t,n,e){"use strict";e.r(n);var o=e("4e31"),u=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=u.a}},[["6f2e","common/runtime","common/vendor"]]]);