require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/userTuiImg"],{577:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(578));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},578:function(n,e,t){"use strict";t.r(e);var o=t(579),r=t(581);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);t(583);var i,a=t(34),c=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);c.options.__file="pages_user/user/userTuiImg.vue",e["default"]=c.exports},579:function(n,e,t){"use strict";t.r(e);var o=t(580);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},580:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return i})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return o}));var r=function(){var n=this,e=n.$createElement;n._self._c},u=!1,i=[];r._withStripped=!0},581:function(n,e,t){"use strict";t.r(e);var o=t(582),r=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=r.a},582:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(163),r={name:"Poster",components:{},props:{},data:function(){return{url:null}},mounted:function(){this.getTuiImg()},methods:{getTuiImg:function(){var e=this;(0,o.getTuiImg)().then((function(t){var o=n.getStorageSync("requestPath");e.url=o+"/"+t.url}),(function(e){n.showToast({title:e.msg,icon:"none",duration:2e3})}))},downloadIamge:function(n,e){var t=this;this.isDown=!0;var o=n;t.downloadFile(o)},saveImg:function(){this.downloadIamge(this.url,"poster")},downloadFile:function(e){console.log(e),n.showLoading({title:"图片保存中..."}),n.downloadFile({url:e,fail:function(e){n.showModal({title:"提示",content:"保存失败"})},success:function(e){console.log(e);var t=e.tempFilePath;n.saveImageToPhotosAlbum({filePath:t,success:function(){n.showToast({title:"保存成功",duration:2e3})},fail:function(){console.log("saveImageToPhotosAlbum 失败"),n.hideLoading()},complete:function(){n.hideLoading()}})}})}}};e.default=r}).call(this,t(2)["default"])},583:function(n,e,t){"use strict";t.r(e);var o=t(584),r=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=r.a},584:function(n,e,t){}},[[577,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_user/user/userTuiImg.js.map