(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/zc/plshare"],{"1dfd":function(n,t,o){"use strict";o.r(t);var i=o("b52b"),e=o("2209");for(var a in e)["default"].indexOf(a)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(a);o("d017");var u=o("f0c5"),c=Object(u["a"])(e["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},2209:function(n,t,o){"use strict";o.r(t);var i=o("c360"),e=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(n){o.d(t,n,(function(){return i[n]}))}(a);t["default"]=e.a},"6d1d":function(n,t,o){},7701:function(n,t,o){"use strict";(function(n,t){var i=o("4ea4");o("d1cd");i(o("66fd"));var e=i(o("1dfd"));n.__webpack_require_UNI_MP_PLUGIN__=o,t(e.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},b52b:function(n,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return e})),o.d(t,"a",(function(){}));var i=function(){var n=this.$createElement;this._self._c},e=[]},c360:function(n,t,o){"use strict";(function(n){var i=o("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o("cd04"),a=i(o("f6c5")),u={data:function(){return{info:{},url:"",imageBox:[],alllen:"",nowlen:""}},components:{sunuiGrand:function(){o.e("components/sunui-grand/sunui-grand").then(function(){return resolve(o("d678"))}.bind(null,o)).catch(o.oe)}},onLoad:function(n){this.id=n.id},onShow:function(){this.imageBox=[],this.loadData()},onReachBottom:function(){},onReady:function(){},methods:{loadData:function(){var n=this,t=this;(0,e.reply_detail)({},this.id).then((function(o){var i=o.data;i.pics.forEach((function(n){var o={isxuan:!0,url:n};t.imageBox.push(o)})),n.alllen=t.imageBox.length,n.nowlen=t.imageBox.length,n.info=i})),(0,e.short_link)({url:"pages/zc/plDetail?id="+this.id}).then((function(t){var o=t.data;console.log(o),n.url=o.link}))},change:function(n){n.isxuan?(n.isxuan=!1,this.nowlen-=1):(n.isxuan=!0,this.nowlen+=1)},comfirm:function(){var t=this.info.comment+this.url,o=(0,a.default)(t);!1===o?n.showToast({title:"不支持"}):n.showToast({title:"复制成功",icon:"none"})},onDown:function(){var t=[];this.imageBox.forEach((function(n){n.isxuan&&t.push(n.url)})),n.authorize({scope:"scope.writePhotosAlbum",success:function(){if(t&&t.length>0){var o=1;t.forEach((function(i){n.showLoading({title:"下载第"+o+"图片中，共"+t.length+"张"}),n.downloadFile({url:i,success:function(t){200===t.statusCode&&n.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(t){o+=1,n.showToast({title:"保存成功",icon:"none"})},fail:function(t){n.showToast({title:"保存失败",icon:"none"}),t.errMsg}})}})}))}else n.showToast({title:"暂无数据",icon:"none"})},fail:function(){n.showModal({title:"您需要授权相册权限",success:function(t){t.confirm&&n.openSetting({success:function(n){},fail:function(n){}})}})}})}}};t.default=u}).call(this,o("543d")["default"])},d017:function(n,t,o){"use strict";var i=o("6d1d"),e=o.n(i);e.a}},[["7701","common/runtime","common/vendor"]]]);