(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/zc/plDetail"],{"30f2":function(e,t,n){"use strict";n.r(t);var o=n("be63"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},"8d61":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o}));var o={uniPopup:function(){return n.e("components/uni-popup/uni-popup").then(n.bind(null,"1808"))}},i=function(){var e=this.$createElement;this._self._c},r=[]},b323:function(e,t,n){},be63:function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("9523")),r=n("cd04"),a=o(n("f6c5")),c=n("26cb");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var u={data:function(){return{id:"",info:{},shareShow:!1,shareImage:""}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,c.mapState)("user",["hasLogin","userInfo"])),onLoad:function(t){if(t.id&&(this.id=t.id),t.scene&&"string"==typeof t.scene){var n=("{"+t.scene+"}").replace("qr%26","").replace(/%3D/g,":").replace(/%26/g,",").replace("id",'"id"').replace("pid",'"pid"').replace(/=/g,":").replace(/&/g,",");console.log(n,"scene");var o=JSON.parse(n);console.log(o),this.id=o.id,o.pid&&e.setStorageSync("spread",o.pid)}},onShow:function(){this.loadData()},onReachBottom:function(){},onReady:function(){},onShareAppMessage:function(e){if(console.log(this.share),"button"===e.from){var t=getCurrentPages(),n=t[t.length-1],o="/"+n.route+"?";for(var i in n.options)o+=i+"="+n.options[i]+"&";var r={path:o,imageUrl:this.info.share_images[0],title:this.info.title};return console.log("data",r),r}},methods:{loadData:function(){var e=this;(0,r.reply_detail)({},this.id).then((function(t){var n=t.data;e.info=n}))},wzdz:function(){var e=this;(0,r.reply_good)({},this.id).then((function(t){0==e.info.user_good?(e.info.user_good=1,e.info.goods_count+=1):(e.info.user_good=0,e.info.goods_count-=1)}))},navTo:function(t){e.navigateTo({url:t})},shareLink:function(e){console.log("dainjideniang"),this.shareShow=!0},shareToFriend:function(){var t=this,n=this;e.showLoading({title:"Loading...",mask:!0}),(0,r.reply_poster)({},this.id).then((function(o){var i=o.data;n.shareImage=i.url,console.log(n.shareImage,"123456"),e.hideLoading(),t.$refs.popupshare.open()})).catch((function(t){e.hideLoading()}))},copy:function(){var e=this;(0,r.short_link)({url:"pages/zc/plDetail?id="+this.id}).then((function(t){var n=t.data;console.log(n),e.comfirm(n.link)}))},comfirm:function(t){console.log(t);var n=(0,a.default)(t);!1===n?e.showToast({title:"不支持"}):e.showToast({title:"复制成功",icon:"none"})},cancel:function(){this.shareShow=!1},saveImg:function(t){console.log(t);e.downloadFile({url:this.shareImage,success:function(t){console.log(t.tempFilePath),e.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(t){e.showToast({title:"保存成功",icon:"none"})}})}})},getVideo:function(e){var t=[],n=/src=[\'\"]?([^\'\"]*)[\'\"]?/i,o=e.match(/<video.*?(?:>|\/>)/gi)||[],i=e.split("</video>");o.forEach((function(e,o){var i=e.match(n);t.push(i[1])}));var r=[];return i.forEach((function(e,n){""!=e&&void 0!=e&&r.push({type:"rich-text",value:e+"</video>"});var o=i.length;n<o&&void 0!=t[n]&&r.push({type:"video",value:t[n]})})),r}}};t.default=u}).call(this,n("543d")["default"])},c14e:function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("d1cd");o(n("66fd"));var i=o(n("ff4b"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},d9a5:function(e,t,n){"use strict";var o=n("b323"),i=n.n(o);i.a},ff4b:function(e,t,n){"use strict";n.r(t);var o=n("8d61"),i=n("30f2");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("d9a5");var a=n("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports}},[["c14e","common/runtime","common/vendor"]]]);