(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/topic/topic"],{2595:function(t,e,o){"use strict";o.r(e);var n=o("7828"),i=o("b525");for(var a in i)"default"!==a&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("93a0");var r,c=o("f0c5"),p=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"1a2c9846",null,!1,n["a"],r);e["default"]=p.exports},3596:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("2f62");function i(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function a(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?i(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var c=function(){Promise.all([o.e("common/vendor"),o.e("components/basic-component/app-rich/parse")]).then(function(){return resolve(o("ee52"))}.bind(null,o)).catch(o.oe)},p=function(){o.e("components/page-component/app-share-qr-code-poster/app-share-qr-code-poster").then(function(){return resolve(o("9f9b"))}.bind(null,o)).catch(o.oe)},s=function(){Promise.all([o.e("common/vendor"),o.e("components/basic-component/app-iphone-x/app-iphone-x")]).then(function(){return resolve(o("bd7b"))}.bind(null,o)).catch(o.oe)},u=function(){Promise.all([o.e("common/vendor"),o.e("components/basic-component/app-empty-bottom/app-empty-bottom")]).then(function(){return resolve(o("51dc"))}.bind(null,o)).catch(o.oe)},l=function(){Promise.all([o.e("common/vendor"),o.e("components/page-component/app-video/app-video")]).then(function(){return resolve(o("ba01"))}.bind(null,o)).catch(o.oe)},d=function(){o.e("components/page-component/app-image-ad/app-image-ad").then(function(){return resolve(o("697c"))}.bind(null,o)).catch(o.oe)},f=function(){o.e("components/basic-component/app-hotspot/app-hotspot").then(function(){return resolve(o("a0c4d"))}.bind(null,o)).catch(o.oe)},h={name:"topic",components:{"app-rich-text":c,"app-share-qr-code-poster":p,appIphoneX:s,appEmptyBottom:u,"app-video":l,"app-image-ad":d,"app-hotspot":f},computed:a({},(0,n.mapState)({gConfig:function(t){return t.gConfig}})),data:function(){return{topic:null,is_loading:!1,shareShow:!1,poster:null}},onLoad:function(t){this.loadData(t.id),this.poster=this.$api.poster.topic+"&id="+t.id},onShareAppMessage:function(t){return this.$shareAppMessage({title:this.topic.app_share_title?this.topic.app_share_title:this.topic.title,imageUrl:this.topic.qrcode_pic?this.topic.qrcode_pic:"",path:"/pages/topic/topic",params:{id:this.topic.id}})},methods:{loadData:function(t){var e=this;this.$showLoading(),this.$request({url:this.$api.topic.detail,data:{id:t}}).then((function(t){e.$hideLoading(),0===t.code&&(e.topic=t.data.list)})).catch((function(t){e.$hideLoading()}))},favorite:function(){var e=this;if(!this.is_loading){t.showLoading({mark:!0,title:"正在请求"}),this.is_loading=!0;var o="no_love"===this.topic.is_favorite?"love":"no_love";this.$request({url:this.$api.topic.favorite,data:{id:this.topic.id,is_favorite:o},method:"post"}).then((function(n){t.hideLoading(),e.is_loading=!1,0===n.code?(e.topic.is_favorite=o,t.showToast({title:n.msg,mask:!1})):t.showModal({title:"提示",content:n.msg,showCancel:!1})})).catch((function(o){t.hideLoading(),e.is_loading=!1}))}},shareClick:function(){this.shareShow=!0},rubikHotspot:function(t){return t&&t.link&&(t.link.url=t.link.new_link_url,t.link.openType=t.link.open_type),t}}};e.default=h}).call(this,o("543d")["default"])},7828:function(t,e,o){"use strict";var n,i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.__map(t.topic.detail,(function(e,o){var n=t.__map(e.data.hotspot,(function(e,o){var n=t.rubikHotspot(e);return{$orig:t.__get_orig(e),m0:n}}));return{$orig:t.__get_orig(e),l0:n}}))),n=Number(96);t.$mp.data=Object.assign({},{$root:{l1:o,m1:n}})},a=[];o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}))},"7ed7":function(t,e,o){},"93a0":function(t,e,o){"use strict";var n=o("7ed7"),i=o.n(n);i.a},"95a8":function(t,e,o){"use strict";(function(t){o("8748");n(o("66fd"));var e=n(o("2595"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,o("543d")["createPage"])},b525:function(t,e,o){"use strict";o.r(e);var n=o("3596"),i=o.n(n);for(var a in n)"default"!==a&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a}},[["95a8","common/runtime","common/vendor"]]]);