(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["fenxiao/poster"],{"4c25":function(t,e,n){"use strict";n.r(e);var i=n("8f1d"),r=n("84d6");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("93ae");var a=n("828b"),u=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports},"68f6":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("4c1a");i(n("3240"));var r=i(n("4c25"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},7230:function(t,e,n){},"84d6":function(t,e,n){"use strict";n.r(e);var i=n("bfeb"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"8f1d":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uSafeBottom:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(n.bind(null,"f585"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},"93ae":function(t,e,n){"use strict";var i=n("7230"),r=n.n(i);r.a},bfeb:function(t,e,n){"use strict";(function(t,i){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("7ca3")),a=n("8f59");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var c={data:function(){return{list:[],current:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,a.mapGetters)(["base","fenxiao","user"])),onLoad:function(){this.init()},methods:{onSave:function(){var e=this;if(!this.list[this.current])return this.toast("保存失败");t.downloadFile({url:this.list[this.current],success:function(n){t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(t){e.toast("保存成功")},fail:function(t){e.toast("保存失败")}})}})},init:function(){var t=this;this.$util.get("fenxiao/poster").then((function(e){t.$util.setTitle(t.fenxiao.texts.poster),1==e.code?t.list=e.data.list:t.toast(e.message)}))},changeSwiper:function(t){var e=t.detail,n=e.current,i=e.source;["autoplay","touch"].includes(i)&&(this.current=n)},previewImage:function(e){t.previewImage({current:e,urls:this.list})},shareImage:function(){var t=this,e=this.$util.share();i.downloadFile({url:this.list[this.current],success:function(n){i.showShareImageMenu({path:n.tempFilePath,entrancePath:e.path,success:function(){t.$util.handleWxappShare()},fail:function(e){var n=e.errMsg||e;-1!=n.indexOf("cancel")?t.$util.toast("取消分享"):t.$util.toast("分享失败",n)}})},fail:function(){t.$util.toast("下载失败")}})}}};e.default=c}).call(this,n("df3c")["default"],n("3223")["default"])}},[["68f6","common/runtime","common/vendor"]]]);